Documentation ¶
Index ¶
- type PolicyBindingRegistry
- func (r *PolicyBindingRegistry) CreatePolicyBinding(ctx kapi.Context, policyBinding *authorizationapi.PolicyBinding) error
- func (r *PolicyBindingRegistry) DeletePolicyBinding(ctx kapi.Context, id string) error
- func (r *PolicyBindingRegistry) GetPolicyBinding(ctx kapi.Context, id string) (*authorizationapi.PolicyBinding, error)
- func (r *PolicyBindingRegistry) ListPolicyBindings(ctx kapi.Context, labels, fields klabels.Selector) (*authorizationapi.PolicyBindingList, error)
- func (r *PolicyBindingRegistry) UpdatePolicyBinding(ctx kapi.Context, policyBinding *authorizationapi.PolicyBinding) error
- type PolicyRegistry
- func (r *PolicyRegistry) CreatePolicy(ctx kapi.Context, policy *authorizationapi.Policy) error
- func (r *PolicyRegistry) DeletePolicy(ctx kapi.Context, id string) error
- func (r *PolicyRegistry) GetPolicy(ctx kapi.Context, id string) (*authorizationapi.Policy, error)
- func (r *PolicyRegistry) ListPolicies(ctx kapi.Context, labels, fields klabels.Selector) (*authorizationapi.PolicyList, error)
- func (r *PolicyRegistry) UpdatePolicy(ctx kapi.Context, policy *authorizationapi.Policy) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PolicyBindingRegistry ¶
type PolicyBindingRegistry struct { Err error MasterNamespace string PolicyBindings []authorizationapi.PolicyBinding DeletedPolicyBindingName string }
func (*PolicyBindingRegistry) CreatePolicyBinding ¶
func (r *PolicyBindingRegistry) CreatePolicyBinding(ctx kapi.Context, policyBinding *authorizationapi.PolicyBinding) error
CreatePolicyBinding creates a new policyBinding.
func (*PolicyBindingRegistry) DeletePolicyBinding ¶
func (r *PolicyBindingRegistry) DeletePolicyBinding(ctx kapi.Context, id string) error
DeletePolicyBinding deletes a policyBinding.
func (*PolicyBindingRegistry) GetPolicyBinding ¶
func (r *PolicyBindingRegistry) GetPolicyBinding(ctx kapi.Context, id string) (*authorizationapi.PolicyBinding, error)
GetPolicyBinding retrieves a specific policyBinding.
func (*PolicyBindingRegistry) ListPolicyBindings ¶
func (r *PolicyBindingRegistry) ListPolicyBindings(ctx kapi.Context, labels, fields klabels.Selector) (*authorizationapi.PolicyBindingList, error)
ListPolicies obtains list of ListPolicyBinding that match a selector.
func (*PolicyBindingRegistry) UpdatePolicyBinding ¶
func (r *PolicyBindingRegistry) UpdatePolicyBinding(ctx kapi.Context, policyBinding *authorizationapi.PolicyBinding) error
UpdatePolicyBinding updates a policyBinding.
type PolicyRegistry ¶
type PolicyRegistry struct { Err error MasterNamespace string Policies []authorizationapi.Policy DeletedPolicyName string }
func (*PolicyRegistry) CreatePolicy ¶
func (r *PolicyRegistry) CreatePolicy(ctx kapi.Context, policy *authorizationapi.Policy) error
CreatePolicy creates a new policy.
func (*PolicyRegistry) DeletePolicy ¶
func (r *PolicyRegistry) DeletePolicy(ctx kapi.Context, id string) error
DeletePolicy deletes a policy.
func (*PolicyRegistry) GetPolicy ¶
func (r *PolicyRegistry) GetPolicy(ctx kapi.Context, id string) (*authorizationapi.Policy, error)
GetPolicy retrieves a specific policy.
func (*PolicyRegistry) ListPolicies ¶
func (r *PolicyRegistry) ListPolicies(ctx kapi.Context, labels, fields klabels.Selector) (*authorizationapi.PolicyList, error)
ListPolicies obtains list of policys that match a selector.
func (*PolicyRegistry) UpdatePolicy ¶
func (r *PolicyRegistry) UpdatePolicy(ctx kapi.Context, policy *authorizationapi.Policy) error
UpdatePolicy updates a policy.
Click to show internal directories.
Click to hide internal directories.