v1alpha1

package
v0.0.0-...-3a3696f Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package v1alpha1 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewModelsCreateForOrganizationRequest

func NewModelsCreateForOrganizationRequest(server string, parameterOrganization ParameterOrganization, body ModelsCreateForOrganizationJSONRequestBody) (*http.Request, error)

NewModelsCreateForOrganizationRequest calls the generic ModelsCreateForOrganization builder with application/json body

func NewModelsCreateForOrganizationRequestWithBody

func NewModelsCreateForOrganizationRequestWithBody(server string, parameterOrganization ParameterOrganization, contentType string, body io.Reader) (*http.Request, error)

NewModelsCreateForOrganizationRequestWithBody generates requests for ModelsCreateForOrganization with any type of body

func NewModelsGetForOrganizationRequest

func NewModelsGetForOrganizationRequest(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel) (*http.Request, error)

NewModelsGetForOrganizationRequest generates requests for ModelsGetForOrganization

func NewModelsListForOrganizationRequest

func NewModelsListForOrganizationRequest(server string, parameterOrganization ParameterOrganization) (*http.Request, error)

NewModelsListForOrganizationRequest generates requests for ModelsListForOrganization

func NewModelsUpdateForOrganizationRequest

func NewModelsUpdateForOrganizationRequest(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body ModelsUpdateForOrganizationJSONRequestBody) (*http.Request, error)

NewModelsUpdateForOrganizationRequest calls the generic ModelsUpdateForOrganization builder with application/json body

func NewModelsUpdateForOrganizationRequestWithBody

func NewModelsUpdateForOrganizationRequestWithBody(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader) (*http.Request, error)

NewModelsUpdateForOrganizationRequestWithBody generates requests for ModelsUpdateForOrganization with any type of body

func NewOrganizationsCreateRequest

func NewOrganizationsCreateRequest(server string, body OrganizationsCreateJSONRequestBody) (*http.Request, error)

NewOrganizationsCreateRequest calls the generic OrganizationsCreate builder with application/json body

func NewOrganizationsCreateRequestWithBody

func NewOrganizationsCreateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewOrganizationsCreateRequestWithBody generates requests for OrganizationsCreate with any type of body

func NewResultsCreateForVersionRequest

func NewResultsCreateForVersionRequest(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, body ResultsCreateForVersionJSONRequestBody) (*http.Request, error)

NewResultsCreateForVersionRequest calls the generic ResultsCreateForVersion builder with application/json body

func NewResultsCreateForVersionRequestWithBody

func NewResultsCreateForVersionRequestWithBody(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, contentType string, body io.Reader) (*http.Request, error)

NewResultsCreateForVersionRequestWithBody generates requests for ResultsCreateForVersion with any type of body

func NewResultsGetForVersionRequest

func NewResultsGetForVersionRequest(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, parameterResult ParameterResult) (*http.Request, error)

NewResultsGetForVersionRequest generates requests for ResultsGetForVersion

func NewResultsListForVersionRequest

func NewResultsListForVersionRequest(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion) (*http.Request, error)

NewResultsListForVersionRequest generates requests for ResultsListForVersion

func NewSchemasCreateForOrganizationRequest

func NewSchemasCreateForOrganizationRequest(server string, parameterOrganization ParameterOrganization, body SchemasCreateForOrganizationJSONRequestBody) (*http.Request, error)

NewSchemasCreateForOrganizationRequest calls the generic SchemasCreateForOrganization builder with application/json body

func NewSchemasCreateForOrganizationRequestWithBody

func NewSchemasCreateForOrganizationRequestWithBody(server string, parameterOrganization ParameterOrganization, contentType string, body io.Reader) (*http.Request, error)

NewSchemasCreateForOrganizationRequestWithBody generates requests for SchemasCreateForOrganization with any type of body

func NewSchemasGetForOrganizationRequest

func NewSchemasGetForOrganizationRequest(server string, parameterOrganization ParameterOrganization, parameterSchema ParameterSchema) (*http.Request, error)

NewSchemasGetForOrganizationRequest generates requests for SchemasGetForOrganization

func NewSchemasListForOrganizationRequest

func NewSchemasListForOrganizationRequest(server string, parameterOrganization ParameterOrganization) (*http.Request, error)

NewSchemasListForOrganizationRequest generates requests for SchemasListForOrganization

func NewVersionsCreateForModelRequest

func NewVersionsCreateForModelRequest(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body VersionsCreateForModelJSONRequestBody) (*http.Request, error)

NewVersionsCreateForModelRequest calls the generic VersionsCreateForModel builder with application/json body

func NewVersionsCreateForModelRequestWithBody

func NewVersionsCreateForModelRequestWithBody(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader) (*http.Request, error)

NewVersionsCreateForModelRequestWithBody generates requests for VersionsCreateForModel with any type of body

func NewVersionsGetForModelRequest

func NewVersionsGetForModelRequest(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion) (*http.Request, error)

NewVersionsGetForModelRequest generates requests for VersionsGetForModel

func NewVersionsListForModelRequest

func NewVersionsListForModelRequest(server string, parameterOrganization ParameterOrganization, parameterModel ParameterModel) (*http.Request, error)

NewVersionsListForModelRequest generates requests for VersionsListForModel

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type ChiServerOptions

