version

package
v2.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(o *Options) *cobra.Command

NewCommand creates a new command for reporting version information

Types

type Options

type Options struct {
	// Config is the Optimize Configuration
	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

	// Product is the current product name
	Product string
	// ShowSetupToolsImage toggles the setup tools image information
	ShowSetupToolsImage bool
	// ShowControllerImage toggles the controller image information
	ShowControllerImage bool
	// Debug enables error logging
	Debug bool
}

Options is the configuration for reporting version information

func (*Options) ControllerVersion

func (o *Options) ControllerVersion(ctx context.Context) (*version.Info, error)

controllerVersion looks for the controller pod and executes `/manager version` to extract the version information

Jump to

Keyboard shortcuts

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