user

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstallThisUser

func InstallThisUser(mux mux, endpoint string, requestsToUsers Context, apiHandler http.Handler)

InstallThisUser registers the APIServer log support function into a mux.

func NewCurrentContextFilter

func NewCurrentContextFilter(requestPath string, context Context, handler http.Handler) http.Handler

func NewREST

func NewREST(registry Registry) apiserver.RESTStorage

NewREST returns a new REST.

Types

type Context

type Context interface {
	Get(*http.Request) (Info, bool)
}

type ContextFunc

type ContextFunc func(*http.Request) (Info, bool)

func (ContextFunc) Get

func (f ContextFunc) Get(req *http.Request) (Info, bool)

type Info

type Info interface {
	GetName() string
	GetUID() string
}

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.

type Registry

type Registry interface {
	GetUser(name string) (*api.User, error)
}

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

Jump to

Keyboard shortcuts

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