evaluate

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: Apache-2.0, Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvaluateJob

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

func NewEvaluateJob

func NewEvaluateJob(name string, args interface{}) *EvaluateJob

func (*EvaluateJob) Args

func (b *EvaluateJob) Args() interface{}

func (*EvaluateJob) Name

func (b *EvaluateJob) Name() string

type EvaluateJobBuilder

type EvaluateJobBuilder struct {
	argsbuilder.ArgsBuilder
	// contains filtered or unexported fields
}

func NewEvaluateJobBuilder

func NewEvaluateJobBuilder() *EvaluateJobBuilder

func (*EvaluateJobBuilder) Annotations

func (e *EvaluateJobBuilder) Annotations(annotations map[string]string) *EvaluateJobBuilder

Annotations is used to add annotations for job pods,match option --annotation

func (*EvaluateJobBuilder) Build

func (e *EvaluateJobBuilder) Build() (*EvaluateJob, error)

Build is used to build the job

func (*EvaluateJobBuilder) Command

func (e *EvaluateJobBuilder) Command(args []string) *EvaluateJobBuilder

Command is used to set job command

func (*EvaluateJobBuilder) Cpu

Cpu is used to set job cpu, match option --cpu

func (*EvaluateJobBuilder) DataDirs

func (e *EvaluateJobBuilder) DataDirs(volumes map[string]string) *EvaluateJobBuilder

DataDirs is used to mount host files to job containers,match option --data-dir

func (*EvaluateJobBuilder) Datas

func (e *EvaluateJobBuilder) Datas(volumes map[string]string) *EvaluateJobBuilder

Datas is used to mount host files to job containers,match option --data

func (*EvaluateJobBuilder) DatasetPath

func (e *EvaluateJobBuilder) DatasetPath(datasetPath string) *EvaluateJobBuilder

DatasetPath is used to set job dataset path, match option --dataset-path

func (*EvaluateJobBuilder) Envs

Envs is used to set env of job containers,match option --env

func (*EvaluateJobBuilder) Gpu

Gpu is used to set job gpu, match option --gpus

func (*EvaluateJobBuilder) Image

func (e *EvaluateJobBuilder) Image(image string) *EvaluateJobBuilder

Image is used to set job image,match the option --image

func (*EvaluateJobBuilder) ImagePullSecrets

func (e *EvaluateJobBuilder) ImagePullSecrets(secrets []string) *EvaluateJobBuilder

ImagePullSecrets is used to set image pull secrests,match option --image-pull-secret

func (*EvaluateJobBuilder) Memory

func (e *EvaluateJobBuilder) Memory(memory string) *EvaluateJobBuilder

Memory is used to set job memory, match option --memory

func (*EvaluateJobBuilder) MetricsPath

func (e *EvaluateJobBuilder) MetricsPath(metricsPath string) *EvaluateJobBuilder

MetricsPath is used to set job metrics path, match option --metrics-path

func (*EvaluateJobBuilder) ModelName

func (e *EvaluateJobBuilder) ModelName(modelName string) *EvaluateJobBuilder

ModelName is used to set job model name, match option --model-name

func (*EvaluateJobBuilder) ModelPath

func (e *EvaluateJobBuilder) ModelPath(modelPath string) *EvaluateJobBuilder

ModelPath is used to set job model path, match option --model-path

func (*EvaluateJobBuilder) ModelVersion

func (e *EvaluateJobBuilder) ModelVersion(modelVersion string) *EvaluateJobBuilder

ModelVersion is used to set job model version, match option --model-version

func (*EvaluateJobBuilder) Name

Name is used to set job name, match option --name

func (*EvaluateJobBuilder) Namespace

func (e *EvaluateJobBuilder) Namespace(namespace string) *EvaluateJobBuilder

Namespace is used to set job namespace, match option --namespace

func (*EvaluateJobBuilder) NodeSelectors

func (e *EvaluateJobBuilder) NodeSelectors(selectors map[string]string) *EvaluateJobBuilder

NodeSelectors is used to set node selectors for scheduling job,match option --selector

func (*EvaluateJobBuilder) SyncImage

func (e *EvaluateJobBuilder) SyncImage(image string) *EvaluateJobBuilder

SyncImage is used to set syncing image,match option --sync-image

func (*EvaluateJobBuilder) SyncMode

func (e *EvaluateJobBuilder) SyncMode(mode string) *EvaluateJobBuilder

SyncMode is used to set syncing mode,match option --sync-mode

func (*EvaluateJobBuilder) SyncSource

func (e *EvaluateJobBuilder) SyncSource(source string) *EvaluateJobBuilder

SyncSource is used to set syncing source,match option --sync-source

func (*EvaluateJobBuilder) Tolerations

func (e *EvaluateJobBuilder) Tolerations(tolerations []string) *EvaluateJobBuilder

Tolerations is used to set tolerations for tolerate nodes,match option --toleration

func (*EvaluateJobBuilder) WorkingDir

func (e *EvaluateJobBuilder) WorkingDir(dir string) *EvaluateJobBuilder

WorkingDir is used to set working directory of job containers,default is '/root' match option --working-dir

Jump to

Keyboard shortcuts

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