node

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT-0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() *resource.Resource

Types

type Getter

type Getter struct {
	resource.EmptyInit
}

func (*Getter) Get

func (g *Getter) Get(name string, output printer.Output, options resource.Options) error

func (*Getter) GetAllNodes

func (g *Getter) GetAllNodes(cluster *types.Cluster) ([]v1.Node, error)

func (*Getter) GetNodeByName

func (g *Getter) GetNodeByName(name string, cluster *types.Cluster) ([]v1.Node, error)

type NodePrinter

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

func NewPrinter

func NewPrinter(nodes []v1.Node) *NodePrinter

func (*NodePrinter) PrintJSON

func (p *NodePrinter) PrintJSON(writer io.Writer) error

func (*NodePrinter) PrintTable

func (p *NodePrinter) PrintTable(writer io.Writer) error

func (*NodePrinter) PrintYAML

func (p *NodePrinter) PrintYAML(writer io.Writer) error

Jump to

Keyboard shortcuts

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