useridentitymapping

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewREST

func NewREST(registry Registry) apiserver.RESTStorage

NewREST returns a new REST.

Types

type REST

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

REST implements the RESTStorage interface in terms of an Registry.

func (*REST) Get

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

Get retrieves an UserIdentityMapping by id.

func (*REST) New

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

New returns a new UserIdentityMapping for use with Create and Update.

func (*REST) Update

func (s *REST) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)

Update will create or update a UserIdentityMapping

type Registry

type Registry interface {
	GetUserIdentityMapping(name string) (*api.UserIdentityMapping, error)
	// CreateOrUpdateUserIdentityMapping creates or updates the mapping between an
	// identity and a user.
	CreateOrUpdateUserIdentityMapping(mapping *api.UserIdentityMapping) (*api.UserIdentityMapping, bool, error)
}

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

Jump to

Keyboard shortcuts

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