Documentation
¶
Index ¶
- type S
- func (s *S) DeleteModel(ctx context.Context, req *v1.DeleteModelRequest) (*v1.DeleteModelResponse, error)
- func (s *S) GetModel(ctx context.Context, req *v1.GetModelRequest) (*v1.Model, error)
- func (s *S) ListBaseModels(ctx context.Context, req *v1.ListBaseModelsRequest) (*v1.ListBaseModelsResponse, error)
- func (s *S) ListModels(ctx context.Context, req *v1.ListModelsRequest) (*v1.ListModelsResponse, error)
- func (s *S) Run(ctx context.Context, port int, authConfig config.AuthConfig, ...) error
- func (s *S) Stop()
- type WS
- func (s *WS) CreateBaseModel(ctx context.Context, req *v1.CreateBaseModelRequest) (*v1.BaseModel, error)
- func (s *WS) CreateStorageConfig(ctx context.Context, req *v1.CreateStorageConfigRequest) (*v1.StorageConfig, error)
- func (s *WS) GetBaseModelPath(ctx context.Context, req *v1.GetBaseModelPathRequest) (*v1.GetBaseModelPathResponse, error)
- func (s *WS) GetModel(ctx context.Context, req *v1.GetModelRequest) (*v1.Model, error)
- func (s *WS) GetModelAttributes(ctx context.Context, req *v1.GetModelAttributesRequest) (*v1.ModelAttributes, error)
- func (s *WS) GetModelPath(ctx context.Context, req *v1.GetModelPathRequest) (*v1.GetModelPathResponse, error)
- func (s *WS) GetStorageConfig(ctx context.Context, req *v1.GetStorageConfigRequest) (*v1.StorageConfig, error)
- func (s *WS) PublishModel(ctx context.Context, req *v1.PublishModelRequest) (*v1.PublishModelResponse, error)
- func (s *WS) RegisterModel(ctx context.Context, req *v1.RegisterModelRequest) (*v1.RegisterModelResponse, error)
- func (ws *WS) Run(ctx context.Context, port int, authConfig config.AuthConfig) error
- func (ws *WS) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S ¶
type S struct {
v1.UnimplementedModelsServiceServer
// contains filtered or unexported fields
}
S is a server.
func (*S) DeleteModel ¶
func (s *S) DeleteModel( ctx context.Context, req *v1.DeleteModelRequest, ) (*v1.DeleteModelResponse, error)
DeleteModel deletes a model.
func (*S) ListBaseModels ¶
func (s *S) ListBaseModels( ctx context.Context, req *v1.ListBaseModelsRequest, ) (*v1.ListBaseModelsResponse, error)
ListBaseModels lists base models.
func (*S) ListModels ¶
func (s *S) ListModels( ctx context.Context, req *v1.ListModelsRequest, ) (*v1.ListModelsResponse, error)
ListModels lists models.
type WS ¶
type WS struct {
v1.UnimplementedModelsWorkerServiceServer
// contains filtered or unexported fields
}
WS is a server for worker services.
func NewWorkerServiceServer ¶
NewWorkerServiceServer creates a new worker service server.
func (*WS) CreateBaseModel ¶
func (s *WS) CreateBaseModel( ctx context.Context, req *v1.CreateBaseModelRequest, ) (*v1.BaseModel, error)
CreateBaseModel creates a base model.
func (*WS) CreateStorageConfig ¶
func (s *WS) CreateStorageConfig( ctx context.Context, req *v1.CreateStorageConfigRequest, ) (*v1.StorageConfig, error)
CreateStorageConfig creates a storage config.
func (*WS) GetBaseModelPath ¶
func (s *WS) GetBaseModelPath( ctx context.Context, req *v1.GetBaseModelPathRequest, ) (*v1.GetBaseModelPathResponse, error)
GetBaseModelPath gets a model path.
func (*WS) GetModelAttributes ¶
func (s *WS) GetModelAttributes( ctx context.Context, req *v1.GetModelAttributesRequest, ) (*v1.ModelAttributes, error)
GetModelAttributes gets the model attributes.
func (*WS) GetModelPath ¶
func (s *WS) GetModelPath( ctx context.Context, req *v1.GetModelPathRequest, ) (*v1.GetModelPathResponse, error)
GetModelPath gets a model path.
func (*WS) GetStorageConfig ¶
func (s *WS) GetStorageConfig( ctx context.Context, req *v1.GetStorageConfigRequest, ) (*v1.StorageConfig, error)
GetStorageConfig gets a storage config.
func (*WS) PublishModel ¶
func (s *WS) PublishModel( ctx context.Context, req *v1.PublishModelRequest, ) (*v1.PublishModelResponse, error)
PublishModel publishes a model.
func (*WS) RegisterModel ¶
func (s *WS) RegisterModel( ctx context.Context, req *v1.RegisterModelRequest, ) (*v1.RegisterModelResponse, error)
RegisterModel registers a model.
Click to show internal directories.
Click to hide internal directories.