type ChiServerOptions struct {
	BaseURL          string
	BaseRouter       chi.Router
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) ModelsCreateForOrganization

func (c *Client) ModelsCreateForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, body ModelsCreateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModelsCreateForOrganizationWithBody

func (c *Client) ModelsCreateForOrganizationWithBody(ctx context.Context, parameterOrganization ParameterOrganization, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModelsGetForOrganization

func (c *Client) ModelsGetForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModelsListForOrganization

func (c *Client) ModelsListForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModelsUpdateForOrganization

func (c *Client) ModelsUpdateForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body ModelsUpdateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ModelsUpdateForOrganizationWithBody

func (c *Client) ModelsUpdateForOrganizationWithBody(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OrganizationsCreate

func (c *Client) OrganizationsCreate(ctx context.Context, body OrganizationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) OrganizationsCreateWithBody

func (c *Client) OrganizationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResultsCreateForVersion

func (c *Client) ResultsCreateForVersion(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, body ResultsCreateForVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResultsCreateForVersionWithBody

func (c *Client) ResultsCreateForVersionWithBody(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResultsGetForVersion

func (c *Client) ResultsGetForVersion(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, parameterResult ParameterResult, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ResultsListForVersion

func (c *Client) ResultsListForVersion(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SchemasCreateForOrganization

func (c *Client) SchemasCreateForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, body SchemasCreateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SchemasCreateForOrganizationWithBody

func (c *Client) SchemasCreateForOrganizationWithBody(ctx context.Context, parameterOrganization ParameterOrganization, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SchemasGetForOrganization

func (c *Client) SchemasGetForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, parameterSchema ParameterSchema, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SchemasListForOrganization

func (c *Client) SchemasListForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) VersionsCreateForModel

func (c *Client) VersionsCreateForModel(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body VersionsCreateForModelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) VersionsCreateForModelWithBody

func (c *Client) VersionsCreateForModelWithBody(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) VersionsGetForModel

func (c *Client) VersionsGetForModel(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) VersionsListForModel

func (c *Client) VersionsListForModel(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// OrganizationsCreate request with any body
	OrganizationsCreateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	OrganizationsCreate(ctx context.Context, body OrganizationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModelsListForOrganization request
	ModelsListForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModelsCreateForOrganization request with any body
	ModelsCreateForOrganizationWithBody(ctx context.Context, parameterOrganization ParameterOrganization, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ModelsCreateForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, body ModelsCreateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModelsGetForOrganization request
	ModelsGetForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ModelsUpdateForOrganization request with any body
	ModelsUpdateForOrganizationWithBody(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ModelsUpdateForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body ModelsUpdateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// VersionsListForModel request
	VersionsListForModel(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, reqEditors ...RequestEditorFn) (*http.Response, error)

	// VersionsCreateForModel request with any body
	VersionsCreateForModelWithBody(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	VersionsCreateForModel(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body VersionsCreateForModelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// VersionsGetForModel request
	VersionsGetForModel(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResultsListForVersion request
	ResultsListForVersion(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResultsCreateForVersion request with any body
	ResultsCreateForVersionWithBody(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	ResultsCreateForVersion(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, body ResultsCreateForVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResultsGetForVersion request
	ResultsGetForVersion(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, parameterResult ParameterResult, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SchemasListForOrganization request
	SchemasListForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SchemasCreateForOrganization request with any body
	SchemasCreateForOrganizationWithBody(ctx context.Context, parameterOrganization ParameterOrganization, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SchemasCreateForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, body SchemasCreateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SchemasGetForOrganization request
	SchemasGetForOrganization(ctx context.Context, parameterOrganization ParameterOrganization, parameterSchema ParameterSchema, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) ModelsCreateForOrganizationWithBodyWithResponse

func (c *ClientWithResponses) ModelsCreateForOrganizationWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModelsCreateForOrganizationResponse, error)

ModelsCreateForOrganizationWithBodyWithResponse request with arbitrary body returning *ModelsCreateForOrganizationResponse

func (*ClientWithResponses) ModelsCreateForOrganizationWithResponse

func (c *ClientWithResponses) ModelsCreateForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, body ModelsCreateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*ModelsCreateForOrganizationResponse, error)

func (*ClientWithResponses) ModelsGetForOrganizationWithResponse

func (c *ClientWithResponses) ModelsGetForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, reqEditors ...RequestEditorFn) (*ModelsGetForOrganizationResponse, error)

ModelsGetForOrganizationWithResponse request returning *ModelsGetForOrganizationResponse

func (*ClientWithResponses) ModelsListForOrganizationWithResponse

func (c *ClientWithResponses) ModelsListForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, reqEditors ...RequestEditorFn) (*ModelsListForOrganizationResponse, error)

ModelsListForOrganizationWithResponse request returning *ModelsListForOrganizationResponse

func (*ClientWithResponses) ModelsUpdateForOrganizationWithBodyWithResponse

func (c *ClientWithResponses) ModelsUpdateForOrganizationWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModelsUpdateForOrganizationResponse, error)

ModelsUpdateForOrganizationWithBodyWithResponse request with arbitrary body returning *ModelsUpdateForOrganizationResponse

func (*ClientWithResponses) ModelsUpdateForOrganizationWithResponse

func (c *ClientWithResponses) ModelsUpdateForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body ModelsUpdateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*ModelsUpdateForOrganizationResponse, error)

func (*ClientWithResponses) OrganizationsCreateWithBodyWithResponse

func (c *ClientWithResponses) OrganizationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrganizationsCreateResponse, error)

OrganizationsCreateWithBodyWithResponse request with arbitrary body returning *OrganizationsCreateResponse

func (*ClientWithResponses) OrganizationsCreateWithResponse

func (c *ClientWithResponses) OrganizationsCreateWithResponse(ctx context.Context, body OrganizationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*OrganizationsCreateResponse, error)

func (*ClientWithResponses) ResultsCreateForVersionWithBodyWithResponse

func (c *ClientWithResponses) ResultsCreateForVersionWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResultsCreateForVersionResponse, error)

ResultsCreateForVersionWithBodyWithResponse request with arbitrary body returning *ResultsCreateForVersionResponse

func (*ClientWithResponses) ResultsCreateForVersionWithResponse

func (c *ClientWithResponses) ResultsCreateForVersionWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, body ResultsCreateForVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*ResultsCreateForVersionResponse, error)

func (*ClientWithResponses) ResultsGetForVersionWithResponse

func (c *ClientWithResponses) ResultsGetForVersionWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, parameterResult ParameterResult, reqEditors ...RequestEditorFn) (*ResultsGetForVersionResponse, error)

ResultsGetForVersionWithResponse request returning *ResultsGetForVersionResponse

func (*ClientWithResponses) ResultsListForVersionWithResponse

func (c *ClientWithResponses) ResultsListForVersionWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, reqEditors ...RequestEditorFn) (*ResultsListForVersionResponse, error)

ResultsListForVersionWithResponse request returning *ResultsListForVersionResponse

func (*ClientWithResponses) SchemasCreateForOrganizationWithBodyWithResponse

func (c *ClientWithResponses) SchemasCreateForOrganizationWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SchemasCreateForOrganizationResponse, error)

SchemasCreateForOrganizationWithBodyWithResponse request with arbitrary body returning *SchemasCreateForOrganizationResponse

func (*ClientWithResponses) SchemasCreateForOrganizationWithResponse

func (c *ClientWithResponses) SchemasCreateForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, body SchemasCreateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*SchemasCreateForOrganizationResponse, error)

func (*ClientWithResponses) SchemasGetForOrganizationWithResponse

func (c *ClientWithResponses) SchemasGetForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterSchema ParameterSchema, reqEditors ...RequestEditorFn) (*SchemasGetForOrganizationResponse, error)

SchemasGetForOrganizationWithResponse request returning *SchemasGetForOrganizationResponse

func (*ClientWithResponses) SchemasListForOrganizationWithResponse

func (c *ClientWithResponses) SchemasListForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, reqEditors ...RequestEditorFn) (*SchemasListForOrganizationResponse, error)

SchemasListForOrganizationWithResponse request returning *SchemasListForOrganizationResponse

func (*ClientWithResponses) VersionsCreateForModelWithBodyWithResponse

func (c *ClientWithResponses) VersionsCreateForModelWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VersionsCreateForModelResponse, error)

VersionsCreateForModelWithBodyWithResponse request with arbitrary body returning *VersionsCreateForModelResponse

func (*ClientWithResponses) VersionsCreateForModelWithResponse

func (c *ClientWithResponses) VersionsCreateForModelWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body VersionsCreateForModelJSONRequestBody, reqEditors ...RequestEditorFn) (*VersionsCreateForModelResponse, error)

func (*ClientWithResponses) VersionsGetForModelWithResponse

func (c *ClientWithResponses) VersionsGetForModelWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, reqEditors ...RequestEditorFn) (*VersionsGetForModelResponse, error)

