Documentation ¶
Index ¶
- func SayFailed()
- func SayFailedMessage(format string, args ...interface{})
- func SayMessage(format string, args ...interface{})
- func SayOK()
- func SayWarningMessage(format string, args ...interface{})
- type ConnectionConfig
- type Option
- type PrintableResource
- type PrintableTable
- func (t *PrintableTable) Add(row []string)
- func (t *PrintableTable) AddMuitpleRows(rows [][]string)
- func (t *PrintableTable) Print()
- func (t *PrintableTable) PrintDump(wrapEnabled bool) []string
- func (t *PrintableTable) SetHeaderPrinted(headerPrinted bool)
- func (t *PrintableTable) SetSeperator(required bool)
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SayFailedMessage ¶
func SayFailedMessage(format string, args ...interface{})
func SayMessage ¶
func SayMessage(format string, args ...interface{})
func SayWarningMessage ¶
func SayWarningMessage(format string, args ...interface{})
Types ¶
type ConnectionConfig ¶
type ConnectionConfig struct { KubeCfgPath string ClientConfig clientcmd.ClientConfig ClientSet *kubernetes.Clientset }
func (*ConnectionConfig) GetClientConfig ¶
func (params *ConnectionConfig) GetClientConfig() (clientcmd.ClientConfig, error)
GetClientConfig gets ClientConfig from KubeCfgPath
func (*ConnectionConfig) Initialize ¶
func (params *ConnectionConfig) Initialize() error
func (*ConnectionConfig) RestConfig ¶
func (params *ConnectionConfig) RestConfig() (*rest.Config, error)
RestConfig returns REST config, which can be to use to create specific clientset
type Option ¶
type Option func(PrintableResource) PrintableResource
func WithCreatedAt ¶
func WithLastTransitionAt ¶
func WithVerboseType ¶
type PrintableResource ¶
type PrintableResource struct {
// contains filtered or unexported fields
}
func NewPrintableResource ¶
func NewPrintableResource(level int, typeName, name string, options ...Option) *PrintableResource
func (*PrintableResource) AddConditions ¶
func (res *PrintableResource) AddConditions(objectNode *ObjectNode, conditionInfos map[string][]ConditionInfo) error
func (*PrintableResource) AddKeyInfo ¶
func (res *PrintableResource) AddKeyInfo(keyInfo []string, objectNode *ObjectNode) error
func (*PrintableResource) DumpResource ¶
func (res *PrintableResource) DumpResource() [][]string
type PrintableTable ¶
type PrintableTable struct {
// contains filtered or unexported fields
}
func (*PrintableTable) Add ¶
func (t *PrintableTable) Add(row []string)
func (*PrintableTable) AddMuitpleRows ¶
func (t *PrintableTable) AddMuitpleRows(rows [][]string)
func (*PrintableTable) Print ¶
func (t *PrintableTable) Print()
func (*PrintableTable) PrintDump ¶
func (t *PrintableTable) PrintDump(wrapEnabled bool) []string
func (*PrintableTable) SetHeaderPrinted ¶
func (t *PrintableTable) SetHeaderPrinted(headerPrinted bool)
func (*PrintableTable) SetSeperator ¶
func (t *PrintableTable) SetSeperator(required bool)
Click to show internal directories.
Click to hide internal directories.