Documentation
¶
Index ¶
- Constants
- type Etcd
- func (r *Etcd) CreatePolicy(ctx kapi.Context, policy *authorizationapi.Policy) error
- func (r *Etcd) CreatePolicyBinding(ctx kapi.Context, binding *authorizationapi.PolicyBinding) error
- func (r *Etcd) DeletePolicy(ctx kapi.Context, name string) error
- func (r *Etcd) DeletePolicyBinding(ctx kapi.Context, name string) error
- func (r *Etcd) GetPolicy(ctx kapi.Context, name string) (policy *authorizationapi.Policy, err error)
- func (r *Etcd) GetPolicyBinding(ctx kapi.Context, name string) (policyBinding *authorizationapi.PolicyBinding, err error)
- func (r *Etcd) ListPolicies(ctx kapi.Context, label, field klabels.Selector) (*authorizationapi.PolicyList, error)
- func (r *Etcd) ListPolicyBindings(ctx kapi.Context, label, field klabels.Selector) (*authorizationapi.PolicyBindingList, error)
- func (r *Etcd) UpdatePolicy(ctx kapi.Context, newPolicy *authorizationapi.Policy) error
- func (r *Etcd) UpdatePolicyBinding(ctx kapi.Context, newPolicyBinding *authorizationapi.PolicyBinding) error
Constants ¶
View Source
const ( PolicyPath = "/registry/authorization/policy" PolicyBindingPath = "/registry/authorization/policyBinding" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Etcd ¶
type Etcd struct {
// contains filtered or unexported fields
}
Etcd implements the Policy, AuthorizeToken, and Client registries backed by etcd.
func (*Etcd) CreatePolicy ¶
func (*Etcd) CreatePolicyBinding ¶
func (r *Etcd) CreatePolicyBinding(ctx kapi.Context, binding *authorizationapi.PolicyBinding) error
func (*Etcd) DeletePolicyBinding ¶
func (*Etcd) GetPolicyBinding ¶
func (r *Etcd) GetPolicyBinding(ctx kapi.Context, name string) (policyBinding *authorizationapi.PolicyBinding, err error)
func (*Etcd) ListPolicies ¶
func (r *Etcd) ListPolicies(ctx kapi.Context, label, field klabels.Selector) (*authorizationapi.PolicyList, error)
func (*Etcd) ListPolicyBindings ¶
func (r *Etcd) ListPolicyBindings(ctx kapi.Context, label, field klabels.Selector) (*authorizationapi.PolicyBindingList, error)
func (*Etcd) UpdatePolicy ¶
func (*Etcd) UpdatePolicyBinding ¶
func (r *Etcd) UpdatePolicyBinding(ctx kapi.Context, newPolicyBinding *authorizationapi.PolicyBinding) error
Click to show internal directories.
Click to hide internal directories.