Documentation
¶
Overview ¶
Package v1alpha1 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func NewCreateCatalogItemRequest(server string, catalog string, body CreateCatalogItemJSONRequestBody) (*http.Request, error)
- func NewCreateCatalogItemRequestWithBody(server string, catalog string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateCatalogRequest(server string, body CreateCatalogJSONRequestBody) (*http.Request, error)
- func NewCreateCatalogRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteCatalogItemRequest(server string, catalog string, name string) (*http.Request, error)
- func NewDeleteCatalogRequest(server string, name string) (*http.Request, error)
- func NewGetCatalogItemRequest(server string, catalog string, name string) (*http.Request, error)
- func NewGetCatalogRequest(server string, name string) (*http.Request, error)
- func NewGetCatalogStatusRequest(server string, name string) (*http.Request, error)
- func NewListAllCatalogItemsRequest(server string, params *ListAllCatalogItemsParams) (*http.Request, error)
- func NewListCatalogItemsRequest(server string, catalog string, params *ListCatalogItemsParams) (*http.Request, error)
- func NewListCatalogsRequest(server string, params *ListCatalogsParams) (*http.Request, error)
- func NewPatchCatalogRequestWithApplicationJSONPatchPlusJSONBody(server string, name string, ...) (*http.Request, error)
- func NewPatchCatalogRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- func NewPatchCatalogStatusRequestWithApplicationJSONPatchPlusJSONBody(server string, name string, ...) (*http.Request, error)
- func NewPatchCatalogStatusRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- func NewReplaceCatalogItemRequest(server string, catalog string, name string, ...) (*http.Request, error)
- func NewReplaceCatalogItemRequestWithBody(server string, catalog string, name string, contentType string, body io.Reader) (*http.Request, error)
- func NewReplaceCatalogRequest(server string, name string, body ReplaceCatalogJSONRequestBody) (*http.Request, error)
- func NewReplaceCatalogRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- func NewReplaceCatalogStatusRequest(server string, name string, body ReplaceCatalogStatusJSONRequestBody) (*http.Request, error)
- func NewReplaceCatalogStatusRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- type Client
- func (c *Client) CreateCatalog(ctx context.Context, body CreateCatalogJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateCatalogItem(ctx context.Context, catalog string, body CreateCatalogItemJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateCatalogItemWithBody(ctx context.Context, catalog string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateCatalogWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteCatalog(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteCatalogItem(ctx context.Context, catalog string, name string, ...) (*http.Response, error)
- func (c *Client) GetCatalog(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetCatalogItem(ctx context.Context, catalog string, name string, ...) (*http.Response, error)
- func (c *Client) GetCatalogStatus(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAllCatalogItems(ctx context.Context, params *ListAllCatalogItemsParams, ...) (*http.Response, error)
- func (c *Client) ListCatalogItems(ctx context.Context, catalog string, params *ListCatalogItemsParams, ...) (*http.Response, error)
- func (c *Client) ListCatalogs(ctx context.Context, params *ListCatalogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PatchCatalogStatusWithApplicationJSONPatchPlusJSONBody(ctx context.Context, name string, ...) (*http.Response, error)
- func (c *Client) PatchCatalogStatusWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PatchCatalogWithApplicationJSONPatchPlusJSONBody(ctx context.Context, name string, ...) (*http.Response, error)
- func (c *Client) PatchCatalogWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReplaceCatalog(ctx context.Context, name string, body ReplaceCatalogJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReplaceCatalogItem(ctx context.Context, catalog string, name string, ...) (*http.Response, error)
- func (c *Client) ReplaceCatalogItemWithBody(ctx context.Context, catalog string, name string, contentType string, ...) (*http.Response, error)
- func (c *Client) ReplaceCatalogStatus(ctx context.Context, name string, body ReplaceCatalogStatusJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReplaceCatalogStatusWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReplaceCatalogWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateCatalogItemWithBodyWithResponse(ctx context.Context, catalog string, contentType string, body io.Reader, ...) (*CreateCatalogItemResponse, error)
- func (c *ClientWithResponses) CreateCatalogItemWithResponse(ctx context.Context, catalog string, body CreateCatalogItemJSONRequestBody, ...) (*CreateCatalogItemResponse, error)
- func (c *ClientWithResponses) CreateCatalogWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateCatalogResponse, error)
- func (c *ClientWithResponses) CreateCatalogWithResponse(ctx context.Context, body CreateCatalogJSONRequestBody, ...) (*CreateCatalogResponse, error)
- func (c *ClientWithResponses) DeleteCatalogItemWithResponse(ctx context.Context, catalog string, name string, ...) (*DeleteCatalogItemResponse, error)
- func (c *ClientWithResponses) DeleteCatalogWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteCatalogResponse, error)
- func (c *ClientWithResponses) GetCatalogItemWithResponse(ctx context.Context, catalog string, name string, ...) (*GetCatalogItemResponse, error)
- func (c *ClientWithResponses) GetCatalogStatusWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetCatalogStatusResponse, error)
- func (c *ClientWithResponses) GetCatalogWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetCatalogResponse, error)
- func (c *ClientWithResponses) ListAllCatalogItemsWithResponse(ctx context.Context, params *ListAllCatalogItemsParams, ...) (*ListAllCatalogItemsResponse, error)
- func (c *ClientWithResponses) ListCatalogItemsWithResponse(ctx context.Context, catalog string, params *ListCatalogItemsParams, ...) (*ListCatalogItemsResponse, error)
- func (c *ClientWithResponses) ListCatalogsWithResponse(ctx context.Context, params *ListCatalogsParams, reqEditors ...RequestEditorFn) (*ListCatalogsResponse, error)
- func (c *ClientWithResponses) PatchCatalogStatusWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, name string, ...) (*PatchCatalogStatusResponse, error)
- func (c *ClientWithResponses) PatchCatalogStatusWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*PatchCatalogStatusResponse, error)
- func (c *ClientWithResponses) PatchCatalogWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, name string, ...) (*PatchCatalogResponse, error)
- func (c *ClientWithResponses) PatchCatalogWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*PatchCatalogResponse, error)
- func (c *ClientWithResponses) ReplaceCatalogItemWithBodyWithResponse(ctx context.Context, catalog string, name string, contentType string, ...) (*ReplaceCatalogItemResponse, error)
- func (c *ClientWithResponses) ReplaceCatalogItemWithResponse(ctx context.Context, catalog string, name string, ...) (*ReplaceCatalogItemResponse, error)
- func (c *ClientWithResponses) ReplaceCatalogStatusWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*ReplaceCatalogStatusResponse, error)
- func (c *ClientWithResponses) ReplaceCatalogStatusWithResponse(ctx context.Context, name string, body ReplaceCatalogStatusJSONRequestBody, ...) (*ReplaceCatalogStatusResponse, error)
- func (c *ClientWithResponses) ReplaceCatalogWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*ReplaceCatalogResponse, error)
- func (c *ClientWithResponses) ReplaceCatalogWithResponse(ctx context.Context, name string, body ReplaceCatalogJSONRequestBody, ...) (*ReplaceCatalogResponse, error)
- type ClientWithResponsesInterface
- type CreateCatalogItemResponse
- type CreateCatalogResponse
- type DeleteCatalogItemResponse
- type DeleteCatalogResponse
- type GetCatalogItemResponse
- type GetCatalogResponse
- type GetCatalogStatusResponse
- type HttpRequestDoer
- type ListAllCatalogItemsResponse
- type ListCatalogItemsResponse
- type ListCatalogsResponse
- type PatchCatalogResponse
- type PatchCatalogStatusResponse
- type ReplaceCatalogItemResponse
- type ReplaceCatalogResponse
- type ReplaceCatalogStatusResponse
- type RequestEditorFn
Constants ¶
const ServerUrlApiv1 = "/api/v1"
ServerUrlApiv1 defines the Server URL for
Variables ¶
This section is empty.
Functions ¶
func NewCreateCatalogItemRequest ¶
func NewCreateCatalogItemRequest(server string, catalog string, body CreateCatalogItemJSONRequestBody) (*http.Request, error)
NewCreateCatalogItemRequest calls the generic CreateCatalogItem builder with application/json body
func NewCreateCatalogItemRequestWithBody ¶
func NewCreateCatalogItemRequestWithBody(server string, catalog string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCatalogItemRequestWithBody generates requests for CreateCatalogItem with any type of body
func NewCreateCatalogRequest ¶
func NewCreateCatalogRequest(server string, body CreateCatalogJSONRequestBody) (*http.Request, error)
NewCreateCatalogRequest calls the generic CreateCatalog builder with application/json body
func NewCreateCatalogRequestWithBody ¶
func NewCreateCatalogRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateCatalogRequestWithBody generates requests for CreateCatalog with any type of body
func NewDeleteCatalogItemRequest ¶
NewDeleteCatalogItemRequest generates requests for DeleteCatalogItem
func NewDeleteCatalogRequest ¶
NewDeleteCatalogRequest generates requests for DeleteCatalog
func NewGetCatalogItemRequest ¶
NewGetCatalogItemRequest generates requests for GetCatalogItem
func NewGetCatalogRequest ¶
NewGetCatalogRequest generates requests for GetCatalog
func NewGetCatalogStatusRequest ¶
NewGetCatalogStatusRequest generates requests for GetCatalogStatus
func NewListAllCatalogItemsRequest ¶
func NewListAllCatalogItemsRequest(server string, params *ListAllCatalogItemsParams) (*http.Request, error)
NewListAllCatalogItemsRequest generates requests for ListAllCatalogItems
func NewListCatalogItemsRequest ¶
func NewListCatalogItemsRequest(server string, catalog string, params *ListCatalogItemsParams) (*http.Request, error)
NewListCatalogItemsRequest generates requests for ListCatalogItems
func NewListCatalogsRequest ¶
NewListCatalogsRequest generates requests for ListCatalogs
func NewPatchCatalogRequestWithApplicationJSONPatchPlusJSONBody ¶
func NewPatchCatalogRequestWithApplicationJSONPatchPlusJSONBody(server string, name string, body PatchCatalogApplicationJSONPatchPlusJSONRequestBody) (*http.Request, error)
NewPatchCatalogRequestWithApplicationJSONPatchPlusJSONBody calls the generic PatchCatalog builder with application/json-patch+json body
func NewPatchCatalogRequestWithBody ¶
func NewPatchCatalogRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
NewPatchCatalogRequestWithBody generates requests for PatchCatalog with any type of body
func NewPatchCatalogStatusRequestWithApplicationJSONPatchPlusJSONBody ¶
func NewPatchCatalogStatusRequestWithApplicationJSONPatchPlusJSONBody(server string, name string, body PatchCatalogStatusApplicationJSONPatchPlusJSONRequestBody) (*http.Request, error)
NewPatchCatalogStatusRequestWithApplicationJSONPatchPlusJSONBody calls the generic PatchCatalogStatus builder with application/json-patch+json body
func NewPatchCatalogStatusRequestWithBody ¶
func NewPatchCatalogStatusRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
NewPatchCatalogStatusRequestWithBody generates requests for PatchCatalogStatus with any type of body
func NewReplaceCatalogItemRequest ¶
func NewReplaceCatalogItemRequest(server string, catalog string, name string, body ReplaceCatalogItemJSONRequestBody) (*http.Request, error)
NewReplaceCatalogItemRequest calls the generic ReplaceCatalogItem builder with application/json body
func NewReplaceCatalogItemRequestWithBody ¶
func NewReplaceCatalogItemRequestWithBody(server string, catalog string, name string, contentType string, body io.Reader) (*http.Request, error)
NewReplaceCatalogItemRequestWithBody generates requests for ReplaceCatalogItem with any type of body
func NewReplaceCatalogRequest ¶
func NewReplaceCatalogRequest(server string, name string, body ReplaceCatalogJSONRequestBody) (*http.Request, error)
NewReplaceCatalogRequest calls the generic ReplaceCatalog builder with application/json body
func NewReplaceCatalogRequestWithBody ¶
func NewReplaceCatalogRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
NewReplaceCatalogRequestWithBody generates requests for ReplaceCatalog with any type of body
Types ¶
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) CreateCatalog ¶
func (*Client) CreateCatalogItem ¶
func (*Client) CreateCatalogItemWithBody ¶
func (*Client) CreateCatalogWithBody ¶
func (*Client) DeleteCatalog ¶
func (*Client) DeleteCatalogItem ¶
func (*Client) GetCatalog ¶
func (*Client) GetCatalogItem ¶
func (*Client) GetCatalogStatus ¶
func (*Client) ListAllCatalogItems ¶
func (*Client) ListCatalogItems ¶
func (*Client) ListCatalogs ¶
func (*Client) PatchCatalogStatusWithApplicationJSONPatchPlusJSONBody ¶
func (*Client) PatchCatalogStatusWithBody ¶
func (*Client) PatchCatalogWithApplicationJSONPatchPlusJSONBody ¶
func (*Client) PatchCatalogWithBody ¶
func (*Client) ReplaceCatalog ¶
func (*Client) ReplaceCatalogItem ¶
func (*Client) ReplaceCatalogItemWithBody ¶
func (*Client) ReplaceCatalogStatus ¶
func (*Client) ReplaceCatalogStatusWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// ListAllCatalogItems request
ListAllCatalogItems(ctx context.Context, params *ListAllCatalogItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCatalogs request
ListCatalogs(ctx context.Context, params *ListCatalogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCatalogWithBody request with any body
CreateCatalogWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCatalog(ctx context.Context, body CreateCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCatalogItems request
ListCatalogItems(ctx context.Context, catalog string, params *ListCatalogItemsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCatalogItemWithBody request with any body
CreateCatalogItemWithBody(ctx context.Context, catalog string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCatalogItem(ctx context.Context, catalog string, body CreateCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCatalogItem request
DeleteCatalogItem(ctx context.Context, catalog string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCatalogItem request
GetCatalogItem(ctx context.Context, catalog string, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplaceCatalogItemWithBody request with any body
ReplaceCatalogItemWithBody(ctx context.Context, catalog string, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplaceCatalogItem(ctx context.Context, catalog string, name string, body ReplaceCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCatalog request
DeleteCatalog(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCatalog request
GetCatalog(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchCatalogWithBody request with any body
PatchCatalogWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchCatalogWithApplicationJSONPatchPlusJSONBody(ctx context.Context, name string, body PatchCatalogApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplaceCatalogWithBody request with any body
ReplaceCatalogWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplaceCatalog(ctx context.Context, name string, body ReplaceCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCatalogStatus request
GetCatalogStatus(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchCatalogStatusWithBody request with any body
PatchCatalogStatusWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchCatalogStatusWithApplicationJSONPatchPlusJSONBody(ctx context.Context, name string, body PatchCatalogStatusApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReplaceCatalogStatusWithBody request with any body
ReplaceCatalogStatusWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReplaceCatalogStatus(ctx context.Context, name string, body ReplaceCatalogStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
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) CreateCatalogItemWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCatalogItemWithBodyWithResponse(ctx context.Context, catalog string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogItemResponse, error)
CreateCatalogItemWithBodyWithResponse request with arbitrary body returning *CreateCatalogItemResponse
func (*ClientWithResponses) CreateCatalogItemWithResponse ¶
func (c *ClientWithResponses) CreateCatalogItemWithResponse(ctx context.Context, catalog string, body CreateCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCatalogItemResponse, error)
func (*ClientWithResponses) CreateCatalogWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCatalogWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogResponse, error)
CreateCatalogWithBodyWithResponse request with arbitrary body returning *CreateCatalogResponse
func (*ClientWithResponses) CreateCatalogWithResponse ¶
func (c *ClientWithResponses) CreateCatalogWithResponse(ctx context.Context, body CreateCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCatalogResponse, error)
func (*ClientWithResponses) DeleteCatalogItemWithResponse ¶
func (c *ClientWithResponses) DeleteCatalogItemWithResponse(ctx context.Context, catalog string, name string, reqEditors ...RequestEditorFn) (*DeleteCatalogItemResponse, error)
DeleteCatalogItemWithResponse request returning *DeleteCatalogItemResponse
func (*ClientWithResponses) DeleteCatalogWithResponse ¶
func (c *ClientWithResponses) DeleteCatalogWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteCatalogResponse, error)
DeleteCatalogWithResponse request returning *DeleteCatalogResponse
func (*ClientWithResponses) GetCatalogItemWithResponse ¶
func (c *ClientWithResponses) GetCatalogItemWithResponse(ctx context.Context, catalog string, name string, reqEditors ...RequestEditorFn) (*GetCatalogItemResponse, error)
GetCatalogItemWithResponse request returning *GetCatalogItemResponse
func (*ClientWithResponses) GetCatalogStatusWithResponse ¶
func (c *ClientWithResponses) GetCatalogStatusWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetCatalogStatusResponse, error)
GetCatalogStatusWithResponse request returning *GetCatalogStatusResponse
func (*ClientWithResponses) GetCatalogWithResponse ¶
func (c *ClientWithResponses) GetCatalogWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetCatalogResponse, error)
GetCatalogWithResponse request returning *GetCatalogResponse
func (*ClientWithResponses) ListAllCatalogItemsWithResponse ¶
func (c *ClientWithResponses) ListAllCatalogItemsWithResponse(ctx context.Context, params *ListAllCatalogItemsParams, reqEditors ...RequestEditorFn) (*ListAllCatalogItemsResponse, error)
ListAllCatalogItemsWithResponse request returning *ListAllCatalogItemsResponse
func (*ClientWithResponses) ListCatalogItemsWithResponse ¶
func (c *ClientWithResponses) ListCatalogItemsWithResponse(ctx context.Context, catalog string, params *ListCatalogItemsParams, reqEditors ...RequestEditorFn) (*ListCatalogItemsResponse, error)
ListCatalogItemsWithResponse request returning *ListCatalogItemsResponse
func (*ClientWithResponses) ListCatalogsWithResponse ¶
func (c *ClientWithResponses) ListCatalogsWithResponse(ctx context.Context, params *ListCatalogsParams, reqEditors ...RequestEditorFn) (*ListCatalogsResponse, error)
ListCatalogsWithResponse request returning *ListCatalogsResponse
func (*ClientWithResponses) PatchCatalogStatusWithApplicationJSONPatchPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) PatchCatalogStatusWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, name string, body PatchCatalogStatusApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCatalogStatusResponse, error)
func (*ClientWithResponses) PatchCatalogStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchCatalogStatusWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCatalogStatusResponse, error)
PatchCatalogStatusWithBodyWithResponse request with arbitrary body returning *PatchCatalogStatusResponse
func (*ClientWithResponses) PatchCatalogWithApplicationJSONPatchPlusJSONBodyWithResponse ¶
func (c *ClientWithResponses) PatchCatalogWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, name string, body PatchCatalogApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCatalogResponse, error)
func (*ClientWithResponses) PatchCatalogWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchCatalogWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCatalogResponse, error)
PatchCatalogWithBodyWithResponse request with arbitrary body returning *PatchCatalogResponse
func (*ClientWithResponses) ReplaceCatalogItemWithBodyWithResponse ¶
func (c *ClientWithResponses) ReplaceCatalogItemWithBodyWithResponse(ctx context.Context, catalog string, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceCatalogItemResponse, error)
ReplaceCatalogItemWithBodyWithResponse request with arbitrary body returning *ReplaceCatalogItemResponse
func (*ClientWithResponses) ReplaceCatalogItemWithResponse ¶
func (c *ClientWithResponses) ReplaceCatalogItemWithResponse(ctx context.Context, catalog string, name string, body ReplaceCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceCatalogItemResponse, error)
func (*ClientWithResponses) ReplaceCatalogStatusWithBodyWithResponse ¶
func (c *ClientWithResponses) ReplaceCatalogStatusWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceCatalogStatusResponse, error)
ReplaceCatalogStatusWithBodyWithResponse request with arbitrary body returning *ReplaceCatalogStatusResponse
func (*ClientWithResponses) ReplaceCatalogStatusWithResponse ¶
func (c *ClientWithResponses) ReplaceCatalogStatusWithResponse(ctx context.Context, name string, body ReplaceCatalogStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceCatalogStatusResponse, error)
func (*ClientWithResponses) ReplaceCatalogWithBodyWithResponse ¶
func (c *ClientWithResponses) ReplaceCatalogWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceCatalogResponse, error)
ReplaceCatalogWithBodyWithResponse request with arbitrary body returning *ReplaceCatalogResponse
func (*ClientWithResponses) ReplaceCatalogWithResponse ¶
func (c *ClientWithResponses) ReplaceCatalogWithResponse(ctx context.Context, name string, body ReplaceCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceCatalogResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAllCatalogItemsWithResponse request
ListAllCatalogItemsWithResponse(ctx context.Context, params *ListAllCatalogItemsParams, reqEditors ...RequestEditorFn) (*ListAllCatalogItemsResponse, error)
// ListCatalogsWithResponse request
ListCatalogsWithResponse(ctx context.Context, params *ListCatalogsParams, reqEditors ...RequestEditorFn) (*ListCatalogsResponse, error)
// CreateCatalogWithBodyWithResponse request with any body
CreateCatalogWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogResponse, error)
CreateCatalogWithResponse(ctx context.Context, body CreateCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCatalogResponse, error)
// ListCatalogItemsWithResponse request
ListCatalogItemsWithResponse(ctx context.Context, catalog string, params *ListCatalogItemsParams, reqEditors ...RequestEditorFn) (*ListCatalogItemsResponse, error)
// CreateCatalogItemWithBodyWithResponse request with any body
CreateCatalogItemWithBodyWithResponse(ctx context.Context, catalog string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCatalogItemResponse, error)
CreateCatalogItemWithResponse(ctx context.Context, catalog string, body CreateCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCatalogItemResponse, error)
// DeleteCatalogItemWithResponse request
DeleteCatalogItemWithResponse(ctx context.Context, catalog string, name string, reqEditors ...RequestEditorFn) (*DeleteCatalogItemResponse, error)
// GetCatalogItemWithResponse request
GetCatalogItemWithResponse(ctx context.Context, catalog string, name string, reqEditors ...RequestEditorFn) (*GetCatalogItemResponse, error)
// ReplaceCatalogItemWithBodyWithResponse request with any body
ReplaceCatalogItemWithBodyWithResponse(ctx context.Context, catalog string, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceCatalogItemResponse, error)
ReplaceCatalogItemWithResponse(ctx context.Context, catalog string, name string, body ReplaceCatalogItemJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceCatalogItemResponse, error)
// DeleteCatalogWithResponse request
DeleteCatalogWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteCatalogResponse, error)
// GetCatalogWithResponse request
GetCatalogWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetCatalogResponse, error)
// PatchCatalogWithBodyWithResponse request with any body
PatchCatalogWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCatalogResponse, error)
PatchCatalogWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, name string, body PatchCatalogApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCatalogResponse, error)
// ReplaceCatalogWithBodyWithResponse request with any body
ReplaceCatalogWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceCatalogResponse, error)
ReplaceCatalogWithResponse(ctx context.Context, name string, body ReplaceCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceCatalogResponse, error)
// GetCatalogStatusWithResponse request
GetCatalogStatusWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetCatalogStatusResponse, error)
// PatchCatalogStatusWithBodyWithResponse request with any body
PatchCatalogStatusWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchCatalogStatusResponse, error)
PatchCatalogStatusWithApplicationJSONPatchPlusJSONBodyWithResponse(ctx context.Context, name string, body PatchCatalogStatusApplicationJSONPatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchCatalogStatusResponse, error)
// ReplaceCatalogStatusWithBodyWithResponse request with any body
ReplaceCatalogStatusWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReplaceCatalogStatusResponse, error)
ReplaceCatalogStatusWithResponse(ctx context.Context, name string, body ReplaceCatalogStatusJSONRequestBody, reqEditors ...RequestEditorFn) (*ReplaceCatalogStatusResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateCatalogItemResponse ¶
type CreateCatalogItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CatalogItem
JSON400 *Status
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON409 *Status
JSON503 *Status
}
func ParseCreateCatalogItemResponse ¶
func ParseCreateCatalogItemResponse(rsp *http.Response) (*CreateCatalogItemResponse, error)
ParseCreateCatalogItemResponse parses an HTTP response from a CreateCatalogItemWithResponse call
func (CreateCatalogItemResponse) Status ¶
func (r CreateCatalogItemResponse) Status() string
Status returns HTTPResponse.Status
func (CreateCatalogItemResponse) StatusCode ¶
func (r CreateCatalogItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCatalogResponse ¶
type CreateCatalogResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Catalog
JSON400 *Status
JSON401 *Status
JSON403 *Status
JSON409 *Status
JSON429 *Status
JSON503 *Status
}
func ParseCreateCatalogResponse ¶
func ParseCreateCatalogResponse(rsp *http.Response) (*CreateCatalogResponse, error)
ParseCreateCatalogResponse parses an HTTP response from a CreateCatalogWithResponse call
func (CreateCatalogResponse) Status ¶
func (r CreateCatalogResponse) Status() string
Status returns HTTPResponse.Status
func (CreateCatalogResponse) StatusCode ¶
func (r CreateCatalogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCatalogItemResponse ¶
type DeleteCatalogItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Status
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON503 *Status
}
func ParseDeleteCatalogItemResponse ¶
func ParseDeleteCatalogItemResponse(rsp *http.Response) (*DeleteCatalogItemResponse, error)
ParseDeleteCatalogItemResponse parses an HTTP response from a DeleteCatalogItemWithResponse call
func (DeleteCatalogItemResponse) Status ¶
func (r DeleteCatalogItemResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCatalogItemResponse) StatusCode ¶
func (r DeleteCatalogItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCatalogResponse ¶
type DeleteCatalogResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Status
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON429 *Status
JSON503 *Status
}
func ParseDeleteCatalogResponse ¶
func ParseDeleteCatalogResponse(rsp *http.Response) (*DeleteCatalogResponse, error)
ParseDeleteCatalogResponse parses an HTTP response from a DeleteCatalogWithResponse call
func (DeleteCatalogResponse) Status ¶
func (r DeleteCatalogResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCatalogResponse) StatusCode ¶
func (r DeleteCatalogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCatalogItemResponse ¶
type GetCatalogItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CatalogItem
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON503 *Status
}
func ParseGetCatalogItemResponse ¶
func ParseGetCatalogItemResponse(rsp *http.Response) (*GetCatalogItemResponse, error)
ParseGetCatalogItemResponse parses an HTTP response from a GetCatalogItemWithResponse call
func (GetCatalogItemResponse) Status ¶
func (r GetCatalogItemResponse) Status() string
Status returns HTTPResponse.Status
func (GetCatalogItemResponse) StatusCode ¶
func (r GetCatalogItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCatalogResponse ¶
type GetCatalogResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Catalog
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON429 *Status
JSON503 *Status
}
func ParseGetCatalogResponse ¶
func ParseGetCatalogResponse(rsp *http.Response) (*GetCatalogResponse, error)
ParseGetCatalogResponse parses an HTTP response from a GetCatalogWithResponse call
func (GetCatalogResponse) Status ¶
func (r GetCatalogResponse) Status() string
Status returns HTTPResponse.Status
func (GetCatalogResponse) StatusCode ¶
func (r GetCatalogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCatalogStatusResponse ¶
type GetCatalogStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Catalog
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON429 *Status
JSON503 *Status
}
func ParseGetCatalogStatusResponse ¶
func ParseGetCatalogStatusResponse(rsp *http.Response) (*GetCatalogStatusResponse, error)
ParseGetCatalogStatusResponse parses an HTTP response from a GetCatalogStatusWithResponse call
func (GetCatalogStatusResponse) Status ¶
func (r GetCatalogStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetCatalogStatusResponse) StatusCode ¶
func (r GetCatalogStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListAllCatalogItemsResponse ¶
type ListAllCatalogItemsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CatalogItemList
JSON400 *externalRef0.Status
JSON401 *externalRef0.Status
JSON403 *externalRef0.Status
JSON429 *externalRef0.Status
JSON503 *externalRef0.Status
}
func ParseListAllCatalogItemsResponse ¶
func ParseListAllCatalogItemsResponse(rsp *http.Response) (*ListAllCatalogItemsResponse, error)
ParseListAllCatalogItemsResponse parses an HTTP response from a ListAllCatalogItemsWithResponse call
func (ListAllCatalogItemsResponse) Status ¶
func (r ListAllCatalogItemsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAllCatalogItemsResponse) StatusCode ¶
func (r ListAllCatalogItemsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCatalogItemsResponse ¶
type ListCatalogItemsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CatalogItemList
JSON400 *Status
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON429 *Status
JSON503 *Status
}
func ParseListCatalogItemsResponse ¶
func ParseListCatalogItemsResponse(rsp *http.Response) (*ListCatalogItemsResponse, error)
ParseListCatalogItemsResponse parses an HTTP response from a ListCatalogItemsWithResponse call
func (ListCatalogItemsResponse) Status ¶
func (r ListCatalogItemsResponse) Status() string
Status returns HTTPResponse.Status
func (ListCatalogItemsResponse) StatusCode ¶
func (r ListCatalogItemsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCatalogsResponse ¶
type ListCatalogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CatalogList
JSON400 *Status
JSON401 *Status
JSON403 *Status
JSON429 *Status
JSON503 *Status
}
func ParseListCatalogsResponse ¶
func ParseListCatalogsResponse(rsp *http.Response) (*ListCatalogsResponse, error)
ParseListCatalogsResponse parses an HTTP response from a ListCatalogsWithResponse call
func (ListCatalogsResponse) Status ¶
func (r ListCatalogsResponse) Status() string
Status returns HTTPResponse.Status
func (ListCatalogsResponse) StatusCode ¶
func (r ListCatalogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchCatalogResponse ¶
type PatchCatalogResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Catalog
JSON400 *Status
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON409 *Status
JSON429 *Status
JSON503 *Status
}
func ParsePatchCatalogResponse ¶
func ParsePatchCatalogResponse(rsp *http.Response) (*PatchCatalogResponse, error)
ParsePatchCatalogResponse parses an HTTP response from a PatchCatalogWithResponse call
func (PatchCatalogResponse) Status ¶
func (r PatchCatalogResponse) Status() string
Status returns HTTPResponse.Status
func (PatchCatalogResponse) StatusCode ¶
func (r PatchCatalogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PatchCatalogStatusResponse ¶
type PatchCatalogStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Catalog
JSON400 *Status
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON429 *Status
JSON503 *Status
}
func ParsePatchCatalogStatusResponse ¶
func ParsePatchCatalogStatusResponse(rsp *http.Response) (*PatchCatalogStatusResponse, error)
ParsePatchCatalogStatusResponse parses an HTTP response from a PatchCatalogStatusWithResponse call
func (PatchCatalogStatusResponse) Status ¶
func (r PatchCatalogStatusResponse) Status() string
Status returns HTTPResponse.Status
func (PatchCatalogStatusResponse) StatusCode ¶
func (r PatchCatalogStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReplaceCatalogItemResponse ¶
type ReplaceCatalogItemResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CatalogItem
JSON201 *CatalogItem
JSON400 *Status
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON409 *Status
JSON503 *Status
}
func ParseReplaceCatalogItemResponse ¶
func ParseReplaceCatalogItemResponse(rsp *http.Response) (*ReplaceCatalogItemResponse, error)
ParseReplaceCatalogItemResponse parses an HTTP response from a ReplaceCatalogItemWithResponse call
func (ReplaceCatalogItemResponse) Status ¶
func (r ReplaceCatalogItemResponse) Status() string
Status returns HTTPResponse.Status
func (ReplaceCatalogItemResponse) StatusCode ¶
func (r ReplaceCatalogItemResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReplaceCatalogResponse ¶
type ReplaceCatalogResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Catalog
JSON201 *Catalog
JSON400 *Status
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON409 *Status
JSON429 *Status
JSON503 *Status
}
func ParseReplaceCatalogResponse ¶
func ParseReplaceCatalogResponse(rsp *http.Response) (*ReplaceCatalogResponse, error)
ParseReplaceCatalogResponse parses an HTTP response from a ReplaceCatalogWithResponse call
func (ReplaceCatalogResponse) Status ¶
func (r ReplaceCatalogResponse) Status() string
Status returns HTTPResponse.Status
func (ReplaceCatalogResponse) StatusCode ¶
func (r ReplaceCatalogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReplaceCatalogStatusResponse ¶
type ReplaceCatalogStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Catalog
JSON401 *Status
JSON403 *Status
JSON404 *Status
JSON409 *Status
JSON429 *Status
JSON503 *Status
}
func ParseReplaceCatalogStatusResponse ¶
func ParseReplaceCatalogStatusResponse(rsp *http.Response) (*ReplaceCatalogStatusResponse, error)
ParseReplaceCatalogStatusResponse parses an HTTP response from a ReplaceCatalogStatusWithResponse call
func (ReplaceCatalogStatusResponse) Status ¶
func (r ReplaceCatalogStatusResponse) Status() string
Status returns HTTPResponse.Status
func (ReplaceCatalogStatusResponse) StatusCode ¶
func (r ReplaceCatalogStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode