legion

package
v0.0.0-...-db3a1d9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelTrainingIDLogPrefix   = "mt_id"
	ModelPackagingIDLogPrefix  = "mp_id"
	ModelDeploymentIDLogPrefix = "md_id"
	ConnectionIDLogPrefix      = "conn_id"
)
View Source
const (
	LastAppliedHashAnnotation = "operator.legion.org/last-applied-hash"
	PackagerSetupStep         = "setup"
	PackagerPackageStep       = "packager"
	PackagerResultStep        = "result"
	TrainerSetupStep          = "setup"
	TrainerTrainStep          = "trainer"
	TrainerResultStep         = "result"
)
View Source
const (
	ManifestFile = "manifest.json"
)

Variables

This section is empty.

Functions

func GenerateDeploymentConnectionSecretName

func GenerateDeploymentConnectionSecretName(connName string) string

func GeneratePackageResultCMName

func GeneratePackageResultCMName(mpID string) string

func GenerateTrainingResultCMName

func GenerateTrainingResultCMName(mtID string) string

func ObjsEqualByHash

func ObjsEqualByHash(firstObj, secondObj metav1.Object) bool

func ProduceTrainingZipName

func ProduceTrainingZipName(templateName string, conf *TrainingZipNameConfig) (string, error)

func StoreHash

func StoreHash(obj metav1.Object) error

Compute hash and store it in the annotations

func StoreHashKnative

func StoreHashKnative(obj *knservingv1alpha1.Configuration) error

Compute hash and store it in the annotations

Types

type Model

type Model struct {
	Name    string `json:"model.name"`
	Version string `json:"model.version"`
}

type TrainingZipNameConfig

type TrainingZipNameConfig struct {
	Name       string
	Version    string
	CommitID   string
	RandomUUID *string
}

Jump to

Keyboard shortcuts

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