Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { CreateModel(owner string, model *datamodel.Model) (*datamodel.Model, error) GetModelById(owner string, modelId string, view modelPB.View) (datamodel.Model, error) GetModelByUid(owner string, modelUid uuid.UUID, view modelPB.View) (datamodel.Model, error) DeleteModel(owner string, modelId string) error RenameModel(owner string, modelId string, newModelId string) (datamodel.Model, error) PublishModel(owner string, modelId string) (datamodel.Model, error) UnpublishModel(owner string, modelId string) (datamodel.Model, error) UpdateModel(modelUid uuid.UUID, model *datamodel.Model) (datamodel.Model, error) ListModel(owner string, view modelPB.View, pageSize int, pageToken string) ([]datamodel.Model, string, int64, error) ModelInfer(modelInstanceUID uuid.UUID, imgsBytes [][]byte, task modelPB.ModelInstance_Task) (interface{}, error) ModelInferTestMode(owner string, modelInstanceUID uuid.UUID, imgsBytes [][]byte, task modelPB.ModelInstance_Task) (interface{}, error) GetModelInstance(modelUid uuid.UUID, instanceId string, view modelPB.View) (datamodel.ModelInstance, error) GetModelInstanceByUid(modelUid uuid.UUID, instanceUid uuid.UUID, view modelPB.View) (datamodel.ModelInstance, error) ListModelInstance(modelUid uuid.UUID, view modelPB.View, pageSize int, pageToken string) ([]datamodel.ModelInstance, string, int64, error) DeployModelInstance(modelInstanceId uuid.UUID) error UndeployModelInstance(modelInstanceId uuid.UUID) error GetModelDefinition(id string) (datamodel.ModelDefinition, error) GetModelDefinitionByUid(uid uuid.UUID) (datamodel.ModelDefinition, error) ListModelDefinition(view modelPB.View, pageSize int, pageToken string) ([]datamodel.ModelDefinition, string, int64, error) GetTritonEnsembleModel(modelInstanceUID uuid.UUID) (datamodel.TritonModel, error) GetTritonModels(modelInstanceUID uuid.UUID) ([]datamodel.TritonModel, error) }
func NewService ¶
func NewService(r repository.Repository, t triton.Triton, rc *redis.Client) Service
Click to show internal directories.
Click to hide internal directories.