openapi

package
v0.2.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrTypeAssertionError is thrown when type an interface does not match the asserted type
	ErrTypeAssertionError = errors.New("unable to assert type")
)

Functions

func AssertArtifactConstraints

func AssertArtifactConstraints(obj model.Artifact) error

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

func AssertArtifactRequired(obj model.Artifact) error

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

func AssertErrorConstraints(obj model.Error) error

AssertErrorConstraints checks if the values respects the defined constraints

func AssertErrorRequired

func AssertErrorRequired(obj model.Error) error

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

func AssertRecurseInterfaceRequired[T any](obj interface{}, callback func(T) error) error

AssertRecurseInterfaceRequired recursively checks each struct in a slice against the callback. This method traverse nested slices in a preorder fashion.

func AssertRecurseValueRequired

func AssertRecurseValueRequired[T any](value reflect.Value, callback func(T) error) error

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

func AssertSortOrderConstraints(obj model.SortOrder) error

AssertSortOrderConstraints checks if the values respects the defined constraints

func AssertSortOrderRequired

func AssertSortOrderRequired(obj model.SortOrder) error

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 Logger

func Logger(inner http.Handler, name string) http.Handler

func NewRouter

func NewRouter(routers ...Router) chi.Router

NewRouter creates a new router for any number of api routers

func ReadFormFileToTempFile

func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)

ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file

func ReadFormFilesToTempFiles

func ReadFormFilesToTempFiles(r *http.Request, key string) ([]*os.File, error)

ReadFormFilesToTempFiles reads files array data from a request form and writes it to a temporary files

Types

type Constraint

type Constraint[T Number | string | bool] func(actual T) error

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 {
	Code int
	Body interface{}
}

ImplResponse defines an implementation response with error code and the associated body

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

FindModelArtifact - Get a ModelArtifact that matches search parameters.

func (*ModelRegistryServiceAPIController) FindModelVersion

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

GetModelArtifact - Get a ModelArtifact

func (*ModelRegistryServiceAPIController) GetModelArtifacts

GetModelArtifacts - List All ModelArtifacts

func (*ModelRegistryServiceAPIController) GetModelVersion

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

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

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 Number

type Number interface {
	~int32 | ~int64 | ~float32 | ~float64
}

type Operation

type Operation[T Number | string | bool] func(actual string) (T, bool, error)

func WithDefaultOrParse

func WithDefaultOrParse[T Number | string | bool](def T, parse ParseString[T]) Operation[T]

func WithParse

func WithParse[T Number | string | bool](parse ParseString[T]) Operation[T]

func WithRequire

func WithRequire[T Number | string | bool](parse ParseString[T]) Operation[T]

type ParseString

type ParseString[T Number | string | bool] func(v string) (T, error)

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

type Routes

type Routes map[string]Route

Routes is a map of defined api endpoints

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL