Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetPolicyConfig (0.07 sec)

  1. cmd/bucket-metadata-sys.go

    	meta, _, err := sys.GetConfig(GlobalContext, bucket)
    	if err != nil {
    		return time.Time{}, err
    	}
    	return meta.Created.UTC(), nil
    }
    
    // GetPolicyConfig returns configured bucket policy
    // The returned object may not be modified.
    func (sys *BucketMetadataSys) GetPolicyConfig(bucket string) (*policy.BucketPolicy, time.Time, error) {
    	meta, _, err := sys.GetConfig(GlobalContext, bucket)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. cmd/bucket-policy.go

    )
    
    // PolicySys - policy subsystem.
    type PolicySys struct{}
    
    // Get returns stored bucket policy
    func (sys *PolicySys) Get(bucket string) (*policy.BucketPolicy, error) {
    	policy, _, err := globalBucketMetadataSys.GetPolicyConfig(bucket)
    	return policy, err
    }
    
    // IsAllowed - checks given policy args is allowed to continue the Rest API.
    func (sys *PolicySys) IsAllowed(args policy.BucketPolicyArgs) bool {
    	p, err := sys.Get(args.BucketName)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. cmd/site-replication.go

    	// skip overwrite if local update is newer than peer update.
    	if !updatedAt.IsZero() {
    		if _, updateTm, err := globalBucketMetadataSys.GetPolicyConfig(bucket); err == nil && updateTm.After(updatedAt) {
    			return nil
    		}
    	}
    
    	if policy != nil {
    		configData, err := json.Marshal(policy)
    		if err != nil {
    			return wrapSRErr(err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top