nodes

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package nodes provides a CLI to list nearby nodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultClient

func DefaultClient(kubeconfig string) (*kubernetes.Clientset, error)

DefaultClient returns a Kubernetes client based on the given path to a Kubernetes config file.

Types

type ErrNodeNameRequired

type ErrNodeNameRequired struct{}

func (ErrNodeNameRequired) Error

func (err ErrNodeNameRequired) Error() string

type NodesCLI

type NodesCLI struct {
	Client kubernetes.Interface
}

A NodesCLI is used to create a command line interface for listing nearby nodes.

func (*NodesCLI) Execute

func (n *NodesCLI) Execute(args []string, writer io.Writer) error

Execute writes a list of nearby nodes to the given io.Writer and returns an error.

Jump to

Keyboard shortcuts

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