ar_pkg

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package ar_pkg 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

View Source
const (
	ApiKeyAuthScopes = "ApiKeyAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewDeleteGenericFileFromPathRequest

func NewDeleteGenericFileFromPathRequest(server string, accountId string, registry string, filepath string) (*http.Request, error)

NewDeleteGenericFileFromPathRequest generates requests for DeleteGenericFileFromPath

func NewDownloadGenericFileFromPathRequest

func NewDownloadGenericFileFromPathRequest(server string, accountId string, registry 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 NewDownloadMavenMetadataXmlRequest added in v1.3.2

func NewDownloadMavenMetadataXmlRequest(server string, accountId string, registry string, groupId string, artifactId string, file string) (*http.Request, error)

NewDownloadMavenMetadataXmlRequest generates requests for DownloadMavenMetadataXml

func NewDownloadNPMPackageMetadataRequest added in v1.3.10

func NewDownloadNPMPackageMetadataRequest(server string, accountId string, registry string, pPackage string) (*http.Request, error)

NewDownloadNPMPackageMetadataRequest generates requests for DownloadNPMPackageMetadata

func NewHeadGenericFileAtPathRequest

func NewHeadGenericFileAtPathRequest(server string, accountId string, registry 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, 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 NewUploadMavenMetadataXmlRequestWithBody added in v1.3.2

func NewUploadMavenMetadataXmlRequestWithBody(server string, accountId string, registry string, groupId string, artifactId string, file string, contentType string, body io.Reader) (*http.Request, error)

NewUploadMavenMetadataXmlRequestWithBody generates requests for UploadMavenMetadataXml with any type of body

func NewUploadMavenPackageRequestWithBody added in v1.3.2

func NewUploadMavenPackageRequestWithBody(server string, accountId string, registry string, groupId string, artifactId string, version string, file string, contentType string, body io.Reader) (*http.Request, error)

NewUploadMavenPackageRequestWithBody generates requests for UploadMavenPackage 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 (c *Client) DeleteGenericFileFromPath(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DownloadGenericFileFromPath

func (c *Client) DownloadGenericFileFromPath(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DownloadGenericPackage

func (c *Client) DownloadGenericPackage(ctx context.Context, accountId string, registry string, pPackage string, version string, params *DownloadGenericPackageParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DownloadMavenMetadataXml added in v1.3.2

func (c *Client) DownloadMavenMetadataXml(ctx context.Context, accountId string, registry string, groupId string, artifactId string, file string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DownloadNPMPackageMetadata added in v1.3.10

func (c *Client) DownloadNPMPackageMetadata(ctx context.Context, accountId string, registry string, pPackage string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) HeadGenericFileAtPath

func (c *Client) HeadGenericFileAtPath(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UploadCargoPackageWithBody added in v1.1.0

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

func (*Client) UploadComposerPackageWithBody added in v1.1.0

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

func (*Client) UploadCondaPackageWithBody

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

func (*Client) UploadDartPackageWithBody added in v1.1.2

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

func (*Client) UploadGenericFileToPathWithBody

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

func (*Client) UploadGenericPackageWithBody

func (c *Client) UploadGenericPackageWithBody(ctx context.Context, accountId string, registry string, pPackage string, version string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UploadGoPackageWithBody

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

func (*Client) UploadMavenMetadataXmlWithBody added in v1.3.2

func (c *Client) UploadMavenMetadataXmlWithBody(ctx context.Context, accountId string, registry string, groupId string, artifactId string, file string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UploadMavenPackageWithBody added in v1.3.2

func (c *Client) UploadMavenPackageWithBody(ctx context.Context, accountId string, registry string, groupId string, artifactId string, version string, file string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UploadNPMPackageWithBody added in v1.1.2

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

func (*Client) UploadNugetPackageWithBody added in v1.2.0

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

func (*Client) UploadPythonPackageWithBody added in v1.2.0

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

func (*Client) UploadRpmPackageWithBody added in v1.1.0

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

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, filepath string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadGenericFileFromPath request
	DownloadGenericFileFromPath(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// HeadGenericFileAtPath request
	HeadGenericFileAtPath(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UploadGenericFileToPathWithBody request with any body
	UploadGenericFileToPathWithBody(ctx context.Context, accountId string, registry 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)

	// DownloadMavenMetadataXml request
	DownloadMavenMetadataXml(ctx context.Context, accountId string, registry string, groupId string, artifactId string, file string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UploadMavenMetadataXmlWithBody request with any body
	UploadMavenMetadataXmlWithBody(ctx context.Context, accountId string, registry string, groupId string, artifactId string, file string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UploadMavenPackageWithBody request with any body
	UploadMavenPackageWithBody(ctx context.Context, accountId string, registry string, groupId string, artifactId string, version string, file string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DownloadNPMPackageMetadata request
	DownloadNPMPackageMetadata(ctx context.Context, accountId string, registry string, pPackage string, 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

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) DeleteGenericFileFromPathWithResponse

func (c *ClientWithResponses) DeleteGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*DeleteGenericFileFromPathResponse, error)

DeleteGenericFileFromPathWithResponse request returning *DeleteGenericFileFromPathResponse

func (*ClientWithResponses) DownloadGenericFileFromPathWithResponse

func (c *ClientWithResponses) DownloadGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*DownloadGenericFileFromPathResponse, error)

DownloadGenericFileFromPathWithResponse request returning *DownloadGenericFileFromPathResponse

func (*ClientWithResponses) DownloadGenericPackageWithResponse

func (c *ClientWithResponses) DownloadGenericPackageWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, params *DownloadGenericPackageParams, reqEditors ...RequestEditorFn) (*DownloadGenericPackageResponse, error)

DownloadGenericPackageWithResponse request returning *DownloadGenericPackageResponse

func (*ClientWithResponses) DownloadMavenMetadataXmlWithResponse added in v1.3.2

func (c *ClientWithResponses) DownloadMavenMetadataXmlWithResponse(ctx context.Context, accountId string, registry string, groupId string, artifactId string, file string, reqEditors ...RequestEditorFn) (*DownloadMavenMetadataXmlResponse, error)

DownloadMavenMetadataXmlWithResponse request returning *DownloadMavenMetadataXmlResponse

func (*ClientWithResponses) DownloadNPMPackageMetadataWithResponse added in v1.3.10

func (c *ClientWithResponses) DownloadNPMPackageMetadataWithResponse(ctx context.Context, accountId string, registry string, pPackage string, reqEditors ...RequestEditorFn) (*DownloadNPMPackageMetadataResponse, error)

DownloadNPMPackageMetadataWithResponse request returning *DownloadNPMPackageMetadataResponse

func (*ClientWithResponses) HeadGenericFileAtPathWithResponse

func (c *ClientWithResponses) HeadGenericFileAtPathWithResponse(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*HeadGenericFileAtPathResponse, error)

HeadGenericFileAtPathWithResponse request returning *HeadGenericFileAtPathResponse

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) (*UploadCargoPackageResponse, error)

UploadCargoPackageWithBodyWithResponse request with arbitrary body returning *UploadCargoPackageResponse

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) (*UploadComposerPackageResponse, error)

UploadComposerPackageWithBodyWithResponse request with arbitrary body returning *UploadComposerPackageResponse

func (*ClientWithResponses) UploadCondaPackageWithBodyWithResponse

func (c *ClientWithResponses) UploadCondaPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCondaPackageResponse, error)

UploadCondaPackageWithBodyWithResponse request with arbitrary body returning *UploadCondaPackageResponse

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) (*UploadDartPackageResponse, error)

UploadDartPackageWithBodyWithResponse request with arbitrary body returning *UploadDartPackageResponse

func (*ClientWithResponses) UploadGenericFileToPathWithBodyWithResponse

func (c *ClientWithResponses) UploadGenericFileToPathWithBodyWithResponse(ctx context.Context, accountId string, registry string, filepath string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGenericFileToPathResponse, error)

UploadGenericFileToPathWithBodyWithResponse request with arbitrary body returning *UploadGenericFileToPathResponse

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) (*UploadGenericPackageResponse, error)

UploadGenericPackageWithBodyWithResponse request with arbitrary body returning *UploadGenericPackageResponse

func (*ClientWithResponses) UploadGoPackageWithBodyWithResponse

func (c *ClientWithResponses) UploadGoPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGoPackageResponse, error)

UploadGoPackageWithBodyWithResponse request with arbitrary body returning *UploadGoPackageResponse

func (*ClientWithResponses) UploadMavenMetadataXmlWithBodyWithResponse added in v1.3.2

func (c *ClientWithResponses) UploadMavenMetadataXmlWithBodyWithResponse(ctx context.Context, accountId string, registry string, groupId string, artifactId string, file string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadMavenMetadataXmlResponse, error)

UploadMavenMetadataXmlWithBodyWithResponse request with arbitrary body returning *UploadMavenMetadataXmlResponse

func (*ClientWithResponses) UploadMavenPackageWithBodyWithResponse added in v1.3.2

func (c *ClientWithResponses) UploadMavenPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, groupId string, artifactId string, version string, file string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadMavenPackageResponse, error)

UploadMavenPackageWithBodyWithResponse request with arbitrary body returning *UploadMavenPackageResponse

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) (*UploadNPMPackageResponse, error)

UploadNPMPackageWithBodyWithResponse request with arbitrary body returning *UploadNPMPackageResponse

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) (*UploadNugetPackageResponse, error)

UploadNugetPackageWithBodyWithResponse request with arbitrary body returning *UploadNugetPackageResponse

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) (*UploadPythonPackageResponse, error)

UploadPythonPackageWithBodyWithResponse request with arbitrary body returning *UploadPythonPackageResponse

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) (*UploadRpmPackageResponse, error)

UploadRpmPackageWithBodyWithResponse request with arbitrary body returning *UploadRpmPackageResponse

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) (*UploadCargoPackageResponse, error)

	// UploadComposerPackageWithBodyWithResponse request with any body
	UploadComposerPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadComposerPackageResponse, error)

	// UploadCondaPackageWithBodyWithResponse request with any body
	UploadCondaPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadCondaPackageResponse, error)

	// DeleteGenericFileFromPathWithResponse request
	DeleteGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*DeleteGenericFileFromPathResponse, error)

	// DownloadGenericFileFromPathWithResponse request
	DownloadGenericFileFromPathWithResponse(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*DownloadGenericFileFromPathResponse, error)

	// HeadGenericFileAtPathWithResponse request
	HeadGenericFileAtPathWithResponse(ctx context.Context, accountId string, registry string, filepath string, reqEditors ...RequestEditorFn) (*HeadGenericFileAtPathResponse, error)

	// UploadGenericFileToPathWithBodyWithResponse request with any body
	UploadGenericFileToPathWithBodyWithResponse(ctx context.Context, accountId string, registry string, filepath string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGenericFileToPathResponse, error)

	// DownloadGenericPackageWithResponse request
	DownloadGenericPackageWithResponse(ctx context.Context, accountId string, registry string, pPackage string, version string, params *DownloadGenericPackageParams, reqEditors ...RequestEditorFn) (*DownloadGenericPackageResponse, 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) (*UploadGenericPackageResponse, error)

	// UploadGoPackageWithBodyWithResponse request with any body
	UploadGoPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadGoPackageResponse, error)

	// DownloadMavenMetadataXmlWithResponse request
	DownloadMavenMetadataXmlWithResponse(ctx context.Context, accountId string, registry string, groupId string, artifactId string, file string, reqEditors ...RequestEditorFn) (*DownloadMavenMetadataXmlResponse, error)

	// UploadMavenMetadataXmlWithBodyWithResponse request with any body
	UploadMavenMetadataXmlWithBodyWithResponse(ctx context.Context, accountId string, registry string, groupId string, artifactId string, file string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadMavenMetadataXmlResponse, error)

	// UploadMavenPackageWithBodyWithResponse request with any body
	UploadMavenPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, groupId string, artifactId string, version string, file string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadMavenPackageResponse, error)

	// DownloadNPMPackageMetadataWithResponse request
	DownloadNPMPackageMetadataWithResponse(ctx context.Context, accountId string, registry string, pPackage string, reqEditors ...RequestEditorFn) (*DownloadNPMPackageMetadataResponse, error)

	// UploadNPMPackageWithBodyWithResponse request with any body
	UploadNPMPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, pPackage string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadNPMPackageResponse, error)

	// UploadNugetPackageWithBodyWithResponse request with any body
	UploadNugetPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadNugetPackageResponse, error)

	// UploadDartPackageWithBodyWithResponse request with any body
	UploadDartPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, uploadId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadDartPackageResponse, error)

	// UploadPythonPackageWithBodyWithResponse request with any body
	UploadPythonPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadPythonPackageResponse, error)

	// UploadRpmPackageWithBodyWithResponse request with any body
	UploadRpmPackageWithBodyWithResponse(ctx context.Context, accountId string, registry string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadRpmPackageResponse, error)
}

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

