Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListTypesHandlers ¶
func ListTypesHandlers(h hprinters.PrintHandler)
ListTypesHandlers handles printing human readable table for `kn source list-types` command's output
func NewListTypesCommand ¶
NewListTypesCommand defines and processes `kn source list-types` command operations
Types ¶
type ListTypesFlags ¶
type ListTypesFlags struct {
GenericPrintFlags *genericclioptions.PrintFlags
HumanReadableFlags *commands.HumanPrintFlags
}
ListTypesFlags composes common printer flag structs used in the 'kn source list-types' command.
func NewListTypesFlags ¶
func NewListTypesFlags() *ListTypesFlags
NewListTypesFlags returns flags associated with humanreadable, template, and "name" printing, with default values set.
func (*ListTypesFlags) AddFlags ¶
func (f *ListTypesFlags) AddFlags(cmd *cobra.Command)
AddFlags receives a *cobra.Command reference and binds flags related to humanreadable and template printing.
func (*ListTypesFlags) AllowedFormats ¶
func (f *ListTypesFlags) AllowedFormats() []string
AllowedFormats is the list of formats in which data can be displayed
func (*ListTypesFlags) ToPrinter ¶
func (f *ListTypesFlags) ToPrinter() (hprinters.ResourcePrinter, error)
ToPrinter attempts to find a composed set of ListTypesFlags suitable for returning a printer based on current flag values.