Documentation
¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterModelsInternalServiceServer(s grpc.ServiceRegistrar, srv ModelsInternalServiceServer)
- func RegisterModelsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterModelsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ModelsServiceClient) error
- func RegisterModelsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterModelsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ModelsServiceServer) error
- func RegisterModelsServiceServer(s grpc.ServiceRegistrar, srv ModelsServiceServer)
- type BaseModel
- func (*BaseModel) Descriptor() ([]byte, []int)deprecated
- func (x *BaseModel) GetCreated() int64
- func (x *BaseModel) GetId() string
- func (x *BaseModel) GetObject() string
- func (*BaseModel) ProtoMessage()
- func (x *BaseModel) ProtoReflect() protoreflect.Message
- func (x *BaseModel) Reset()
- func (x *BaseModel) String() string
- type CreateBaseModelRequest
- func (*CreateBaseModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBaseModelRequest) GetGgufModelPath() string
- func (x *CreateBaseModelRequest) GetId() string
- func (x *CreateBaseModelRequest) GetPath() string
- func (*CreateBaseModelRequest) ProtoMessage()
- func (x *CreateBaseModelRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBaseModelRequest) Reset()
- func (x *CreateBaseModelRequest) String() string
- type DeleteModelRequest
- type DeleteModelResponse
- func (*DeleteModelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteModelResponse) GetDeleted() bool
- func (x *DeleteModelResponse) GetId() string
- func (x *DeleteModelResponse) GetObject() string
- func (*DeleteModelResponse) ProtoMessage()
- func (x *DeleteModelResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteModelResponse) Reset()
- func (x *DeleteModelResponse) String() string
- type GetBaseModelPathRequest
- func (*GetBaseModelPathRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBaseModelPathRequest) GetId() string
- func (*GetBaseModelPathRequest) ProtoMessage()
- func (x *GetBaseModelPathRequest) ProtoReflect() protoreflect.Message
- func (x *GetBaseModelPathRequest) Reset()
- func (x *GetBaseModelPathRequest) String() string
- type GetBaseModelPathResponse
- func (*GetBaseModelPathResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBaseModelPathResponse) GetGgufModelPath() string
- func (x *GetBaseModelPathResponse) GetPath() string
- func (*GetBaseModelPathResponse) ProtoMessage()
- func (x *GetBaseModelPathResponse) ProtoReflect() protoreflect.Message
- func (x *GetBaseModelPathResponse) Reset()
- func (x *GetBaseModelPathResponse) String() string
- type GetModelPathRequest
- func (*GetModelPathRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetModelPathRequest) GetId() string
- func (x *GetModelPathRequest) GetTenantId() string
- func (*GetModelPathRequest) ProtoMessage()
- func (x *GetModelPathRequest) ProtoReflect() protoreflect.Message
- func (x *GetModelPathRequest) Reset()
- func (x *GetModelPathRequest) String() string
- type GetModelPathResponse
- func (*GetModelPathResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetModelPathResponse) GetPath() string
- func (*GetModelPathResponse) ProtoMessage()
- func (x *GetModelPathResponse) ProtoReflect() protoreflect.Message
- func (x *GetModelPathResponse) Reset()
- func (x *GetModelPathResponse) String() string
- type GetModelRequest
- type ListBaseModelsRequest
- type ListBaseModelsResponse
- func (*ListBaseModelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBaseModelsResponse) GetData() []*BaseModel
- func (x *ListBaseModelsResponse) GetObject() string
- func (*ListBaseModelsResponse) ProtoMessage()
- func (x *ListBaseModelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListBaseModelsResponse) Reset()
- func (x *ListBaseModelsResponse) String() string
- type ListModelsRequest
- type ListModelsResponse
- func (*ListModelsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListModelsResponse) GetData() []*Model
- func (x *ListModelsResponse) GetObject() string
- func (*ListModelsResponse) ProtoMessage()
- func (x *ListModelsResponse) ProtoReflect() protoreflect.Message
- func (x *ListModelsResponse) Reset()
- func (x *ListModelsResponse) String() string
- type Model
- func (*Model) Descriptor() ([]byte, []int)deprecated
- func (x *Model) GetCreated() int64
- func (x *Model) GetId() string
- func (x *Model) GetObject() string
- func (x *Model) GetOwnedBy() string
- func (*Model) ProtoMessage()
- func (x *Model) ProtoReflect() protoreflect.Message
- func (x *Model) Reset()
- func (x *Model) String() string
- type ModelsInternalServiceClient
- type ModelsInternalServiceServer
- type ModelsServiceClient
- type ModelsServiceServer
- type PublishModelRequest
- func (*PublishModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PublishModelRequest) GetId() string
- func (x *PublishModelRequest) GetTenantId() string
- func (*PublishModelRequest) ProtoMessage()
- func (x *PublishModelRequest) ProtoReflect() protoreflect.Message
- func (x *PublishModelRequest) Reset()
- func (x *PublishModelRequest) String() string
- type PublishModelResponse
- type RegisterModelRequest
- func (*RegisterModelRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterModelRequest) GetBaseModel() string
- func (x *RegisterModelRequest) GetSuffix() string
- func (x *RegisterModelRequest) GetTenantId() string
- func (*RegisterModelRequest) ProtoMessage()
- func (x *RegisterModelRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterModelRequest) Reset()
- func (x *RegisterModelRequest) String() string
- type RegisterModelResponse
- func (*RegisterModelResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterModelResponse) GetId() string
- func (x *RegisterModelResponse) GetPath() string
- func (*RegisterModelResponse) ProtoMessage()
- func (x *RegisterModelResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterModelResponse) Reset()
- func (x *RegisterModelResponse) String() string
- type UnimplementedModelsInternalServiceServer
- func (UnimplementedModelsInternalServiceServer) CreateBaseModel(context.Context, *CreateBaseModelRequest) (*BaseModel, error)
- func (UnimplementedModelsInternalServiceServer) GetBaseModelPath(context.Context, *GetBaseModelPathRequest) (*GetBaseModelPathResponse, error)
- func (UnimplementedModelsInternalServiceServer) GetModelPath(context.Context, *GetModelPathRequest) (*GetModelPathResponse, error)
- func (UnimplementedModelsInternalServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
- func (UnimplementedModelsInternalServiceServer) PublishModel(context.Context, *PublishModelRequest) (*PublishModelResponse, error)
- func (UnimplementedModelsInternalServiceServer) RegisterModel(context.Context, *RegisterModelRequest) (*RegisterModelResponse, error)
- type UnimplementedModelsServiceServer
- func (UnimplementedModelsServiceServer) DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
- func (UnimplementedModelsServiceServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
- func (UnimplementedModelsServiceServer) ListBaseModels(context.Context, *ListBaseModelsRequest) (*ListBaseModelsResponse, error)
- func (UnimplementedModelsServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
- type UnsafeModelsInternalServiceServer
- type UnsafeModelsServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_api_v1_model_manager_service_proto protoreflect.FileDescriptor
var ModelsInternalService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "llmoperator.models.server.v1.ModelsInternalService", HandlerType: (*ModelsInternalServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListModels", Handler: _ModelsInternalService_ListModels_Handler, }, { MethodName: "RegisterModel", Handler: _ModelsInternalService_RegisterModel_Handler, }, { MethodName: "PublishModel", Handler: _ModelsInternalService_PublishModel_Handler, }, { MethodName: "GetModelPath", Handler: _ModelsInternalService_GetModelPath_Handler, }, { MethodName: "CreateBaseModel", Handler: _ModelsInternalService_CreateBaseModel_Handler, }, { MethodName: "GetBaseModelPath", Handler: _ModelsInternalService_GetBaseModelPath_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/model_manager_service.proto", }
ModelsInternalService_ServiceDesc is the grpc.ServiceDesc for ModelsInternalService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ModelsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "llmoperator.models.server.v1.ModelsService", HandlerType: (*ModelsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListModels", Handler: _ModelsService_ListModels_Handler, }, { MethodName: "GetModel", Handler: _ModelsService_GetModel_Handler, }, { MethodName: "DeleteModel", Handler: _ModelsService_DeleteModel_Handler, }, { MethodName: "ListBaseModels", Handler: _ModelsService_ListBaseModels_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/model_manager_service.proto", }
ModelsService_ServiceDesc is the grpc.ServiceDesc for ModelsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterModelsInternalServiceServer ¶
func RegisterModelsInternalServiceServer(s grpc.ServiceRegistrar, srv ModelsInternalServiceServer)
func RegisterModelsServiceHandler ¶
func RegisterModelsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterModelsServiceHandler registers the http handlers for service ModelsService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterModelsServiceHandlerClient ¶
func RegisterModelsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ModelsServiceClient) error
RegisterModelsServiceHandlerClient registers the http handlers for service ModelsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ModelsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ModelsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ModelsServiceClient" to call the correct interceptors.
func RegisterModelsServiceHandlerFromEndpoint ¶
func RegisterModelsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterModelsServiceHandlerFromEndpoint is same as RegisterModelsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterModelsServiceHandlerServer ¶
func RegisterModelsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ModelsServiceServer) error
RegisterModelsServiceHandlerServer registers the http handlers for service ModelsService to "mux". UnaryRPC :call ModelsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterModelsServiceHandlerFromEndpoint instead.
func RegisterModelsServiceServer ¶
func RegisterModelsServiceServer(s grpc.ServiceRegistrar, srv ModelsServiceServer)
Types ¶
type BaseModel ¶ added in v0.5.0
type BaseModel struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Created int64 `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
Object string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
// contains filtered or unexported fields
}
func (*BaseModel) Descriptor
deprecated
added in
v0.5.0
func (*BaseModel) GetCreated ¶ added in v0.5.0
func (*BaseModel) ProtoMessage ¶ added in v0.5.0
func (*BaseModel) ProtoMessage()
func (*BaseModel) ProtoReflect ¶ added in v0.5.0
func (x *BaseModel) ProtoReflect() protoreflect.Message
type CreateBaseModelRequest ¶ added in v0.15.0
type CreateBaseModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
GgufModelPath string `protobuf:"bytes,3,opt,name=gguf_model_path,json=ggufModelPath,proto3" json:"gguf_model_path,omitempty"`
// contains filtered or unexported fields
}
func (*CreateBaseModelRequest) Descriptor
deprecated
added in
v0.15.0
func (*CreateBaseModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBaseModelRequest.ProtoReflect.Descriptor instead.
func (*CreateBaseModelRequest) GetGgufModelPath ¶ added in v0.25.0
func (x *CreateBaseModelRequest) GetGgufModelPath() string
func (*CreateBaseModelRequest) GetId ¶ added in v0.15.0
func (x *CreateBaseModelRequest) GetId() string
func (*CreateBaseModelRequest) GetPath ¶ added in v0.15.0
func (x *CreateBaseModelRequest) GetPath() string
func (*CreateBaseModelRequest) ProtoMessage ¶ added in v0.15.0
func (*CreateBaseModelRequest) ProtoMessage()
func (*CreateBaseModelRequest) ProtoReflect ¶ added in v0.15.0
func (x *CreateBaseModelRequest) ProtoReflect() protoreflect.Message
func (*CreateBaseModelRequest) Reset ¶ added in v0.15.0
func (x *CreateBaseModelRequest) Reset()
func (*CreateBaseModelRequest) String ¶ added in v0.15.0
func (x *CreateBaseModelRequest) String() string
type DeleteModelRequest ¶
type DeleteModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteModelRequest) Descriptor
deprecated
func (*DeleteModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModelRequest.ProtoReflect.Descriptor instead.
func (*DeleteModelRequest) GetId ¶
func (x *DeleteModelRequest) GetId() string
func (*DeleteModelRequest) ProtoMessage ¶
func (*DeleteModelRequest) ProtoMessage()
func (*DeleteModelRequest) ProtoReflect ¶
func (x *DeleteModelRequest) ProtoReflect() protoreflect.Message
func (*DeleteModelRequest) Reset ¶
func (x *DeleteModelRequest) Reset()
func (*DeleteModelRequest) String ¶
func (x *DeleteModelRequest) String() string
type DeleteModelResponse ¶
type DeleteModelResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"`
Deleted bool `protobuf:"varint,3,opt,name=deleted,proto3" json:"deleted,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteModelResponse) Descriptor
deprecated
func (*DeleteModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteModelResponse.ProtoReflect.Descriptor instead.
func (*DeleteModelResponse) GetDeleted ¶
func (x *DeleteModelResponse) GetDeleted() bool
func (*DeleteModelResponse) GetId ¶
func (x *DeleteModelResponse) GetId() string
func (*DeleteModelResponse) GetObject ¶
func (x *DeleteModelResponse) GetObject() string
func (*DeleteModelResponse) ProtoMessage ¶
func (*DeleteModelResponse) ProtoMessage()
func (*DeleteModelResponse) ProtoReflect ¶
func (x *DeleteModelResponse) ProtoReflect() protoreflect.Message
func (*DeleteModelResponse) Reset ¶
func (x *DeleteModelResponse) Reset()
func (*DeleteModelResponse) String ¶
func (x *DeleteModelResponse) String() string
type GetBaseModelPathRequest ¶ added in v0.4.0
type GetBaseModelPathRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetBaseModelPathRequest) Descriptor
deprecated
added in
v0.4.0
func (*GetBaseModelPathRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBaseModelPathRequest.ProtoReflect.Descriptor instead.
func (*GetBaseModelPathRequest) GetId ¶ added in v0.4.0
func (x *GetBaseModelPathRequest) GetId() string
func (*GetBaseModelPathRequest) ProtoMessage ¶ added in v0.4.0
func (*GetBaseModelPathRequest) ProtoMessage()
func (*GetBaseModelPathRequest) ProtoReflect ¶ added in v0.4.0
func (x *GetBaseModelPathRequest) ProtoReflect() protoreflect.Message
func (*GetBaseModelPathRequest) Reset ¶ added in v0.4.0
func (x *GetBaseModelPathRequest) Reset()
func (*GetBaseModelPathRequest) String ¶ added in v0.4.0
func (x *GetBaseModelPathRequest) String() string
type GetBaseModelPathResponse ¶ added in v0.4.0
type GetBaseModelPathResponse struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
GgufModelPath string `protobuf:"bytes,2,opt,name=gguf_model_path,json=ggufModelPath,proto3" json:"gguf_model_path,omitempty"`
// contains filtered or unexported fields
}
func (*GetBaseModelPathResponse) Descriptor
deprecated
added in
v0.4.0
func (*GetBaseModelPathResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBaseModelPathResponse.ProtoReflect.Descriptor instead.
func (*GetBaseModelPathResponse) GetGgufModelPath ¶ added in v0.25.0
func (x *GetBaseModelPathResponse) GetGgufModelPath() string
func (*GetBaseModelPathResponse) GetPath ¶ added in v0.4.0
func (x *GetBaseModelPathResponse) GetPath() string
func (*GetBaseModelPathResponse) ProtoMessage ¶ added in v0.4.0
func (*GetBaseModelPathResponse) ProtoMessage()
func (*GetBaseModelPathResponse) ProtoReflect ¶ added in v0.4.0
func (x *GetBaseModelPathResponse) ProtoReflect() protoreflect.Message
func (*GetBaseModelPathResponse) Reset ¶ added in v0.4.0
func (x *GetBaseModelPathResponse) Reset()
func (*GetBaseModelPathResponse) String ¶ added in v0.4.0
func (x *GetBaseModelPathResponse) String() string
type GetModelPathRequest ¶ added in v0.3.0
type GetModelPathRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetModelPathRequest) Descriptor
deprecated
added in
v0.3.0
func (*GetModelPathRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModelPathRequest.ProtoReflect.Descriptor instead.
func (*GetModelPathRequest) GetId ¶ added in v0.3.0
func (x *GetModelPathRequest) GetId() string
func (*GetModelPathRequest) GetTenantId ¶ added in v0.3.0
func (x *GetModelPathRequest) GetTenantId() string
func (*GetModelPathRequest) ProtoMessage ¶ added in v0.3.0
func (*GetModelPathRequest) ProtoMessage()
func (*GetModelPathRequest) ProtoReflect ¶ added in v0.3.0
func (x *GetModelPathRequest) ProtoReflect() protoreflect.Message
func (*GetModelPathRequest) Reset ¶ added in v0.3.0
func (x *GetModelPathRequest) Reset()
func (*GetModelPathRequest) String ¶ added in v0.3.0
func (x *GetModelPathRequest) String() string
type GetModelPathResponse ¶ added in v0.3.0
type GetModelPathResponse struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*GetModelPathResponse) Descriptor
deprecated
added in
v0.3.0
func (*GetModelPathResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetModelPathResponse.ProtoReflect.Descriptor instead.
func (*GetModelPathResponse) GetPath ¶ added in v0.3.0
func (x *GetModelPathResponse) GetPath() string
func (*GetModelPathResponse) ProtoMessage ¶ added in v0.3.0
func (*GetModelPathResponse) ProtoMessage()
func (*GetModelPathResponse) ProtoReflect ¶ added in v0.3.0
func (x *GetModelPathResponse) ProtoReflect() protoreflect.Message
func (*GetModelPathResponse) Reset ¶ added in v0.3.0
func (x *GetModelPathResponse) Reset()
func (*GetModelPathResponse) String ¶ added in v0.3.0
func (x *GetModelPathResponse) String() string
type GetModelRequest ¶
type GetModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetModelRequest) Descriptor
deprecated
func (*GetModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetModelRequest.ProtoReflect.Descriptor instead.
func (*GetModelRequest) GetId ¶
func (x *GetModelRequest) GetId() string
func (*GetModelRequest) ProtoMessage ¶
func (*GetModelRequest) ProtoMessage()
func (*GetModelRequest) ProtoReflect ¶
func (x *GetModelRequest) ProtoReflect() protoreflect.Message
func (*GetModelRequest) Reset ¶
func (x *GetModelRequest) Reset()
func (*GetModelRequest) String ¶
func (x *GetModelRequest) String() string
type ListBaseModelsRequest ¶ added in v0.5.0
type ListBaseModelsRequest struct {
// contains filtered or unexported fields
}
func (*ListBaseModelsRequest) Descriptor
deprecated
added in
v0.5.0
func (*ListBaseModelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBaseModelsRequest.ProtoReflect.Descriptor instead.
func (*ListBaseModelsRequest) ProtoMessage ¶ added in v0.5.0
func (*ListBaseModelsRequest) ProtoMessage()
func (*ListBaseModelsRequest) ProtoReflect ¶ added in v0.5.0
func (x *ListBaseModelsRequest) ProtoReflect() protoreflect.Message
func (*ListBaseModelsRequest) Reset ¶ added in v0.5.0
func (x *ListBaseModelsRequest) Reset()
func (*ListBaseModelsRequest) String ¶ added in v0.5.0
func (x *ListBaseModelsRequest) String() string
type ListBaseModelsResponse ¶ added in v0.5.0
type ListBaseModelsResponse struct {
Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
Data []*BaseModel `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*ListBaseModelsResponse) Descriptor
deprecated
added in
v0.5.0
func (*ListBaseModelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBaseModelsResponse.ProtoReflect.Descriptor instead.
func (*ListBaseModelsResponse) GetData ¶ added in v0.5.0
func (x *ListBaseModelsResponse) GetData() []*BaseModel
func (*ListBaseModelsResponse) GetObject ¶ added in v0.5.0
func (x *ListBaseModelsResponse) GetObject() string
func (*ListBaseModelsResponse) ProtoMessage ¶ added in v0.5.0
func (*ListBaseModelsResponse) ProtoMessage()
func (*ListBaseModelsResponse) ProtoReflect ¶ added in v0.5.0
func (x *ListBaseModelsResponse) ProtoReflect() protoreflect.Message
func (*ListBaseModelsResponse) Reset ¶ added in v0.5.0
func (x *ListBaseModelsResponse) Reset()
func (*ListBaseModelsResponse) String ¶ added in v0.5.0
func (x *ListBaseModelsResponse) String() string
type ListModelsRequest ¶
type ListModelsRequest struct {
// contains filtered or unexported fields
}
func (*ListModelsRequest) Descriptor
deprecated
func (*ListModelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.
func (*ListModelsRequest) ProtoMessage ¶
func (*ListModelsRequest) ProtoMessage()
func (*ListModelsRequest) ProtoReflect ¶
func (x *ListModelsRequest) ProtoReflect() protoreflect.Message
func (*ListModelsRequest) Reset ¶
func (x *ListModelsRequest) Reset()
func (*ListModelsRequest) String ¶
func (x *ListModelsRequest) String() string
type ListModelsResponse ¶
type ListModelsResponse struct {
Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"`
Data []*Model `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*ListModelsResponse) Descriptor
deprecated
func (*ListModelsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.
func (*ListModelsResponse) GetData ¶
func (x *ListModelsResponse) GetData() []*Model
func (*ListModelsResponse) GetObject ¶
func (x *ListModelsResponse) GetObject() string
func (*ListModelsResponse) ProtoMessage ¶
func (*ListModelsResponse) ProtoMessage()
func (*ListModelsResponse) ProtoReflect ¶
func (x *ListModelsResponse) ProtoReflect() protoreflect.Message
func (*ListModelsResponse) Reset ¶
func (x *ListModelsResponse) Reset()
func (*ListModelsResponse) String ¶
func (x *ListModelsResponse) String() string
type Model ¶
type Model struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Created int64 `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"`
Object string `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
OwnedBy string `protobuf:"bytes,4,opt,name=owned_by,json=ownedBy,proto3" json:"owned_by,omitempty"`
// contains filtered or unexported fields
}
func (*Model) Descriptor
deprecated
func (*Model) GetCreated ¶
func (*Model) GetOwnedBy ¶
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type ModelsInternalServiceClient ¶
type ModelsInternalServiceClient interface {
ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
RegisterModel(ctx context.Context, in *RegisterModelRequest, opts ...grpc.CallOption) (*RegisterModelResponse, error)
PublishModel(ctx context.Context, in *PublishModelRequest, opts ...grpc.CallOption) (*PublishModelResponse, error)
GetModelPath(ctx context.Context, in *GetModelPathRequest, opts ...grpc.CallOption) (*GetModelPathResponse, error)
CreateBaseModel(ctx context.Context, in *CreateBaseModelRequest, opts ...grpc.CallOption) (*BaseModel, error)
GetBaseModelPath(ctx context.Context, in *GetBaseModelPathRequest, opts ...grpc.CallOption) (*GetBaseModelPathResponse, error)
}
ModelsInternalServiceClient is the client API for ModelsInternalService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewModelsInternalServiceClient ¶
func NewModelsInternalServiceClient(cc grpc.ClientConnInterface) ModelsInternalServiceClient
type ModelsInternalServiceServer ¶
type ModelsInternalServiceServer interface {
ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
RegisterModel(context.Context, *RegisterModelRequest) (*RegisterModelResponse, error)
PublishModel(context.Context, *PublishModelRequest) (*PublishModelResponse, error)
GetModelPath(context.Context, *GetModelPathRequest) (*GetModelPathResponse, error)
CreateBaseModel(context.Context, *CreateBaseModelRequest) (*BaseModel, error)
GetBaseModelPath(context.Context, *GetBaseModelPathRequest) (*GetBaseModelPathResponse, error)
// contains filtered or unexported methods
}
ModelsInternalServiceServer is the server API for ModelsInternalService service. All implementations must embed UnimplementedModelsInternalServiceServer for forward compatibility
type ModelsServiceClient ¶
type ModelsServiceClient interface {
ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error)
DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*DeleteModelResponse, error)
// The following API endpoints are not part of the OpenAPI API specification.
ListBaseModels(ctx context.Context, in *ListBaseModelsRequest, opts ...grpc.CallOption) (*ListBaseModelsResponse, error)
}
ModelsServiceClient is the client API for ModelsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewModelsServiceClient ¶
func NewModelsServiceClient(cc grpc.ClientConnInterface) ModelsServiceClient
type ModelsServiceServer ¶
type ModelsServiceServer interface {
ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
GetModel(context.Context, *GetModelRequest) (*Model, error)
DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
// The following API endpoints are not part of the OpenAPI API specification.
ListBaseModels(context.Context, *ListBaseModelsRequest) (*ListBaseModelsResponse, error)
// contains filtered or unexported methods
}
ModelsServiceServer is the server API for ModelsService service. All implementations must embed UnimplementedModelsServiceServer for forward compatibility
type PublishModelRequest ¶ added in v0.2.0
type PublishModelRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
TenantId string `protobuf:"bytes,2,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
// contains filtered or unexported fields
}
func (*PublishModelRequest) Descriptor
deprecated
added in
v0.2.0
func (*PublishModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use PublishModelRequest.ProtoReflect.Descriptor instead.
func (*PublishModelRequest) GetId ¶ added in v0.2.0
func (x *PublishModelRequest) GetId() string
func (*PublishModelRequest) GetTenantId ¶ added in v0.2.0
func (x *PublishModelRequest) GetTenantId() string
func (*PublishModelRequest) ProtoMessage ¶ added in v0.2.0
func (*PublishModelRequest) ProtoMessage()
func (*PublishModelRequest) ProtoReflect ¶ added in v0.2.0
func (x *PublishModelRequest) ProtoReflect() protoreflect.Message
func (*PublishModelRequest) Reset ¶ added in v0.2.0
func (x *PublishModelRequest) Reset()
func (*PublishModelRequest) String ¶ added in v0.2.0
func (x *PublishModelRequest) String() string
type PublishModelResponse ¶ added in v0.2.0
type PublishModelResponse struct {
// contains filtered or unexported fields
}
func (*PublishModelResponse) Descriptor
deprecated
added in
v0.2.0
func (*PublishModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishModelResponse.ProtoReflect.Descriptor instead.
func (*PublishModelResponse) ProtoMessage ¶ added in v0.2.0
func (*PublishModelResponse) ProtoMessage()
func (*PublishModelResponse) ProtoReflect ¶ added in v0.2.0
func (x *PublishModelResponse) ProtoReflect() protoreflect.Message
func (*PublishModelResponse) Reset ¶ added in v0.2.0
func (x *PublishModelResponse) Reset()
func (*PublishModelResponse) String ¶ added in v0.2.0
func (x *PublishModelResponse) String() string
type RegisterModelRequest ¶ added in v0.2.0
type RegisterModelRequest struct {
BaseModel string `protobuf:"bytes,1,opt,name=base_model,json=baseModel,proto3" json:"base_model,omitempty"`
Suffix string `protobuf:"bytes,2,opt,name=suffix,proto3" json:"suffix,omitempty"`
TenantId string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterModelRequest) Descriptor
deprecated
added in
v0.2.0
func (*RegisterModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterModelRequest.ProtoReflect.Descriptor instead.
func (*RegisterModelRequest) GetBaseModel ¶ added in v0.2.0
func (x *RegisterModelRequest) GetBaseModel() string
func (*RegisterModelRequest) GetSuffix ¶ added in v0.2.0
func (x *RegisterModelRequest) GetSuffix() string
func (*RegisterModelRequest) GetTenantId ¶ added in v0.2.0
func (x *RegisterModelRequest) GetTenantId() string
func (*RegisterModelRequest) ProtoMessage ¶ added in v0.2.0
func (*RegisterModelRequest) ProtoMessage()
func (*RegisterModelRequest) ProtoReflect ¶ added in v0.2.0
func (x *RegisterModelRequest) ProtoReflect() protoreflect.Message
func (*RegisterModelRequest) Reset ¶ added in v0.2.0
func (x *RegisterModelRequest) Reset()
func (*RegisterModelRequest) String ¶ added in v0.2.0
func (x *RegisterModelRequest) String() string
type RegisterModelResponse ¶ added in v0.2.0
type RegisterModelResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// path is the path where the model is stored.
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterModelResponse) Descriptor
deprecated
added in
v0.2.0
func (*RegisterModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterModelResponse.ProtoReflect.Descriptor instead.
func (*RegisterModelResponse) GetId ¶ added in v0.2.0
func (x *RegisterModelResponse) GetId() string
func (*RegisterModelResponse) GetPath ¶ added in v0.2.0
func (x *RegisterModelResponse) GetPath() string
func (*RegisterModelResponse) ProtoMessage ¶ added in v0.2.0
func (*RegisterModelResponse) ProtoMessage()
func (*RegisterModelResponse) ProtoReflect ¶ added in v0.2.0
func (x *RegisterModelResponse) ProtoReflect() protoreflect.Message
func (*RegisterModelResponse) Reset ¶ added in v0.2.0
func (x *RegisterModelResponse) Reset()
func (*RegisterModelResponse) String ¶ added in v0.2.0
func (x *RegisterModelResponse) String() string
type UnimplementedModelsInternalServiceServer ¶
type UnimplementedModelsInternalServiceServer struct {
}
UnimplementedModelsInternalServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedModelsInternalServiceServer) CreateBaseModel ¶ added in v0.15.0
func (UnimplementedModelsInternalServiceServer) CreateBaseModel(context.Context, *CreateBaseModelRequest) (*BaseModel, error)
func (UnimplementedModelsInternalServiceServer) GetBaseModelPath ¶ added in v0.4.0
func (UnimplementedModelsInternalServiceServer) GetBaseModelPath(context.Context, *GetBaseModelPathRequest) (*GetBaseModelPathResponse, error)
func (UnimplementedModelsInternalServiceServer) GetModelPath ¶ added in v0.3.0
func (UnimplementedModelsInternalServiceServer) GetModelPath(context.Context, *GetModelPathRequest) (*GetModelPathResponse, error)
func (UnimplementedModelsInternalServiceServer) ListModels ¶ added in v0.36.0
func (UnimplementedModelsInternalServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
func (UnimplementedModelsInternalServiceServer) PublishModel ¶ added in v0.2.0
func (UnimplementedModelsInternalServiceServer) PublishModel(context.Context, *PublishModelRequest) (*PublishModelResponse, error)
func (UnimplementedModelsInternalServiceServer) RegisterModel ¶ added in v0.2.0
func (UnimplementedModelsInternalServiceServer) RegisterModel(context.Context, *RegisterModelRequest) (*RegisterModelResponse, error)
type UnimplementedModelsServiceServer ¶
type UnimplementedModelsServiceServer struct {
}
UnimplementedModelsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedModelsServiceServer) DeleteModel ¶
func (UnimplementedModelsServiceServer) DeleteModel(context.Context, *DeleteModelRequest) (*DeleteModelResponse, error)
func (UnimplementedModelsServiceServer) GetModel ¶
func (UnimplementedModelsServiceServer) GetModel(context.Context, *GetModelRequest) (*Model, error)
func (UnimplementedModelsServiceServer) ListBaseModels ¶ added in v0.5.0
func (UnimplementedModelsServiceServer) ListBaseModels(context.Context, *ListBaseModelsRequest) (*ListBaseModelsResponse, error)
func (UnimplementedModelsServiceServer) ListModels ¶
func (UnimplementedModelsServiceServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
type UnsafeModelsInternalServiceServer ¶
type UnsafeModelsInternalServiceServer interface {
// contains filtered or unexported methods
}
UnsafeModelsInternalServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ModelsInternalServiceServer will result in compilation errors.
type UnsafeModelsServiceServer ¶
type UnsafeModelsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeModelsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ModelsServiceServer will result in compilation errors.