revision

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: 18 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

func WriteConcurrencyOptions added in v0.10.0

func WriteConcurrencyOptions(dw printers.PrefixWriter, revision *v1alpha1.Revision)

func WriteEnv added in v0.10.0

func WriteEnv(dw printers.PrefixWriter, revision *v1alpha1.Revision, printDetails bool)

func WriteImage added in v0.10.0

func WriteImage(dw printers.PrefixWriter, revision *v1alpha1.Revision)

Write the image attribute (with

func WritePort added in v0.10.0

func WritePort(dw printers.PrefixWriter, revision *v1alpha1.Revision)

func WriteResources added in v0.10.0

func WriteResources(dw printers.PrefixWriter, r *v1alpha1.Revision)

func WriteScale added in v0.10.0

func WriteScale(dw printers.PrefixWriter, revision *v1alpha1.Revision)

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