suggestionclient

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type General

type General struct {
}

General is the implementation for SuggestionClient.

func (*General) ComposeTrialsTemplate

func (g *General) ComposeTrialsTemplate(ts []*suggestionapi.Trial) []trialsv1alpha3.Trial

ComposeTrialsTemplate composes trials with raw template from the GRPC response.

func (*General) ConvertExperiment

ConvertExperiment converts CRD to the GRPC definition.

func (*General) ConvertTrials

func (g *General) ConvertTrials(ts []trialsv1alpha3.Trial) []*suggestionapi.Trial

ConvertTrials converts CRD to the GRPC definition.

func (*General) SyncAssignments

SyncAssignments syncs assignments from algorithm services.

func (*General) ValidateAlgorithmSettings

func (g *General) ValidateAlgorithmSettings(instance *suggestionsv1alpha3.Suggestion, e *experimentsv1alpha3.Experiment) error

ValidateAlgorithmSettings validates if the algorithm specific configurations are valid.

type SuggestionClient

type SuggestionClient interface {
	SyncAssignments(instance *suggestionsv1alpha3.Suggestion, e *experimentsv1alpha3.Experiment,
		ts []trialsv1alpha3.Trial) error

	ValidateAlgorithmSettings(instance *suggestionsv1alpha3.Suggestion, e *experimentsv1alpha3.Experiment) error
}

SuggestionClient is the interface to communicate with algorithm services.

func New

func New() SuggestionClient

New creates a new SuggestionClient.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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