Documentation ¶
Index ¶
- func AddServiceFlags(flags *pflag.FlagSet)
- func Merge(cmd *cobra.Command, spec *api.ServiceSpec, c api.ControlClient) error
- func ParseAddConfig(cmd *cobra.Command, spec *api.ServiceSpec, flagName string) error
- func ParseAddSecret(cmd *cobra.Command, spec *api.ServiceSpec, flagName string) error
- func ParseRemoveConfig(cmd *cobra.Command, spec *api.ServiceSpec, flagName string) error
- func ParseRemoveSecret(cmd *cobra.Command, spec *api.ServiceSpec, flagName string) error
- Bugs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddServiceFlags ¶
AddServiceFlags add all supported service flags to the flagset.
func Merge ¶
func Merge(cmd *cobra.Command, spec *api.ServiceSpec, c api.ControlClient) error
Merge merges a flagset into a service spec.
func ParseAddConfig ¶
ParseAddConfig validates configs passed on the command line
func ParseAddSecret ¶
ParseAddSecret validates secrets passed on the command line
func ParseRemoveConfig ¶
ParseRemoveConfig removes a set of configs from the task spec's config references
func ParseRemoveSecret ¶
ParseRemoveSecret removes a set of secrets from the task spec's secret references
Types ¶
This section is empty.
Notes ¶
Bugs ¶
Cobra stringslice actually doesn't correctly handle comma separated values, so multiple flags aren't really supported. We'll have to replace StringSlice with a type that doesn't use the csv parser. This is good enough for now.
Click to show internal directories.
Click to hide internal directories.