Documentation ¶
Index ¶
- func NewREST(registry Registry) apiserver.RESTStorage
- type REST
- func (s *REST) Create(ctx kapi.Context, obj runtime.Object) (<-chan apiserver.RESTResult, error)
- func (s *REST) Delete(ctx kapi.Context, id string) (<-chan apiserver.RESTResult, error)
- func (s *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)
- func (s *REST) List(ctx kapi.Context, selector, fields labels.Selector) (runtime.Object, error)
- func (s *REST) New() runtime.Object
- func (*REST) NewList() runtime.Object
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements the RESTStorage interface in terms of an Registry.
type Registry ¶
type Registry interface { // ListAuthorizeTokens obtains a list of authorize tokens that match a selector. ListAuthorizeTokens(selector labels.Selector) (*api.OAuthAuthorizeTokenList, error) // GetAuthorizeToken retrieves a specific authorize token. GetAuthorizeToken(name string) (*api.OAuthAuthorizeToken, error) // CreateAuthorizeToken creates a new authorize token. CreateAuthorizeToken(token *api.OAuthAuthorizeToken) error // UpdateAuthorizeToken updates an authorize token. UpdateAuthorizeToken(token *api.OAuthAuthorizeToken) error // DeleteAuthorizeToken deletes an authorize token. DeleteAuthorizeToken(name string) error }
Registry is an interface for things that know how to store AuthorizeToken objects.
Click to show internal directories.
Click to hide internal directories.