package
0.0.0-20221121043126-298dde518304
Repository: https://github.com/nitrictech/minio.git
Documentation: pkg.go.dev
# Functions
FilterObjectLockMetadata filters object lock metadata if s3:GetObjectRetention permission is denied or if isCopy flag set.
GetObjectLegalHoldMeta constructs ObjectLegalHold from metadata.
GetObjectRetentionMeta constructs ObjectRetention from metadata.
IsObjectLockGovernanceBypassSet returns true if object lock governance bypass header is set.
IsObjectLockLegalHoldRequested returns true if object lock legal hold header is set.
IsObjectLockRequested returns true if legal hold or object lock retention headers are requested.
IsObjectLockRetentionRequested returns true if object lock retention headers are set.
NewObjectLockConfig returns a initialized lock.Config struct.
ParseObjectLegalHold decodes the XML into ObjectLegalHold.
ParseObjectLockConfig parses ObjectLockConfig from xml.
ParseObjectLockLegalHoldHeaders parses request headers to construct ObjectLegalHold.
ParseObjectLockRetentionHeaders parses http headers to extract retention mode and retention date.
ParseObjectRetention constructs ObjectRetention struct from xml input.
UTCNowNTP - is similar in functionality to UTCNow() but only used when we do not wish to rely on system time.
# Constants
Bypass retention governance header.
Bypass retention governance header.
Bypass retention governance header.
Bypass retention governance header.
Enabled indicates object locking is enabled.
LegalHoldOff - legal hold is off.
LegalHoldOn - legal hold is on.
RetCompliance - compliance mode.
RetGovernance - governance mode.
# Variables
ErrInvalidRetentionDate - indicates that retention date needs to be in ISO 8601 format.
ErrMalformedBucketObjectConfig -indicates that the bucket object lock config is malformed.
ErrMalformedXML - generic error indicating malformed XML.
ErrObjectLockInvalidHeaders indicates that object lock headers are missing.
ErrObjectLockMissingContentMD5 - indicates missing Content-MD5 header for put object requests with locking.
ErrPastObjectLockRetainDate - indicates that retention date must be in the future.
ErrUnknownWORMModeDirective - indicates that the retention mode is invalid.
# Structs
Config - object lock configuration specified in https://docs.aws.amazon.com/AmazonS3/latest/API/Type_API_ObjectLockConfiguration.html.
DefaultRetention - default retention configuration.
ObjectLegalHold specified in https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectLegalHold.html.
ObjectRetention specified in https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObjectRetention.html.
Retention - bucket level retention configuration.
RetentionDate is a embedded type containing time.Time to unmarshal Date in Retention.