Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ObjectLockEnabled (0.52 sec)

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

    	XMLName           xml.Name `xml:"ObjectLockConfiguration"`
    	ObjectLockEnabled string   `xml:"ObjectLockEnabled"`
    	Rule              *struct {
    		DefaultRetention DefaultRetention `xml:"DefaultRetention"`
    	} `xml:"Rule,omitempty"`
    }
    
    // Enabled returns true if config.ObjectLockEnabled is set to Enabled
    func (config *Config) Enabled() bool {
    	return config.ObjectLockEnabled == Enabled
    }
    
    // UnmarshalXML - decodes XML data.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  2. internal/bucket/object/lock/lock_test.go

    			expectedErr: fmt.Errorf("only 'Enabled' value is allowed to ObjectLockEnabled element"),
    			expectErr:   true,
    		},
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  3. cmd/bucket-metadata.go

    	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>`)
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  4. cmd/bucket-handlers.go

    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := vars["bucket"]
    
    	objectLockEnabled := false
    	if vs := r.Header.Get(xhttp.AmzObjectLockEnabled); len(vs) > 0 {
    		v := strings.ToLower(vs)
    		switch v {
    		case "true", "false":
    			objectLockEnabled = v == "true"
    		default:
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidRequest), r.URL)
    			return
    		}
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
Back to top