Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouteDescribeCommand ¶
NewRouteDescribeCommand represents 'kn route describe' command
func NewRouteListCommand ¶
NewrouteListCommand represents 'kn route list' command
func RouteListHandlers ¶
func RouteListHandlers(h hprinters.PrintHandler)
RouteListHandlers adds print handlers for route list command
Types ¶
type RouteListFlags ¶
type RouteListFlags struct { GenericPrintFlags *genericclioptions.PrintFlags HumanReadableFlags *commands.HumanPrintFlags }
RouteListFlags composes common printer flag structs used in the 'kn route list' command.
func NewRouteListFlags ¶
func NewRouteListFlags() *RouteListFlags
NewRouteListFlags returns flags associated with humanreadable, template, and "name" printing, with default values set.
func (*RouteListFlags) AddFlags ¶
func (f *RouteListFlags) AddFlags(cmd *cobra.Command)
AddFlags receives a *cobra.Command reference and binds flags related to humanreadable and template printing.
func (*RouteListFlags) AllowedFormats ¶
func (f *RouteListFlags) AllowedFormats() []string
AllowedFormats is the list of formats in which data can be displayed
func (*RouteListFlags) ToPrinter ¶
func (f *RouteListFlags) ToPrinter() (hprinters.ResourcePrinter, error)
ToPrinter attempts to find a composed set of RouteListFlags suitable for returning a printer based on current flag values.