k8s

package
v0.0.0-...-b56178d Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Namespace, Pod, Container string
}
var (
	// Instance is the singleton instance of the identity.  This is goroutine safe.
	Instance Metadata
)

func LoadIdentity

func LoadIdentity(path string) (Metadata, error)

LoadIdentity loads the identity from the specified path.

type PodInformer

type PodInformer struct {
	K8sClient kubernetes.Interface
	NodeName  string
	// contains filtered or unexported fields
}

func NewPodInformer

func NewPodInformer(k8sClient kubernetes.Interface, nodeName string) *PodInformer

func (*PodInformer) Add

Add adds a handler to the informer. The handler will be called when a pod is added, updated, or deleted. Lazily creates and starts the informer if it does not already exist.

func (*PodInformer) Remove

Remove removes a handler from the informer. Lazily shuts down the informer if there are no more handlers.

Jump to

Keyboard shortcuts

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