oauthauthorizetoken

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Strategy = strategy{kapi.Scheme}

Strategy is the default logic that applies when creating OAuthAuthorizeToken objects via the REST API.

Functions

func Matcher

func Matcher(label labels.Selector, field fields.Selector) generic.Matcher

Matchtoken returns a generic matcher for a given label and field selector.

func SelectableFields

func SelectableFields(obj *api.OAuthAuthorizeToken) labels.Set

SelectableFields returns a label set that represents the object

Types

type Registry

type Registry interface {
	// ListAuthorizeTokens obtains a list of authorize tokens that match a selector.
	ListAuthorizeTokens(ctx kapi.Context, selector labels.Selector) (*api.OAuthAuthorizeTokenList, error)
	// GetAuthorizeToken retrieves a specific authorize token.
	GetAuthorizeToken(ctx kapi.Context, name string) (*api.OAuthAuthorizeToken, error)
	// CreateAuthorizeToken creates a new authorize token.
	CreateAuthorizeToken(ctx kapi.Context, token *api.OAuthAuthorizeToken) (*api.OAuthAuthorizeToken, error)
	// DeleteAuthorizeToken deletes an authorize token.
	DeleteAuthorizeToken(ctx kapi.Context, name string) error
}

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

func NewRegistry

func NewRegistry(s Storage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

type Storage

type Storage interface {
	rest.Getter
	rest.Lister
	rest.Creater
	rest.GracefulDeleter
}

Storage is an interface for a standard REST Storage backend

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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