service

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MapPropertiesToArtifactProperty  = repository.MapPropertiesToArtifactProperty
	MapPropertiesToContextProperty   = repository.MapPropertiesToContextProperty
	MapPropertiesToExecutionProperty = repository.MapPropertiesToExecutionProperty
	MapArtifactPropertyToProperties  = repository.MapArtifactPropertyToProperties
	MapContextPropertyToProperties   = repository.MapContextPropertyToProperties
	MapExecutionPropertyToProperties = repository.MapExecutionPropertyToProperties
)

Property mapping functions

View Source
var ApplyFilterQuery = repository.ApplyFilterQuery

Functions

View Source
var ErrArtifactNotFound = errors.New("artifact by id not found")
View Source
var ErrDataSetNotFound = errors.New("dataset by id not found")
View Source
var ErrDocArtifactNotFound = errors.New("doc artifact by id not found")
View Source
var ErrExperimentNotFound = errors.New("experiment by id not found")
View Source
var ErrExperimentRunNotFound = errors.New("experiment run by id not found")
View Source
var ErrInferenceServiceNotFound = errors.New("inference service by id not found")
View Source
var ErrMetricHistoryNotFound = errors.New("metric history by id not found")
View Source
var ErrMetricNotFound = errors.New("metric by id not found")
View Source
var ErrModelArtifactNotFound = errors.New("model artifact by id not found")
View Source
var ErrModelVersionNotFound = errors.New("model version by id not found")
View Source
var ErrParameterNotFound = errors.New("parameter by id not found")
View Source
var ErrRegisteredModelNotFound = errors.New("registered model by id not found")
View Source
var ErrServeModelNotFound = errors.New("serve model by id not found")
View Source
var ErrServingEnvironmentNotFound = errors.New("serving environment by id not found")

Functions

func DatastoreSpec

func DatastoreSpec() *datastore.Spec

func NewArtifactRepository

func NewArtifactRepository(db *gorm.DB, artifactTypes datastore.ArtifactTypeMap) models.ArtifactRepository

func NewDataSetRepository

func NewDataSetRepository(db *gorm.DB, typeID int32) models.DataSetRepository

func NewDocArtifactRepository

func NewDocArtifactRepository(db *gorm.DB, typeID int32) models.DocArtifactRepository

func NewExperimentRepository

func NewExperimentRepository(db *gorm.DB, typeID int32) models.ExperimentRepository

func NewExperimentRunRepository

func NewExperimentRunRepository(db *gorm.DB, typeID int32) models.ExperimentRunRepository

func NewInferenceServiceRepository

func NewInferenceServiceRepository(db *gorm.DB, typeID int32) models.InferenceServiceRepository

func NewMetricHistoryRepository

func NewMetricHistoryRepository(db *gorm.DB, typeID int32) models.MetricHistoryRepository

func NewMetricRepository

func NewMetricRepository(db *gorm.DB, typeID int32) models.MetricRepository

func NewModelArtifactRepository

func NewModelArtifactRepository(db *gorm.DB, typeID int32) models.ModelArtifactRepository

func NewModelVersionRepository

func NewModelVersionRepository(db *gorm.DB, typeID int32) models.ModelVersionRepository

func NewParameterRepository

func NewParameterRepository(db *gorm.DB, typeID int32) models.ParameterRepository

func NewRegisteredModelRepository

func NewRegisteredModelRepository(db *gorm.DB, typeID int32) models.RegisteredModelRepository

func NewServeModelRepository

func NewServeModelRepository(db *gorm.DB, typeID int32) models.ServeModelRepository

func NewServingEnvironmentRepository

func NewServingEnvironmentRepository(db *gorm.DB, typeID int32) models.ServingEnvironmentRepository

func NewTypePropertyRepository

func NewTypePropertyRepository(db *gorm.DB) models.TypePropertyRepository

func NewTypeRepository

func NewTypeRepository(db *gorm.DB) models.TypeRepository

Types

