Skip to content

Commit

Permalink
Merge pull request #129 from RachelTucker/OTHER-add-protected-flag-to…
Browse files Browse the repository at this point in the history
…-helpers

OTHER: added protected flag as optional parameter to helper putObjects call
  • Loading branch information
LogicalChaos authored Feb 6, 2024
2 parents 866f94e + 0303d0d commit 22b7508
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers/putTransceiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ func newBulkPutRequest(bucketName string, writeObjects *[]helperModels.PutObject
if options.IgnoreNamingConflicts != nil && *options.IgnoreNamingConflicts {
bulkPut = bulkPut.WithIgnoreNamingConflicts()
}
if options.Protected != nil {
bulkPut = bulkPut.WithProtected(*options.Protected)
}
return bulkPut
}

Expand Down
1 change: 1 addition & 0 deletions helpers/writeTransferStrategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type WriteBulkJobOptions struct {
Name *string
Force *bool
IgnoreNamingConflicts *bool
Protected *bool
}

// Strategy for how to blob objects for writing
Expand Down

0 comments on commit 22b7508

Please sign in to comment.