target

package
Version: v0.1.0-alpha Latest Latest
Warning

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

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

Documentation

Overview

Package target provides types and methods for targets of iter8 experiments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCondition

func GetCondition(cond []Condition, ctype string) (string, error)

GetCondition returns the status of a given condition by checking a slice of conditions.

Types

type Condition

type Condition struct {
	// Type of condition.
	Type string `json:"type" description:"type of status condition"`

	// Status of the condition, one of True, False, Unknown.
	Status string `json:"status" description:"status of the condition, one of True, False, Unknown"`
}

Condition defines a readiness condition for InferenceService

type PatchInt64Value

type PatchInt64Value struct {
	Op    string `json:"op"`
	Path  string `json:"path"`
	Value int64  `json:"value"`
}

PatchInt64Value specifies the patch data needed to patch a int64 field.

type Target

type Target interface {
	Error() error
	InitializeTrafficSplit() Target
	GetVersionInfo() (*etc3.VersionInfo, error)
	SetNewBaseline() Target
	SetExperiment(exp *experiment.Experiment) Target
	SetK8sClient(c client.Client) Target
	Fetch(targetRef string) Target
	SetVersionInfoInExperiment() Target
}

Target interface represents the target of an iter8 experiment.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL