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 = "empty artifactName" ArgumentValidationErrorMessage = "argument validation is failed: %s" EmptyIntegrationNameErrorMessage = "empty integrationName" 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" EmptyEntrypointErrorMessage = "empty entrypoint" EmptyDefaultImageErrorMessage = "empty defaultImage" 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, piService packagingIntegrationService)
func ConfigureRoutes ¶
func ConfigureRoutes( routeGroup *gin.RouterGroup, packKubeClient mp_kube_client.Client, packService mp_service.Service, piService packagingIntegrationService, 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( piService packagingIntegrationGetter, connRepo conn_repository.Repository, packagingConfig config.ModelPackagingConfig, gpuResourceName string, ) *MpValidator
func (*MpValidator) ValidateAndSetDefaults ¶
func (mpv *MpValidator) ValidateAndSetDefaults(mp *packaging.ModelPackaging) (err error)
func (*MpValidator) ValidateAndSetDefaultsPIRequired ¶
func (mpv *MpValidator) ValidateAndSetDefaultsPIRequired(mp *packaging.ModelPackaging) (err error)
ValidateAndSetDefaultsPIRequired validates ModelPackaging fields using a corresponding PackagingIntegration
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)
Click to show internal directories.
Click to hide internal directories.