Documentation ¶
Index ¶
- type IS
- func (s *IS) CreateBaseModel(ctx context.Context, req *v1.CreateBaseModelRequest) (*v1.BaseModel, error)
- func (s *IS) GetBaseModelPath(ctx context.Context, req *v1.GetBaseModelPathRequest) (*v1.GetBaseModelPathResponse, error)
- func (s *IS) GetModelPath(ctx context.Context, req *v1.GetModelPathRequest) (*v1.GetModelPathResponse, error)
- func (s *IS) ListModels(ctx context.Context, req *v1.ListModelsRequest) (*v1.ListModelsResponse, error)
- func (s *IS) PublishModel(ctx context.Context, req *v1.PublishModelRequest) (*v1.PublishModelResponse, error)
- func (s *IS) RegisterModel(ctx context.Context, req *v1.RegisterModelRequest) (*v1.RegisterModelResponse, error)
- func (s *IS) Run(port int) error
- 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()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IS ¶
type IS struct { v1.UnimplementedModelsInternalServiceServer // contains filtered or unexported fields }
IS is an internal server.
func NewInternal ¶
NewInternal creates an internal server.
func (*IS) CreateBaseModel ¶ added in v0.15.0
func (s *IS) CreateBaseModel( ctx context.Context, req *v1.CreateBaseModelRequest, ) (*v1.BaseModel, error)
CreateBaseModel creates a base model.
func (*IS) GetBaseModelPath ¶ added in v0.4.0
func (s *IS) GetBaseModelPath( ctx context.Context, req *v1.GetBaseModelPathRequest, ) (*v1.GetBaseModelPathResponse, error)
GetBaseModelPath gets a model path.
func (*IS) GetModelPath ¶ added in v0.3.0
func (s *IS) GetModelPath( ctx context.Context, req *v1.GetModelPathRequest, ) (*v1.GetModelPathResponse, error)
GetModelPath gets a model path.
func (*IS) ListModels ¶ added in v0.36.0
func (s *IS) ListModels( ctx context.Context, req *v1.ListModelsRequest, ) (*v1.ListModelsResponse, error)
ListModels lists all models for all tenants.
func (*IS) PublishModel ¶ added in v0.2.0
func (s *IS) PublishModel( ctx context.Context, req *v1.PublishModelRequest, ) (*v1.PublishModelResponse, error)
PublishModel publishes a model.
func (*IS) RegisterModel ¶ added in v0.2.0
func (s *IS) RegisterModel( ctx context.Context, req *v1.RegisterModelRequest, ) (*v1.RegisterModelResponse, error)
RegisterModel registers a model.
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 ¶ added in v0.5.0
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.
Click to show internal directories.
Click to hide internal directories.