Skip to content

Commit 22b7508

Browse files
authored
Merge pull request #129 from RachelTucker/OTHER-add-protected-flag-to-helpers
OTHER: added protected flag as optional parameter to helper putObjects call
2 parents 866f94e + 0303d0d commit 22b7508

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

helpers/putTransceiver.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ func newBulkPutRequest(bucketName string, writeObjects *[]helperModels.PutObject
5858
if options.IgnoreNamingConflicts != nil && *options.IgnoreNamingConflicts {
5959
bulkPut = bulkPut.WithIgnoreNamingConflicts()
6060
}
61+
if options.Protected != nil {
62+
bulkPut = bulkPut.WithProtected(*options.Protected)
63+
}
6164
return bulkPut
6265
}
6366

helpers/writeTransferStrategy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type WriteBulkJobOptions struct {
2424
Name *string
2525
Force *bool
2626
IgnoreNamingConflicts *bool
27+
Protected *bool
2728
}
2829

2930
// Strategy for how to blob objects for writing

0 commit comments

Comments
 (0)