k8sadapter

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewAdapter

func NewAdapter(opt Options) (*Adapter, error)

func (*Adapter) ListNodes added in v1.2.0

func (a *Adapter) ListNodes(ctx context.Context) ([]*domain.Node, error)

ListNodes returns all nodes in the Kubernetes cluster

func (*Adapter) QueryDecisionMakerPods

func (a *Adapter) QueryDecisionMakerPods(ctx context.Context, opt *domain.QueryDecisionMakerPodsOptions) ([]*domain.DecisionMakerPod, error)

func (*Adapter) QueryPods

func (a *Adapter) QueryPods(ctx context.Context, opt *domain.QueryPodsOptions) ([]*domain.Pod, error)

func (*Adapter) StopPodWatcher

func (a *Adapter) StopPodWatcher()

type Options

type Options struct {
	KubeConfigPath string
	InCluster      bool
}

Jump to

Keyboard shortcuts

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