Documentation ¶
Index ¶
- type General
- func (g *General) ComposeTrialsTemplate(ts []*suggestionapi.Trial) []trialsv1alpha3.Trial
- func (g *General) ConvertExperiment(e *experimentsv1alpha3.Experiment) *suggestionapi.Experiment
- func (g *General) ConvertTrials(ts []trialsv1alpha3.Trial) []*suggestionapi.Trial
- func (g *General) SyncAssignments(instance *suggestionsv1alpha3.Suggestion, e *experimentsv1alpha3.Experiment, ...) error
- func (g *General) ValidateAlgorithmSettings(instance *suggestionsv1alpha3.Suggestion, e *experimentsv1alpha3.Experiment) error
- type SuggestionClient
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 ¶
func (g *General) ConvertExperiment(e *experimentsv1alpha3.Experiment) *suggestionapi.Experiment
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 ¶
func (g *General) SyncAssignments( instance *suggestionsv1alpha3.Suggestion, e *experimentsv1alpha3.Experiment, ts []trialsv1alpha3.Trial) error
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.
Click to show internal directories.
Click to hide internal directories.