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) ([]*modelPB.TaskOutput, error) ModelInferTestMode(owner string, modelInstanceUID uuid.UUID, imgsBytes [][]byte, task modelPB.ModelInstance_Task) ([]*modelPB.TaskOutput, 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) UpdateModelInstance(modelInstanceUID uuid.UUID, instanceInfo datamodel.ModelInstance) error ListModelInstance(modelUID uuid.UUID, view modelPB.View, pageSize int, pageToken string) ([]datamodel.ModelInstance, string, int64, error) DeployModelInstanceAsync(owner string, modelUID uuid.UUID, modelInstanceUID uuid.UUID) (string, error) UndeployModelInstanceAsync(owner string, modelUID uuid.UUID, modelInstanceUID uuid.UUID) (string, 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) GetOperation(workflowId string) (*longrunning.Operation, *worker.ModelInstanceParams, error) ListOperation(pageSize int, pageToken string) ([]*longrunning.Operation, []*worker.ModelInstanceParams, string, int64, error) CancelOperation(workflowId string) error }
func NewService ¶
func NewService(r repository.Repository, t triton.Triton, p pipelinePB.PipelineServiceClient, rc *redis.Client, tc client.Client) Service
Click to show internal directories.
Click to hide internal directories.