Documentation
¶
Overview ¶
Package describe implements the `iter8ctl describe` subcommand.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cmd ¶
type Cmd struct {
// Usage is a function that is invoked when execution of any `Cmd` method results in an error.
// The typical behavior of `Cmd` after an error is as follows: Usage() prints an error message to stderr, subsequent Cmd methods turn into no-ops, and the program exits.
// Note that Usage() is a field and not a method. You can supply your own implementation of Usage() while constructing `Cmd`.
Usage func()
// contains filtered or unexported fields
}
Cmd struct contains fields that store flags and intermediate results associated with an invocation of 'iter8ctl describe' subcommand.
func Builder ¶
func Builder(stdin io.Reader, stdout io.Writer, stderr io.Writer) *Cmd
Builder returns an initialized Cmd struct pointer. Builder enables the builder design pattern along with method chaining.
Example ¶
Output:
Example (Bytebuffers) ¶
Output:
func (*Cmd) Error ¶
func (d *Cmd) Error() error
Error returns any error generated during the invocation of Cmd methods, or nil if there are no errors.
Example ¶
Output:
Example (Bytebuffers) ¶
Output:
func (*Cmd) GetExperiment ¶
func (d *Cmd) GetExperiment() *Cmd
GetExperiment populates the Cmd struct with an experiment. The experiment may come from an input file when `iter8ctl describe` subcommand is invoked with the "-f experiment-file-path.yaml" flag. The experiment may also come from console input when `iter8ctl describe` subcommand is invoked with the "-f -" flag. The experiment input needs to be a valid iter8 experiment YAML. Otherwise, GetExperiment will generate an error.
Example ¶
Output:
func (*Cmd) ParseFlags ¶
func (d *Cmd) ParseFlags(args []string) *Cmd
ParseFlags parses the flags supplied to Cmd. The returned Cmd struct contains the parsed result. If invalid flags are supplied, ParseFlags generates an error.
Example ¶
Output:
Example (Invalid) ¶
Output:
func (*Cmd) PrintAnalysis ¶
func (d *Cmd) PrintAnalysis() *Cmd
PrintAnalysis prints the progress of the iter8 experiment, winner assessment, version assessment, and metrics.
Example ¶
Output:
Example (Bytebuffers) ¶
Output: