tests_utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceList

func GetResourceList(cpu, memory string) corev1.ResourceList

func GetResourceRequirements

func GetResourceRequirements(requests, limits corev1.ResourceList) corev1.ResourceRequirements

Types

type FakeNamespaceLister added in v1.1.6

type FakeNamespaceLister struct {
	Namespaces map[string]*corev1.Namespace
}

func (FakeNamespaceLister) Get added in v1.1.6

func (FakeNamespaceLister) List added in v1.1.6

func (f FakeNamespaceLister) List(selector labels.Selector) (ret []*corev1.Namespace, err error)

type FakeSharedIndexInformer

type FakeSharedIndexInformer struct {
	InternalGetIndexer func(cache.Indexer) cache.Indexer
	// contains filtered or unexported fields
}

func NewFakeSharedIndexInformer

func NewFakeSharedIndexInformer(objs []metav1.Object) FakeSharedIndexInformer

func (FakeSharedIndexInformer) AddEventHandler

func (FakeSharedIndexInformer) AddEventHandlerWithResyncPeriod

func (i FakeSharedIndexInformer) AddEventHandlerWithResyncPeriod(handler cache.ResourceEventHandler, resyncPeriod time.Duration) (cache.ResourceEventHandlerRegistration, error)

func (FakeSharedIndexInformer) AddIndexers

func (i FakeSharedIndexInformer) AddIndexers(indexers cache.Indexers) error

func (FakeSharedIndexInformer) GetController

func (i FakeSharedIndexInformer) GetController() cache.Controller

func (FakeSharedIndexInformer) GetIndexer

func (i FakeSharedIndexInformer) GetIndexer() cache.Indexer

func (FakeSharedIndexInformer) GetStore

func (i FakeSharedIndexInformer) GetStore() cache.Store

func (FakeSharedIndexInformer) HasSynced

func (i FakeSharedIndexInformer) HasSynced() bool

func (FakeSharedIndexInformer) IsStopped

func (i FakeSharedIndexInformer) IsStopped() bool

func (FakeSharedIndexInformer) LastSyncResourceVersion

func (i FakeSharedIndexInformer) LastSyncResourceVersion() string

func (FakeSharedIndexInformer) RemoveEventHandler

func (FakeSharedIndexInformer) Run

func (i FakeSharedIndexInformer) Run(stopCh <-chan struct{})

func (FakeSharedIndexInformer) SetTransform

func (FakeSharedIndexInformer) SetWatchErrorHandler

func (i FakeSharedIndexInformer) SetWatchErrorHandler(handler cache.WatchErrorHandler) error

Jump to

Keyboard shortcuts

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