Documentation
¶
Index ¶
- func NewRevisionCommand(p *commands.KnParams) *cobra.Command
- func NewRevisionDeleteCommand(p *commands.KnParams) *cobra.Command
- func NewRevisionDescribeCommand(p *commands.KnParams) *cobra.Command
- func NewRevisionListCommand(p *commands.KnParams) *cobra.Command
- func RevisionListHandlers(h hprinters.PrintHandler)
- type RevisionListFlags
- type ServiceReferenceFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRevisionDeleteCommand ¶
NewRevisionDeleteCommand represent 'revision delete' command
func NewRevisionListCommand ¶
NewRevisionListCommand represents 'kn revision list' command
func RevisionListHandlers ¶
func RevisionListHandlers(h hprinters.PrintHandler)
RevisionListHandlers adds print handlers for revision list command
Types ¶
type RevisionListFlags ¶
type RevisionListFlags struct {
GenericPrintFlags *genericclioptions.PrintFlags
HumanReadableFlags *commands.HumanPrintFlags
ServiceRefFlags ServiceReferenceFlags
}
RevisionListFlags composes common printer flag structs used in the List command.
func NewRevisionListFlags ¶
func NewRevisionListFlags() *RevisionListFlags
NewRevisionListFlags returns flags associated with humanreadable, template, and "name" printing, with default values set.
func (*RevisionListFlags) AddFlags ¶
func (f *RevisionListFlags) AddFlags(cmd *cobra.Command)
AddFlags receives a *cobra.Command reference and binds flags related to humanreadable and template printing as well as to reference a service
func (*RevisionListFlags) AllowedFormats ¶
func (f *RevisionListFlags) AllowedFormats() []string
AllowedFormats is the list of formats in which data can be displayed
func (*RevisionListFlags) ToPrinter ¶
func (f *RevisionListFlags) ToPrinter() (hprinters.ResourcePrinter, error)
ToPrinter attempts to find a composed set of RevisionListFlags suitable for returning a printer based on current flag values.
type ServiceReferenceFlags ¶
type ServiceReferenceFlags struct {
Name string
}
ServiceReferenceFlags compose a set of flag(s) to reference a service
func (*ServiceReferenceFlags) SetOptional ¶
func (s *ServiceReferenceFlags) SetOptional(cmd *cobra.Command)
SetOptional receives a *cobra.Command reference and adds the ServiceReferenceFlags flags as optional flags