oauthaccesstoken

package
v1.3.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 NewStrategy

func NewStrategy(clientGetter oauthclient.Getter) strategy

Types

type Registry

type Registry interface {
	// ListAccessTokens obtains a list of access tokens that match a selector.
	ListAccessTokens(ctx kapi.Context, options *kapi.ListOptions) (*api.OAuthAccessTokenList, error)
	// GetAccessToken retrieves a specific access token.
	GetAccessToken(ctx kapi.Context, name string) (*api.OAuthAccessToken, error)
	// CreateAccessToken creates a new access token.
	CreateAccessToken(ctx kapi.Context, token *api.OAuthAccessToken) (*api.OAuthAccessToken, error)
	// DeleteAccessToken deletes an access token.
	DeleteAccessToken(ctx kapi.Context, name string) error
}

Registry is an interface for things that know how to store AccessToken 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