util

package
v4.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServiceAccountWithToken

func CreateServiceAccountWithToken(ctx context.Context, clientset kubernetes.Interface, namespace, name string) (*corev1.ServiceAccount, error)

CreateServiceAccountWithToken creates a service account with a given name with a service account token. Need to use this function to simulate the actual behavior of Kubernetes API server with the fake client.

func MustUnmarshalUnstructured

func MustUnmarshalUnstructured(text string) *unstructured.Unstructured

func MustUnmarshalWorkflow

func MustUnmarshalWorkflow(text string) *wfv1.Workflow

Types

type Indexer

type Indexer struct {
	// contains filtered or unexported fields
}

func NewIndexer

func NewIndexer() *Indexer

func (Indexer) Add

func (i Indexer) Add(any) error

func (Indexer) AddIndexers

func (i Indexer) AddIndexers(cache.Indexers) error

func (Indexer) ByIndex

func (i Indexer) ByIndex(indexName, indexedValue string) ([]any, error)

func (Indexer) Delete

func (i Indexer) Delete(any) error

func (Indexer) Get

func (i Indexer) Get(any) (item any, exists bool, err error)

func (Indexer) GetByKey

func (i Indexer) GetByKey(key string) (item any, exists bool, err error)

func (Indexer) GetIndexers

func (i Indexer) GetIndexers() cache.Indexers

func (Indexer) Index

func (i Indexer) Index(string, any) ([]any, error)

func (Indexer) IndexKeys

func (i Indexer) IndexKeys(string, string) ([]string, error)

func (Indexer) List

func (i Indexer) List() []any

func (Indexer) ListIndexFuncValues

func (i Indexer) ListIndexFuncValues(string) []string

func (Indexer) ListKeys

func (i Indexer) ListKeys() []string

func (Indexer) Replace

func (i Indexer) Replace([]any, string) error

func (Indexer) Resync

func (i Indexer) Resync() error

func (Indexer) SetByIndex

func (i Indexer) SetByIndex(indexName, indexedValue string, objs ...any)

func (Indexer) SetByKey

func (i Indexer) SetByKey(key string, item any)

func (Indexer) Update

func (i Indexer) Update(any) error

type SharedIndexInformer

type SharedIndexInformer struct {
	Indexer *Indexer
}

func NewSharedIndexInformer

func NewSharedIndexInformer() *SharedIndexInformer

func (*SharedIndexInformer) AddEventHandlerWithOptions

func (*SharedIndexInformer) AddIndexers

func (s *SharedIndexInformer) AddIndexers(cache.Indexers) error

func (*SharedIndexInformer) GetController

func (s *SharedIndexInformer) GetController() cache.Controller

func (*SharedIndexInformer) GetIndexer

func (s *SharedIndexInformer) GetIndexer() cache.Indexer

func (*SharedIndexInformer) GetStore

func (s *SharedIndexInformer) GetStore() cache.Store

func (*SharedIndexInformer) HasSynced

func (s *SharedIndexInformer) HasSynced() bool

func (*SharedIndexInformer) IsStopped

func (s *SharedIndexInformer) IsStopped() bool

func (*SharedIndexInformer) LastSyncResourceVersion

func (s *SharedIndexInformer) LastSyncResourceVersion() string

func (*SharedIndexInformer) RemoveEventHandler

func (*SharedIndexInformer) Run

func (s *SharedIndexInformer) Run(<-chan struct{})

func (*SharedIndexInformer) RunWithContext

func (s *SharedIndexInformer) RunWithContext(ctx context.Context)

func (*SharedIndexInformer) SetTransform

func (s *SharedIndexInformer) SetTransform(handler cache.TransformFunc) error

func (*SharedIndexInformer) SetWatchErrorHandler

func (s *SharedIndexInformer) SetWatchErrorHandler(handler cache.WatchErrorHandler) error

func (*SharedIndexInformer) SetWatchErrorHandlerWithContext

func (s *SharedIndexInformer) SetWatchErrorHandlerWithContext(handler cache.WatchErrorHandlerWithContext) error

Jump to

Keyboard shortcuts

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