service

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

Documentation

Index

Constants

View Source
const (
	// How often to retry in case of an optimistic lock error when replacing a service (--force)
	MaxUpdateRetries = 3
)

Variables

This section is empty.

Functions

func NewServiceCommand

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

func NewServiceCreateCommand

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

func NewServiceDeleteCommand

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

NewServiceDeleteCommand represent 'service delete' command

func NewServiceDescribeCommand

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

func NewServiceListCommand

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

NewServiceListCommand represents 'kn service list' command

func NewServiceUpdateCommand

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

func ServiceListHandlers

func ServiceListHandlers(h hprinters.PrintHandler)

ServiceListHandlers adds print handlers for service list command

Types

type ConfigurationEditFlags

type ConfigurationEditFlags struct {
	Image                      string
	Env                        []string
	RequestsFlags, LimitsFlags ResourceFlags
	ForceCreate                bool
	MinScale                   int
	MaxScale                   int
	ConcurrencyTarget          int
	ConcurrencyLimit           int
	Port                       int32
}

func (*ConfigurationEditFlags) AddCreateFlags

func (p *ConfigurationEditFlags) AddCreateFlags(command *cobra.Command)

func (*ConfigurationEditFlags) AddUpdateFlags

func (p *ConfigurationEditFlags) AddUpdateFlags(command *cobra.Command)

func (*ConfigurationEditFlags) Apply

type ResourceFlags

type ResourceFlags struct {
	CPU    string
	Memory string
}

type ServiceListFlags

type ServiceListFlags struct {
	GenericPrintFlags  *genericclioptions.PrintFlags
	HumanReadableFlags *commands.HumanPrintFlags
}

ServiceListFlags composes common printer flag structs used in the 'kn service list' command.

func NewServiceListFlags

func NewServiceListFlags() *ServiceListFlags

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

func (*ServiceListFlags) AddFlags

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

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

func (*ServiceListFlags) AllowedFormats

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

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

func (*ServiceListFlags) ToPrinter

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

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

Jump to

Keyboard shortcuts

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