Skip to content

Commit

Permalink
Merge pull request #432 from ONSdigital/feature/DIS-387
Browse files Browse the repository at this point in the history
Add moved state and method
  • Loading branch information
hhsons authored Mar 4, 2024
2 parents 5850246 + a914169 commit 4988fe0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions files/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ func (c *Client) MarkFileDecrypted(ctx context.Context, path string, etag string
ETag: etag,
})
}
func (c *Client) MarkFileMoved(ctx context.Context, path string, etag string) error {
return c.PatchFile(ctx, path, FilePatch{
State: "MOVED",
ETag: etag,
})
}
func (c *Client) MarkFilePublished(ctx context.Context, path string, etag string) error {
return c.PatchFile(ctx, path, FilePatch{
State: "PUBLISHED",
Expand Down

0 comments on commit 4988fe0

Please sign in to comment.