etcd

package
v0.3.2-0.ose Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2015 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 New

func New(helper tools.EtcdHelper) *Etcd

New returns a new Etcd.

func (*Etcd) CreatePolicy

func (r *Etcd) CreatePolicy(ctx kapi.Context, policy *authorizationapi.Policy) error

func (*Etcd) CreatePolicyBinding

func (r *Etcd) CreatePolicyBinding(ctx kapi.Context, binding *authorizationapi.PolicyBinding) error

func (*Etcd) DeletePolicy

func (r *Etcd) DeletePolicy(ctx kapi.Context, name string) error

func (*Etcd) DeletePolicyBinding

func (r *Etcd) DeletePolicyBinding(ctx kapi.Context, name string) error

func (*Etcd) GetPolicy

func (r *Etcd) GetPolicy(ctx kapi.Context, name string) (policy *authorizationapi.Policy, err error)

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 (r *Etcd) UpdatePolicy(ctx kapi.Context, newPolicy *authorizationapi.Policy) error

func (*Etcd) UpdatePolicyBinding

func (r *Etcd) UpdatePolicyBinding(ctx kapi.Context, newPolicyBinding *authorizationapi.PolicyBinding) error

func (*Etcd) WatchPolicies added in v0.3.1

func (r *Etcd) WatchPolicies(ctx kapi.Context, label, field klabels.Selector, resourceVersion string) (watch.Interface, error)

func (*Etcd) WatchPolicyBindings added in v0.3.1

func (r *Etcd) WatchPolicyBindings(ctx kapi.Context, label, field klabels.Selector, resourceVersion string) (watch.Interface, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL