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

Documentation

Index

Constants

View Source
const (
	GetModelPackagingURL        = "/model/packaging/:id"
	GetModelPackagingLogsURL    = "/model/packaging/:id/log"
	GetAllModelPackagingURL     = "/model/packaging"
	CreateModelPackagingURL     = "/model/packaging"
	UpdateModelPackagingURL     = "/model/packaging"
	SaveModelPackagingResultURL = "/model/packaging/:id/result"
	DeleteModelPackagingURL     = "/model/packaging/:id"
	IDMpURLParam                = "id"
	FollowURLParam              = "follow"
)
View Source
const (
	ValidationMpErrorMessage             = "Validation of model packaging is failed"
	TrainingIDOrArtifactNameErrorMessage = "you should specify artifactName"
	ArgumentValidationErrorMessage       = "argument validation is failed: %s"
	EmptyIntegrationNameErrorMessage     = "integration name must be nonempty"
	TargetNotFoundErrorMessage           = "cannot find %s target in packaging integration %s"
	NotValidConnTypeErrorMessage         = "%s target has not valid connection type %s for packaging integration %s"
)
View Source
const (
	GetPackagingIntegrationURL    = "/packaging/integration/:id"
	GetAllPackagingIntegrationURL = "/packaging/integration"
	CreatePackagingIntegrationURL = "/packaging/integration"
	UpdatePackagingIntegrationURL = "/packaging/integration"
	DeletePackagingIntegrationURL = "/packaging/integration/:id"
	IDPiURLParam                  = "id"
)
View Source
const (
	ValidationPiErrorMessage               = "Validation of packaging integration is failed"
	EmptyIDErrorMessage                    = "id must be nonempty"
	EmptyEntrypointErrorMessage            = "entrypoint must be nonempty"
	EmptyDefaultImageErrorMessage          = "default image must be nonempty"
	TargetEmptyConnectionTypesErrorMessage = "%s target must have at least one connection type"
	TargetEmptyNameErrorMessage            = "one of target has empty name"
	TargetUnknownConnTypeErrorMessage      = "%s target have unknown connection type: %s"
	NotValidJSONSchemaErrorMessage         = "arguments have not valid json schema: %s"
)

Variables

View Source
var (
	DefaultPackagingResources = &v1alpha1.ResourceRequirements{
		Limits: &v1alpha1.ResourceList{
			CPU:    &defaultCPULimit,
			Memory: &defaultMemoryLimit,
		},
		Requests: &v1alpha1.ResourceList{
			CPU:    &defaultCPURequests,
			Memory: &defaultMemoryRequests,
		},
	}
)

Functions

func ConfigureRoutes

func ConfigureRoutes(routeGroup *gin.RouterGroup, repository mp_repository.Repository,
	connRepository conn_repository.Repository)

Types

type ModelPackagingController

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

type MpValidator

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

func NewMpValidator

func NewMpValidator(mpRepository mp_repository.Repository, connRepository conn_repository.Repository) *MpValidator

func (*MpValidator) ValidateAndSetDefaults

func (mpv *MpValidator) ValidateAndSetDefaults(mp *packaging.ModelPackaging) (err error)

type PackagingIntegrationController

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

type PiValidator

type PiValidator struct {
}

Packaging Integration validator

func NewPiValidator

func NewPiValidator() *PiValidator

Currently validator does not need any arguments

func (*PiValidator) ValidateAndSetDefaults

func (mpv *PiValidator) ValidateAndSetDefaults(pi *packaging.PackagingIntegration) (err error)

Jump to

Keyboard shortcuts

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