Documentation
¶
Index ¶
- func GetAttrs(o runtime.Object) (labels.Set, fields.Set, error)
- func Matcher(label labels.Selector, field fields.Selector) kstorage.SelectionPredicate
- func NewStrategy(clientGetter oauthclient.Getter) strategy
- func SelectableFields(obj *oauthapi.OAuthAccessToken) fields.Set
- type Registry
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAttrs ¶
GetAttrs returns labels and fields of a given object for filtering purposes
func Matcher ¶
Matcher returns a generic matcher for a given label and field selector.
func NewStrategy ¶ added in v1.3.0
func NewStrategy(clientGetter oauthclient.Getter) strategy
func SelectableFields ¶
func SelectableFields(obj *oauthapi.OAuthAccessToken) fields.Set
SelectableFields returns a field set that can be used for filter selection
Types ¶
type Registry ¶
type Registry interface {
// ListAccessTokens obtains a list of access tokens that match a selector.
ListAccessTokens(ctx apirequest.Context, options *metainternal.ListOptions) (*oauthapi.OAuthAccessTokenList, error)
// GetAccessToken retrieves a specific access token.
GetAccessToken(ctx apirequest.Context, name string, options *metav1.GetOptions) (*oauthapi.OAuthAccessToken, error)
// CreateAccessToken creates a new access token.
CreateAccessToken(ctx apirequest.Context, token *oauthapi.OAuthAccessToken) (*oauthapi.OAuthAccessToken, error)
// DeleteAccessToken deletes an access token.
DeleteAccessToken(ctx apirequest.Context, name string) error
}
Registry is an interface for things that know how to store AccessToken objects.
Source Files
¶
- registry.go
- strategy.go
Click to show internal directories.
Click to hide internal directories.