Documentation ¶
Index ¶
- func GetResourceList(cpu, memory string) corev1.ResourceList
- func GetResourceRequirements(requests, limits corev1.ResourceList) corev1.ResourceRequirements
- type FakeNamespaceLister
- type FakeSharedIndexInformer
- func (i FakeSharedIndexInformer) AddEventHandler(handler cache.ResourceEventHandler) (cache.ResourceEventHandlerRegistration, error)
- func (i FakeSharedIndexInformer) AddEventHandlerWithResyncPeriod(handler cache.ResourceEventHandler, resyncPeriod time.Duration) (cache.ResourceEventHandlerRegistration, error)
- func (i FakeSharedIndexInformer) AddIndexers(indexers cache.Indexers) error
- func (i FakeSharedIndexInformer) GetController() cache.Controller
- func (i FakeSharedIndexInformer) GetIndexer() cache.Indexer
- func (i FakeSharedIndexInformer) GetStore() cache.Store
- func (i FakeSharedIndexInformer) HasSynced() bool
- func (i FakeSharedIndexInformer) IsStopped() bool
- func (i FakeSharedIndexInformer) LastSyncResourceVersion() string
- func (i FakeSharedIndexInformer) RemoveEventHandler(handle cache.ResourceEventHandlerRegistration) error
- func (i FakeSharedIndexInformer) Run(stopCh <-chan struct{})
- func (i FakeSharedIndexInformer) SetTransform(f cache.TransformFunc) error
- func (i FakeSharedIndexInformer) SetWatchErrorHandler(handler cache.WatchErrorHandler) error
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 FakeSharedIndexInformer ¶
type FakeSharedIndexInformer struct { // contains filtered or unexported fields }
func NewFakeSharedIndexInformer ¶
func NewFakeSharedIndexInformer(objs []metav1.Object) FakeSharedIndexInformer
func (FakeSharedIndexInformer) AddEventHandler ¶
func (i FakeSharedIndexInformer) AddEventHandler(handler cache.ResourceEventHandler) (cache.ResourceEventHandlerRegistration, error)
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 (i FakeSharedIndexInformer) RemoveEventHandler(handle cache.ResourceEventHandlerRegistration) error
func (FakeSharedIndexInformer) Run ¶
func (i FakeSharedIndexInformer) Run(stopCh <-chan struct{})
func (FakeSharedIndexInformer) SetTransform ¶
func (i FakeSharedIndexInformer) SetTransform(f cache.TransformFunc) error
func (FakeSharedIndexInformer) SetWatchErrorHandler ¶
func (i FakeSharedIndexInformer) SetWatchErrorHandler(handler cache.WatchErrorHandler) error
Click to show internal directories.
Click to hide internal directories.