experiment

package
v0.0.0-pre Latest Latest
Warning

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

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

Documentation

Overview

Package experiment enables extraction of useful information from experiment objects and also setting VersionInfo within them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Experiment

type Experiment struct {
	*etc3.Experiment
}

Experiment is an enhancement of v2alpha1.Experiment struct, and supports various methods used in describing an experiment.

func Builder

func Builder(exp *etc3.Experiment) *Experiment

Builder constructs an Experiment struct with the given etc3 experiment.

func GetExperiment

func GetExperiment(c client.Client) (*Experiment, error)

GetExperiment returns a pointer to the experiment object fetched from the Kubernetes cluster.

func (*Experiment) GetBaseline

func (e *Experiment) GetBaseline() (string, error)

GetBaseline returns the baseline version in the experiment.

func (*Experiment) GetRecommendedBaseline

func (e *Experiment) GetRecommendedBaseline() (string, error)

GetRecommendedBaseline returns the next baseline recommended in the experiment.

func (*Experiment) GetTargetRef

func (e *Experiment) GetTargetRef() string

GetTargetRef returns the target string for the experiment.

func (*Experiment) IsSingleVersion

func (e *Experiment) IsSingleVersion() bool

IsSingleVersion returns a boolean indicating if this is a single version experiment.

func (*Experiment) SetVersionInfo

func (e *Experiment) SetVersionInfo(versionInfo *etc3.VersionInfo)

SetVersionInfo sets version information for an experiment.

Jump to

Keyboard shortcuts

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