Documentation ¶
Index ¶
- type OAuthAccessTokenWatcher
- type REST
- func (r *REST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)
- func (r *REST) Delete(ctx context.Context, name string, validateFunc rest.ValidateObjectFunc, ...) (runtime.Object, bool, error)
- func (s *REST) Destroy()
- func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)
- func (r *REST) GetSingularName() string
- func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
- func (r *REST) NamespaceScoped() bool
- func (r *REST) New() runtime.Object
- func (r *REST) NewList() runtime.Object
- func (r *REST) Watch(ctx context.Context, options *metainternal.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthAccessTokenWatcher ¶
type OAuthAccessTokenWatcher struct {
// contains filtered or unexported fields
}
OAuthAccessTokenWatcher implements a Watcher interface to watch OAuthAccessTokens and filter them to match only those for the current user
func (*OAuthAccessTokenWatcher) ResultChan ¶
func (w *OAuthAccessTokenWatcher) ResultChan() <-chan watch.Event
ResultChan returns channel for filtered results
func (*OAuthAccessTokenWatcher) Stop ¶
func (w *OAuthAccessTokenWatcher) Stop()
Stop implements Interface
func (*OAuthAccessTokenWatcher) Watch ¶
func (w *OAuthAccessTokenWatcher) Watch(ctx context.Context)
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST implements a RESTStorage for access tokens a user owns (based on the userName field)
func NewREST ¶
func NewREST(accessTokenStorage *accesstokenregistry.REST) (*REST, error)
NewREST returns a RESTStorage object that will work against access tokens
func (*REST) ConvertToTable ¶
func (*REST) GetSingularName ¶
func (*REST) List ¶
func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)
func (*REST) NamespaceScoped ¶
func (*REST) Watch ¶
func (r *REST) Watch(ctx context.Context, options *metainternal.ListOptions) (watch.Interface, error)
Click to show internal directories.
Click to hide internal directories.