abstract

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 ExperimentInterface interface {
	MarkTargetFound(name string, found bool)
	MarkServiceFound(found bool)
}

type Snapshot

type Snapshot interface {
	Terminate() bool
	Resume() bool
	GetTerminateStatus() string
	GetDeletedRole() targets.Role
}

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

Jump to

Keyboard shortcuts

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