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
AddFlags receives a *cobra.Command reference and binds flags related to humanreadable and template printing.
func (*ListFlags) AllowedFormats ¶ added in v0.11.0
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.
type SinkFlags ¶ added in v0.11.0
type SinkFlags struct {
// contains filtered or unexported fields
}
func (*SinkFlags) ResolveSink ¶ added in v0.11.0
func (i *SinkFlags) ResolveSink(client v1alpha1.KnServingClient) (*duckv1beta1.Destination, error)
Click to show internal directories.
Click to hide internal directories.