Documentation ¶
Index ¶
- Variables
- func AssertArtifactConstraints(obj model.Artifact) error
- func AssertArtifactListConstraints(obj model.ArtifactList) error
- func AssertArtifactListRequired(obj model.ArtifactList) error
- func AssertArtifactRequired(obj model.Artifact) error
- func AssertArtifactStateConstraints(obj model.ArtifactState) error
- func AssertArtifactStateRequired(obj model.ArtifactState) error
- func AssertBaseArtifactConstraints(obj model.BaseArtifact) error
- func AssertBaseArtifactCreateConstraints(obj model.BaseArtifactCreate) error
- func AssertBaseArtifactCreateRequired(obj model.BaseArtifactCreate) error
- func AssertBaseArtifactRequired(obj model.BaseArtifact) error
- func AssertBaseArtifactUpdateConstraints(obj model.BaseArtifactUpdate) error
- func AssertBaseArtifactUpdateRequired(obj model.BaseArtifactUpdate) error
- func AssertBaseExecutionConstraints(obj model.BaseExecution) error
- func AssertBaseExecutionCreateConstraints(obj model.BaseExecutionCreate) error
- func AssertBaseExecutionCreateRequired(obj model.BaseExecutionCreate) error
- func AssertBaseExecutionRequired(obj model.BaseExecution) error
- func AssertBaseExecutionUpdateConstraints(obj model.BaseExecutionUpdate) error
- func AssertBaseExecutionUpdateRequired(obj model.BaseExecutionUpdate) error
- func AssertBaseResourceConstraints(obj model.BaseResource) error
- func AssertBaseResourceCreateConstraints(obj model.BaseResourceCreate) error
- func AssertBaseResourceCreateRequired(obj model.BaseResourceCreate) error
- func AssertBaseResourceListConstraints(obj model.BaseResourceList) error
- func AssertBaseResourceListRequired(obj model.BaseResourceList) error
- func AssertBaseResourceRequired(obj model.BaseResource) error
- func AssertBaseResourceUpdateConstraints(obj model.BaseResourceUpdate) error
- func AssertBaseResourceUpdateRequired(obj model.BaseResourceUpdate) error
- func AssertDocArtifactConstraints(obj model.DocArtifact) error
- func AssertDocArtifactRequired(obj model.DocArtifact) error
- func AssertErrorConstraints(obj model.Error) error
- func AssertErrorRequired(obj model.Error) error
- func AssertExecutionStateConstraints(obj model.ExecutionState) error
- func AssertExecutionStateRequired(obj model.ExecutionState) error
- func AssertInferenceServiceConstraints(obj model.InferenceService) error
- func AssertInferenceServiceCreateConstraints(obj model.InferenceServiceCreate) error
- func AssertInferenceServiceCreateRequired(obj model.InferenceServiceCreate) error
- func AssertInferenceServiceListConstraints(obj model.InferenceServiceList) error
- func AssertInferenceServiceListRequired(obj model.InferenceServiceList) error
- func AssertInferenceServiceRequired(obj model.InferenceService) error
- func AssertInferenceServiceStateConstraints(obj model.InferenceServiceState) error
- func AssertInferenceServiceStateRequired(obj model.InferenceServiceState) error
- func AssertInferenceServiceUpdateConstraints(obj model.InferenceServiceUpdate) error
- func AssertInferenceServiceUpdateRequired(obj model.InferenceServiceUpdate) error
- func AssertMetadataBoolValueConstraints(obj model.MetadataBoolValue) error
- func AssertMetadataBoolValueRequired(obj model.MetadataBoolValue) error
- func AssertMetadataDoubleValueConstraints(obj model.MetadataDoubleValue) error
- func AssertMetadataDoubleValueRequired(obj model.MetadataDoubleValue) error
- func AssertMetadataIntValueConstraints(obj model.MetadataIntValue) error
- func AssertMetadataIntValueRequired(obj model.MetadataIntValue) error
- func AssertMetadataProtoValueConstraints(obj model.MetadataProtoValue) error
- func AssertMetadataProtoValueRequired(obj model.MetadataProtoValue) error
- func AssertMetadataStringValueConstraints(obj model.MetadataStringValue) error
- func AssertMetadataStringValueRequired(obj model.MetadataStringValue) error
- func AssertMetadataStructValueConstraints(obj model.MetadataStructValue) error
- func AssertMetadataStructValueRequired(obj model.MetadataStructValue) error
- func AssertMetadataValueConstraints(obj model.MetadataValue) error
- func AssertMetadataValueRequired(obj model.MetadataValue) error
- func AssertModelArtifactConstraints(obj model.ModelArtifact) error
- func AssertModelArtifactCreateConstraints(obj model.ModelArtifactCreate) error
- func AssertModelArtifactCreateRequired(obj model.ModelArtifactCreate) error
- func AssertModelArtifactListConstraints(obj model.ModelArtifactList) error
- func AssertModelArtifactListRequired(obj model.ModelArtifactList) error
- func AssertModelArtifactRequired(obj model.ModelArtifact) error
- func AssertModelArtifactUpdateConstraints(obj model.ModelArtifactUpdate) error
- func AssertModelArtifactUpdateRequired(obj model.ModelArtifactUpdate) error
- func AssertModelVersionConstraints(obj model.ModelVersion) error
- func AssertModelVersionCreateConstraints(obj model.ModelVersionCreate) error
- func AssertModelVersionCreateRequired(obj model.ModelVersionCreate) error
- func AssertModelVersionListConstraints(obj model.ModelVersionList) error
- func AssertModelVersionListRequired(obj model.ModelVersionList) error
- func AssertModelVersionRequired(obj model.ModelVersion) error
- func AssertModelVersionStateConstraints(obj model.ModelVersionState) error
- func AssertModelVersionStateRequired(obj model.ModelVersionState) error
- func AssertModelVersionUpdateConstraints(obj model.ModelVersionUpdate) error
- func AssertModelVersionUpdateRequired(obj model.ModelVersionUpdate) error
- func AssertOrderByFieldConstraints(obj model.OrderByField) error
- func AssertOrderByFieldRequired(obj model.OrderByField) error
- func AssertRecurseInterfaceRequired[T any](obj interface{}, callback func(T) error) error
- func AssertRecurseValueRequired[T any](value reflect.Value, callback func(T) error) error
- func AssertRegisteredModelConstraints(obj model.RegisteredModel) error
- func AssertRegisteredModelCreateConstraints(obj model.RegisteredModelCreate) error
- func AssertRegisteredModelCreateRequired(obj model.RegisteredModelCreate) error
- func AssertRegisteredModelListConstraints(obj model.RegisteredModelList) error
- func AssertRegisteredModelListRequired(obj model.RegisteredModelList) error
- func AssertRegisteredModelRequired(obj model.RegisteredModel) error
- func AssertRegisteredModelStateConstraints(obj model.RegisteredModelState) error
- func AssertRegisteredModelStateRequired(obj model.RegisteredModelState) error
- func AssertRegisteredModelUpdateConstraints(obj model.RegisteredModelUpdate) error
- func AssertRegisteredModelUpdateRequired(obj model.RegisteredModelUpdate) error
- func AssertServeModelConstraints(obj model.ServeModel) error
- func AssertServeModelCreateConstraints(obj model.ServeModelCreate) error
- func AssertServeModelCreateRequired(obj model.ServeModelCreate) error
- func AssertServeModelListConstraints(obj model.ServeModelList) error
- func AssertServeModelListRequired(obj model.ServeModelList) error
- func AssertServeModelRequired(obj model.ServeModel) error
- func AssertServeModelUpdateConstraints(obj model.ServeModelUpdate) error
- func AssertServeModelUpdateRequired(obj model.ServeModelUpdate) error
- func AssertServingEnvironmentConstraints(obj model.ServingEnvironment) error
- func AssertServingEnvironmentCreateConstraints(obj model.ServingEnvironmentCreate) error
- func AssertServingEnvironmentCreateRequired(obj model.ServingEnvironmentCreate) error
- func AssertServingEnvironmentListConstraints(obj model.ServingEnvironmentList) error
- func AssertServingEnvironmentListRequired(obj model.ServingEnvironmentList) error
- func AssertServingEnvironmentRequired(obj model.ServingEnvironment) error
- func AssertServingEnvironmentUpdateConstraints(obj model.ServingEnvironmentUpdate) error
- func AssertServingEnvironmentUpdateRequired(obj model.ServingEnvironmentUpdate) error
- func AssertSortOrderConstraints(obj model.SortOrder) error
- func AssertSortOrderRequired(obj model.SortOrder) error
- func DefaultErrorHandler(w http.ResponseWriter, r *http.Request, err error, result *ImplResponse)
- func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter)
- func IsZeroValue(val interface{}) bool
- func Logger(inner http.Handler, name string) http.Handler
- func NewRouter(routers ...Router) chi.Router
- func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)
- func ReadFormFilesToTempFiles(r *http.Request, key string) ([]*os.File, error)
- type Constraint
- type ErrorHandler
- type ImplResponse
- type ModelRegistryServiceAPIController
- func (c *ModelRegistryServiceAPIController) CreateEnvironmentInferenceService(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) CreateInferenceService(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) CreateInferenceServiceServe(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) CreateModelArtifact(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) CreateModelVersion(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) CreateModelVersionArtifact(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) CreateRegisteredModel(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) CreateRegisteredModelVersion(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) CreateServingEnvironment(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) FindInferenceService(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) FindModelArtifact(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) FindModelVersion(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) FindRegisteredModel(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) FindServingEnvironment(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetEnvironmentInferenceServices(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetInferenceService(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetInferenceServiceModel(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetInferenceServiceServes(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetInferenceServiceVersion(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetInferenceServices(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetModelArtifact(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetModelArtifacts(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetModelVersion(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetModelVersionArtifacts(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetModelVersions(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetRegisteredModel(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetRegisteredModelVersions(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetRegisteredModels(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetServingEnvironment(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) GetServingEnvironments(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) Routes() Routes
- func (c *ModelRegistryServiceAPIController) UpdateInferenceService(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) UpdateModelArtifact(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) UpdateModelVersion(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) UpdateRegisteredModel(w http.ResponseWriter, r *http.Request)
- func (c *ModelRegistryServiceAPIController) UpdateServingEnvironment(w http.ResponseWriter, r *http.Request)
- type ModelRegistryServiceAPIOption
- type ModelRegistryServiceAPIRouter
- type ModelRegistryServiceAPIService
- func (s *ModelRegistryServiceAPIService) CreateEnvironmentInferenceService(ctx context.Context, servingenvironmentId string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) CreateInferenceService(ctx context.Context, inferenceServiceCreate model.InferenceServiceCreate) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) CreateInferenceServiceServe(ctx context.Context, inferenceserviceId string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) CreateModelArtifact(ctx context.Context, modelArtifactCreate model.ModelArtifactCreate) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) CreateModelVersion(ctx context.Context, modelVersionCreate model.ModelVersionCreate) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) CreateModelVersionArtifact(ctx context.Context, modelversionId string, artifact model.Artifact) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) CreateRegisteredModel(ctx context.Context, registeredModelCreate model.RegisteredModelCreate) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) CreateRegisteredModelVersion(ctx context.Context, registeredmodelId string, modelVersion model.ModelVersion) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) CreateServingEnvironment(ctx context.Context, servingEnvironmentCreate model.ServingEnvironmentCreate) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) FindInferenceService(ctx context.Context, name string, externalId string, parentResourceId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) FindModelArtifact(ctx context.Context, name string, externalId string, parentResourceId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) FindModelVersion(ctx context.Context, name string, externalId string, registeredModelId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) FindRegisteredModel(ctx context.Context, name string, externalID string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) FindServingEnvironment(ctx context.Context, name string, externalID string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetEnvironmentInferenceServices(ctx context.Context, servingenvironmentId string, name string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetInferenceService(ctx context.Context, inferenceserviceId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetInferenceServiceModel(ctx context.Context, inferenceserviceId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetInferenceServiceServes(ctx context.Context, inferenceserviceId string, name string, externalID string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetInferenceServiceVersion(ctx context.Context, inferenceserviceId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetInferenceServices(ctx context.Context, pageSize string, orderBy model.OrderByField, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetModelArtifact(ctx context.Context, modelartifactId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetModelArtifacts(ctx context.Context, pageSize string, orderBy model.OrderByField, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetModelVersion(ctx context.Context, modelversionId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetModelVersionArtifacts(ctx context.Context, modelversionId string, name string, externalID string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetModelVersions(ctx context.Context, pageSize string, orderBy model.OrderByField, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetRegisteredModel(ctx context.Context, registeredmodelId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetRegisteredModelVersions(ctx context.Context, registeredmodelId string, name string, externalID string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetRegisteredModels(ctx context.Context, pageSize string, orderBy model.OrderByField, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetServingEnvironment(ctx context.Context, servingenvironmentId string) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) GetServingEnvironments(ctx context.Context, pageSize string, orderBy model.OrderByField, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) UpdateInferenceService(ctx context.Context, inferenceserviceId string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) UpdateModelArtifact(ctx context.Context, modelartifactId string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) UpdateModelVersion(ctx context.Context, modelversionId string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) UpdateRegisteredModel(ctx context.Context, registeredmodelId string, ...) (ImplResponse, error)
- func (s *ModelRegistryServiceAPIService) UpdateServingEnvironment(ctx context.Context, servingenvironmentId string, ...) (ImplResponse, error)
- type ModelRegistryServiceAPIServicer
- type Number
- type Operation
- type ParseString
- type ParsingError
- type RequiredError
- type Route
- type Router
- type Routes
Constants ¶
This section is empty.
Variables ¶
var ErrTypeAssertionError = errors.New("unable to assert type")
ErrTypeAssertionError is thrown when type an interface does not match the asserted type
Functions ¶
func AssertArtifactConstraints ¶
AssertArtifactConstraints checks if the values respects the defined constraints
func AssertArtifactListConstraints ¶
func AssertArtifactListConstraints(obj model.ArtifactList) error
AssertArtifactListConstraints checks if the values respects the defined constraints
func AssertArtifactListRequired ¶
func AssertArtifactListRequired(obj model.ArtifactList) error
AssertArtifactListRequired checks if the required fields are not zero-ed
func AssertArtifactRequired ¶
AssertArtifactRequired checks if the required fields are not zero-ed
func AssertArtifactStateConstraints ¶
func AssertArtifactStateConstraints(obj model.ArtifactState) error
AssertArtifactStateConstraints checks if the values respects the defined constraints
func AssertArtifactStateRequired ¶
func AssertArtifactStateRequired(obj model.ArtifactState) error
AssertArtifactStateRequired checks if the required fields are not zero-ed
func AssertBaseArtifactConstraints ¶
func AssertBaseArtifactConstraints(obj model.BaseArtifact) error
AssertBaseArtifactConstraints checks if the values respects the defined constraints
func AssertBaseArtifactCreateConstraints ¶
func AssertBaseArtifactCreateConstraints(obj model.BaseArtifactCreate) error
AssertBaseArtifactCreateConstraints checks if the values respects the defined constraints
func AssertBaseArtifactCreateRequired ¶
func AssertBaseArtifactCreateRequired(obj model.BaseArtifactCreate) error
AssertBaseArtifactCreateRequired checks if the required fields are not zero-ed
func AssertBaseArtifactRequired ¶
func AssertBaseArtifactRequired(obj model.BaseArtifact) error
AssertBaseArtifactRequired checks if the required fields are not zero-ed
func AssertBaseArtifactUpdateConstraints ¶
func AssertBaseArtifactUpdateConstraints(obj model.BaseArtifactUpdate) error
AssertBaseArtifactUpdateConstraints checks if the values respects the defined constraints
func AssertBaseArtifactUpdateRequired ¶
func AssertBaseArtifactUpdateRequired(obj model.BaseArtifactUpdate) error
AssertBaseArtifactUpdateRequired checks if the required fields are not zero-ed
func AssertBaseExecutionConstraints ¶
func AssertBaseExecutionConstraints(obj model.BaseExecution) error
AssertBaseExecutionConstraints checks if the values respects the defined constraints
func AssertBaseExecutionCreateConstraints ¶
func AssertBaseExecutionCreateConstraints(obj model.BaseExecutionCreate) error
AssertBaseExecutionCreateConstraints checks if the values respects the defined constraints
func AssertBaseExecutionCreateRequired ¶
func AssertBaseExecutionCreateRequired(obj model.BaseExecutionCreate) error
AssertBaseExecutionCreateRequired checks if the required fields are not zero-ed
func AssertBaseExecutionRequired ¶
func AssertBaseExecutionRequired(obj model.BaseExecution) error
AssertBaseExecutionRequired checks if the required fields are not zero-ed
func AssertBaseExecutionUpdateConstraints ¶
func AssertBaseExecutionUpdateConstraints(obj model.BaseExecutionUpdate) error
AssertBaseExecutionUpdateConstraints checks if the values respects the defined constraints
func AssertBaseExecutionUpdateRequired ¶
func AssertBaseExecutionUpdateRequired(obj model.BaseExecutionUpdate) error
AssertBaseExecutionUpdateRequired checks if the required fields are not zero-ed
func AssertBaseResourceConstraints ¶
func AssertBaseResourceConstraints(obj model.BaseResource) error
AssertBaseResourceConstraints checks if the values respects the defined constraints
func AssertBaseResourceCreateConstraints ¶
func AssertBaseResourceCreateConstraints(obj model.BaseResourceCreate) error
AssertBaseResourceCreateConstraints checks if the values respects the defined constraints
func AssertBaseResourceCreateRequired ¶
func AssertBaseResourceCreateRequired(obj model.BaseResourceCreate) error
AssertBaseResourceCreateRequired checks if the required fields are not zero-ed
func AssertBaseResourceListConstraints ¶
func AssertBaseResourceListConstraints(obj model.BaseResourceList) error
AssertBaseResourceListConstraints checks if the values respects the defined constraints
func AssertBaseResourceListRequired ¶
func AssertBaseResourceListRequired(obj model.BaseResourceList) error
AssertBaseResourceListRequired checks if the required fields are not zero-ed
func AssertBaseResourceRequired ¶
func AssertBaseResourceRequired(obj model.BaseResource) error
AssertBaseResourceRequired checks if the required fields are not zero-ed
func AssertBaseResourceUpdateConstraints ¶
func AssertBaseResourceUpdateConstraints(obj model.BaseResourceUpdate) error
AssertBaseResourceUpdateConstraints checks if the values respects the defined constraints
func AssertBaseResourceUpdateRequired ¶
func AssertBaseResourceUpdateRequired(obj model.BaseResourceUpdate) error
AssertBaseResourceUpdateRequired checks if the required fields are not zero-ed
func AssertDocArtifactConstraints ¶
func AssertDocArtifactConstraints(obj model.DocArtifact) error
AssertDocArtifactConstraints checks if the values respects the defined constraints
func AssertDocArtifactRequired ¶
func AssertDocArtifactRequired(obj model.DocArtifact) error
AssertDocArtifactRequired checks if the required fields are not zero-ed
func AssertErrorConstraints ¶
AssertErrorConstraints checks if the values respects the defined constraints
func AssertErrorRequired ¶
AssertErrorRequired checks if the required fields are not zero-ed
func AssertExecutionStateConstraints ¶
func AssertExecutionStateConstraints(obj model.ExecutionState) error
AssertExecutionStateConstraints checks if the values respects the defined constraints
func AssertExecutionStateRequired ¶
func AssertExecutionStateRequired(obj model.ExecutionState) error
AssertExecutionStateRequired checks if the required fields are not zero-ed
func AssertInferenceServiceConstraints ¶
func AssertInferenceServiceConstraints(obj model.InferenceService) error
AssertInferenceServiceConstraints checks if the values respects the defined constraints
func AssertInferenceServiceCreateConstraints ¶
func AssertInferenceServiceCreateConstraints(obj model.InferenceServiceCreate) error
AssertInferenceServiceCreateConstraints checks if the values respects the defined constraints
func AssertInferenceServiceCreateRequired ¶
func AssertInferenceServiceCreateRequired(obj model.InferenceServiceCreate) error
AssertInferenceServiceCreateRequired checks if the required fields are not zero-ed
func AssertInferenceServiceListConstraints ¶
func AssertInferenceServiceListConstraints(obj model.InferenceServiceList) error
AssertInferenceServiceListConstraints checks if the values respects the defined constraints
func AssertInferenceServiceListRequired ¶
func AssertInferenceServiceListRequired(obj model.InferenceServiceList) error
AssertInferenceServiceListRequired checks if the required fields are not zero-ed
func AssertInferenceServiceRequired ¶
func AssertInferenceServiceRequired(obj model.InferenceService) error
AssertInferenceServiceRequired checks if the required fields are not zero-ed
func AssertInferenceServiceStateConstraints ¶
func AssertInferenceServiceStateConstraints(obj model.InferenceServiceState) error
AssertInferenceServiceStateConstraints checks if the values respects the defined constraints
func AssertInferenceServiceStateRequired ¶
func AssertInferenceServiceStateRequired(obj model.InferenceServiceState) error
AssertInferenceServiceStateRequired checks if the required fields are not zero-ed
func AssertInferenceServiceUpdateConstraints ¶
func AssertInferenceServiceUpdateConstraints(obj model.InferenceServiceUpdate) error
AssertInferenceServiceUpdateConstraints checks if the values respects the defined constraints
func AssertInferenceServiceUpdateRequired ¶
func AssertInferenceServiceUpdateRequired(obj model.InferenceServiceUpdate) error
AssertInferenceServiceUpdateRequired checks if the required fields are not zero-ed
func AssertMetadataBoolValueConstraints ¶
func AssertMetadataBoolValueConstraints(obj model.MetadataBoolValue) error
AssertMetadataBoolValueConstraints checks if the values respects the defined constraints
func AssertMetadataBoolValueRequired ¶
func AssertMetadataBoolValueRequired(obj model.MetadataBoolValue) error
AssertMetadataBoolValueRequired checks if the required fields are not zero-ed
func AssertMetadataDoubleValueConstraints ¶
func AssertMetadataDoubleValueConstraints(obj model.MetadataDoubleValue) error
AssertMetadataDoubleValueConstraints checks if the values respects the defined constraints
func AssertMetadataDoubleValueRequired ¶
func AssertMetadataDoubleValueRequired(obj model.MetadataDoubleValue) error
AssertMetadataDoubleValueRequired checks if the required fields are not zero-ed
func AssertMetadataIntValueConstraints ¶
func AssertMetadataIntValueConstraints(obj model.MetadataIntValue) error
AssertMetadataIntValueConstraints checks if the values respects the defined constraints
func AssertMetadataIntValueRequired ¶
func AssertMetadataIntValueRequired(obj model.MetadataIntValue) error
AssertMetadataIntValueRequired checks if the required fields are not zero-ed
func AssertMetadataProtoValueConstraints ¶
func AssertMetadataProtoValueConstraints(obj model.MetadataProtoValue) error
AssertMetadataProtoValueConstraints checks if the values respects the defined constraints
func AssertMetadataProtoValueRequired ¶
func AssertMetadataProtoValueRequired(obj model.MetadataProtoValue) error
AssertMetadataProtoValueRequired checks if the required fields are not zero-ed
func AssertMetadataStringValueConstraints ¶
func AssertMetadataStringValueConstraints(obj model.MetadataStringValue) error
AssertMetadataStringValueConstraints checks if the values respects the defined constraints
func AssertMetadataStringValueRequired ¶
func AssertMetadataStringValueRequired(obj model.MetadataStringValue) error
AssertMetadataStringValueRequired checks if the required fields are not zero-ed
func AssertMetadataStructValueConstraints ¶
func AssertMetadataStructValueConstraints(obj model.MetadataStructValue) error
AssertMetadataStructValueConstraints checks if the values respects the defined constraints
func AssertMetadataStructValueRequired ¶
func AssertMetadataStructValueRequired(obj model.MetadataStructValue) error
AssertMetadataStructValueRequired checks if the required fields are not zero-ed
func AssertMetadataValueConstraints ¶
func AssertMetadataValueConstraints(obj model.MetadataValue) error
AssertMetadataValueConstraints checks if the values respects the defined constraints
func AssertMetadataValueRequired ¶
func AssertMetadataValueRequired(obj model.MetadataValue) error
AssertMetadataValueRequired checks if the required fields are not zero-ed
func AssertModelArtifactConstraints ¶
func AssertModelArtifactConstraints(obj model.ModelArtifact) error
AssertModelArtifactConstraints checks if the values respects the defined constraints
func AssertModelArtifactCreateConstraints ¶
func AssertModelArtifactCreateConstraints(obj model.ModelArtifactCreate) error
AssertModelArtifactCreateConstraints checks if the values respects the defined constraints
func AssertModelArtifactCreateRequired ¶
func AssertModelArtifactCreateRequired(obj model.ModelArtifactCreate) error
AssertModelArtifactCreateRequired checks if the required fields are not zero-ed
func AssertModelArtifactListConstraints ¶
func AssertModelArtifactListConstraints(obj model.ModelArtifactList) error
AssertModelArtifactListConstraints checks if the values respects the defined constraints
func AssertModelArtifactListRequired ¶
func AssertModelArtifactListRequired(obj model.ModelArtifactList) error
AssertModelArtifactListRequired checks if the required fields are not zero-ed
func AssertModelArtifactRequired ¶
func AssertModelArtifactRequired(obj model.ModelArtifact) error
AssertModelArtifactRequired checks if the required fields are not zero-ed
func AssertModelArtifactUpdateConstraints ¶
func AssertModelArtifactUpdateConstraints(obj model.ModelArtifactUpdate) error
AssertModelArtifactUpdateConstraints checks if the values respects the defined constraints
func AssertModelArtifactUpdateRequired ¶
func AssertModelArtifactUpdateRequired(obj model.ModelArtifactUpdate) error
AssertModelArtifactUpdateRequired checks if the required fields are not zero-ed
func AssertModelVersionConstraints ¶
func AssertModelVersionConstraints(obj model.ModelVersion) error
AssertModelVersionConstraints checks if the values respects the defined constraints
func AssertModelVersionCreateConstraints ¶
func AssertModelVersionCreateConstraints(obj model.ModelVersionCreate) error
AssertModelVersionCreateConstraints checks if the values respects the defined constraints
func AssertModelVersionCreateRequired ¶
func AssertModelVersionCreateRequired(obj model.ModelVersionCreate) error
AssertModelVersionCreateRequired checks if the required fields are not zero-ed
func AssertModelVersionListConstraints ¶
func AssertModelVersionListConstraints(obj model.ModelVersionList) error
AssertModelVersionListConstraints checks if the values respects the defined constraints
func AssertModelVersionListRequired ¶
func AssertModelVersionListRequired(obj model.ModelVersionList) error
AssertModelVersionListRequired checks if the required fields are not zero-ed
func AssertModelVersionRequired ¶
func AssertModelVersionRequired(obj model.ModelVersion) error
AssertModelVersionRequired checks if the required fields are not zero-ed
func AssertModelVersionStateConstraints ¶
func AssertModelVersionStateConstraints(obj model.ModelVersionState) error
AssertModelVersionStateConstraints checks if the values respects the defined constraints
func AssertModelVersionStateRequired ¶
func AssertModelVersionStateRequired(obj model.ModelVersionState) error
AssertModelVersionStateRequired checks if the required fields are not zero-ed
func AssertModelVersionUpdateConstraints ¶
func AssertModelVersionUpdateConstraints(obj model.ModelVersionUpdate) error
AssertModelVersionUpdateConstraints checks if the values respects the defined constraints
func AssertModelVersionUpdateRequired ¶
func AssertModelVersionUpdateRequired(obj model.ModelVersionUpdate) error
AssertModelVersionUpdateRequired checks if the required fields are not zero-ed
func AssertOrderByFieldConstraints ¶
func AssertOrderByFieldConstraints(obj model.OrderByField) error
AssertOrderByFieldConstraints checks if the values respects the defined constraints
func AssertOrderByFieldRequired ¶
func AssertOrderByFieldRequired(obj model.OrderByField) error
AssertOrderByFieldRequired checks if the required fields are not zero-ed
func AssertRecurseInterfaceRequired ¶
AssertRecurseInterfaceRequired recursively checks each struct in a slice against the callback. This method traverse nested slices in a preorder fashion.
func AssertRecurseValueRequired ¶
AssertRecurseValueRequired checks each struct in the nested slice against the callback. This method traverse nested slices in a preorder fashion. ErrTypeAssertionError is thrown if the underlying struct does not match type T.
func AssertRegisteredModelConstraints ¶
func AssertRegisteredModelConstraints(obj model.RegisteredModel) error
AssertRegisteredModelConstraints checks if the values respects the defined constraints
func AssertRegisteredModelCreateConstraints ¶
func AssertRegisteredModelCreateConstraints(obj model.RegisteredModelCreate) error
AssertRegisteredModelCreateConstraints checks if the values respects the defined constraints
func AssertRegisteredModelCreateRequired ¶
func AssertRegisteredModelCreateRequired(obj model.RegisteredModelCreate) error
AssertRegisteredModelCreateRequired checks if the required fields are not zero-ed
func AssertRegisteredModelListConstraints ¶
func AssertRegisteredModelListConstraints(obj model.RegisteredModelList) error
AssertRegisteredModelListConstraints checks if the values respects the defined constraints
func AssertRegisteredModelListRequired ¶
func AssertRegisteredModelListRequired(obj model.RegisteredModelList) error
AssertRegisteredModelListRequired checks if the required fields are not zero-ed
func AssertRegisteredModelRequired ¶
func AssertRegisteredModelRequired(obj model.RegisteredModel) error
AssertRegisteredModelRequired checks if the required fields are not zero-ed
func AssertRegisteredModelStateConstraints ¶
func AssertRegisteredModelStateConstraints(obj model.RegisteredModelState) error
AssertRegisteredModelStateConstraints checks if the values respects the defined constraints
func AssertRegisteredModelStateRequired ¶
func AssertRegisteredModelStateRequired(obj model.RegisteredModelState) error
AssertRegisteredModelStateRequired checks if the required fields are not zero-ed
func AssertRegisteredModelUpdateConstraints ¶
func AssertRegisteredModelUpdateConstraints(obj model.RegisteredModelUpdate) error
AssertRegisteredModelUpdateConstraints checks if the values respects the defined constraints
func AssertRegisteredModelUpdateRequired ¶
func AssertRegisteredModelUpdateRequired(obj model.RegisteredModelUpdate) error
AssertRegisteredModelUpdateRequired checks if the required fields are not zero-ed
func AssertServeModelConstraints ¶
func AssertServeModelConstraints(obj model.ServeModel) error
AssertServeModelConstraints checks if the values respects the defined constraints
func AssertServeModelCreateConstraints ¶
func AssertServeModelCreateConstraints(obj model.ServeModelCreate) error
AssertServeModelCreateConstraints checks if the values respects the defined constraints
func AssertServeModelCreateRequired ¶
func AssertServeModelCreateRequired(obj model.ServeModelCreate) error
AssertServeModelCreateRequired checks if the required fields are not zero-ed
func AssertServeModelListConstraints ¶
func AssertServeModelListConstraints(obj model.ServeModelList) error
AssertServeModelListConstraints checks if the values respects the defined constraints
func AssertServeModelListRequired ¶
func AssertServeModelListRequired(obj model.ServeModelList) error
AssertServeModelListRequired checks if the required fields are not zero-ed
func AssertServeModelRequired ¶
func AssertServeModelRequired(obj model.ServeModel) error
AssertServeModelRequired checks if the required fields are not zero-ed
func AssertServeModelUpdateConstraints ¶
func AssertServeModelUpdateConstraints(obj model.ServeModelUpdate) error
AssertServeModelUpdateConstraints checks if the values respects the defined constraints
func AssertServeModelUpdateRequired ¶
func AssertServeModelUpdateRequired(obj model.ServeModelUpdate) error
AssertServeModelUpdateRequired checks if the required fields are not zero-ed
func AssertServingEnvironmentConstraints ¶
func AssertServingEnvironmentConstraints(obj model.ServingEnvironment) error
AssertServingEnvironmentConstraints checks if the values respects the defined constraints
func AssertServingEnvironmentCreateConstraints ¶
func AssertServingEnvironmentCreateConstraints(obj model.ServingEnvironmentCreate) error
AssertServingEnvironmentCreateConstraints checks if the values respects the defined constraints
func AssertServingEnvironmentCreateRequired ¶
func AssertServingEnvironmentCreateRequired(obj model.ServingEnvironmentCreate) error
AssertServingEnvironmentCreateRequired checks if the required fields are not zero-ed
func AssertServingEnvironmentListConstraints ¶
func AssertServingEnvironmentListConstraints(obj model.ServingEnvironmentList) error
AssertServingEnvironmentListConstraints checks if the values respects the defined constraints
func AssertServingEnvironmentListRequired ¶
func AssertServingEnvironmentListRequired(obj model.ServingEnvironmentList) error
AssertServingEnvironmentListRequired checks if the required fields are not zero-ed
func AssertServingEnvironmentRequired ¶
func AssertServingEnvironmentRequired(obj model.ServingEnvironment) error
AssertServingEnvironmentRequired checks if the required fields are not zero-ed
func AssertServingEnvironmentUpdateConstraints ¶
func AssertServingEnvironmentUpdateConstraints(obj model.ServingEnvironmentUpdate) error
AssertServingEnvironmentUpdateConstraints checks if the values respects the defined constraints
func AssertServingEnvironmentUpdateRequired ¶
func AssertServingEnvironmentUpdateRequired(obj model.ServingEnvironmentUpdate) error
AssertServingEnvironmentUpdateRequired checks if the required fields are not zero-ed
func AssertSortOrderConstraints ¶
AssertSortOrderConstraints checks if the values respects the defined constraints
func AssertSortOrderRequired ¶
AssertSortOrderRequired checks if the required fields are not zero-ed
func DefaultErrorHandler ¶
func DefaultErrorHandler(w http.ResponseWriter, r *http.Request, err error, result *ImplResponse)
DefaultErrorHandler defines the default logic on how to handle errors from the controller. Any errors from parsing request params will return a StatusBadRequest. Otherwise, the error code originating from the servicer will be used.
func EncodeJSONResponse ¶
func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter)
EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code
func IsZeroValue ¶
func IsZeroValue(val interface{}) bool
IsZeroValue checks if the val is the zero-ed value.
func NewRouter ¶
func NewRouter(routers ...Router) chi.Router
NewRouter creates a new router for any number of api routers
func ReadFormFileToTempFile ¶
ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file
Types ¶
type Constraint ¶
func WithMaximum ¶
func WithMaximum[T Number](expected T) Constraint[T]
func WithMinimum ¶
func WithMinimum[T Number](expected T) Constraint[T]
type ErrorHandler ¶
type ErrorHandler func(w http.ResponseWriter, r *http.Request, err error, result *ImplResponse)
ErrorHandler defines the required method for handling error. You may implement it and inject this into a controller if you would like errors to be handled differently from the DefaultErrorHandler
type ImplResponse ¶
type ImplResponse struct { Body interface{} Code int }
ImplResponse defines an implementation response with error code and the associated body
func ErrorResponse ¶
func ErrorResponse(code int, err error) ImplResponse
func Response ¶
func Response(code int, body interface{}) ImplResponse
Response return a ImplResponse struct filled
type ModelRegistryServiceAPIController ¶
type ModelRegistryServiceAPIController struct {
// contains filtered or unexported fields
}
ModelRegistryServiceAPIController binds http requests to an api service and writes the service results to the http response
func (*ModelRegistryServiceAPIController) CreateEnvironmentInferenceService ¶
func (c *ModelRegistryServiceAPIController) CreateEnvironmentInferenceService(w http.ResponseWriter, r *http.Request)
CreateEnvironmentInferenceService - Create a InferenceService in ServingEnvironment
func (*ModelRegistryServiceAPIController) CreateInferenceService ¶
func (c *ModelRegistryServiceAPIController) CreateInferenceService(w http.ResponseWriter, r *http.Request)
CreateInferenceService - Create a InferenceService
func (*ModelRegistryServiceAPIController) CreateInferenceServiceServe ¶
func (c *ModelRegistryServiceAPIController) CreateInferenceServiceServe(w http.ResponseWriter, r *http.Request)
CreateInferenceServiceServe - Create a ServeModel action in a InferenceService
func (*ModelRegistryServiceAPIController) CreateModelArtifact ¶
func (c *ModelRegistryServiceAPIController) CreateModelArtifact(w http.ResponseWriter, r *http.Request)
CreateModelArtifact - Create a ModelArtifact
func (*ModelRegistryServiceAPIController) CreateModelVersion ¶
func (c *ModelRegistryServiceAPIController) CreateModelVersion(w http.ResponseWriter, r *http.Request)
CreateModelVersion - Create a ModelVersion
func (*ModelRegistryServiceAPIController) CreateModelVersionArtifact ¶
func (c *ModelRegistryServiceAPIController) CreateModelVersionArtifact(w http.ResponseWriter, r *http.Request)
CreateModelVersionArtifact - Create an Artifact in a ModelVersion
func (*ModelRegistryServiceAPIController) CreateRegisteredModel ¶
func (c *ModelRegistryServiceAPIController) CreateRegisteredModel(w http.ResponseWriter, r *http.Request)
CreateRegisteredModel - Create a RegisteredModel
func (*ModelRegistryServiceAPIController) CreateRegisteredModelVersion ¶
func (c *ModelRegistryServiceAPIController) CreateRegisteredModelVersion(w http.ResponseWriter, r *http.Request)
CreateRegisteredModelVersion - Create a ModelVersion in RegisteredModel
func (*ModelRegistryServiceAPIController) CreateServingEnvironment ¶
func (c *ModelRegistryServiceAPIController) CreateServingEnvironment(w http.ResponseWriter, r *http.Request)
CreateServingEnvironment - Create a ServingEnvironment
func (*ModelRegistryServiceAPIController) FindInferenceService ¶
func (c *ModelRegistryServiceAPIController) FindInferenceService(w http.ResponseWriter, r *http.Request)
FindInferenceService - Get an InferenceServices that matches search parameters.
func (*ModelRegistryServiceAPIController) FindModelArtifact ¶
func (c *ModelRegistryServiceAPIController) FindModelArtifact(w http.ResponseWriter, r *http.Request)
FindModelArtifact - Get a ModelArtifact that matches search parameters.
func (*ModelRegistryServiceAPIController) FindModelVersion ¶
func (c *ModelRegistryServiceAPIController) FindModelVersion(w http.ResponseWriter, r *http.Request)
FindModelVersion - Get a ModelVersion that matches search parameters.
func (*ModelRegistryServiceAPIController) FindRegisteredModel ¶
func (c *ModelRegistryServiceAPIController) FindRegisteredModel(w http.ResponseWriter, r *http.Request)
FindRegisteredModel - Get a RegisteredModel that matches search parameters.
func (*ModelRegistryServiceAPIController) FindServingEnvironment ¶
func (c *ModelRegistryServiceAPIController) FindServingEnvironment(w http.ResponseWriter, r *http.Request)
FindServingEnvironment - Find ServingEnvironment
func (*ModelRegistryServiceAPIController) GetEnvironmentInferenceServices ¶
func (c *ModelRegistryServiceAPIController) GetEnvironmentInferenceServices(w http.ResponseWriter, r *http.Request)
GetEnvironmentInferenceServices - List All ServingEnvironment's InferenceServices
func (*ModelRegistryServiceAPIController) GetInferenceService ¶
func (c *ModelRegistryServiceAPIController) GetInferenceService(w http.ResponseWriter, r *http.Request)
GetInferenceService - Get a InferenceService
func (*ModelRegistryServiceAPIController) GetInferenceServiceModel ¶
func (c *ModelRegistryServiceAPIController) GetInferenceServiceModel(w http.ResponseWriter, r *http.Request)
GetInferenceServiceModel - Get InferenceService's RegisteredModel
func (*ModelRegistryServiceAPIController) GetInferenceServiceServes ¶
func (c *ModelRegistryServiceAPIController) GetInferenceServiceServes(w http.ResponseWriter, r *http.Request)
GetInferenceServiceServes - List All InferenceService's ServeModel actions
func (*ModelRegistryServiceAPIController) GetInferenceServiceVersion ¶
func (c *ModelRegistryServiceAPIController) GetInferenceServiceVersion(w http.ResponseWriter, r *http.Request)
GetInferenceServiceVersion - Get InferenceService's ModelVersion
func (*ModelRegistryServiceAPIController) GetInferenceServices ¶
func (c *ModelRegistryServiceAPIController) GetInferenceServices(w http.ResponseWriter, r *http.Request)
GetInferenceServices - List All InferenceServices
func (*ModelRegistryServiceAPIController) GetModelArtifact ¶
func (c *ModelRegistryServiceAPIController) GetModelArtifact(w http.ResponseWriter, r *http.Request)
GetModelArtifact - Get a ModelArtifact
func (*ModelRegistryServiceAPIController) GetModelArtifacts ¶
func (c *ModelRegistryServiceAPIController) GetModelArtifacts(w http.ResponseWriter, r *http.Request)
GetModelArtifacts - List All ModelArtifacts
func (*ModelRegistryServiceAPIController) GetModelVersion ¶
func (c *ModelRegistryServiceAPIController) GetModelVersion(w http.ResponseWriter, r *http.Request)
GetModelVersion - Get a ModelVersion
func (*ModelRegistryServiceAPIController) GetModelVersionArtifacts ¶
func (c *ModelRegistryServiceAPIController) GetModelVersionArtifacts(w http.ResponseWriter, r *http.Request)
GetModelVersionArtifacts - List all artifacts associated with the `ModelVersion`
func (*ModelRegistryServiceAPIController) GetModelVersions ¶
func (c *ModelRegistryServiceAPIController) GetModelVersions(w http.ResponseWriter, r *http.Request)
GetModelVersions - List All ModelVersions
func (*ModelRegistryServiceAPIController) GetRegisteredModel ¶
func (c *ModelRegistryServiceAPIController) GetRegisteredModel(w http.ResponseWriter, r *http.Request)
GetRegisteredModel - Get a RegisteredModel
func (*ModelRegistryServiceAPIController) GetRegisteredModelVersions ¶
func (c *ModelRegistryServiceAPIController) GetRegisteredModelVersions(w http.ResponseWriter, r *http.Request)
GetRegisteredModelVersions - List All RegisteredModel's ModelVersions
func (*ModelRegistryServiceAPIController) GetRegisteredModels ¶
func (c *ModelRegistryServiceAPIController) GetRegisteredModels(w http.ResponseWriter, r *http.Request)
GetRegisteredModels - List All RegisteredModels
func (*ModelRegistryServiceAPIController) GetServingEnvironment ¶
func (c *ModelRegistryServiceAPIController) GetServingEnvironment(w http.ResponseWriter, r *http.Request)
GetServingEnvironment - Get a ServingEnvironment
func (*ModelRegistryServiceAPIController) GetServingEnvironments ¶
func (c *ModelRegistryServiceAPIController) GetServingEnvironments(w http.ResponseWriter, r *http.Request)
GetServingEnvironments - List All ServingEnvironments
func (*ModelRegistryServiceAPIController) Routes ¶
func (c *ModelRegistryServiceAPIController) Routes() Routes
Routes returns all the api routes for the ModelRegistryServiceAPIController
func (*ModelRegistryServiceAPIController) UpdateInferenceService ¶
func (c *ModelRegistryServiceAPIController) UpdateInferenceService(w http.ResponseWriter, r *http.Request)
UpdateInferenceService - Update a InferenceService
func (*ModelRegistryServiceAPIController) UpdateModelArtifact ¶
func (c *ModelRegistryServiceAPIController) UpdateModelArtifact(w http.ResponseWriter, r *http.Request)
UpdateModelArtifact - Update a ModelArtifact
func (*ModelRegistryServiceAPIController) UpdateModelVersion ¶
func (c *ModelRegistryServiceAPIController) UpdateModelVersion(w http.ResponseWriter, r *http.Request)
UpdateModelVersion - Update a ModelVersion
func (*ModelRegistryServiceAPIController) UpdateRegisteredModel ¶
func (c *ModelRegistryServiceAPIController) UpdateRegisteredModel(w http.ResponseWriter, r *http.Request)
UpdateRegisteredModel - Update a RegisteredModel
func (*ModelRegistryServiceAPIController) UpdateServingEnvironment ¶
func (c *ModelRegistryServiceAPIController) UpdateServingEnvironment(w http.ResponseWriter, r *http.Request)
UpdateServingEnvironment - Update a ServingEnvironment
type ModelRegistryServiceAPIOption ¶
type ModelRegistryServiceAPIOption func(*ModelRegistryServiceAPIController)
ModelRegistryServiceAPIOption for how the controller is set up.
func WithModelRegistryServiceAPIErrorHandler ¶
func WithModelRegistryServiceAPIErrorHandler(h ErrorHandler) ModelRegistryServiceAPIOption
WithModelRegistryServiceAPIErrorHandler inject ErrorHandler into controller
type ModelRegistryServiceAPIRouter ¶
type ModelRegistryServiceAPIRouter interface { CreateEnvironmentInferenceService(http.ResponseWriter, *http.Request) CreateInferenceService(http.ResponseWriter, *http.Request) CreateInferenceServiceServe(http.ResponseWriter, *http.Request) CreateModelArtifact(http.ResponseWriter, *http.Request) CreateModelVersion(http.ResponseWriter, *http.Request) CreateModelVersionArtifact(http.ResponseWriter, *http.Request) CreateRegisteredModel(http.ResponseWriter, *http.Request) CreateRegisteredModelVersion(http.ResponseWriter, *http.Request) CreateServingEnvironment(http.ResponseWriter, *http.Request) FindInferenceService(http.ResponseWriter, *http.Request) FindModelArtifact(http.ResponseWriter, *http.Request) FindModelVersion(http.ResponseWriter, *http.Request) FindRegisteredModel(http.ResponseWriter, *http.Request) FindServingEnvironment(http.ResponseWriter, *http.Request) GetEnvironmentInferenceServices(http.ResponseWriter, *http.Request) GetInferenceService(http.ResponseWriter, *http.Request) GetInferenceServiceModel(http.ResponseWriter, *http.Request) GetInferenceServiceServes(http.ResponseWriter, *http.Request) GetInferenceServiceVersion(http.ResponseWriter, *http.Request) GetInferenceServices(http.ResponseWriter, *http.Request) GetModelArtifact(http.ResponseWriter, *http.Request) GetModelArtifacts(http.ResponseWriter, *http.Request) GetModelVersion(http.ResponseWriter, *http.Request) GetModelVersionArtifacts(http.ResponseWriter, *http.Request) GetModelVersions(http.ResponseWriter, *http.Request) GetRegisteredModel(http.ResponseWriter, *http.Request) GetRegisteredModelVersions(http.ResponseWriter, *http.Request) GetRegisteredModels(http.ResponseWriter, *http.Request) GetServingEnvironment(http.ResponseWriter, *http.Request) GetServingEnvironments(http.ResponseWriter, *http.Request) UpdateInferenceService(http.ResponseWriter, *http.Request) UpdateModelArtifact(http.ResponseWriter, *http.Request) UpdateModelVersion(http.ResponseWriter, *http.Request) UpdateRegisteredModel(http.ResponseWriter, *http.Request) UpdateServingEnvironment(http.ResponseWriter, *http.Request) }
ModelRegistryServiceAPIRouter defines the required methods for binding the api requests to a responses for the ModelRegistryServiceAPI The ModelRegistryServiceAPIRouter implementation should parse necessary information from the http request, pass the data to a ModelRegistryServiceAPIServicer to perform the required actions, then write the service results to the http response.
type ModelRegistryServiceAPIService ¶
type ModelRegistryServiceAPIService struct {
// contains filtered or unexported fields
}
ModelRegistryServiceAPIService is a service that implements the logic for the ModelRegistryServiceAPIServicer This service should implement the business logic for every endpoint for the ModelRegistryServiceAPI s.coreApi. Include any external packages or services that will be required by this service.
func (*ModelRegistryServiceAPIService) CreateEnvironmentInferenceService ¶
func (s *ModelRegistryServiceAPIService) CreateEnvironmentInferenceService(ctx context.Context, servingenvironmentId string, inferenceServiceCreate model.InferenceServiceCreate) (ImplResponse, error)
CreateEnvironmentInferenceService - Create a InferenceService in ServingEnvironment
func (*ModelRegistryServiceAPIService) CreateInferenceService ¶
func (s *ModelRegistryServiceAPIService) CreateInferenceService(ctx context.Context, inferenceServiceCreate model.InferenceServiceCreate) (ImplResponse, error)
CreateInferenceService - Create a InferenceService
func (*ModelRegistryServiceAPIService) CreateInferenceServiceServe ¶
func (s *ModelRegistryServiceAPIService) CreateInferenceServiceServe(ctx context.Context, inferenceserviceId string, serveModelCreate model.ServeModelCreate) (ImplResponse, error)
CreateInferenceServiceServe - Create a ServeModel action in a InferenceService
func (*ModelRegistryServiceAPIService) CreateModelArtifact ¶
func (s *ModelRegistryServiceAPIService) CreateModelArtifact(ctx context.Context, modelArtifactCreate model.ModelArtifactCreate) (ImplResponse, error)
CreateModelArtifact - Create a ModelArtifact
func (*ModelRegistryServiceAPIService) CreateModelVersion ¶
func (s *ModelRegistryServiceAPIService) CreateModelVersion(ctx context.Context, modelVersionCreate model.ModelVersionCreate) (ImplResponse, error)
CreateModelVersion - Create a ModelVersion
func (*ModelRegistryServiceAPIService) CreateModelVersionArtifact ¶
func (s *ModelRegistryServiceAPIService) CreateModelVersionArtifact(ctx context.Context, modelversionId string, artifact model.Artifact) (ImplResponse, error)
CreateModelVersionArtifact - Create an Artifact in a ModelVersion
func (*ModelRegistryServiceAPIService) CreateRegisteredModel ¶
func (s *ModelRegistryServiceAPIService) CreateRegisteredModel(ctx context.Context, registeredModelCreate model.RegisteredModelCreate) (ImplResponse, error)
CreateRegisteredModel - Create a RegisteredModel
func (*ModelRegistryServiceAPIService) CreateRegisteredModelVersion ¶
func (s *ModelRegistryServiceAPIService) CreateRegisteredModelVersion(ctx context.Context, registeredmodelId string, modelVersion model.ModelVersion) (ImplResponse, error)
CreateRegisteredModelVersion - Create a ModelVersion in RegisteredModel
func (*ModelRegistryServiceAPIService) CreateServingEnvironment ¶
func (s *ModelRegistryServiceAPIService) CreateServingEnvironment(ctx context.Context, servingEnvironmentCreate model.ServingEnvironmentCreate) (ImplResponse, error)
CreateServingEnvironment - Create a ServingEnvironment
func (*ModelRegistryServiceAPIService) FindInferenceService ¶
func (s *ModelRegistryServiceAPIService) FindInferenceService(ctx context.Context, name string, externalId string, parentResourceId string) (ImplResponse, error)
FindInferenceService - Get an InferenceServices that matches search parameters.
func (*ModelRegistryServiceAPIService) FindModelArtifact ¶
func (s *ModelRegistryServiceAPIService) FindModelArtifact(ctx context.Context, name string, externalId string, parentResourceId string) (ImplResponse, error)
FindModelArtifact - Get a ModelArtifact that matches search parameters.
func (*ModelRegistryServiceAPIService) FindModelVersion ¶
func (s *ModelRegistryServiceAPIService) FindModelVersion(ctx context.Context, name string, externalId string, registeredModelId string) (ImplResponse, error)
FindModelVersion - Get a ModelVersion that matches search parameters.
func (*ModelRegistryServiceAPIService) FindRegisteredModel ¶
func (s *ModelRegistryServiceAPIService) FindRegisteredModel(ctx context.Context, name string, externalID string) (ImplResponse, error)
FindRegisteredModel - Get a RegisteredModel that matches search parameters.
func (*ModelRegistryServiceAPIService) FindServingEnvironment ¶
func (s *ModelRegistryServiceAPIService) FindServingEnvironment(ctx context.Context, name string, externalID string) (ImplResponse, error)
FindServingEnvironment - Find ServingEnvironment
func (*ModelRegistryServiceAPIService) GetEnvironmentInferenceServices ¶
func (s *ModelRegistryServiceAPIService) GetEnvironmentInferenceServices(ctx context.Context, servingenvironmentId string, name string, externalID string, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetEnvironmentInferenceServices - List All ServingEnvironment's InferenceServices
func (*ModelRegistryServiceAPIService) GetInferenceService ¶
func (s *ModelRegistryServiceAPIService) GetInferenceService(ctx context.Context, inferenceserviceId string) (ImplResponse, error)
GetInferenceService - Get a InferenceService
func (*ModelRegistryServiceAPIService) GetInferenceServiceModel ¶
func (s *ModelRegistryServiceAPIService) GetInferenceServiceModel(ctx context.Context, inferenceserviceId string) (ImplResponse, error)
GetInferenceServiceModel - Get InferenceService's RegisteredModel
func (*ModelRegistryServiceAPIService) GetInferenceServiceServes ¶
func (s *ModelRegistryServiceAPIService) GetInferenceServiceServes(ctx context.Context, inferenceserviceId string, name string, externalID string, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetInferenceServiceServes - List All InferenceService's ServeModel actions
func (*ModelRegistryServiceAPIService) GetInferenceServiceVersion ¶
func (s *ModelRegistryServiceAPIService) GetInferenceServiceVersion(ctx context.Context, inferenceserviceId string) (ImplResponse, error)
GetInferenceServiceVersion - Get InferenceService's ModelVersion
func (*ModelRegistryServiceAPIService) GetInferenceServices ¶
func (s *ModelRegistryServiceAPIService) GetInferenceServices(ctx context.Context, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetInferenceServices - List All InferenceServices
func (*ModelRegistryServiceAPIService) GetModelArtifact ¶
func (s *ModelRegistryServiceAPIService) GetModelArtifact(ctx context.Context, modelartifactId string) (ImplResponse, error)
GetModelArtifact - Get a ModelArtifact
func (*ModelRegistryServiceAPIService) GetModelArtifacts ¶
func (s *ModelRegistryServiceAPIService) GetModelArtifacts(ctx context.Context, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetModelArtifacts - List All ModelArtifacts
func (*ModelRegistryServiceAPIService) GetModelVersion ¶
func (s *ModelRegistryServiceAPIService) GetModelVersion(ctx context.Context, modelversionId string) (ImplResponse, error)
GetModelVersion - Get a ModelVersion
func (*ModelRegistryServiceAPIService) GetModelVersionArtifacts ¶
func (s *ModelRegistryServiceAPIService) GetModelVersionArtifacts(ctx context.Context, modelversionId string, name string, externalID string, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetModelVersionArtifacts - List All ModelVersion's artifacts
func (*ModelRegistryServiceAPIService) GetModelVersions ¶
func (s *ModelRegistryServiceAPIService) GetModelVersions(ctx context.Context, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetModelVersions - List All ModelVersions
func (*ModelRegistryServiceAPIService) GetRegisteredModel ¶
func (s *ModelRegistryServiceAPIService) GetRegisteredModel(ctx context.Context, registeredmodelId string) (ImplResponse, error)
GetRegisteredModel - Get a RegisteredModel
func (*ModelRegistryServiceAPIService) GetRegisteredModelVersions ¶
func (s *ModelRegistryServiceAPIService) GetRegisteredModelVersions(ctx context.Context, registeredmodelId string, name string, externalID string, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetRegisteredModelVersions - List All RegisteredModel's ModelVersions
func (*ModelRegistryServiceAPIService) GetRegisteredModels ¶
func (s *ModelRegistryServiceAPIService) GetRegisteredModels(ctx context.Context, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetRegisteredModels - List All RegisteredModels
func (*ModelRegistryServiceAPIService) GetServingEnvironment ¶
func (s *ModelRegistryServiceAPIService) GetServingEnvironment(ctx context.Context, servingenvironmentId string) (ImplResponse, error)
GetServingEnvironment - Get a ServingEnvironment
func (*ModelRegistryServiceAPIService) GetServingEnvironments ¶
func (s *ModelRegistryServiceAPIService) GetServingEnvironments(ctx context.Context, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetServingEnvironments - List All ServingEnvironments
func (*ModelRegistryServiceAPIService) UpdateInferenceService ¶
func (s *ModelRegistryServiceAPIService) UpdateInferenceService(ctx context.Context, inferenceserviceId string, inferenceServiceUpdate model.InferenceServiceUpdate) (ImplResponse, error)
UpdateInferenceService - Update a InferenceService
func (*ModelRegistryServiceAPIService) UpdateModelArtifact ¶
func (s *ModelRegistryServiceAPIService) UpdateModelArtifact(ctx context.Context, modelartifactId string, modelArtifactUpdate model.ModelArtifactUpdate) (ImplResponse, error)
UpdateModelArtifact - Update a ModelArtifact
func (*ModelRegistryServiceAPIService) UpdateModelVersion ¶
func (s *ModelRegistryServiceAPIService) UpdateModelVersion(ctx context.Context, modelversionId string, modelVersionUpdate model.ModelVersionUpdate) (ImplResponse, error)
UpdateModelVersion - Update a ModelVersion
func (*ModelRegistryServiceAPIService) UpdateRegisteredModel ¶
func (s *ModelRegistryServiceAPIService) UpdateRegisteredModel(ctx context.Context, registeredmodelId string, registeredModelUpdate model.RegisteredModelUpdate) (ImplResponse, error)
UpdateRegisteredModel - Update a RegisteredModel
func (*ModelRegistryServiceAPIService) UpdateServingEnvironment ¶
func (s *ModelRegistryServiceAPIService) UpdateServingEnvironment(ctx context.Context, servingenvironmentId string, servingEnvironmentUpdate model.ServingEnvironmentUpdate) (ImplResponse, error)
UpdateServingEnvironment - Update a ServingEnvironment
type ModelRegistryServiceAPIServicer ¶
type ModelRegistryServiceAPIServicer interface { CreateEnvironmentInferenceService(context.Context, string, model.InferenceServiceCreate) (ImplResponse, error) CreateInferenceService(context.Context, model.InferenceServiceCreate) (ImplResponse, error) CreateInferenceServiceServe(context.Context, string, model.ServeModelCreate) (ImplResponse, error) CreateModelArtifact(context.Context, model.ModelArtifactCreate) (ImplResponse, error) CreateModelVersion(context.Context, model.ModelVersionCreate) (ImplResponse, error) CreateModelVersionArtifact(context.Context, string, model.Artifact) (ImplResponse, error) CreateRegisteredModel(context.Context, model.RegisteredModelCreate) (ImplResponse, error) CreateRegisteredModelVersion(context.Context, string, model.ModelVersion) (ImplResponse, error) CreateServingEnvironment(context.Context, model.ServingEnvironmentCreate) (ImplResponse, error) FindInferenceService(context.Context, string, string, string) (ImplResponse, error) FindModelArtifact(context.Context, string, string, string) (ImplResponse, error) FindModelVersion(context.Context, string, string, string) (ImplResponse, error) FindRegisteredModel(context.Context, string, string) (ImplResponse, error) FindServingEnvironment(context.Context, string, string) (ImplResponse, error) GetEnvironmentInferenceServices(context.Context, string, string, string, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error) GetInferenceService(context.Context, string) (ImplResponse, error) GetInferenceServiceModel(context.Context, string) (ImplResponse, error) GetInferenceServiceServes(context.Context, string, string, string, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error) GetInferenceServiceVersion(context.Context, string) (ImplResponse, error) GetInferenceServices(context.Context, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error) GetModelArtifact(context.Context, string) (ImplResponse, error) GetModelArtifacts(context.Context, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error) GetModelVersion(context.Context, string) (ImplResponse, error) GetModelVersionArtifacts(context.Context, string, string, string, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error) GetModelVersions(context.Context, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error) GetRegisteredModel(context.Context, string) (ImplResponse, error) GetRegisteredModelVersions(context.Context, string, string, string, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error) GetRegisteredModels(context.Context, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error) GetServingEnvironment(context.Context, string) (ImplResponse, error) GetServingEnvironments(context.Context, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error) UpdateInferenceService(context.Context, string, model.InferenceServiceUpdate) (ImplResponse, error) UpdateModelArtifact(context.Context, string, model.ModelArtifactUpdate) (ImplResponse, error) UpdateModelVersion(context.Context, string, model.ModelVersionUpdate) (ImplResponse, error) UpdateRegisteredModel(context.Context, string, model.RegisteredModelUpdate) (ImplResponse, error) UpdateServingEnvironment(context.Context, string, model.ServingEnvironmentUpdate) (ImplResponse, error) }
ModelRegistryServiceAPIServicer defines the api actions for the ModelRegistryServiceAPI service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can be ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewModelRegistryServiceAPIService ¶
func NewModelRegistryServiceAPIService(coreApi api.ModelRegistryApi) ModelRegistryServiceAPIServicer
NewModelRegistryServiceAPIService creates a default api service
type Operation ¶
func WithDefaultOrParse ¶
func WithDefaultOrParse[T Number | string | bool](def T, parse ParseString[T]) Operation[T]
func WithRequire ¶
func WithRequire[T Number | string | bool](parse ParseString[T]) Operation[T]
type ParsingError ¶
type ParsingError struct {
Err error
}
ParsingError indicates that an error has occurred when parsing request parameters
func (*ParsingError) Error ¶
func (e *ParsingError) Error() string
func (*ParsingError) Unwrap ¶
func (e *ParsingError) Unwrap() error
type RequiredError ¶
type RequiredError struct {
Field string
}
RequiredError indicates that an error has occurred when parsing request parameters
func (*RequiredError) Error ¶
func (e *RequiredError) Error() string
type Route ¶
type Route struct { Method string Pattern string HandlerFunc http.HandlerFunc }
A Route defines the parameters for an api endpoint
type Router ¶
type Router interface {
Routes() Routes
}
Router defines the required methods for retrieving api routes
func NewModelRegistryServiceAPIController ¶
func NewModelRegistryServiceAPIController(s ModelRegistryServiceAPIServicer, opts ...ModelRegistryServiceAPIOption) Router
NewModelRegistryServiceAPIController creates a default api controller