Documentation
¶
Index ¶
- Variables
- func CheckErr(err error)
- func IgnoreNotFoundErr(err error) error
- func IsToTable(printer *Printer) bool
- func ToTable(tableRow TableRow, objs ...runtime.Object) (*metav1.Table, error)
- func TranslateTimestampSince(timestamp metav1.Time) string
- func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error
- type FakeRESTClientGetter
- func (r *FakeRESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (r *FakeRESTClientGetter) ToRESTConfig() (*restclient.Config, error)
- func (r *FakeRESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
- func (r *FakeRESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
- type Getter
- type MessageLevel
- type Printer
- func (p *Printer) AddFlags(cmd *cobra.Command)
- func (p *Printer) SetForceDefail()
- func (p *Printer) SetPrinterFunc(fc PrinterFunc)
- func (p *Printer) ShouldPrintObject() bool
- func (p *Printer) ToPrinter() (printers.ResourcePrinter, error)
- func (p *Printer) ToPrinterWitchColumn(columnLabels []string) (printers.ResourcePrinter, error)
- type PrinterFunc
- type RESTClientGetter
- func (r *RESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (r *RESTClientGetter) ToRESTConfig() (*restclient.Config, error)
- func (r *RESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
- func (r *RESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
- type TableRow
- type TaskInformer
- func (ti *TaskInformer) AllDone(t time.Duration) string
- func (ti *TaskInformer) BeforeTask(msg string) string
- func (ti *TaskInformer) PrintTable(inventory map[string]string)
- func (ti *TaskInformer) SkipTask(msg string) string
- func (ti *TaskInformer) TaskFail(msg string) string
- func (ti *TaskInformer) TaskFailWithTitle(msg string) string
- func (ti *TaskInformer) TaskInfo(msg string) string
- func (ti *TaskInformer) TaskSuccess() string
- func (ti *TaskInformer) TipsOnOpenfunctionDemo(Endpoint string)
- func (ti *TaskInformer) TipsOnUsingKnative()
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Yellow = color.New(color.FgHiYellow, color.Bold).SprintFunc() YellowItalic = color.New(color.FgHiYellow, color.Bold, color.Italic).SprintFunc() Green = color.New(color.FgHiGreen, color.Bold).SprintFunc() Blue = color.New(color.FgHiBlue, color.Bold).SprintFunc() Cyan = color.New(color.FgCyan, color.Bold, color.Underline).SprintFunc() Red = color.New(color.FgHiRed, color.Bold).SprintFunc() White = color.New(color.FgWhite).SprintFunc() WhiteBold = color.New(color.FgWhite, color.Bold).SprintFunc() )
Functions ¶
func IgnoreNotFoundErr ¶
func TranslateTimestampSince ¶
Types ¶
type FakeRESTClientGetter ¶
type FakeRESTClientGetter struct {
// contains filtered or unexported fields
}
func NewFakeRESTClientGetter ¶
func NewFakeRESTClientGetter(clientGetter genericclioptions.RESTClientGetter) *FakeRESTClientGetter
func (*FakeRESTClientGetter) ToDiscoveryClient ¶
func (r *FakeRESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*FakeRESTClientGetter) ToRESTConfig ¶
func (r *FakeRESTClientGetter) ToRESTConfig() (*restclient.Config, error)
func (*FakeRESTClientGetter) ToRESTMapper ¶
func (r *FakeRESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
func (*FakeRESTClientGetter) ToRawKubeConfigLoader ¶
func (r *FakeRESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
type Getter ¶
type Getter interface { ToRESTConfig() (*restclient.Config, error) ToRESTMapper() (meta.RESTMapper, error) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error) ToRawKubeConfigLoader() clientcmd.ClientConfig }
type MessageLevel ¶
type MessageLevel string
type Printer ¶
type Printer struct { PrintFlags *genericclioptions.PrintFlags PrinterFunc PrinterFunc ForceDetail bool }
func (*Printer) SetForceDefail ¶
func (p *Printer) SetForceDefail()
func (*Printer) SetPrinterFunc ¶
func (p *Printer) SetPrinterFunc(fc PrinterFunc)
func (*Printer) ShouldPrintObject ¶
func (*Printer) ToPrinterWitchColumn ¶
func (p *Printer) ToPrinterWitchColumn(columnLabels []string) (printers.ResourcePrinter, error)
type PrinterFunc ¶
type PrinterFunc func(*Printer) (printers.ResourcePrinter, error)
func WithDefaultPrinter ¶
func WithDefaultPrinter(operation string) PrinterFunc
func WithTablePrinter ¶
func WithTablePrinter(options printers.PrintOptions) PrinterFunc
type RESTClientGetter ¶
type RESTClientGetter struct {
// contains filtered or unexported fields
}
func NewRESTClientGetter ¶
func NewRESTClientGetter(clientGetter genericclioptions.RESTClientGetter) *RESTClientGetter
func (*RESTClientGetter) ToDiscoveryClient ¶
func (r *RESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*RESTClientGetter) ToRESTConfig ¶
func (r *RESTClientGetter) ToRESTConfig() (*restclient.Config, error)
func (*RESTClientGetter) ToRESTMapper ¶
func (r *RESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
func (*RESTClientGetter) ToRawKubeConfigLoader ¶
func (r *RESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
type TaskInformer ¶
type TaskInformer struct {
// contains filtered or unexported fields
}
TaskInformer is a printer of task information.
func NewTaskInformer ¶
func NewTaskInformer(title string) *TaskInformer
func (*TaskInformer) BeforeTask ¶
func (ti *TaskInformer) BeforeTask(msg string) string
func (*TaskInformer) PrintTable ¶
func (ti *TaskInformer) PrintTable(inventory map[string]string)
func (*TaskInformer) SkipTask ¶
func (ti *TaskInformer) SkipTask(msg string) string
func (*TaskInformer) TaskFail ¶
func (ti *TaskInformer) TaskFail(msg string) string
func (*TaskInformer) TaskFailWithTitle ¶
func (ti *TaskInformer) TaskFailWithTitle(msg string) string
func (*TaskInformer) TaskInfo ¶
func (ti *TaskInformer) TaskInfo(msg string) string
func (*TaskInformer) TaskSuccess ¶
func (ti *TaskInformer) TaskSuccess() string
func (*TaskInformer) TipsOnOpenfunctionDemo ¶
func (ti *TaskInformer) TipsOnOpenfunctionDemo(Endpoint string)
func (*TaskInformer) TipsOnUsingKnative ¶
func (ti *TaskInformer) TipsOnUsingKnative()
Click to show internal directories.
Click to hide internal directories.