in v3/client/s3_encryption_client_v3.go [45:61]
func New(s3Client *s3.Client, CryptographicMaterialsManager materials.CryptographicMaterialsManager, optFns ...func(options *EncryptionClientOptions)) (*S3EncryptionClientV3, error) {
wrappedClient := s3Client
// default options
options := EncryptionClientOptions{
MinFileSize: DefaultMinFileSize,
Logger: log.Default(),
CryptographicMaterialsManager: CryptographicMaterialsManager,
EnableLegacyUnauthenticatedModes: false,
}
for _, fn := range optFns {
fn(&options)
}
// use the given wrappedClient for the promoted anon fields
s3ec := &S3EncryptionClientV3{wrappedClient, options}
return s3ec, nil
}