Documentation
¶
Overview ¶
Package ar_pkg provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT.
Index ¶
- Constants
- func NewDeleteGenericFileFromPathRequest(server string, accountId string, registry string, pPackage string, ...) (*http.Request, error)
- func NewDownloadGenericFileFromPathRequest(server string, accountId string, registry string, pPackage string, ...) (*http.Request, error)
- func NewDownloadGenericPackageRequest(server string, accountId string, registry string, pPackage string, ...) (*http.Request, error)
- func NewHeadGenericFileAtPathRequest(server string, accountId string, registry string, pPackage string, ...) (*http.Request, error)
- func NewUploadCargoPackageRequestWithBody(server string, accountId string, registry string, contentType string, ...) (*http.Request, error)
- func NewUploadComposerPackageRequestWithBody(server string, accountId string, registry string, contentType string, ...) (*http.Request, error)
- func NewUploadCondaPackageRequestWithBody(server string, accountId string, registry string, contentType string, ...) (*http.Request, error)
- func NewUploadDartPackageRequestWithBody(server string, accountId string, registry string, uploadId string, ...) (*http.Request, error)
- func NewUploadGenericFileToPathRequestWithBody(server string, accountId string, registry string, pPackage string, ...) (*http.Request, error)
- func NewUploadGenericPackageRequestWithBody(server string, accountId string, registry string, pPackage string, ...) (*http.Request, error)
- func NewUploadGoPackageRequestWithBody(server string, accountId string, registry string, contentType string, ...) (*http.Request, error)
- func NewUploadNPMPackageRequestWithBody(server string, accountId string, registry string, pPackage string, ...) (*http.Request, error)
- func NewUploadNugetPackageRequestWithBody(server string, accountId string, registry string, contentType string, ...) (*http.Request, error)
- func NewUploadPythonPackageRequestWithBody(server string, accountId string, registry string, contentType string, ...) (*http.Request, error)
- func NewUploadRpmPackageRequestWithBody(server string, accountId string, registry string, contentType string, ...) (*http.Request, error)
- type Client
- func (c *Client) DeleteGenericFileFromPath(ctx context.Context, accountId string, registry string, pPackage string, ...) (*http.Response, error)
- func (c *Client) DownloadGenericFileFromPath(ctx context.Context, accountId string, registry string, pPackage string, ...) (*http.Response, error)
- func (c *Client) DownloadGenericPackage(ctx context.Context, accountId string, registry string, pPackage string, ...) (*http.Response, error)
- func (c *Client) HeadGenericFileAtPath(ctx context.Context, accountId string, registry string, pPackage string, ...) (*http.Response, error)
- func (c *Client) UploadCargoPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, ...) (*http.Response, error)
- func (c *Client) UploadComposerPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, ...) (*http.Response, error)
- func (c *Client) UploadCondaPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, ...) (*http.Response, error)
- func (c *Client) UploadDartPackageWithBody(ctx context.Context, accountId string, registry string, uploadId string, ...) (*http.Response, error)
- func (c *Client) UploadGenericFileToPathWithBody(ctx context.Context, accountId string, registry string, pPackage string, ...) (*http.Response, error)
- func (c *Client) UploadGenericPackageWithBody(ctx context.Context, accountId string, registry string, pPackage string, ...) (*http.Response, error)
- func (c *Client) UploadGoPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, ...) (*http.Response, error)
- func (c *Client) UploadNPMPackageWithBody(ctx context.Context, accountId string, registry string, pPackage string, ...) (*http.Response, error)
- func (c *Client) UploadNugetPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, ...) (*http.Response, error)
- func (c *Client) UploadPythonPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, ...) (*http.Response, error)
- func (c *Client) UploadRpmPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, pPackage string, ...) (*DeleteGenericFileFromPathResp, error)
- func (c *ClientWithResponses) DownloadGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, pPackage string, ...) (*DownloadGenericFileFromPathResp, error)
- func (c *ClientWithResponses) DownloadGenericPackageWithResponse(ctx context.Context, accountId string, registry string, pPackage string, ...) (*DownloadGenericPackageResp, error)
- func (c *ClientWithResponses) HeadGenericFileAtPathWithResponse(ctx context.Context, accountId string, registry string, pPackage string, ...) (*HeadGenericFileAtPathResp, error)
- func (c *ClientWithResponses) UploadCargoPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, ...) (*UploadCargoPackageResp, error)
- func (c *ClientWithResponses) UploadComposerPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, ...) (*UploadComposerPackageResp, error)
- func (c *ClientWithResponses) UploadCondaPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, ...) (*UploadCondaPackageResp, error)
- func (c *ClientWithResponses) UploadDartPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, uploadId string, ...) (*UploadDartPackageResp, error)
- func (c *ClientWithResponses) UploadGenericFileToPathWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, ...) (*UploadGenericFileToPathResp, error)
- func (c *ClientWithResponses) UploadGenericPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, ...) (*UploadGenericPackageResp, error)
- func (c *ClientWithResponses) UploadGoPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, ...) (*UploadGoPackageResp, error)
- func (c *ClientWithResponses) UploadNPMPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, ...) (*UploadNPMPackageResp, error)
- func (c *ClientWithResponses) UploadNugetPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, ...) (*UploadNugetPackageResp, error)
- func (c *ClientWithResponses) UploadPythonPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, ...) (*UploadPythonPackageResp, error)
- func (c *ClientWithResponses) UploadRpmPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, ...) (*UploadRpmPackageResp, error)
- type ClientWithResponsesInterface
- type DeleteGenericFileFromPathResp
- type DownloadGenericFileFromPathResp
- type DownloadGenericPackageParams
- type DownloadGenericPackageResp
- type HeadGenericFileAtPathResp
- type HttpRequestDoer
- type RequestEditorFn
- type UploadCargoPackageMultipartBody
- type UploadCargoPackageMultipartRequestBody
- type UploadCargoPackageResp
- type UploadComposerPackageResp
- type UploadCondaPackageResp
- type UploadDartPackageMultipartBody
- type UploadDartPackageMultipartRequestBody
- type UploadDartPackageResp
- type UploadGenericFileToPathResp
- type UploadGenericPackageMultipartBody
- type UploadGenericPackageMultipartRequestBody
- type UploadGenericPackageResp
- type UploadGoPackageMultipartBody
- type UploadGoPackageMultipartRequestBody
- type UploadGoPackageResp
- type UploadNPMPackageResp
- type UploadNugetPackageMultipartBody
- type UploadNugetPackageMultipartRequestBody
- type UploadNugetPackageResp
- type UploadPythonPackageMultipartBody
- type UploadPythonPackageMultipartRequestBody
- type UploadPythonPackageResp
- type UploadRpmPackageMultipartBody
- type UploadRpmPackageMultipartRequestBody
- type UploadRpmPackageResp
Constants ¶
const (
ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewDeleteGenericFileFromPathRequest ¶
func NewDeleteGenericFileFromPathRequest(server string, accountId string, registry string, pPackage string, version string, filepath string) (*http.Request, error)
NewDeleteGenericFileFromPathRequest generates requests for DeleteGenericFileFromPath
func NewDownloadGenericFileFromPathRequest ¶
func NewDownloadGenericFileFromPathRequest(server string, accountId string, registry string, pPackage string, version string, filepath string) (*http.Request, error)
NewDownloadGenericFileFromPathRequest generates requests for DownloadGenericFileFromPath
func NewDownloadGenericPackageRequest ¶
func NewDownloadGenericPackageRequest(server string, accountId string, registry string, pPackage string, version string, params *DownloadGenericPackageParams) (*http.Request, error)
NewDownloadGenericPackageRequest generates requests for DownloadGenericPackage
func NewHeadGenericFileAtPathRequest ¶
func NewHeadGenericFileAtPathRequest(server string, accountId string, registry string, pPackage string, version string, filepath string) (*http.Request, error)
NewHeadGenericFileAtPathRequest generates requests for HeadGenericFileAtPath
func NewUploadCargoPackageRequestWithBody ¶ added in v1.1.0
func NewUploadCargoPackageRequestWithBody(server string, accountId string, registry string, contentType string, body io.Reader) (*http.Request, error)
NewUploadCargoPackageRequestWithBody generates requests for UploadCargoPackage with any type of body
func NewUploadComposerPackageRequestWithBody ¶ added in v1.1.0
func NewUploadComposerPackageRequestWithBody(server string, accountId string, registry string, contentType string, body io.Reader) (*http.Request, error)
NewUploadComposerPackageRequestWithBody generates requests for UploadComposerPackage with any type of body
func NewUploadCondaPackageRequestWithBody ¶
func NewUploadCondaPackageRequestWithBody(server string, accountId string, registry string, contentType string, body io.Reader) (*http.Request, error)
NewUploadCondaPackageRequestWithBody generates requests for UploadCondaPackage with any type of body
func NewUploadDartPackageRequestWithBody ¶ added in v1.1.2
func NewUploadDartPackageRequestWithBody(server string, accountId string, registry string, uploadId string, contentType string, body io.Reader) (*http.Request, error)
NewUploadDartPackageRequestWithBody generates requests for UploadDartPackage with any type of body
func NewUploadGenericFileToPathRequestWithBody ¶
func NewUploadGenericFileToPathRequestWithBody(server string, accountId string, registry string, pPackage string, version string, filepath string, contentType string, body io.Reader) (*http.Request, error)
NewUploadGenericFileToPathRequestWithBody generates requests for UploadGenericFileToPath with any type of body
func NewUploadGenericPackageRequestWithBody ¶
func NewUploadGenericPackageRequestWithBody(server string, accountId string, registry string, pPackage string, version string, contentType string, body io.Reader) (*http.Request, error)
NewUploadGenericPackageRequestWithBody generates requests for UploadGenericPackage with any type of body
func NewUploadGoPackageRequestWithBody ¶
func NewUploadGoPackageRequestWithBody(server string, accountId string, registry string, contentType string, body io.Reader) (*http.Request, error)
NewUploadGoPackageRequestWithBody generates requests for UploadGoPackage with any type of body
func NewUploadNPMPackageRequestWithBody ¶ added in v1.1.2
func NewUploadNPMPackageRequestWithBody(server string, accountId string, registry string, pPackage string, contentType string, body io.Reader) (*http.Request, error)
NewUploadNPMPackageRequestWithBody generates requests for UploadNPMPackage with any type of body
func NewUploadNugetPackageRequestWithBody ¶ added in v1.2.0
func NewUploadNugetPackageRequestWithBody(server string, accountId string, registry string, contentType string, body io.Reader) (*http.Request, error)
NewUploadNugetPackageRequestWithBody generates requests for UploadNugetPackage with any type of body
func NewUploadPythonPackageRequestWithBody ¶ added in v1.2.0
func NewUploadPythonPackageRequestWithBody(server string, accountId string, registry string, contentType string, body io.Reader) (*http.Request, error)
NewUploadPythonPackageRequestWithBody generates requests for UploadPythonPackage with any type of body
func NewUploadRpmPackageRequestWithBody ¶ added in v1.1.0
func NewUploadRpmPackageRequestWithBody(server string, accountId string, registry string, contentType string, body io.Reader) (*http.Request, error)
NewUploadRpmPackageRequestWithBody generates requests for UploadRpmPackage 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) DeleteGenericFileFromPath ¶
func (*Client) DownloadGenericFileFromPath ¶
func (*Client) DownloadGenericPackage ¶
func (*Client) HeadGenericFileAtPath ¶
func (*Client) UploadCargoPackageWithBody ¶ added in v1.1.0
func (*Client) UploadComposerPackageWithBody ¶ added in v1.1.0
func (*Client) UploadCondaPackageWithBody ¶
func (*Client) UploadDartPackageWithBody ¶ added in v1.1.2
func (*Client) UploadGenericFileToPathWithBody ¶
func (*Client) UploadGenericPackageWithBody ¶
func (*Client) UploadGoPackageWithBody ¶
func (*Client) UploadNPMPackageWithBody ¶ added in v1.1.2
func (*Client) UploadNugetPackageWithBody ¶ added in v1.2.0
func (*Client) UploadPythonPackageWithBody ¶ added in v1.2.0
type ClientInterface ¶
type ClientInterface interface {
// UploadCargoPackageWithBody request with any body
UploadCargoPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadComposerPackageWithBody request with any body
UploadComposerPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadCondaPackageWithBody request with any body
UploadCondaPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteGenericFileFromPath request
DeleteGenericFileFromPath(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadGenericFileFromPath request
DownloadGenericFileFromPath(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, reqEditors ...RequestEditorFn) (*http.Response, error)
// HeadGenericFileAtPath request
HeadGenericFileAtPath(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadGenericFileToPathWithBody request with any body
UploadGenericFileToPathWithBody(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadGenericPackage request
DownloadGenericPackage(ctx context.Context, accountId string, registry string, pPackage string, version string, params *DownloadGenericPackageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadGenericPackageWithBody request with any body
UploadGenericPackageWithBody(ctx context.Context, accountId string, registry string, pPackage string, version string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadGoPackageWithBody request with any body
UploadGoPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadNPMPackageWithBody request with any body
UploadNPMPackageWithBody(ctx context.Context, accountId string, registry string, pPackage string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadNugetPackageWithBody request with any body
UploadNugetPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadDartPackageWithBody request with any body
UploadDartPackageWithBody(ctx context.Context, accountId string, registry string, uploadId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadPythonPackageWithBody request with any body
UploadPythonPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadRpmPackageWithBody request with any body
UploadRpmPackageWithBody(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, 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) DeleteGenericFileFromPathWithResponse ¶
func (c *ClientWithResponses) DeleteGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, reqEditors ...RequestEditorFn) (*DeleteGenericFileFromPathResp, error)
DeleteGenericFileFromPathWithResponse request returning *DeleteGenericFileFromPathResp
func (*ClientWithResponses) DownloadGenericFileFromPathWithResponse ¶
func (c *ClientWithResponses) DownloadGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, reqEditors ...RequestEditorFn) (*DownloadGenericFileFromPathResp, error)
DownloadGenericFileFromPathWithResponse request returning *DownloadGenericFileFromPathResp
func (*ClientWithResponses) DownloadGenericPackageWithResponse ¶
func (c *ClientWithResponses) DownloadGenericPackageWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, params *DownloadGenericPackageParams, reqEditors ...RequestEditorFn) (*DownloadGenericPackageResp, error)
DownloadGenericPackageWithResponse request returning *DownloadGenericPackageResp
func (*ClientWithResponses) HeadGenericFileAtPathWithResponse ¶
func (c *ClientWithResponses) HeadGenericFileAtPathWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, reqEditors ...RequestEditorFn) (*HeadGenericFileAtPathResp, error)
HeadGenericFileAtPathWithResponse request returning *HeadGenericFileAtPathResp
func (*ClientWithResponses) UploadCargoPackageWithBodyWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) UploadCargoPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCargoPackageResp, error)
UploadCargoPackageWithBodyWithResponse request with arbitrary body returning *UploadCargoPackageResp
func (*ClientWithResponses) UploadComposerPackageWithBodyWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) UploadComposerPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadComposerPackageResp, error)
UploadComposerPackageWithBodyWithResponse request with arbitrary body returning *UploadComposerPackageResp
func (*ClientWithResponses) UploadCondaPackageWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadCondaPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCondaPackageResp, error)
UploadCondaPackageWithBodyWithResponse request with arbitrary body returning *UploadCondaPackageResp
func (*ClientWithResponses) UploadDartPackageWithBodyWithResponse ¶ added in v1.1.2
func (c *ClientWithResponses) UploadDartPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, uploadId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDartPackageResp, error)
UploadDartPackageWithBodyWithResponse request with arbitrary body returning *UploadDartPackageResp
func (*ClientWithResponses) UploadGenericFileToPathWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadGenericFileToPathWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGenericFileToPathResp, error)
UploadGenericFileToPathWithBodyWithResponse request with arbitrary body returning *UploadGenericFileToPathResp
func (*ClientWithResponses) UploadGenericPackageWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadGenericPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGenericPackageResp, error)
UploadGenericPackageWithBodyWithResponse request with arbitrary body returning *UploadGenericPackageResp
func (*ClientWithResponses) UploadGoPackageWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadGoPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGoPackageResp, error)
UploadGoPackageWithBodyWithResponse request with arbitrary body returning *UploadGoPackageResp
func (*ClientWithResponses) UploadNPMPackageWithBodyWithResponse ¶ added in v1.1.2
func (c *ClientWithResponses) UploadNPMPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadNPMPackageResp, error)
UploadNPMPackageWithBodyWithResponse request with arbitrary body returning *UploadNPMPackageResp
func (*ClientWithResponses) UploadNugetPackageWithBodyWithResponse ¶ added in v1.2.0
func (c *ClientWithResponses) UploadNugetPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadNugetPackageResp, error)
UploadNugetPackageWithBodyWithResponse request with arbitrary body returning *UploadNugetPackageResp
func (*ClientWithResponses) UploadPythonPackageWithBodyWithResponse ¶ added in v1.2.0
func (c *ClientWithResponses) UploadPythonPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPythonPackageResp, error)
UploadPythonPackageWithBodyWithResponse request with arbitrary body returning *UploadPythonPackageResp
func (*ClientWithResponses) UploadRpmPackageWithBodyWithResponse ¶ added in v1.1.0
func (c *ClientWithResponses) UploadRpmPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadRpmPackageResp, error)
UploadRpmPackageWithBodyWithResponse request with arbitrary body returning *UploadRpmPackageResp
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// UploadCargoPackageWithBodyWithResponse request with any body
UploadCargoPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCargoPackageResp, error)
// UploadComposerPackageWithBodyWithResponse request with any body
UploadComposerPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadComposerPackageResp, error)
// UploadCondaPackageWithBodyWithResponse request with any body
UploadCondaPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCondaPackageResp, error)
// DeleteGenericFileFromPathWithResponse request
DeleteGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, reqEditors ...RequestEditorFn) (*DeleteGenericFileFromPathResp, error)
// DownloadGenericFileFromPathWithResponse request
DownloadGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, reqEditors ...RequestEditorFn) (*DownloadGenericFileFromPathResp, error)
// HeadGenericFileAtPathWithResponse request
HeadGenericFileAtPathWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, reqEditors ...RequestEditorFn) (*HeadGenericFileAtPathResp, error)
// UploadGenericFileToPathWithBodyWithResponse request with any body
UploadGenericFileToPathWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, filepath string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGenericFileToPathResp, error)
// DownloadGenericPackageWithResponse request
DownloadGenericPackageWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, params *DownloadGenericPackageParams, reqEditors ...RequestEditorFn) (*DownloadGenericPackageResp, error)
// UploadGenericPackageWithBodyWithResponse request with any body
UploadGenericPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGenericPackageResp, error)
// UploadGoPackageWithBodyWithResponse request with any body
UploadGoPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGoPackageResp, error)
// UploadNPMPackageWithBodyWithResponse request with any body
UploadNPMPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadNPMPackageResp, error)
// UploadNugetPackageWithBodyWithResponse request with any body
UploadNugetPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadNugetPackageResp, error)
// UploadDartPackageWithBodyWithResponse request with any body
UploadDartPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, uploadId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDartPackageResp, error)
// UploadPythonPackageWithBodyWithResponse request with any body
UploadPythonPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPythonPackageResp, error)
// UploadRpmPackageWithBodyWithResponse request with any body
UploadRpmPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadRpmPackageResp, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteGenericFileFromPathResp ¶
func ParseDeleteGenericFileFromPathResp ¶
func ParseDeleteGenericFileFromPathResp(rsp *http.Response) (*DeleteGenericFileFromPathResp, error)
ParseDeleteGenericFileFromPathResp parses an HTTP response from a DeleteGenericFileFromPathWithResponse call
func (DeleteGenericFileFromPathResp) Status ¶
func (r DeleteGenericFileFromPathResp) Status() string
Status returns HTTPResponse.Status
func (DeleteGenericFileFromPathResp) StatusCode ¶
func (r DeleteGenericFileFromPathResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadGenericFileFromPathResp ¶
func ParseDownloadGenericFileFromPathResp ¶
func ParseDownloadGenericFileFromPathResp(rsp *http.Response) (*DownloadGenericFileFromPathResp, error)
ParseDownloadGenericFileFromPathResp parses an HTTP response from a DownloadGenericFileFromPathWithResponse call
func (DownloadGenericFileFromPathResp) Status ¶
func (r DownloadGenericFileFromPathResp) Status() string
Status returns HTTPResponse.Status
func (DownloadGenericFileFromPathResp) StatusCode ¶
func (r DownloadGenericFileFromPathResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadGenericPackageParams ¶
type DownloadGenericPackageParams struct {
Filename string `form:"filename" json:"filename"`
}
DownloadGenericPackageParams defines parameters for DownloadGenericPackage.
type DownloadGenericPackageResp ¶
func ParseDownloadGenericPackageResp ¶
func ParseDownloadGenericPackageResp(rsp *http.Response) (*DownloadGenericPackageResp, error)
ParseDownloadGenericPackageResp parses an HTTP response from a DownloadGenericPackageWithResponse call
func (DownloadGenericPackageResp) Status ¶
func (r DownloadGenericPackageResp) Status() string
Status returns HTTPResponse.Status
func (DownloadGenericPackageResp) StatusCode ¶
func (r DownloadGenericPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HeadGenericFileAtPathResp ¶
func ParseHeadGenericFileAtPathResp ¶
func ParseHeadGenericFileAtPathResp(rsp *http.Response) (*HeadGenericFileAtPathResp, error)
ParseHeadGenericFileAtPathResp parses an HTTP response from a HeadGenericFileAtPathWithResponse call
func (HeadGenericFileAtPathResp) Status ¶
func (r HeadGenericFileAtPathResp) Status() string
Status returns HTTPResponse.Status
func (HeadGenericFileAtPathResp) StatusCode ¶
func (r HeadGenericFileAtPathResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type UploadCargoPackageMultipartBody ¶ added in v1.1.0
type UploadCargoPackageMultipartBody struct {
// File Package .cargo file to upload
File *openapi_types.File `json:"file,omitempty"`
}
UploadCargoPackageMultipartBody defines parameters for UploadCargoPackage.
type UploadCargoPackageMultipartRequestBody ¶ added in v1.1.0
type UploadCargoPackageMultipartRequestBody UploadCargoPackageMultipartBody
UploadCargoPackageMultipartRequestBody defines body for UploadCargoPackage for multipart/form-data ContentType.
type UploadCargoPackageResp ¶ added in v1.1.0
func ParseUploadCargoPackageResp ¶ added in v1.1.0
func ParseUploadCargoPackageResp(rsp *http.Response) (*UploadCargoPackageResp, error)
ParseUploadCargoPackageResp parses an HTTP response from a UploadCargoPackageWithResponse call
func (UploadCargoPackageResp) Status ¶ added in v1.1.0
func (r UploadCargoPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadCargoPackageResp) StatusCode ¶ added in v1.1.0
func (r UploadCargoPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadComposerPackageResp ¶ added in v1.1.0
func ParseUploadComposerPackageResp ¶ added in v1.1.0
func ParseUploadComposerPackageResp(rsp *http.Response) (*UploadComposerPackageResp, error)
ParseUploadComposerPackageResp parses an HTTP response from a UploadComposerPackageWithResponse call
func (UploadComposerPackageResp) Status ¶ added in v1.1.0
func (r UploadComposerPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadComposerPackageResp) StatusCode ¶ added in v1.1.0
func (r UploadComposerPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadCondaPackageResp ¶
func ParseUploadCondaPackageResp ¶
func ParseUploadCondaPackageResp(rsp *http.Response) (*UploadCondaPackageResp, error)
ParseUploadCondaPackageResp parses an HTTP response from a UploadCondaPackageWithResponse call
func (UploadCondaPackageResp) Status ¶
func (r UploadCondaPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadCondaPackageResp) StatusCode ¶
func (r UploadCondaPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadDartPackageMultipartBody ¶ added in v1.1.2
type UploadDartPackageMultipartBody struct {
// File Package binary file to upload
File openapi_types.File `json:"file"`
}
UploadDartPackageMultipartBody defines parameters for UploadDartPackage.
type UploadDartPackageMultipartRequestBody ¶ added in v1.1.2
type UploadDartPackageMultipartRequestBody UploadDartPackageMultipartBody
UploadDartPackageMultipartRequestBody defines body for UploadDartPackage for multipart/form-data ContentType.
type UploadDartPackageResp ¶ added in v1.1.2
func ParseUploadDartPackageResp ¶ added in v1.1.2
func ParseUploadDartPackageResp(rsp *http.Response) (*UploadDartPackageResp, error)
ParseUploadDartPackageResp parses an HTTP response from a UploadDartPackageWithResponse call
func (UploadDartPackageResp) Status ¶ added in v1.1.2
func (r UploadDartPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadDartPackageResp) StatusCode ¶ added in v1.1.2
func (r UploadDartPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadGenericFileToPathResp ¶
func ParseUploadGenericFileToPathResp ¶
func ParseUploadGenericFileToPathResp(rsp *http.Response) (*UploadGenericFileToPathResp, error)
ParseUploadGenericFileToPathResp parses an HTTP response from a UploadGenericFileToPathWithResponse call
func (UploadGenericFileToPathResp) Status ¶
func (r UploadGenericFileToPathResp) Status() string
Status returns HTTPResponse.Status
func (UploadGenericFileToPathResp) StatusCode ¶
func (r UploadGenericFileToPathResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadGenericPackageMultipartBody ¶
type UploadGenericPackageMultipartBody struct {
// Description Human-readable description of the package/version
Description *string `json:"description,omitempty"`
// File Package file to upload
File openapi_types.File `json:"file"`
// Filename Original filename (mirrors form field `filename`)
Filename string `json:"filename"`
}
UploadGenericPackageMultipartBody defines parameters for UploadGenericPackage.
type UploadGenericPackageMultipartRequestBody ¶
type UploadGenericPackageMultipartRequestBody UploadGenericPackageMultipartBody
UploadGenericPackageMultipartRequestBody defines body for UploadGenericPackage for multipart/form-data ContentType.
type UploadGenericPackageResp ¶
func ParseUploadGenericPackageResp ¶
func ParseUploadGenericPackageResp(rsp *http.Response) (*UploadGenericPackageResp, error)
ParseUploadGenericPackageResp parses an HTTP response from a UploadGenericPackageWithResponse call
func (UploadGenericPackageResp) Status ¶
func (r UploadGenericPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadGenericPackageResp) StatusCode ¶
func (r UploadGenericPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadGoPackageMultipartBody ¶
type UploadGoPackageMultipartBody struct {
// Info Package .info file to upload
Info openapi_types.File `json:"info"`
// Mod Package .mod file to upload
Mod openapi_types.File `json:"mod"`
// Zip Package .zip file to upload
Zip openapi_types.File `json:"zip"`
}
UploadGoPackageMultipartBody defines parameters for UploadGoPackage.
type UploadGoPackageMultipartRequestBody ¶
type UploadGoPackageMultipartRequestBody UploadGoPackageMultipartBody
UploadGoPackageMultipartRequestBody defines body for UploadGoPackage for multipart/form-data ContentType.
type UploadGoPackageResp ¶
func ParseUploadGoPackageResp ¶
func ParseUploadGoPackageResp(rsp *http.Response) (*UploadGoPackageResp, error)
ParseUploadGoPackageResp parses an HTTP response from a UploadGoPackageWithResponse call
func (UploadGoPackageResp) Status ¶
func (r UploadGoPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadGoPackageResp) StatusCode ¶
func (r UploadGoPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadNPMPackageResp ¶ added in v1.1.2
func ParseUploadNPMPackageResp ¶ added in v1.1.2
func ParseUploadNPMPackageResp(rsp *http.Response) (*UploadNPMPackageResp, error)
ParseUploadNPMPackageResp parses an HTTP response from a UploadNPMPackageWithResponse call
func (UploadNPMPackageResp) Status ¶ added in v1.1.2
func (r UploadNPMPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadNPMPackageResp) StatusCode ¶ added in v1.1.2
func (r UploadNPMPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadNugetPackageMultipartBody ¶ added in v1.2.0
type UploadNugetPackageMultipartBody struct {
// File Package .nupkg file to upload
File *openapi_types.File `json:"file,omitempty"`
}
UploadNugetPackageMultipartBody defines parameters for UploadNugetPackage.
type UploadNugetPackageMultipartRequestBody ¶ added in v1.2.0
type UploadNugetPackageMultipartRequestBody UploadNugetPackageMultipartBody
UploadNugetPackageMultipartRequestBody defines body for UploadNugetPackage for multipart/form-data ContentType.
type UploadNugetPackageResp ¶ added in v1.2.0
func ParseUploadNugetPackageResp ¶ added in v1.2.0
func ParseUploadNugetPackageResp(rsp *http.Response) (*UploadNugetPackageResp, error)
ParseUploadNugetPackageResp parses an HTTP response from a UploadNugetPackageWithResponse call
func (UploadNugetPackageResp) Status ¶ added in v1.2.0
func (r UploadNugetPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadNugetPackageResp) StatusCode ¶ added in v1.2.0
func (r UploadNugetPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadPythonPackageMultipartBody ¶ added in v1.2.0
type UploadPythonPackageMultipartBody struct {
// File Package .whl or .tar.gz file to upload
File *openapi_types.File `json:"file,omitempty"`
}
UploadPythonPackageMultipartBody defines parameters for UploadPythonPackage.
type UploadPythonPackageMultipartRequestBody ¶ added in v1.2.0
type UploadPythonPackageMultipartRequestBody UploadPythonPackageMultipartBody
UploadPythonPackageMultipartRequestBody defines body for UploadPythonPackage for multipart/form-data ContentType.
type UploadPythonPackageResp ¶ added in v1.2.0
func ParseUploadPythonPackageResp ¶ added in v1.2.0
func ParseUploadPythonPackageResp(rsp *http.Response) (*UploadPythonPackageResp, error)
ParseUploadPythonPackageResp parses an HTTP response from a UploadPythonPackageWithResponse call
func (UploadPythonPackageResp) Status ¶ added in v1.2.0
func (r UploadPythonPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadPythonPackageResp) StatusCode ¶ added in v1.2.0
func (r UploadPythonPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadRpmPackageMultipartBody ¶ added in v1.1.0
type UploadRpmPackageMultipartBody struct {
// File Package .rpm file to upload
File *openapi_types.File `json:"file,omitempty"`
}
UploadRpmPackageMultipartBody defines parameters for UploadRpmPackage.
type UploadRpmPackageMultipartRequestBody ¶ added in v1.1.0
type UploadRpmPackageMultipartRequestBody UploadRpmPackageMultipartBody
UploadRpmPackageMultipartRequestBody defines body for UploadRpmPackage for multipart/form-data ContentType.
type UploadRpmPackageResp ¶ added in v1.1.0
func ParseUploadRpmPackageResp ¶ added in v1.1.0
func ParseUploadRpmPackageResp(rsp *http.Response) (*UploadRpmPackageResp, error)
ParseUploadRpmPackageResp parses an HTTP response from a UploadRpmPackageWithResponse call
func (UploadRpmPackageResp) Status ¶ added in v1.1.0
func (r UploadRpmPackageResp) Status() string
Status returns HTTPResponse.Status
func (UploadRpmPackageResp) StatusCode ¶ added in v1.1.0
func (r UploadRpmPackageResp) StatusCode() int
StatusCode returns HTTPResponse.StatusCode