Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ObjectLockConfiguration (0.26 sec)

  1. internal/bucket/object/lock/lock_test.go

    		expectErr   bool
    	}{
    		{
    			value:       `<ObjectLockConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><ObjectLockEnabled>yes</ObjectLockEnabled></ObjectLockConfiguration>`,
    			expectedErr: fmt.Errorf("only 'Enabled' value is allowed to ObjectLockEnabled element"),
    			expectErr:   true,
    		},
    		{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  2. internal/bucket/object/lock/lock.go

    	return nil
    }
    
    // Config - object lock configuration specified in
    // https://docs.aws.amazon.com/AmazonS3/latest/API/Type_API_ObjectLockConfiguration.html
    type Config struct {
    	XMLNS             string   `xml:"xmlns,attr,omitempty"`
    	XMLName           xml.Name `xml:"ObjectLockConfiguration"`
    	ObjectLockEnabled string   `xml:"ObjectLockEnabled"`
    	Rule              *struct {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 17.1K bytes
    - Viewed (0)
  3. cmd/bucket-metadata.go

    	bucketMetadataFile    = ".metadata.bin"
    	bucketMetadataFormat  = 1
    	bucketMetadataVersion = 1
    )
    
    var (
    	enabledBucketObjectLockConfig = []byte(`<ObjectLockConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><ObjectLockEnabled>Enabled</ObjectLockEnabled></ObjectLockConfiguration>`)
    	enabledBucketVersioningConfig = []byte(`<VersioningConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><Status>Enabled</Status></VersioningConfiguration>`)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  4. cmd/api-errors.go

    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrInvalidBucketObjectLockConfiguration: {
    		Code:           "InvalidRequest",
    		Description:    "Bucket is missing ObjectLockConfiguration",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrBucketTaggingNotFound: {
    		Code:           "NoSuchTagSet",
    		Description:    "The TagSet does not exist",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
Back to top