type DeleteGenericFileFromPathResponse added in v1.3.17

type DeleteGenericFileFromPathResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteGenericFileFromPathResponse added in v1.3.17

func ParseDeleteGenericFileFromPathResponse(rsp *http.Response) (*DeleteGenericFileFromPathResponse, error)

ParseDeleteGenericFileFromPathResponse parses an HTTP response from a DeleteGenericFileFromPathWithResponse call

func (DeleteGenericFileFromPathResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (DeleteGenericFileFromPathResponse) StatusCode added in v1.3.17

func (r DeleteGenericFileFromPathResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DownloadGenericFileFromPathResponse added in v1.3.17

type DownloadGenericFileFromPathResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDownloadGenericFileFromPathResponse added in v1.3.17

func ParseDownloadGenericFileFromPathResponse(rsp *http.Response) (*DownloadGenericFileFromPathResponse, error)

ParseDownloadGenericFileFromPathResponse parses an HTTP response from a DownloadGenericFileFromPathWithResponse call

func (DownloadGenericFileFromPathResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (DownloadGenericFileFromPathResponse) StatusCode added in v1.3.17

StatusCode returns HTTPResponse.StatusCode

type DownloadGenericPackageParams

type DownloadGenericPackageParams struct {
	Filename string `form:"filename" json:"filename"`
}

DownloadGenericPackageParams defines parameters for DownloadGenericPackage.

type DownloadGenericPackageResponse added in v1.3.17

type DownloadGenericPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDownloadGenericPackageResponse added in v1.3.17

func ParseDownloadGenericPackageResponse(rsp *http.Response) (*DownloadGenericPackageResponse, error)

ParseDownloadGenericPackageResponse parses an HTTP response from a DownloadGenericPackageWithResponse call

func (DownloadGenericPackageResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (DownloadGenericPackageResponse) StatusCode added in v1.3.17

func (r DownloadGenericPackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DownloadMavenMetadataXmlResponse added in v1.3.17

type DownloadMavenMetadataXmlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDownloadMavenMetadataXmlResponse added in v1.3.17

func ParseDownloadMavenMetadataXmlResponse(rsp *http.Response) (*DownloadMavenMetadataXmlResponse, error)

ParseDownloadMavenMetadataXmlResponse parses an HTTP response from a DownloadMavenMetadataXmlWithResponse call

func (DownloadMavenMetadataXmlResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (DownloadMavenMetadataXmlResponse) StatusCode added in v1.3.17

func (r DownloadMavenMetadataXmlResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DownloadNPMPackageMetadataResponse added in v1.3.17

type DownloadNPMPackageMetadataResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDownloadNPMPackageMetadataResponse added in v1.3.17

func ParseDownloadNPMPackageMetadataResponse(rsp *http.Response) (*DownloadNPMPackageMetadataResponse, error)

ParseDownloadNPMPackageMetadataResponse parses an HTTP response from a DownloadNPMPackageMetadataWithResponse call

func (DownloadNPMPackageMetadataResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (DownloadNPMPackageMetadataResponse) StatusCode added in v1.3.17

func (r DownloadNPMPackageMetadataResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HeadGenericFileAtPathResponse added in v1.3.17

type HeadGenericFileAtPathResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseHeadGenericFileAtPathResponse added in v1.3.17

func ParseHeadGenericFileAtPathResponse(rsp *http.Response) (*HeadGenericFileAtPathResponse, error)

ParseHeadGenericFileAtPathResponse parses an HTTP response from a HeadGenericFileAtPathWithResponse call

func (HeadGenericFileAtPathResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (HeadGenericFileAtPathResponse) StatusCode added in v1.3.17

func (r HeadGenericFileAtPathResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type RequestEditorFn

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

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 UploadCargoPackageResponse added in v1.3.17

type UploadCargoPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadCargoPackageResponse added in v1.3.17

func ParseUploadCargoPackageResponse(rsp *http.Response) (*UploadCargoPackageResponse, error)

ParseUploadCargoPackageResponse parses an HTTP response from a UploadCargoPackageWithResponse call

func (UploadCargoPackageResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (UploadCargoPackageResponse) StatusCode added in v1.3.17

func (r UploadCargoPackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadComposerPackageResponse added in v1.3.17

type UploadComposerPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadComposerPackageResponse added in v1.3.17

func ParseUploadComposerPackageResponse(rsp *http.Response) (*UploadComposerPackageResponse, error)

ParseUploadComposerPackageResponse parses an HTTP response from a UploadComposerPackageWithResponse call

func (UploadComposerPackageResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (UploadComposerPackageResponse) StatusCode added in v1.3.17

func (r UploadComposerPackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadCondaPackageResponse added in v1.3.17

type UploadCondaPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadCondaPackageResponse added in v1.3.17

func ParseUploadCondaPackageResponse(rsp *http.Response) (*UploadCondaPackageResponse, error)

ParseUploadCondaPackageResponse parses an HTTP response from a UploadCondaPackageWithResponse call

func (UploadCondaPackageResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (UploadCondaPackageResponse) StatusCode added in v1.3.17

func (r UploadCondaPackageResponse) 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 UploadDartPackageResponse added in v1.3.17

type UploadDartPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadDartPackageResponse added in v1.3.17

func ParseUploadDartPackageResponse(rsp *http.Response) (*UploadDartPackageResponse, error)

ParseUploadDartPackageResponse parses an HTTP response from a UploadDartPackageWithResponse call

func (UploadDartPackageResponse) Status added in v1.3.17

func (r UploadDartPackageResponse) Status() string

Status returns HTTPResponse.Status

func (UploadDartPackageResponse) StatusCode added in v1.3.17

func (r UploadDartPackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadGenericFileToPathResponse added in v1.3.17

type UploadGenericFileToPathResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadGenericFileToPathResponse added in v1.3.17

func ParseUploadGenericFileToPathResponse(rsp *http.Response) (*UploadGenericFileToPathResponse, error)

ParseUploadGenericFileToPathResponse parses an HTTP response from a UploadGenericFileToPathWithResponse call

func (UploadGenericFileToPathResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (UploadGenericFileToPathResponse) StatusCode added in v1.3.17

func (r UploadGenericFileToPathResponse) 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 UploadGenericPackageResponse added in v1.3.17

type UploadGenericPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadGenericPackageResponse added in v1.3.17

func ParseUploadGenericPackageResponse(rsp *http.Response) (*UploadGenericPackageResponse, error)

ParseUploadGenericPackageResponse parses an HTTP response from a UploadGenericPackageWithResponse call

func (UploadGenericPackageResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (UploadGenericPackageResponse) StatusCode added in v1.3.17

func (r UploadGenericPackageResponse) 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 UploadGoPackageResponse added in v1.3.17

type UploadGoPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadGoPackageResponse added in v1.3.17

func ParseUploadGoPackageResponse(rsp *http.Response) (*UploadGoPackageResponse, error)

ParseUploadGoPackageResponse parses an HTTP response from a UploadGoPackageWithResponse call

func (UploadGoPackageResponse) Status added in v1.3.17

func (r UploadGoPackageResponse) Status() string

Status returns HTTPResponse.Status

func (UploadGoPackageResponse) StatusCode added in v1.3.17

func (r UploadGoPackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadMavenMetadataXmlResponse added in v1.3.17

type UploadMavenMetadataXmlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadMavenMetadataXmlResponse added in v1.3.17

func ParseUploadMavenMetadataXmlResponse(rsp *http.Response) (*UploadMavenMetadataXmlResponse, error)

ParseUploadMavenMetadataXmlResponse parses an HTTP response from a UploadMavenMetadataXmlWithResponse call

func (UploadMavenMetadataXmlResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (UploadMavenMetadataXmlResponse) StatusCode added in v1.3.17

func (r UploadMavenMetadataXmlResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadMavenPackageResponse added in v1.3.17

type UploadMavenPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadMavenPackageResponse added in v1.3.17

func ParseUploadMavenPackageResponse(rsp *http.Response) (*UploadMavenPackageResponse, error)

ParseUploadMavenPackageResponse parses an HTTP response from a UploadMavenPackageWithResponse call

func (UploadMavenPackageResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (UploadMavenPackageResponse) StatusCode added in v1.3.17

func (r UploadMavenPackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadNPMPackageResponse added in v1.3.17

type UploadNPMPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadNPMPackageResponse added in v1.3.17

func ParseUploadNPMPackageResponse(rsp *http.Response) (*UploadNPMPackageResponse, error)

ParseUploadNPMPackageResponse parses an HTTP response from a UploadNPMPackageWithResponse call

func (UploadNPMPackageResponse) Status added in v1.3.17

func (r UploadNPMPackageResponse) Status() string

Status returns HTTPResponse.Status

func (UploadNPMPackageResponse) StatusCode added in v1.3.17

func (r UploadNPMPackageResponse) 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 UploadNugetPackageResponse added in v1.3.17

type UploadNugetPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadNugetPackageResponse added in v1.3.17

func ParseUploadNugetPackageResponse(rsp *http.Response) (*UploadNugetPackageResponse, error)

ParseUploadNugetPackageResponse parses an HTTP response from a UploadNugetPackageWithResponse call

func (UploadNugetPackageResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (UploadNugetPackageResponse) StatusCode added in v1.3.17

func (r UploadNugetPackageResponse) 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 UploadPythonPackageResponse added in v1.3.17

type UploadPythonPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadPythonPackageResponse added in v1.3.17

func ParseUploadPythonPackageResponse(rsp *http.Response) (*UploadPythonPackageResponse, error)

ParseUploadPythonPackageResponse parses an HTTP response from a UploadPythonPackageWithResponse call

func (UploadPythonPackageResponse) Status added in v1.3.17

Status returns HTTPResponse.Status

func (UploadPythonPackageResponse) StatusCode added in v1.3.17

func (r UploadPythonPackageResponse) 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 UploadRpmPackageResponse added in v1.3.17

type UploadRpmPackageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUploadRpmPackageResponse added in v1.3.17

func ParseUploadRpmPackageResponse(rsp *http.Response) (*UploadRpmPackageResponse, error)

ParseUploadRpmPackageResponse parses an HTTP response from a UploadRpmPackageWithResponse call

func (UploadRpmPackageResponse) Status added in v1.3.17

func (r UploadRpmPackageResponse) Status() string

Status returns HTTPResponse.Status

func (UploadRpmPackageResponse) StatusCode added in v1.3.17

func (r UploadRpmPackageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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