revision

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRevisionCommand

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

func NewRevisionDeleteCommand

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

NewRevisionDeleteCommand represent 'revision delete' command

func NewRevisionDescribeCommand

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

func NewRevisionListCommand

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

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

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

Jump to

Keyboard shortcuts

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