manager

package
v0.0.0-...-09bfeb9 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceManager

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

ResourceManager acts as a passthrough to a cache (lister) for pods assigned to the current node. It is also a passthrough to a cache (lister) for Kubernetes secrets and config maps.

func NewResourceManager

func NewResourceManager(podLister corev1listers.PodLister, secretLister corev1listers.SecretLister, configMapLister corev1listers.ConfigMapLister, serviceLister corev1listers.ServiceLister) (*ResourceManager, error)

NewResourceManager returns a ResourceManager with the internal maps initialized.

func (*ResourceManager) CreatePod

func (rm *ResourceManager) CreatePod(ctx context.Context, pod *v1.Pod) error

func (*ResourceManager) DeletePod

func (rm *ResourceManager) DeletePod(ctx context.Context, pod *v1.Pod) error

func (*ResourceManager) GetPod

func (rm *ResourceManager) GetPod(nm types.NamespacedName) *v1.Pod

func (*ResourceManager) GetPodStatus

func (rm *ResourceManager) GetPodStatus(nm types.NamespacedName) *v1.PodStatus

func (*ResourceManager) GetPods

func (rm *ResourceManager) GetPods() []*v1.Pod

Jump to

Keyboard shortcuts

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