VersionsGetForModelWithResponse request returning *VersionsGetForModelResponse

func (*ClientWithResponses) VersionsListForModelWithResponse

func (c *ClientWithResponses) VersionsListForModelWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, reqEditors ...RequestEditorFn) (*VersionsListForModelResponse, error)

VersionsListForModelWithResponse request returning *VersionsListForModelResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// OrganizationsCreate request with any body
	OrganizationsCreateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*OrganizationsCreateResponse, error)

	OrganizationsCreateWithResponse(ctx context.Context, body OrganizationsCreateJSONRequestBody, reqEditors ...RequestEditorFn) (*OrganizationsCreateResponse, error)

	// ModelsListForOrganization request
	ModelsListForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, reqEditors ...RequestEditorFn) (*ModelsListForOrganizationResponse, error)

	// ModelsCreateForOrganization request with any body
	ModelsCreateForOrganizationWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModelsCreateForOrganizationResponse, error)

	ModelsCreateForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, body ModelsCreateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*ModelsCreateForOrganizationResponse, error)

	// ModelsGetForOrganization request
	ModelsGetForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, reqEditors ...RequestEditorFn) (*ModelsGetForOrganizationResponse, error)

	// ModelsUpdateForOrganization request with any body
	ModelsUpdateForOrganizationWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModelsUpdateForOrganizationResponse, error)

	ModelsUpdateForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body ModelsUpdateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*ModelsUpdateForOrganizationResponse, error)

	// VersionsListForModel request
	VersionsListForModelWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, reqEditors ...RequestEditorFn) (*VersionsListForModelResponse, error)

	// VersionsCreateForModel request with any body
	VersionsCreateForModelWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*VersionsCreateForModelResponse, error)

	VersionsCreateForModelWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, body VersionsCreateForModelJSONRequestBody, reqEditors ...RequestEditorFn) (*VersionsCreateForModelResponse, error)

	// VersionsGetForModel request
	VersionsGetForModelWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, reqEditors ...RequestEditorFn) (*VersionsGetForModelResponse, error)

	// ResultsListForVersion request
	ResultsListForVersionWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, reqEditors ...RequestEditorFn) (*ResultsListForVersionResponse, error)

	// ResultsCreateForVersion request with any body
	ResultsCreateForVersionWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ResultsCreateForVersionResponse, error)

	ResultsCreateForVersionWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, body ResultsCreateForVersionJSONRequestBody, reqEditors ...RequestEditorFn) (*ResultsCreateForVersionResponse, error)

	// ResultsGetForVersion request
	ResultsGetForVersionWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, parameterResult ParameterResult, reqEditors ...RequestEditorFn) (*ResultsGetForVersionResponse, error)

	// SchemasListForOrganization request
	SchemasListForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, reqEditors ...RequestEditorFn) (*SchemasListForOrganizationResponse, error)

	// SchemasCreateForOrganization request with any body
	SchemasCreateForOrganizationWithBodyWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SchemasCreateForOrganizationResponse, error)

	SchemasCreateForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, body SchemasCreateForOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*SchemasCreateForOrganizationResponse, error)

	// SchemasGetForOrganization request
	SchemasGetForOrganizationWithResponse(ctx context.Context, parameterOrganization ParameterOrganization, parameterSchema ParameterSchema, reqEditors ...RequestEditorFn) (*SchemasGetForOrganizationResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Error

type Error struct {
	Code  int    `json:"code"`
	Error string `json:"error"`
}

Error An error response.

type ErrorResponse

type ErrorResponse = Error

ErrorResponse An error response.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type InstrumentedServerInterface

type InstrumentedServerInterface struct {
	ServerInterface
	signalhttp.HandlerInstrumenter
}

func (*InstrumentedServerInterface) ModelsCreateForOrganization

func (i *InstrumentedServerInterface) ModelsCreateForOrganization(w http.ResponseWriter, r *http.Request, _c2 string)

func (*InstrumentedServerInterface) ModelsGetForOrganization

func (i *InstrumentedServerInterface) ModelsGetForOrganization(w http.ResponseWriter, r *http.Request, _c2 string, _c3 string)

func (*InstrumentedServerInterface) ModelsListForOrganization

func (i *InstrumentedServerInterface) ModelsListForOrganization(w http.ResponseWriter, r *http.Request, _c2 string)

func (*InstrumentedServerInterface) ModelsUpdateForOrganization

func (i *InstrumentedServerInterface) ModelsUpdateForOrganization(w http.ResponseWriter, r *http.Request, _c2 string, _c3 string)

func (*InstrumentedServerInterface) OrganizationsCreate

func (i *InstrumentedServerInterface) OrganizationsCreate(w http.ResponseWriter, r *http.Request)

func (*InstrumentedServerInterface) ResultsCreateForVersion

func (i *InstrumentedServerInterface) ResultsCreateForVersion(w http.ResponseWriter, r *http.Request, _c2 string, _c3 string, _c4 string)

func (*InstrumentedServerInterface) ResultsGetForVersion

func (i *InstrumentedServerInterface) ResultsGetForVersion(w http.ResponseWriter, r *http.Request, _c2 string, _c3 string, _c4 string, _c5 int)

func (*InstrumentedServerInterface) ResultsListForVersion

func (i *InstrumentedServerInterface) ResultsListForVersion(w http.ResponseWriter, r *http.Request, _c2 string, _c3 string, _c4 string)

func (*InstrumentedServerInterface) SchemasCreateForOrganization

func (i *InstrumentedServerInterface) SchemasCreateForOrganization(w http.ResponseWriter, r *http.Request, _c2 string)

func (*InstrumentedServerInterface) SchemasGetForOrganization

func (i *InstrumentedServerInterface) SchemasGetForOrganization(w http.ResponseWriter, r *http.Request, _c2 string, _c3 string)

func (*InstrumentedServerInterface) SchemasListForOrganization

func (i *InstrumentedServerInterface) SchemasListForOrganization(w http.ResponseWriter, r *http.Request, _c2 string)

func (*InstrumentedServerInterface) VersionsCreateForModel

func (i *InstrumentedServerInterface) VersionsCreateForModel(w http.ResponseWriter, r *http.Request, _c2 string, _c3 string)

func (*InstrumentedServerInterface) VersionsGetForModel

func (i *InstrumentedServerInterface) VersionsGetForModel(w http.ResponseWriter, r *http.Request, _c2 string, _c3 string, _c4 string)

func (*InstrumentedServerInterface) VersionsListForModel

func (i *InstrumentedServerInterface) VersionsListForModel(w http.ResponseWriter, r *http.Request, _c2 string, _c3 string)

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type Model

type Model struct {
	Created time.Time `json:"created"`

	// DefaultSchema ID of the schema to use for implicitly created model versions.
	DefaultSchema *int `json:"defaultSchema,omitempty"`
	ID            int  `json:"id"`

	// Name Name of the model.
	Name string `json:"name"`

	// Organization ID of the model's organization.
	Organization int       `json:"organization"`
	Updated      time.Time `json:"updated"`
}

Model A model represents a machine learning service fullfilling requests.

type ModelsCreateForOrganizationJSONBody

type ModelsCreateForOrganizationJSONBody struct {
	// DefaultSchema ID of the schema to use for implicitly created model versions.
	DefaultSchema *int `json:"defaultSchema,omitempty"`

	// Name The name of the model.
	Name string `json:"name"`
}

ModelsCreateForOrganizationJSONBody defines parameters for ModelsCreateForOrganization.

type ModelsCreateForOrganizationJSONRequestBody

type ModelsCreateForOrganizationJSONRequestBody ModelsCreateForOrganizationJSONBody

ModelsCreateForOrganizationJSONRequestBody defines body for ModelsCreateForOrganization for application/json ContentType.

type ModelsCreateForOrganizationResponse

type ModelsCreateForOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Model
	JSON401      *Error
	JSON403      *Error
	JSON422      *Error
	JSON500      *Error
}

