Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mappedPoliciesToMap (0.18 sec)

  1. cmd/admin-handlers-users.go

    			if err != nil {
    				writeErrorResponse(ctx, w, exportError(ctx, err, iamFile, ""), r.URL)
    				return
    			}
    			userPolData, err := json.Marshal(mappedPoliciesToMap(userPolicyMap))
    			if err != nil {
    				writeErrorResponse(ctx, w, exportError(ctx, err, iamFile, ""), r.URL)
    				return
    			}
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  2. cmd/iam-store.go

    type MappedPolicy struct {
    	Version   int       `json:"version"`
    	Policies  string    `json:"policy"`
    	UpdatedAt time.Time `json:"updatedAt,omitempty"`
    }
    
    // mappedPoliciesToMap copies the map of mapped policies to a regular map.
    func mappedPoliciesToMap(m *xsync.MapOf[string, MappedPolicy]) map[string]MappedPolicy {
    	policies := make(map[string]MappedPolicy, m.Size())
    	m.Range(func(k string, v MappedPolicy) bool {
    		policies[k] = v
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
Back to top