packaging

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonSchema

type JsonSchema struct {
	// Properties configuration
	Properties []Property `json:"properties"`
	// List of required properties
	Required []string `json:"required,omitempty"`
}

type K8sPackager

type K8sPackager struct {
	// Connection where a trained model artifact is stored
	ModelHolder *connection.Connection `json:"modelHolder"`
	// Model Packaging
	ModelPackaging *ModelPackaging `json:"modelPackaging"`
	// Packaging integration
	PackagingIntegration *PackagingIntegration `json:"packagingIntegration"`
	// Name of trained model artifact name
	TrainingZipName string `json:"trainingZipName"`
	// List of targets with appropriate connections
	Targets []PackagerTarget `json:"targets"`
}

type ModelPackaging

type ModelPackaging struct {
	// Model packaging id
	ID string `json:"id"`
	// Model packaging specification
	Spec ModelPackagingSpec `json:"spec,omitempty"`
	// Model packaging status
	Status *v1alpha1.ModelPackagingStatus `json:"status,omitempty"`
}

type ModelPackagingSpec

type ModelPackagingSpec struct {
	// Training output artifact name
	ArtifactName string `json:"artifactName"`
	// Packaging integration ID
	IntegrationName string `json:"integrationName"`
	// Image name. Packaging integration image will be used if this parameters is missed
	Image string `json:"image,omitempty"`
	// List of arguments. This parameter depends on the specific packaging integration
	Arguments map[string]interface{} `json:"arguments"`
	// List of targets. This parameter depends on the specific packaging integration
	Targets []v1alpha1.Target `json:"targets"`
	// Resources for packager container
	// The same format like k8s uses for pod resources.
	Resources *v1alpha1.ResourceRequirements `json:"resources,omitempty"`
}

ModelPackagingSpec defines the desired state of ModelPackaging

type PackagerTarget

type PackagerTarget struct {
	// Target name
	Name string `json:"name"`
	// A Connection for this target
	Connection connection.Connection `json:"connection"`
}

type PackagingIntegration

type PackagingIntegration struct {
	// Packaging integration id
	ID string `json:"id"`
	// Packaging integration specification
	Spec PackagingIntegrationSpec `json:"spec,omitempty"`
	// Packaging integration status
	Status *v1alpha1.PackagingIntegrationStatus `json:"status,omitempty"`
}

type PackagingIntegrationSpec

type PackagingIntegrationSpec struct {
	// Path to binary which starts a packaging process
	Entrypoint string `json:"entrypoint"`
	// Default packaging Docker image
	DefaultImage string `json:"defaultImage"`
	// Enable docker privileged flag
	Privileged bool `json:"privileged,omitempty"`
	// Schema which describes targets and arguments for specific packaging integration
	Schema Schema `json:"schema"`
}

type Parameter

type Parameter struct {
	// Parameter name
	Name string `json:"name"`
	// Parameter value
	Value interface{} `json:"value"`
}

type Property

type Property struct {
	// Property name
	Name string `json:"name"`
	// List of property parameters
	Parameters []Parameter `json:"parameters"`
}

type Schema

type Schema struct {
	// Targets schema
	Targets []v1alpha1.TargetSchema `json:"targets"`
	// Arguments schema
	Arguments JsonSchema `json:"arguments"`
}

Jump to

Keyboard shortcuts

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