manifest

package
v0.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultGenerator

type DefaultGenerator struct {
	// contains filtered or unexported fields
}

DefaultGenerator is the default implementation of Generator.

func (*DefaultGenerator) GetMetricsCollectorImage

func (g *DefaultGenerator) GetMetricsCollectorImage(cKind commonapiv1alpha3.CollectorKind) (string, error)

func (*DefaultGenerator) GetRunSpec

func (g *DefaultGenerator) GetRunSpec(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string) (string, error)

GetRunSpec get the specification for trial.

func (*DefaultGenerator) GetRunSpecWithHyperParameters

func (g *DefaultGenerator) GetRunSpecWithHyperParameters(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string, hps []commonapiv1alpha3.ParameterAssignment) (string, error)

GetRunSpecWithHyperParameters get the specification for trial with hyperparameters.

func (*DefaultGenerator) GetSuggestionConfigData

func (g *DefaultGenerator) GetSuggestionConfigData(algorithmName string) (map[string]string, error)

func (*DefaultGenerator) InjectClient

func (g *DefaultGenerator) InjectClient(c client.Client)

type Generator

type Generator interface {
	InjectClient(c client.Client)
	GetRunSpec(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string) (string, error)
	GetRunSpecWithHyperParameters(e *experimentsv1alpha3.Experiment, experiment, trial, namespace string, hps []commonapiv1alpha3.ParameterAssignment) (string, error)
	GetSuggestionConfigData(algorithmName string) (map[string]string, error)
	GetMetricsCollectorImage(cKind commonapiv1alpha3.CollectorKind) (string, error)
}

Generator is the type for manifests Generator.

func New

func New(c client.Client) Generator

New creates a new Generator.

Jump to

Keyboard shortcuts

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