delegate

package
v0.0.0-...-fa1f097 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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 (r *REST) ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*metav1.Table, error)

func (*REST) Delete

func (r *REST) Delete(ctx context.Context, name string, validateFunc rest.ValidateObjectFunc, options *metav1.DeleteOptions) (runtime.Object, bool, error)

func (*REST) Destroy

func (s *REST) Destroy()

func (*REST) Get

func (r *REST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error)

func (*REST) GetSingularName

func (r *REST) GetSingularName() string

func (*REST) List

func (r *REST) List(ctx context.Context, options *metainternal.ListOptions) (runtime.Object, error)

func (*REST) NamespaceScoped

func (r *REST) NamespaceScoped() bool

func (*REST) New

func (r *REST) New() runtime.Object

func (*REST) NewList

func (r *REST) NewList() runtime.Object

func (*REST) Watch

func (r *REST) Watch(ctx context.Context, options *metainternal.ListOptions) (watch.Interface, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL