Documentation
¶
Index ¶
- Constants
- func NewServiceCommand(p *commands.KnParams) *cobra.Command
- func NewServiceCreateCommand(p *commands.KnParams) *cobra.Command
- func NewServiceDeleteCommand(p *commands.KnParams) *cobra.Command
- func NewServiceDescribeCommand(p *commands.KnParams) *cobra.Command
- func NewServiceListCommand(p *commands.KnParams) *cobra.Command
- func NewServiceUpdateCommand(p *commands.KnParams) *cobra.Command
- func ServiceListHandlers(h hprinters.PrintHandler)
- type ConfigurationEditFlags
- func (p *ConfigurationEditFlags) AddCreateFlags(command *cobra.Command)
- func (p *ConfigurationEditFlags) AddUpdateFlags(command *cobra.Command)
- func (p *ConfigurationEditFlags) AnyMutation(cmd *cobra.Command) bool
- func (p *ConfigurationEditFlags) Apply(service *servingv1alpha1.Service, baseRevision *servingv1alpha1.Revision, ...) error
- type ResourceFlags
- type ServiceListFlags
Constants ¶
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 NewServiceDeleteCommand ¶
NewServiceDeleteCommand represent 'service delete' command
func NewServiceDescribeCommand ¶
NewServiceDescribeCommand returns a new command for describing a service.
func NewServiceListCommand ¶
NewServiceListCommand represents 'kn service list' command
func ServiceListHandlers ¶
func ServiceListHandlers(h hprinters.PrintHandler)
ServiceListHandlers adds print handlers for service list command
Types ¶
type ConfigurationEditFlags ¶
type ConfigurationEditFlags struct { // Direct field manipulation Image string Env []string RequestsFlags, LimitsFlags ResourceFlags MinScale int MaxScale int ConcurrencyTarget int ConcurrencyLimit int Port int32 Labels []string NamePrefix string RevisionName string ServiceAccountName string Annotations []string // Preferences about how to do the action. LockToDigest bool GenerateRevisionName bool ForceCreate bool // contains filtered or unexported fields }
func (*ConfigurationEditFlags) AddCreateFlags ¶
func (p *ConfigurationEditFlags) AddCreateFlags(command *cobra.Command)
AddCreateFlags adds the flags specific to create
func (*ConfigurationEditFlags) AddUpdateFlags ¶
func (p *ConfigurationEditFlags) AddUpdateFlags(command *cobra.Command)
AddUpdateFlags adds the flags specific to update.
func (*ConfigurationEditFlags) AnyMutation ¶
func (p *ConfigurationEditFlags) AnyMutation(cmd *cobra.Command) bool
AnyMutation returns true if there are any revision template mutations in the command.
func (*ConfigurationEditFlags) Apply ¶
func (p *ConfigurationEditFlags) Apply( service *servingv1alpha1.Service, baseRevision *servingv1alpha1.Revision, cmd *cobra.Command) error
Apply mutates the given service according to the flags in the command.
type ResourceFlags ¶
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) EnsureWithNamespace ¶
func (f *ServiceListFlags) EnsureWithNamespace()
EnsureWithNamespace ensures that humanreadable flags return a printer capable of printing with a "namespace" column.
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.