Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SuggestOptions ¶
type SuggestOptions struct {
Namespace string
Name string
ForceRedSkyAPI bool
ForceKubernetes bool
Suggestions SuggestionSource
RedSkyAPI *redskyapi.API
RedSkyClientSet *redskykube.Clientset
ControllerClient client.Client
cmdutil.IOStreams
}
SuggestOptions is the configuration for suggesting assignments
func NewSuggestOptions ¶
func NewSuggestOptions(ioStreams cmdutil.IOStreams) *SuggestOptions
NewSuggestOptions returns a new suggestion options struct
type SuggestionSource ¶
type SuggestionSource interface {
AssignInt(name string, min, max int64, def *int64) (int64, error)
AssignDouble(name string, min, max float64, def *float64) (float64, error)
}
SuggestionSource provides suggested parameter assignments
type SuggestionSourceFlags ¶
type SuggestionSourceFlags struct {
Assignments map[string]string
AllowInteractive bool
DefaultBehavior string
util.IOStreams
}
func NewSuggestionSourceFlags ¶
func NewSuggestionSourceFlags(ioStreams util.IOStreams) *SuggestionSourceFlags
func (*SuggestionSourceFlags) AddFlags ¶
func (f *SuggestionSourceFlags) AddFlags(cmd *cobra.Command)
func (*SuggestionSourceFlags) AssignDouble ¶
Click to show internal directories.
Click to hide internal directories.