Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for RetGovernance (0.12 sec)

  1. cmd/bucket-object-lock.go

    		}
    
    		switch ret.Mode {
    		case objectlock.RetGovernance:
    			govPerm := isPutRetentionAllowed(oi.Bucket, oi.Name, days,
    				objRetention.RetainUntilDate.Time, objRetention.Mode,
    				byPassSet, r, cred, owner)
    			// Governance mode retention period cannot be shortened, if x-amz-bypass-governance is not set.
    			if !byPassSet {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 08 02:38:25 UTC 2025
    - 13.3K bytes
    - Viewed (0)
  2. internal/bucket/object/lock/lock_test.go

    		},
    		{
    			value:       DefaultRetention{Mode: RetGovernance},
    			expectedErr: fmt.Errorf("either Days or Years must be specified"),
    			expectErr:   true,
    		},
    		{
    			value:       DefaultRetention{Mode: RetGovernance, Days: &days},
    			expectedErr: nil,
    			expectErr:   false,
    		},
    		{
    			value:       DefaultRetention{Mode: RetGovernance, Years: &years},
    			expectedErr: nil,
    			expectErr:   false,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  3. internal/bucket/object/lock/lock.go

    // RetMode - object retention mode.
    type RetMode string
    
    const (
    	// RetGovernance - governance mode.
    	RetGovernance RetMode = "GOVERNANCE"
    
    	// RetCompliance - compliance mode.
    	RetCompliance RetMode = "COMPLIANCE"
    )
    
    // Valid - returns if retention mode is valid
    func (r RetMode) Valid() bool {
    	switch r {
    	case RetGovernance, RetCompliance:
    		return true
    	}
    	return false
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Sun Sep 28 20:59:21 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/evaluator.go

    	if lhold.Status.Valid() && lhold.Status == objlock.LegalHoldOn {
    		return true
    	}
    
    	ret := objlock.GetObjectRetentionMeta(obj.UserDefined)
    	if ret.Mode.Valid() && (ret.Mode == objlock.RetCompliance || ret.Mode == objlock.RetGovernance) {
    		t, err := objlock.UTCNowNTP()
    		if err != nil {
    			// it is safe to assume that the object is locked when
    			// we can't get the current time
    			return true
    		}
    		if ret.RetainUntilDate.After(t) {
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Apr 08 15:41:24 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. cmd/auth-handler.go

    	if retDays > 0 {
    		conditions["object-lock-remaining-retention-days"] = []string{strconv.Itoa(retDays)}
    	}
    	if retMode == objectlock.RetGovernance && byPassSet {
    		byPassSet = globalIAMSys.IsAllowed(policy.Args{
    			AccountName:     cred.AccessKey,
    			Groups:          cred.Groups,
    			Action:          policy.BypassGovernanceRetentionAction,
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 25.4K bytes
    - Viewed (0)
Back to top