route

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouteCommand

func NewRouteCommand(p *commands.KnParams) *cobra.Command

func NewRouteDescribeCommand

func NewRouteDescribeCommand(p *commands.KnParams) *cobra.Command

NewRouteDescribeCommand represents 'kn route describe' command

func NewRouteListCommand

func NewRouteListCommand(p *commands.KnParams) *cobra.Command

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.

Jump to

Keyboard shortcuts

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