cmd

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Toplogy

type Toplogy struct {
	Count     int                 `json:"count,omitempty"`
	Resources corev1.ResourceList `json:"resources,omitempty"`
	Members   []string
}

func (*Toplogy) AddNode added in v0.0.9

func (t *Toplogy) AddNode(node *corev1.Node)

func (*Toplogy) AddPod added in v0.0.9

func (t *Toplogy) AddPod(pod *corev1.Pod)

type TopologyViewerOptions

type TopologyViewerOptions struct {
	genericiooptions.IOStreams
	// contains filtered or unexported fields
}

func NewTopologyViewerOptions

func NewTopologyViewerOptions(
	client kubernetes.Interface,
	streams genericiooptions.IOStreams,
	topologyKey string,
	configFlags *genericclioptions.ConfigFlags,
	allNamespaces bool,
) *TopologyViewerOptions

NewTopologyViewerOptions provides an instance of NewTopologyViewerOptions with default values

func (*TopologyViewerOptions) Namespace

func (t *TopologyViewerOptions) Namespace() string

func (*TopologyViewerOptions) Nodes

func (t *TopologyViewerOptions) Nodes(ctx context.Context) (map[string]*Toplogy, error)

func (*TopologyViewerOptions) Pods

func (t *TopologyViewerOptions) Pods(ctx context.Context, labelSelector string) (map[string]*Toplogy, error)

Jump to

Keyboard shortcuts

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