kube

package
v0.12.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound      = errors.New("object not found")
	ErrToManyObjects = errors.New("too many objects")
)

Functions

This section is empty.

Types

type NodeByIPCache added in v0.8.0

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

func NewNodeByIPCache added in v0.8.0

func NewNodeByIPCache(informer cache.SharedIndexInformer) *NodeByIPCache

func (*NodeByIPCache) Get added in v0.8.0

func (n *NodeByIPCache) Get(nodeIP string) (*corev1.Node, error)

type NodeByNameCache added in v0.8.0

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

func NewNodeByNameCache added in v0.8.0

func NewNodeByNameCache(informer cache.SharedIndexInformer) *NodeByNameCache

func (*NodeByNameCache) Get added in v0.8.0

func (n *NodeByNameCache) Get(nodeName string) (*corev1.Node, error)

type PodByIPCache added in v0.8.0

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

func NewPodByIPCache added in v0.8.0

func NewPodByIPCache(ctx context.Context, informer cache.SharedIndexInformer, log logrus.FieldLogger) *PodByIPCache

func (*PodByIPCache) Get added in v0.8.0

func (c *PodByIPCache) Get(key string) (*corev1.Pod, error)

type PodsByNodeCache added in v0.8.0

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

func NewPodsByNodeCache added in v0.8.0

func NewPodsByNodeCache(informer cache.SharedIndexInformer) *PodsByNodeCache

func (*PodsByNodeCache) Get added in v0.8.0

func (p *PodsByNodeCache) Get(nodeName string) ([]*corev1.Pod, error)

Jump to

Keyboard shortcuts

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