cmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 10 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"`
}

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