Documentation
¶
Index ¶
- Constants
- type Action
- type Catcher
- type Impl
- func (c *Impl) DeploymentToExperiment(targetName, targetNamespace string) (string, string, bool)
- func (c *Impl) Inspect()
- func (c *Impl) MarkDeploymentDeleted(targetName, targetNamespace string) bool
- func (c *Impl) MarkDeploymentDetected(targetName, targetNamespace string) bool
- func (c *Impl) MarkServiceDeleted(targetName, targetNamespace string) bool
- func (c *Impl) MarkServiceDetected(targetName, targetNamespace string) bool
- func (c *Impl) RegisterExperiment(ctx context.Context, instance *iter8v1alpha2.Experiment) (context.Context, error)
- func (c *Impl) RemoveExperiment(instance *iter8v1alpha2.Experiment)
- func (c *Impl) ServiceToExperiment(targetName, targetNamespace string) (string, string, bool)
- type Interface
Constants ¶
const (
ActionKey = actionKeyType("experimentAction")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Catcher ¶
type Catcher interface { MarkTargetDetected(name string, kind string) MarkTargetDeleted(name string, kind string) }
Catcher defines functions can be invoked by Adapter It catches creation/deletion of experiment targets
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
Impl is the implementation of Iter8Cache
func (*Impl) DeploymentToExperiment ¶
DeploymentToExperiment returns the experiment key given name and namespace of target deployment
func (*Impl) MarkDeploymentDeleted ¶
MarkDeploymentDeleted marks the event that a target deployment is deleted
func (*Impl) MarkDeploymentDetected ¶
MarkDeploymentDetected marks the event that a target deployment is detected
func (*Impl) MarkServiceDeleted ¶
MarkServiceDeleted marks the event that a target service is deleted
func (*Impl) MarkServiceDetected ¶
MarkServiceDetected marks the event that a target service is detected
func (*Impl) RegisterExperiment ¶
func (c *Impl) RegisterExperiment(ctx context.Context, instance *iter8v1alpha2.Experiment) (context.Context, error)
RegisterExperiment creates new abstracts into the cache and snapshot the abstract into context
func (*Impl) RemoveExperiment ¶
func (c *Impl) RemoveExperiment(instance *iter8v1alpha2.Experiment)
RemoveExperiment removes the experiment abstract from the cache
type Interface ¶
type Interface interface { // Given name and namespace of the target deployment, return the experiment key DeploymentToExperiment(name, namespace string) (experiment, experimentNamespace string, exist bool) // Given name and namespace of the target service, return the experiment key ServiceToExperiment(name, namespace string) (experiment, experimentNamespace string, exist bool) RegisterExperiment(context context.Context, instance *iter8v1alpha2.Experiment) (context.Context, error) RemoveExperiment(instance *iter8v1alpha2.Experiment) MarkDeploymentDetected(name, namespace string) bool MarkServiceDetected(name, namespace string) bool MarkDeploymentDeleted(name, namespace string) bool MarkServiceDeleted(name, namespace string) bool Inspect() }
Interface defines the interface for iter8cache