Documentation
¶
Index ¶
- type Role
- type Targets
- func (t *Targets) Cleanup(context context.Context, instance *iter8v1alpha2.Experiment)
- func (t *Targets) GetBaseline(context context.Context, instance *iter8v1alpha2.Experiment) error
- func (t *Targets) GetCandidates(context context.Context, instance *iter8v1alpha2.Experiment) (err error)
- func (t *Targets) GetService(context context.Context, instance *iter8v1alpha2.Experiment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Targets ¶
type Targets struct {
Service *corev1.Service
Baseline *appsv1.Deployment
Candidates []*appsv1.Deployment
Port *int32
Hosts []string
Gateways []string
// contains filtered or unexported fields
}
Targets contains details for target service of an experiment
func Init ¶ added in v1.0.0
func Init(instance *iter8v1alpha2.Experiment, client client.Client) *Targets
Init returns an initialized targets content for an expeirment
func (*Targets) Cleanup ¶
func (t *Targets) Cleanup(context context.Context, instance *iter8v1alpha2.Experiment)
Cleanup deletes cluster runtime objects of targets at the end of experiment
func (*Targets) GetBaseline ¶ added in v0.2.0
func (t *Targets) GetBaseline(context context.Context, instance *iter8v1alpha2.Experiment) error
GetBaseline substantializes baseline in the targets returns non-nil error if there is problem in getting the runtime object from cluster
func (*Targets) GetCandidates ¶ added in v1.0.0
func (t *Targets) GetCandidates(context context.Context, instance *iter8v1alpha2.Experiment) (err error)
GetCandidates substantializes all candidates in the targets returns non-nil error if there is problem in getting the runtime objects from cluster
func (*Targets) GetService ¶ added in v0.2.0
func (t *Targets) GetService(context context.Context, instance *iter8v1alpha2.Experiment) error
GetService substantializes service in the targets returns non-nil error if there is problem in getting the runtime object from cluster
Click to show internal directories.
Click to hide internal directories.