packaging

package
v0.0.0-...-a5f9e11 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 22 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"

	UnknownNodeSelector = "node selector %v is not presented in ODAHU config"
)
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

This section is empty.

Functions

func ConfigurePiRoutes

func ConfigurePiRoutes(routeGroup *gin.RouterGroup, piRepository mp_repository.PackagingIntegrationRepository)

func ConfigureRoutes

func ConfigureRoutes(
	routeGroup *gin.RouterGroup,
	packKubeClient mp_kube_client.Client,
	packService mp_service.Service,
	piRepo mp_repository.PackagingIntegrationRepository,
	connRepo conn_repository.Repository,
	config config.ModelPackagingConfig,
	gpuResourceName string)

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(
	piRepo mp_repository.PackagingIntegrationRepository,
	connRepo conn_repository.Repository,
	packagingConfig config.ModelPackagingConfig,
	gpuResourceName string,
) *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