server

package
v1.9.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Finalizer is used to ensure synchronization with the server
	Finalizer = "serverFinalizer.redskyops.dev"
)

Variables

This section is empty.

Functions

func FailExperiment

func FailExperiment(exp *redskyv1beta1.Experiment, reason string, err error) bool

FailExperiment records a recognized error as an experiment failure.

func FromCluster

FromCluster converts cluster state to API state

func FromClusterTrial

func FromClusterTrial(t *redskyv1beta1.Trial) *redskyapi.TrialValues

FromClusterTrial converts cluster state to API state

func StopExperiment

func StopExperiment(exp *redskyv1beta1.Experiment, err error) bool

StopExperiment updates the experiment in the event that it should be paused or halted

func ToCluster

func ToCluster(exp *redskyv1beta1.Experiment, ee *redskyapi.Experiment)

ToCluster converts API state to cluster state

func ToClusterTrial

func ToClusterTrial(t *redskyv1beta1.Trial, suggestion *redskyapi.TrialAssignments)

ToClusterTrial converts API state to cluster state

Types

This section is empty.

Jump to

Keyboard shortcuts

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