func ParseModelsCreateForOrganizationResponse

func ParseModelsCreateForOrganizationResponse(rsp *http.Response) (*ModelsCreateForOrganizationResponse, error)

ParseModelsCreateForOrganizationResponse parses an HTTP response from a ModelsCreateForOrganizationWithResponse call

func (ModelsCreateForOrganizationResponse) Status

Status returns HTTPResponse.Status

func (ModelsCreateForOrganizationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ModelsGetForOrganizationResponse

type ModelsGetForOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Model
	JSON401      *Error
	JSON403      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseModelsGetForOrganizationResponse

func ParseModelsGetForOrganizationResponse(rsp *http.Response) (*ModelsGetForOrganizationResponse, error)

ParseModelsGetForOrganizationResponse parses an HTTP response from a ModelsGetForOrganizationWithResponse call

func (ModelsGetForOrganizationResponse) Status

Status returns HTTPResponse.Status

func (ModelsGetForOrganizationResponse) StatusCode

func (r ModelsGetForOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModelsListForOrganizationResponse

type ModelsListForOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Model
	JSON401      *Error
	JSON403      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseModelsListForOrganizationResponse

func ParseModelsListForOrganizationResponse(rsp *http.Response) (*ModelsListForOrganizationResponse, error)

ParseModelsListForOrganizationResponse parses an HTTP response from a ModelsListForOrganizationWithResponse call

func (ModelsListForOrganizationResponse) Status

Status returns HTTPResponse.Status

func (ModelsListForOrganizationResponse) StatusCode

func (r ModelsListForOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ModelsUpdateForOrganizationJSONBody

type ModelsUpdateForOrganizationJSONBody struct {
	// DefaultSchema ID of the schema to use for implicitly created model versions.
	DefaultSchema *int `json:"defaultSchema,omitempty"`
}

ModelsUpdateForOrganizationJSONBody defines parameters for ModelsUpdateForOrganization.

type ModelsUpdateForOrganizationJSONRequestBody

type ModelsUpdateForOrganizationJSONRequestBody ModelsUpdateForOrganizationJSONBody

ModelsUpdateForOrganizationJSONRequestBody defines body for ModelsUpdateForOrganization for application/json ContentType.

type ModelsUpdateForOrganizationResponse

type ModelsUpdateForOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Model
	JSON401      *Error
	JSON403      *Error
	JSON422      *Error
	JSON500      *Error
}

func ParseModelsUpdateForOrganizationResponse

func ParseModelsUpdateForOrganizationResponse(rsp *http.Response) (*ModelsUpdateForOrganizationResponse, error)

ParseModelsUpdateForOrganizationResponse parses an HTTP response from a ModelsUpdateForOrganizationWithResponse call

func (ModelsUpdateForOrganizationResponse) Status

Status returns HTTPResponse.Status

func (ModelsUpdateForOrganizationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type Organization

type Organization struct {
	Created time.Time `json:"created"`
	ID      int       `json:"id"`

	// Name Name of the organization.
	Name    string    `json:"name"`
	Updated time.Time `json:"updated"`
}

Organization An organization is a namespace holding models and their schemas.

type OrganizationsCreateJSONBody

type OrganizationsCreateJSONBody struct {
	// Name The name of the organization.
	Name string `json:"name"`
}

OrganizationsCreateJSONBody defines parameters for OrganizationsCreate.

type OrganizationsCreateJSONRequestBody

type OrganizationsCreateJSONRequestBody OrganizationsCreateJSONBody

OrganizationsCreateJSONRequestBody defines body for OrganizationsCreate for application/json ContentType.

type OrganizationsCreateResponse

type OrganizationsCreateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Organization
	JSON401      *Error
	JSON403      *Error
	JSON422      *Error
	JSON500      *Error
}

func ParseOrganizationsCreateResponse

func ParseOrganizationsCreateResponse(rsp *http.Response) (*OrganizationsCreateResponse, error)

ParseOrganizationsCreateResponse parses an HTTP response from a OrganizationsCreateWithResponse call

func (OrganizationsCreateResponse) Status

Status returns HTTPResponse.Status

func (OrganizationsCreateResponse) StatusCode

func (r OrganizationsCreateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ParameterModel

type ParameterModel = string

ParameterModel defines model for Model.

type ParameterOrganization

type ParameterOrganization = string

ParameterOrganization defines model for Organization.

type ParameterResult

type ParameterResult = int

ParameterResult defines model for Result.

type ParameterSchema

type ParameterSchema = string

ParameterSchema defines model for Schema.

type ParameterVersion

type ParameterVersion = string

ParameterVersion defines model for Version.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type Result

type Result struct {
	Created time.Time `json:"created"`
	ID      int       `json:"id"`

	// Input The input given to the model to produce this result.
	Input json.RawMessage `json:"input"`

	// Model ID of the model.
	Model int `json:"model"`

	// Organization ID of the model's organization.
	Organization int `json:"organization"`

	// Output The output that produced by the model for the given input.
	Output json.RawMessage `json:"output"`

	// Time The timestamp of when the result was produced. Defaults to the time that the model-tracking server receives the request.
	Time time.Time `json:"time"`

	// TrueOutput The correct output that should be produced for the given input.
	TrueOutput json.RawMessage `json:"trueOutput"`
	Updated    time.Time       `json:"updated"`

	// Version ID of the version.
	Version int `json:"version"`
}

Result A result represents the output produce by a particular version of a machine learning service fullfilling requests.

type ResultsCreateForVersionJSONBody

type ResultsCreateForVersionJSONBody struct {
	// Input The input given to the model to produce this result.
	Input json.RawMessage `json:"input"`

	// Output The output produced by the model for the given input.
	Output json.RawMessage `json:"output"`

	// Time The timestamp of when the result was produced. Defaults to the time that the model-tracking server receives the request.
	Time *time.Time `json:"time,omitempty"`

	// TrueOutput The correct output that should be produced for the given input.
	TrueOutput json.RawMessage `json:"trueOutput"`
}

ResultsCreateForVersionJSONBody defines parameters for ResultsCreateForVersion.

type ResultsCreateForVersionJSONRequestBody

type ResultsCreateForVersionJSONRequestBody ResultsCreateForVersionJSONBody

ResultsCreateForVersionJSONRequestBody defines body for ResultsCreateForVersion for application/json ContentType.

type ResultsCreateForVersionResponse

type ResultsCreateForVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Result
	JSON401      *Error
	JSON403      *Error
	JSON422      *Error
	JSON500      *Error
}

func ParseResultsCreateForVersionResponse

func ParseResultsCreateForVersionResponse(rsp *http.Response) (*ResultsCreateForVersionResponse, error)

ParseResultsCreateForVersionResponse parses an HTTP response from a ResultsCreateForVersionWithResponse call

func (ResultsCreateForVersionResponse) Status

Status returns HTTPResponse.Status

func (ResultsCreateForVersionResponse) StatusCode

func (r ResultsCreateForVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResultsGetForVersionResponse

type ResultsGetForVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Result
	JSON401      *Error
	JSON403      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseResultsGetForVersionResponse

func ParseResultsGetForVersionResponse(rsp *http.Response) (*ResultsGetForVersionResponse, error)

ParseResultsGetForVersionResponse parses an HTTP response from a ResultsGetForVersionWithResponse call

func (ResultsGetForVersionResponse) Status

Status returns HTTPResponse.Status

func (ResultsGetForVersionResponse) StatusCode

func (r ResultsGetForVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResultsListForVersionResponse

type ResultsListForVersionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Result
	JSON401      *Error
	JSON403      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseResultsListForVersionResponse

func ParseResultsListForVersionResponse(rsp *http.Response) (*ResultsListForVersionResponse, error)

ParseResultsListForVersionResponse parses an HTTP response from a ResultsListForVersionWithResponse call

func (ResultsListForVersionResponse) Status

Status returns HTTPResponse.Status

func (ResultsListForVersionResponse) StatusCode

func (r ResultsListForVersionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Schema

type Schema struct {
	Created time.Time `json:"created"`
	ID      int       `json:"id"`

	// Input The JSON Schema description of the model's inputs.
	Input json.RawMessage `json:"input"`

	// Name Name of the model.
	Name string `json:"name"`

	// Organization ID of the model's organization.
	Organization int `json:"organization"`

	// Output The JSON Schema description of the model's output.
	Output  json.RawMessage `json:"output"`
	Updated time.Time       `json:"updated"`
}

Schema A schema represents the expected structure of the inputs and outputs of a machine learning service.

type SchemasCreateForOrganizationJSONBody

type SchemasCreateForOrganizationJSONBody struct {
	// Input The JSON Schema description of the model's inputs.
	Input json.RawMessage `json:"input"`

	// Name The name of the schema.
	Name string `json:"name"`

	// Output The JSON Schema description of the model's outputs.
	Output json.RawMessage `json:"output"`
}

SchemasCreateForOrganizationJSONBody defines parameters for SchemasCreateForOrganization.

type SchemasCreateForOrganizationJSONRequestBody

type SchemasCreateForOrganizationJSONRequestBody SchemasCreateForOrganizationJSONBody

SchemasCreateForOrganizationJSONRequestBody defines body for SchemasCreateForOrganization for application/json ContentType.

type SchemasCreateForOrganizationResponse

type SchemasCreateForOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Schema
	JSON401      *Error
	JSON403      *Error
	JSON422      *Error
	JSON500      *Error
}

func ParseSchemasCreateForOrganizationResponse

func ParseSchemasCreateForOrganizationResponse(rsp *http.Response) (*SchemasCreateForOrganizationResponse, error)

ParseSchemasCreateForOrganizationResponse parses an HTTP response from a SchemasCreateForOrganizationWithResponse call

func (SchemasCreateForOrganizationResponse) Status

Status returns HTTPResponse.Status

func (SchemasCreateForOrganizationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type SchemasGetForOrganizationResponse

type SchemasGetForOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Schema
	JSON401      *Error
	JSON403      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseSchemasGetForOrganizationResponse

func ParseSchemasGetForOrganizationResponse(rsp *http.Response) (*SchemasGetForOrganizationResponse, error)

ParseSchemasGetForOrganizationResponse parses an HTTP response from a SchemasGetForOrganizationWithResponse call

func (SchemasGetForOrganizationResponse) Status

Status returns HTTPResponse.Status

func (SchemasGetForOrganizationResponse) StatusCode

func (r SchemasGetForOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SchemasListForOrganizationResponse

type SchemasListForOrganizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Schema
	JSON401      *Error
	JSON403      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseSchemasListForOrganizationResponse

func ParseSchemasListForOrganizationResponse(rsp *http.Response) (*SchemasListForOrganizationResponse, error)

ParseSchemasListForOrganizationResponse parses an HTTP response from a SchemasListForOrganizationWithResponse call

func (SchemasListForOrganizationResponse) Status

Status returns HTTPResponse.Status

func (SchemasListForOrganizationResponse) StatusCode

func (r SchemasListForOrganizationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ServerInterface

type ServerInterface interface {
	// Create an organization
	// (POST /organizations)
	OrganizationsCreate(w http.ResponseWriter, r *http.Request)
	// List organization models
	// (GET /organizations/{organization}/models)
	ModelsListForOrganization(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization)
	// Create an organization model
	// (POST /organizations/{organization}/models)
	ModelsCreateForOrganization(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization)
	// Get organization model
	// (GET /organizations/{organization}/models/{model})
	ModelsGetForOrganization(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization, parameterModel ParameterModel)
	// Update an organization model
	// (PUT /organizations/{organization}/models/{model})
	ModelsUpdateForOrganization(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization, parameterModel ParameterModel)
	// List model versions
	// (GET /organizations/{organization}/models/{model}/versions)
	VersionsListForModel(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization, parameterModel ParameterModel)
	// Create a model version
	// (POST /organizations/{organization}/models/{model}/versions)
	VersionsCreateForModel(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization, parameterModel ParameterModel)
	// Get model version
	// (GET /organizations/{organization}/models/{model}/versions/{version})
	VersionsGetForModel(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion)
	// List results
	// (GET /organizations/{organization}/models/{model}/versions/{version}/results)
	ResultsListForVersion(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion)
	// Create a model result
	// (POST /organizations/{organization}/models/{model}/versions/{version}/results)
	ResultsCreateForVersion(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion)
	// Get a result
	// (GET /organizations/{organization}/models/{model}/versions/{version}/results/{result})
	ResultsGetForVersion(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization, parameterModel ParameterModel, parameterVersion ParameterVersion, parameterResult ParameterResult)
	// List organization schemas
	// (GET /organizations/{organization}/schemas)
	SchemasListForOrganization(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization)
	// Create an organization schema
	// (POST /organizations/{organization}/schemas)
	SchemasCreateForOrganization(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization)
	// Get organization schema
	// (GET /organizations/{organization}/schemas/{schema})
	SchemasGetForOrganization(w http.ResponseWriter, r *http.Request, parameterOrganization ParameterOrganization, parameterSchema ParameterSchema)
}

ServerInterface represents all server handlers.

func NewServer

func NewServer(store store.ModelTracking, logger log.Logger) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) ModelsCreateForOrganization

func (siw *ServerInterfaceWrapper) ModelsCreateForOrganization(w http.ResponseWriter, r *http.Request)

ModelsCreateForOrganization operation middleware

func (*ServerInterfaceWrapper) ModelsGetForOrganization

func (siw *ServerInterfaceWrapper) ModelsGetForOrganization(w http.ResponseWriter, r *http.Request)

ModelsGetForOrganization operation middleware

func (*ServerInterfaceWrapper) ModelsListForOrganization

func (siw *ServerInterfaceWrapper) ModelsListForOrganization(w http.ResponseWriter, r *http.Request)

ModelsListForOrganization operation middleware

func (*ServerInterfaceWrapper) ModelsUpdateForOrganization

func (siw *ServerInterfaceWrapper) ModelsUpdateForOrganization(w http.ResponseWriter, r *http.Request)

ModelsUpdateForOrganization operation middleware

func (*ServerInterfaceWrapper) OrganizationsCreate

func (siw *ServerInterfaceWrapper) OrganizationsCreate(w http.ResponseWriter, r *http.Request)

OrganizationsCreate operation middleware

func (*ServerInterfaceWrapper) ResultsCreateForVersion

func (siw *ServerInterfaceWrapper) ResultsCreateForVersion(w http.ResponseWriter, r *http.Request)

ResultsCreateForVersion operation middleware

func (*ServerInterfaceWrapper) ResultsGetForVersion

func (siw *ServerInterfaceWrapper) ResultsGetForVersion(w http.ResponseWriter, r *http.Request)

ResultsGetForVersion operation middleware

func (*ServerInterfaceWrapper) ResultsListForVersion

func (siw *ServerInterfaceWrapper) ResultsListForVersion(w http.ResponseWriter, r *http.Request)

ResultsListForVersion operation middleware

func (*ServerInterfaceWrapper) SchemasCreateForOrganization

func (siw *ServerInterfaceWrapper) SchemasCreateForOrganization(w http.ResponseWriter, r *http.Request)

SchemasCreateForOrganization operation middleware

func (*ServerInterfaceWrapper) SchemasGetForOrganization

func (siw *ServerInterfaceWrapper) SchemasGetForOrganization(w http.ResponseWriter, r *http.Request)

SchemasGetForOrganization operation middleware

func (*ServerInterfaceWrapper) SchemasListForOrganization

func (siw *ServerInterfaceWrapper) SchemasListForOrganization(w http.ResponseWriter, r *http.Request)

SchemasListForOrganization operation middleware

func (*ServerInterfaceWrapper) VersionsCreateForModel

func (siw *ServerInterfaceWrapper) VersionsCreateForModel(w http.ResponseWriter, r *http.Request)

VersionsCreateForModel operation middleware

func (*ServerInterfaceWrapper) VersionsGetForModel

func (siw *ServerInterfaceWrapper) VersionsGetForModel(w http.ResponseWriter, r *http.Request)

VersionsGetForModel operation middleware

func (*ServerInterfaceWrapper) VersionsListForModel

func (siw *ServerInterfaceWrapper) VersionsListForModel(w http.ResponseWriter, r *http.Request)

VersionsListForModel operation middleware

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshallingParamError

type UnmarshallingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshallingParamError) Error

func (e *UnmarshallingParamError) Error() string

func (*UnmarshallingParamError) Unwrap

func (e *UnmarshallingParamError) Unwrap() error

type Version

type Version struct {
	Created time.Time `json:"created"`
	ID      int       `json:"id"`

	// Model ID of the model.
	Model int `json:"model"`

	// Name Name of the model.
	Name string `json:"name"`

	// Organization ID of the model's organization.
	Organization int `json:"organization"`

	// Schema ID of the schema of the model's inputs and outputs.
	Schema  int       `json:"schema"`
	Updated time.Time `json:"updated"`
}

Version A version represents a version of a machine learning service fullfilling requests.

type VersionsCreateForModelJSONBody

type VersionsCreateForModelJSONBody struct {
	// Name The name of the version.
	Name string `json:"name"`

	// Schema The ID of the schema used by this version of the model.
	Schema int `json:"schema"`
}

VersionsCreateForModelJSONBody defines parameters for VersionsCreateForModel.

type VersionsCreateForModelJSONRequestBody

type VersionsCreateForModelJSONRequestBody VersionsCreateForModelJSONBody

VersionsCreateForModelJSONRequestBody defines body for VersionsCreateForModel for application/json ContentType.

type VersionsCreateForModelResponse

type VersionsCreateForModelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Version
	JSON401      *Error
	JSON403      *Error
	JSON422      *Error
	JSON500      *Error
}

func ParseVersionsCreateForModelResponse

func ParseVersionsCreateForModelResponse(rsp *http.Response) (*VersionsCreateForModelResponse, error)

ParseVersionsCreateForModelResponse parses an HTTP response from a VersionsCreateForModelWithResponse call

func (VersionsCreateForModelResponse) Status

Status returns HTTPResponse.Status

func (VersionsCreateForModelResponse) StatusCode

func (r VersionsCreateForModelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VersionsGetForModelResponse

type VersionsGetForModelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Version
	JSON401      *Error
	JSON403      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseVersionsGetForModelResponse

func ParseVersionsGetForModelResponse(rsp *http.Response) (*VersionsGetForModelResponse, error)

ParseVersionsGetForModelResponse parses an HTTP response from a VersionsGetForModelWithResponse call

func (VersionsGetForModelResponse) Status

Status returns HTTPResponse.Status

func (VersionsGetForModelResponse) StatusCode

func (r VersionsGetForModelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type VersionsListForModelResponse

type VersionsListForModelResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Version
	JSON401      *Error
	JSON403      *Error
	JSON404      *Error
	JSON500      *Error
}

func ParseVersionsListForModelResponse

func ParseVersionsListForModelResponse(rsp *http.Response) (*VersionsListForModelResponse, error)

ParseVersionsListForModelResponse parses an HTTP response from a VersionsListForModelWithResponse call

func (VersionsListForModelResponse) Status

Status returns HTTPResponse.Status

func (VersionsListForModelResponse) StatusCode

func (r VersionsListForModelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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