services

package
v0.3.2-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModelService

type ModelService interface {
	CreateModel(model *models.Model) (*models.Model, error)
	GetModelByName(namespace string, modelName string) (models.Model, error)
	CreateVersion(version models.Version) (models.Version, error)
	GetModelVersion(modelId uint64, version uint64) (models.Version, error)
	GetModelVersions(modelId uint64) ([]models.Version, error)
	GetModelVersionLatest(modelId uint64) (models.Version, error)
	GetFullModelData(namespace string, modelName string) (*model.Model, error)
	ModelInfer(namespace string, modelName string, version uint64, imgsBytes [][]byte, task model.Model_Task) (interface{}, error)
	CreateModelBinaryFileUpload(namespace string, createdModel *models.Model) (*model.Model, error)
	ListModels(namespace string) ([]*model.Model, error)
	UpdateModelVersion(namespace string, updatedInfo *model.UpdateModelVersionRequest) (*model.ModelVersion, error)
	DeleteModel(namespace string, modelName string) error
	DeleteModelVersion(namespace string, modelName string, version uint64) error
}

Jump to

Keyboard shortcuts

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