k8s

package
v2.3.14+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	R = shell.R
)

Functions

func ListerTable

func ListerTable(res *modules.ListResult, printer k8s.ListPrinter, s *mcclient.ClientSession) *uitable.Table

func PrintListResultTable

func PrintListResultTable(res *modules.ListResult, printer k8s.ListPrinter, s *mcclient.ClientSession)

Types

type Cmd

type Cmd struct {
	Options  interface{}
	Command  string
	Desc     string
	Callback interface{}
}

func NewCommand

func NewCommand(options interface{}, command string, desc string, callback interface{}) *Cmd

func (Cmd) R

func (c Cmd) R()

type ShellCommands

type ShellCommands struct {
	Commands           []*Cmd
	CommandNameFactory func(suffix string) string
}

func NewShellCommands

func NewShellCommands(cmdN func(suffix string) string) *ShellCommands

func (*ShellCommands) AddR

func (c *ShellCommands) AddR(rs ...*Cmd) *ShellCommands

Jump to

Keyboard shortcuts

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