type ArtifactRepositoryImpl

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

func (*ArtifactRepositoryImpl) GetByID

func (r *ArtifactRepositoryImpl) GetByID(id int32) (models.Artifact, error)

func (*ArtifactRepositoryImpl) List

type BaseListOptions

type BaseListOptions = repository.BaseListOptions

Interfaces

type DataSetRepositoryImpl

func (*DataSetRepositoryImpl) List

List adapts the generic repository List method to match the interface contract

type EntityToPropertiesMapper

type EntityToPropertiesMapper[TEntity any, TProp PropertyEntity] = repository.EntityToPropertiesMapper[TEntity, TProp]

type EntityToSchemaMapper

type EntityToSchemaMapper[TEntity any, TSchema SchemaEntity] = repository.EntityToSchemaMapper[TEntity, TSchema]

Mapper function types

type ExperimentRepositoryImpl

func (*ExperimentRepositoryImpl) List

func (*ExperimentRepositoryImpl) Save

type ExperimentRunRepositoryImpl

func (*ExperimentRunRepositoryImpl) List

func (*ExperimentRunRepositoryImpl) Save

func (r *ExperimentRunRepositoryImpl) Save(experimentRun models.ExperimentRun, experimentID *int32) (models.ExperimentRun, error)

type FilterApplier

type FilterApplier = repository.FilterApplier

type GenericRepository

type GenericRepository[TEntity any, TSchema SchemaEntity, TProp PropertyEntity, TListOpts BaseListOptions] = repository.GenericRepository[TEntity, TSchema, TProp, TListOpts]

func NewGenericRepository

func NewGenericRepository[TEntity any, TSchema SchemaEntity, TProp PropertyEntity, TListOpts BaseListOptions](
	config GenericRepositoryConfig[TEntity, TSchema, TProp, TListOpts],
) *GenericRepository[TEntity, TSchema, TProp, TListOpts]

NewGenericRepository creates a GenericRepository, injecting the default MR entity mapping functions when EntityMappingFuncs is not set in the config.

type GenericRepositoryConfig

type GenericRepositoryConfig[TEntity any, TSchema SchemaEntity, TProp PropertyEntity, TListOpts BaseListOptions] = repository.GenericRepositoryConfig[TEntity, TSchema, TProp, TListOpts]

Generic repository types

type InferenceServiceRepositoryImpl

func (*InferenceServiceRepositoryImpl) List

func (*InferenceServiceRepositoryImpl) Save

type MetricRepositoryImpl

func (*MetricRepositoryImpl) List

List adapts the generic repository List method to match the interface contract

type ModelArtifactRepositoryImpl

func (*ModelArtifactRepositoryImpl) List

List adapts the generic repository List method to match the interface contract

type ModelVersionRepositoryImpl

func (*ModelVersionRepositoryImpl) List

func (*ModelVersionRepositoryImpl) Save

type ParameterRepositoryImpl

func (*ParameterRepositoryImpl) List

List adapts the generic repository List method to match the interface contract

type PropertyEntity

type PropertyEntity = repository.PropertyEntity

type RegisteredModelRepositoryImpl

func (*RegisteredModelRepositoryImpl) List

func (*RegisteredModelRepositoryImpl) Save

type SchemaEntity

type SchemaEntity = repository.SchemaEntity

Generic constraints

type SchemaToEntityMapper

type SchemaToEntityMapper[TSchema SchemaEntity, TProp PropertyEntity, TEntity any] = repository.SchemaToEntityMapper[TSchema, TProp, TEntity]

type ServeModelRepositoryImpl

func (*ServeModelRepositoryImpl) List

func (*ServeModelRepositoryImpl) Save

func (r *ServeModelRepositoryImpl) Save(serveModel models.ServeModel, inferenceServiceID *int32) (models.ServeModel, error)

type TypeRepositoryImpl

type TypeRepositoryImpl = repository.TypeRepositoryImpl

Jump to

Keyboard shortcuts

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