Documentation
¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- Variables
- func AlgorithmArgsFromContext(ctx context.Context) []string
- func AlgorithmArgsToContext(ctx context.Context, algoArgs []string) context.Context
- func AlgorithmTypeFromContext(ctx context.Context) string
- func AlgorithmTypeToContext(ctx context.Context, algoType string) context.Context
- type AlgorithType
- type Algorithm
Constants ¶
View Source
const ( AlgoTypeBin AlgorithType = "bin" AlgoTypePython AlgorithType = "python" AlgoTypeWasm AlgorithType = "wasm" AlgoTypeDocker AlgorithType = "docker" AlgoTypeKey = "algo_type" AlgoArgsKey = "algo_args" ResultsDir = "results" DatasetsDir = "datasets" )
Variables ¶
View Source
var AlgoWorkingDir = "/cocos"
AlgoWorkingDir is the base directory used by algorithm runners (e.g. docker) to create datasets/results mounts. It is a variable so tests can override it.
Functions ¶
func AlgorithmArgsFromContext ¶ added in v0.3.0
func AlgorithmArgsToContext ¶ added in v0.3.0
Types ¶
type AlgorithType ¶
type AlgorithType string
Click to show internal directories.
Click to hide internal directories.