policybinding

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmptyPolicyBinding

func NewEmptyPolicyBinding(namespace, policyNamespace string) *authorizationapi.PolicyBinding

func NewREST

func NewREST(registry Registry) apiserver.RESTStorage

NewREST creates a new REST for policyBindings.

Types

type REST

type REST struct {
	// contains filtered or unexported fields
}

REST implements the RESTStorage interface in terms of an Registry.

func (*REST) Create

func (r *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)

Create registers a given new PolicyBinding instance to r.registry.

func (*REST) Delete

func (r *REST) Delete(ctx kapi.Context, id string) (runtime.Object, error)

Delete asynchronously deletes the PolicyBinding specified by its id.

func (*REST) Get

func (r *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)

Get obtains the policyBinding specified by its id.

func (*REST) List

func (r *REST) List(ctx kapi.Context, selector, fields klabels.Selector) (runtime.Object, error)

List obtains a list of PolicyBindings that match selector.

func (*REST) New

func (r *REST) New() runtime.Object

New creates a new PolicyBinding object

func (*REST) NewList

func (r *REST) NewList() runtime.Object

func (*REST) Watch added in v0.3.1

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

Watch begins watching for new, changed, or deleted PolicyBindings.

type Registry

type Registry interface {
	// ListPolicyBindings obtains list of policyBindings that match a selector.
	ListPolicyBindings(ctx kapi.Context, labels, fields klabels.Selector) (*authorizationapi.PolicyBindingList, error)
	// GetPolicyBinding retrieves a specific policyBinding.
	GetPolicyBinding(ctx kapi.Context, id string) (*authorizationapi.PolicyBinding, error)
	// CreatePolicyBinding creates a new policyBinding.
	CreatePolicyBinding(ctx kapi.Context, policyBinding *authorizationapi.PolicyBinding) error
	// UpdatePolicyBinding updates a policyBinding.
	UpdatePolicyBinding(ctx kapi.Context, policyBinding *authorizationapi.PolicyBinding) error
	// DeletePolicyBinding deletes a policyBinding.
	DeletePolicyBinding(ctx kapi.Context, id string) error
	// WatchPolicyBindings watches policyBindings.
	WatchPolicyBindings(ctx kapi.Context, label, field klabels.Selector, resourceVersion string) (watch.Interface, error)
}

Registry is an interface for things that know how to store Policies.

Jump to

Keyboard shortcuts

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