Documentation
¶
Index ¶
- Constants
- type Experiment
- func (e *Experiment) GetDeletedRole() targets.Role
- func (e *Experiment) GetSnapshot() Snapshot
- func (e *Experiment) GetTerminateStatus() string
- func (e *Experiment) MarkServiceFound(found bool)
- func (e *Experiment) MarkTargetFound(name string, found bool)
- func (e *Experiment) Resume() bool
- func (e *Experiment) Terminate() bool
- type ExperimentInterface
- type Snapshot
- type Status
- type Targets
Constants ¶
View Source
const (
SnapshotKey = snapshotKeyType("experimentAbstract")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Experiment ¶
type Experiment struct { Namespace string TargetsAbstract *Targets // contains filtered or unexported fields }
Experiment includes abstract info for one Experiment
func NewExperiment ¶
func NewExperiment(instance *iter8v1alpha1.Experiment, targetNamespace string) *Experiment
func (*Experiment) GetDeletedRole ¶
func (e *Experiment) GetDeletedRole() targets.Role
func (*Experiment) GetSnapshot ¶
func (e *Experiment) GetSnapshot() Snapshot
func (*Experiment) GetTerminateStatus ¶
func (e *Experiment) GetTerminateStatus() string
func (*Experiment) MarkServiceFound ¶
func (e *Experiment) MarkServiceFound(found bool)
func (*Experiment) MarkTargetFound ¶
func (e *Experiment) MarkTargetFound(name string, found bool)
func (*Experiment) Resume ¶
func (e *Experiment) Resume() bool
func (*Experiment) Terminate ¶
func (e *Experiment) Terminate() bool
type ExperimentInterface ¶
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
Status indicates the status of one target
type Targets ¶
type Targets struct { Namespace string ServiceName string // a map from deployment name to the status of deployment Status map[string]*Status // contains filtered or unexported fields }
Targets stores the abstract info for all target items
func NewTargets ¶
func NewTargets(instance *iter8v1alpha1.Experiment, namespace string) *Targets
NewTargets returns a new abstract for targets of an experiment
Click to show internal directories.
Click to hide internal directories.