Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for policyDocs (0.08 sec)

  1. cmd/iam-object-store.go

    )
    
    func (iamOS *IAMObjectStore) loadPolicyDocConcurrent(ctx context.Context, policies ...string) ([]PolicyDoc, error) {
    	policyDocs := make([]PolicyDoc, len(policies))
    	g := errgroup.WithNErrs(len(policies))
    
    	for index := range policies {
    		index := index
    		g.Go(func() error {
    			policyName := path.Dir(policies[index])
    			policyDoc, err := iamOS.loadPolicy(ctx, policyName)
    			if err != nil && !errors.Is(err, errNoSuchPolicy) {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  2. cmd/iam-etcd-store.go

    }
    
    func (ies *IAMEtcdStore) loadPolicyDocWithRetry(ctx context.Context, policy string, m map[string]PolicyDoc, _ int) error {
    	return ies.loadPolicyDoc(ctx, policy, m)
    }
    
    func (ies *IAMEtcdStore) loadPolicyDoc(ctx context.Context, policy string, m map[string]PolicyDoc) error {
    	data, err := ies.loadIAMConfigBytes(ctx, getPolicyDocPath(policy))
    	if err != nil {
    		if err == errConfigNotFound {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    }
    
    // PolicyDoc represents an IAM policy with some metadata.
    type PolicyDoc struct {
    	Version    int `json:",omitempty"`
    	Policy     policy.Policy
    	CreateDate time.Time `json:",omitempty"`
    	UpdateDate time.Time `json:",omitempty"`
    }
    
    func newPolicyDoc(p policy.Policy) PolicyDoc {
    	now := UTCNow().Round(time.Millisecond)
    	return PolicyDoc{
    		Version:    1,
    		Policy:     p,
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    		return
    	}
    
    	policyDoc, err := globalIAMSys.InfoPolicy(name)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// Is the new API version being requested?
    	infoPolicyAPIVersion := r.Form.Get("v")
    	if infoPolicyAPIVersion == "2" {
    		buf, err := json.MarshalIndent(policyDoc, "", " ")
    		if err != nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  5. cmd/site-replication.go

    			}
    		}
    		info.Policies = make(map[string]madmin.SRIAMPolicy, len(allPolicies))
    		for pname, policyDoc := range allPolicies {
    			policyJSON, err := json.Marshal(policyDoc.Policy)
    			if err != nil {
    				return info, wrapSRErr(err)
    			}
    			info.Policies[pname] = madmin.SRIAMPolicy{Policy: json.RawMessage(policyJSON), UpdatedAt: policyDoc.UpdateDate}
    		}
    	}
    	if opts.ILMExpiryRules || opts.Entity == madmin.SRILMExpiryRuleEntity {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
  6. cmd/iam.go

    	}
    
    	return sys.store.ListPolicies(ctx, bucketName)
    }
    
    // ListPolicyDocs - lists all canned policy docs.
    func (sys *IAMSys) ListPolicyDocs(ctx context.Context, bucketName string) (map[string]PolicyDoc, error) {
    	if !sys.Initialized() {
    		return nil, errServerNotInitialized
    	}
    
    	return sys.store.ListPolicyDocs(ctx, bucketName)
    }
    
    // SetPolicy - sets a new named policy.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top