Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for kanred (0.34 sec)

  1. cmd/admin-router.go

    		// List policies latest
    		adminRouter.Methods(http.MethodGet).Path(adminVersion+"/list-canned-policies").HandlerFunc(adminMiddleware(adminAPI.ListBucketPolicies)).Queries("bucket", "{bucket:.*}")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  2. cmd/typed-errors.go

    // error returned in IAM subsystem when a group is disabled
    var errGroupDisabled = errors.New("Specified group is disabled")
    
    // error returned in IAM subsystem when policy doesn't exist.
    var errNoSuchPolicy = errors.New("Specified canned policy does not exist")
    
    // error returned when policy to be deleted is in use.
    var errPolicyInUse = errors.New("Specified policy is in use and cannot be deleted.")
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  3. cmd/peer-rest-client.go

    	}))
    	return err
    }
    
    // DeletePolicy - delete a specific canned policy.
    func (client *peerRESTClient) DeletePolicy(policyName string) (err error) {
    	_, err = deletePolicyRPC.Call(context.Background(), client.gridConn(), grid.NewMSSWith(map[string]string{
    		peerRESTPolicy: policyName,
    	}))
    	return err
    }
    
    // LoadPolicy - reload a specific canned policy.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  4. internal/config/identity/openid/help.go

    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         ClaimName,
    			Description: `JWT canned policy claim name` + defaultHelpPostfix(ClaimName),
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         Scopes,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Jun 23 14:45:27 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  5. cmd/auth-handler_test.go

    	}
    	for i, testCase := range testCases {
    		if _, s3Error := checkAdminRequestAuth(ctx, testCase.Request, policy.AllAdminActions, globalSite.Region); s3Error != testCase.ErrCode {
    			t.Errorf("Test %d: Unexpected s3error returned wanted %d, got %d", i, testCase.ErrCode, s3Error)
    		}
    	}
    }
    
    func TestValidateAdminSignature(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. istioctl/pkg/install/k8sversion/version_test.go

    			got, err := extractKubernetesVersion(c.version)
    			if c.errMsg != err && c.isValid {
    				t.Fatalf("\nwanted: %v \nbut found: %v", c.errMsg, err)
    			}
    			if got != c.expected {
    				t.Fatalf("wanted %v got %v", c.expected, got)
    			}
    		})
    	}
    }
    
    func TestIsK8VersionSupported(t *testing.T) {
    	cases := []struct {
    		version *version.Info
    		logMsg  string
    		isValid bool
    	}{
    		{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 19 02:46:48 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  7. istioctl/pkg/metrics/metrics_test.go

    }
    
    func (client mockPromAPI) Query(ctx context.Context, query string, ts time.Time, opts ...promv1.Option) (prometheus_model.Value, promv1.Warnings, error) {
    	canned, ok := client.cannedResponse[query]
    	if !ok {
    		return prometheus_model.Vector{}, nil, nil
    	}
    	return canned, nil, nil
    }
    
    func (client mockPromAPI) TSDB(ctx context.Context) (promv1.TSDBResult, error) {
    	return promv1.TSDBResult{}, nil
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  8. cmd/iam-store.go

    // additionally support watching storage for changes.
    type iamStorageWatcher interface {
    	watch(ctx context.Context, keyPath string) <-chan iamWatchEvent
    }
    
    // Set default canned policies only if not already overridden by users.
    func setDefaultCannedPolicies(policies map[string]PolicyDoc) {
    	for _, v := range policy.DefaultPolicies {
    		if _, ok := policies[v.Name]; !ok {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  9. cmd/bucket-stats_gen.go

    			var zb0002 uint32
    			zb0002, err = dc.ReadArrayHeader()
    			if err != nil {
    				err = msgp.WrapError(err, "Totals")
    				return
    			}
    			if zb0002 != uint32(60) {
    				err = msgp.ArrayError{Wanted: uint32(60), Got: zb0002}
    				return
    			}
    			for za0001 := range z.Totals {
    				err = z.Totals[za0001].DecodeMsg(dc)
    				if err != nil {
    					err = msgp.WrapError(err, "Totals", za0001)
    					return
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  10. cmd/iam.go

    		UpdateDate: d.UpdateDate,
    	}, nil
    }
    
    // ListPolicies - lists all canned policies.
    func (sys *IAMSys) ListPolicies(ctx context.Context, bucketName string) (map[string]policy.Policy, error) {
    	if !sys.Initialized() {
    		return nil, errServerNotInitialized
    	}
    
    	return sys.store.ListPolicies(ctx, bucketName)
    }
    
    // ListPolicyDocs - lists all canned policy docs.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top