cluster

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterCommandFunc

func ClusterCommandFunc(_ *cobra.Command, args []string)

func NewClusterCommand

func NewClusterCommand(parent *cobra.Command) *cobra.Command

Types

type ClusterRecord

type ClusterRecord struct {
	Name      string
	Endpoints []string
}

func (*ClusterRecord) EndpointsString

func (s *ClusterRecord) EndpointsString() string

func (*ClusterRecord) PrintBody

func (s *ClusterRecord) PrintBody(fmt string) []string

type ClustersPrinter

type ClustersPrinter struct {
	Records map[string]*ClusterRecord
	// contains filtered or unexported fields
}

func (*ClustersPrinter) Flags

func (sp *ClustersPrinter) Flags(flags ...interface{}) []interface{}

func (*ClustersPrinter) PrintBody

func (sp *ClustersPrinter) PrintBody() (slice [][]string)

func (*ClustersPrinter) PrintTitle

func (sp *ClustersPrinter) PrintTitle() []string

func (*ClustersPrinter) SetOutputFormat

func (sp *ClustersPrinter) SetOutputFormat(f string, all bool)

func (*ClustersPrinter) Sorter

func (sp *ClustersPrinter) Sorter() *writer.RecordsSorter

Jump to

Keyboard shortcuts

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