flags

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListFlags added in v0.11.0

type ListFlags struct {
	GenericPrintFlags  *genericclioptions.PrintFlags
	HumanReadableFlags *commands.HumanPrintFlags
	PrinterHandler     func(h hprinters.PrintHandler)
}

ListFlags composes common printer flag structs used in the list command.

func NewListFlags added in v0.11.0

func NewListFlags(printer func(h hprinters.PrintHandler)) *ListFlags

NewListFlags returns flags associated with humanreadable, template, and "name" printing, with default values set.

func (*ListFlags) AddFlags added in v0.11.0

func (f *ListFlags) AddFlags(cmd *cobra.Command)

AddFlags receives a *cobra.Command reference and binds flags related to humanreadable and template printing.

func (*ListFlags) AllowedFormats added in v0.11.0

func (f *ListFlags) AllowedFormats() []string

AllowedFormats is the list of formats in which data can be displayed

func (*ListFlags) EnsureWithNamespace added in v0.11.0

func (f *ListFlags) EnsureWithNamespace()

EnsureWithNamespace ensures that humanreadable flags return a printer capable of printing with a "namespace" column.

func (*ListFlags) ToPrinter added in v0.11.0

func (f *ListFlags) ToPrinter() (hprinters.ResourcePrinter, error)

ToPrinter attempts to find a composed set of ListTypesFlags suitable for returning a printer based on current flag values.

type SinkFlags added in v0.11.0

type SinkFlags struct {
	// contains filtered or unexported fields
}

func (*SinkFlags) Add added in v0.11.0

func (i *SinkFlags) Add(cmd *cobra.Command)

func (*SinkFlags) ResolveSink added in v0.11.0

func (i *SinkFlags) ResolveSink(client v1alpha1.KnServingClient) (*duckv1beta1.Destination, error)

type Traffic

type Traffic struct {
	RevisionsPercentages []string
	RevisionsTags        []string
	UntagRevisions       []string
}

func (*Traffic) Add

func (t *Traffic) Add(cmd *cobra.Command)

func (*Traffic) Changed

func (t *Traffic) Changed(cmd *cobra.Command) bool

func (*Traffic) PercentagesChanged

func (t *Traffic) PercentagesChanged(cmd *cobra.Command) bool

func (*Traffic) TagsChanged

func (t *Traffic) TagsChanged(cmd *cobra.Command) bool

Jump to

Keyboard shortcuts

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