Documentation
¶
Index ¶
- func NewCommand(o *Options) *cobra.Command
- func NewConfigCommand(o *ConfigOptions) *cobra.Command
- func NewControllerCommand(o *ControllerOptions) *cobra.Command
- func NewExperimentCommand(o *ExperimentOptions) *cobra.Command
- func NewVersionCommand(o *VersionOptions) *cobra.Command
- type ConfigOptions
- type ControllerOptions
- type ExperimentOptions
- type Options
- type VersionOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand creates a new command for checking components
func NewConfigCommand ¶
func NewConfigCommand(o *ConfigOptions) *cobra.Command
NewConfigCommand creates a new command for checking the Optimize Configuration
func NewControllerCommand ¶
func NewControllerCommand(o *ControllerOptions) *cobra.Command
NewControllerCommand creates a new command for checking an Optimize controller
func NewExperimentCommand ¶
func NewExperimentCommand(o *ExperimentOptions) *cobra.Command
NewExperimentCommand creates a new command for checking an experiment manifest
func NewVersionCommand ¶
func NewVersionCommand(o *VersionOptions) *cobra.Command
NewVersionCommand creates a new command for checking the current version of the product
Types ¶
type ConfigOptions ¶
type ConfigOptions struct { // Config is the Optimize Configuration to check Config *config.OptimizeConfig // ExperimentsAPI is used to interact with the Optimize Experiments API ExperimentsAPI experimentsv1alpha1.API // IOStreams are used to access the standard process streams commander.IOStreams }
ConfigOptions are the options for checking an Optimize Configuration
type ControllerOptions ¶
type ControllerOptions struct { // Config is the Optimize Configuration for connecting to the cluster Config *config.OptimizeConfig // IOStreams are used to access the standard process streams commander.IOStreams // Wait for the controller to be ready Wait bool }
ControllerOptions are the options for checking an Optimize controller
func (*ControllerOptions) CheckController ¶
func (o *ControllerOptions) CheckController(ctx context.Context) error
type ExperimentOptions ¶
type ExperimentOptions struct { // IOStreams are used to access the standard process streams commander.IOStreams Filename string }
ExperimentOptions are the options for checking an experiment manifest
type Options ¶
type Options struct { // Config is the Optimize Configuration Config *config.OptimizeConfig }
Options includes the configuration for the subcommands
type VersionOptions ¶
type VersionOptions struct { // IOStreams are used to access the standard process streams commander.IOStreams }
VersionOptions are the options for checking the current version of the product