source

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: 11 Imported by: 0

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

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

NewListTypesCommand defines and processes `kn source list-types` command operations

func NewSourceCommand

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

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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