Documentation ¶
Index ¶
- func NewREST(registry Registry) apiserver.RESTStorage
- type REST
- func (s *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
- func (s *REST) Delete(ctx kapi.Context, id string) (runtime.Object, error)
- func (s *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)
- func (s *REST) List(ctx kapi.Context, label labels.Selector, field fields.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.
func (*REST) List ¶
func (s *REST) List(ctx kapi.Context, label labels.Selector, field fields.Selector) (runtime.Object, error)
List retrieves a list of AccessTokens that match label.
type Registry ¶
type Registry interface { // ListAccessTokens obtains a list of access tokens that match a selector. ListAccessTokens(selector labels.Selector) (*api.OAuthAccessTokenList, error) // GetAccessToken retrieves a specific access token. GetAccessToken(name string) (*api.OAuthAccessToken, error) // CreateAccessToken creates a new access token. CreateAccessToken(token *api.OAuthAccessToken) error // UpdateAccessToken updates an access token. UpdateAccessToken(token *api.OAuthAccessToken) error // DeleteAccessToken deletes an access token. DeleteAccessToken(name string) error }
Registry is an interface for things that know how to store AccessToken objects.
Click to show internal directories.
Click to hide internal directories.