multikf

package
v0.0.0-...-4ef6c67 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

func NewAddCommand

func NewAddCommand(logger log.Logger, ioStreams genericclioptions.IOStreams) *cobra.Command

func NewConnectCommand

func NewConnectCommand(logger log.Logger, ioStreams genericclioptions.IOStreams) *cobra.Command

func NewDeleteCommand

func NewDeleteCommand(logger log.Logger, ioStreams genericclioptions.IOStreams) *cobra.Command

func NewListCommand

func NewListCommand(logger log.Logger, ioStreams genericclioptions.IOStreams) *cobra.Command

func NewPluginCommand

func NewPluginCommand(logger log.Logger, ioStreams genericclioptions.IOStreams) *cobra.Command

func NewRootCommand

func NewRootCommand(logger log.Logger, ioStreams genericclioptions.IOStreams) *cobra.Command

func NewVersionCommand

func NewVersionCommand(logger log.Logger, ioStreams genericclioptions.IOStreams) *cobra.Command

Types

type Format

type Format string
const (
	UnknownFormat Format = "unknown"
	Table         Format = "table"
	CSV           Format = "csv"
)

func MustParseFormat

func MustParseFormat(s string) Format

type FormatWriter

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

func NewFormatWriter

func NewFormatWriter(w io.Writer, format Format) *FormatWriter

func (*FormatWriter) WriteAndClose

func (f *FormatWriter) WriteAndClose(headers []string, items [][]string) error

type OutputMachineInfo

type OutputMachineInfo struct {
	Name       string `json:"name"`
	Type       string `json:"type"`
	MachineDir string `json:"dir"`
	Status     string `json:"status"`
	Cpus       string `json:"cpus"`
	Gpus       string `json:"gpus"`
	KubeApi    string `json:"kubeAPI"`
	Memory     string `json:"memory"`
}

OutputMachineInfo defines the output format returned for each Machine

func (*OutputMachineInfo) Headers

func (o *OutputMachineInfo) Headers() []string

func (*OutputMachineInfo) Values

func (o *OutputMachineInfo) Values() []string

Jump to

Keyboard shortcuts

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