Documentation
¶
Overview ¶
Package registries provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.
Index ¶
- func NewCreateDelegationRequest(server string, body CreateDelegationJSONRequestBody) (*http.Request, error)
- func NewCreateDelegationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateRegistryRequest(server string, body CreateRegistryJSONRequestBody) (*http.Request, error)
- func NewCreateRegistryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteRegistryRequest(server string, id string) (*http.Request, error)
- func NewGetRegistryRequest(server string, id string) (*http.Request, error)
- func NewListDelegationsRequest(server string) (*http.Request, error)
- func NewListRegistriesRequest(server string) (*http.Request, error)
- func NewRevokeDelegationRequest(server string, id string) (*http.Request, error)
- type Client
- func (c *Client) CreateDelegation(ctx context.Context, body CreateDelegationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateDelegationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateRegistry(ctx context.Context, body CreateRegistryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateRegistryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteRegistry(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetRegistry(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListDelegations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRegistries(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RevokeDelegation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateDelegationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateDelegationResult, error)
- func (c *ClientWithResponses) CreateDelegationWithResponse(ctx context.Context, body CreateDelegationJSONRequestBody, ...) (*CreateDelegationResult, error)
- func (c *ClientWithResponses) CreateRegistryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateRegistryResult, error)
- func (c *ClientWithResponses) CreateRegistryWithResponse(ctx context.Context, body CreateRegistryJSONRequestBody, ...) (*CreateRegistryResult, error)
- func (c *ClientWithResponses) DeleteRegistryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteRegistryResult, error)
- func (c *ClientWithResponses) GetRegistryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetRegistryResult, error)
- func (c *ClientWithResponses) ListDelegationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDelegationsResult, error)
- func (c *ClientWithResponses) ListRegistriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegistriesResult, error)
- func (c *ClientWithResponses) RevokeDelegationWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RevokeDelegationResult, error)
- type ClientWithResponsesInterface
- type CreateDelegationJSONRequestBody
- type CreateDelegationResult
- func (r CreateDelegationResult) ContentType() string
- func (r CreateDelegationResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
- func (r CreateDelegationResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r CreateDelegationResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r CreateDelegationResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r CreateDelegationResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r CreateDelegationResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r CreateDelegationResult) GetBody() []byte
- func (r CreateDelegationResult) GetJSON201() *externalRef0.EcrDelegation
- func (r CreateDelegationResult) Status() string
- func (r CreateDelegationResult) StatusCode() int
- type CreateDelegationResult201Headers
- type CreateDelegationResult400Headers
- type CreateDelegationResult403Headers
- type CreateDelegationResult413Headers
- type CreateDelegationResult429Headers
- type CreateDelegationResultDefaultHeaders
- type CreateRegistryJSONRequestBody
- type CreateRegistryResult
- func (r CreateRegistryResult) ContentType() string
- func (r CreateRegistryResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
- func (r CreateRegistryResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r CreateRegistryResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r CreateRegistryResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
- func (r CreateRegistryResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
- func (r CreateRegistryResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r CreateRegistryResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r CreateRegistryResult) GetBody() []byte
- func (r CreateRegistryResult) GetJSON201() *externalRef0.Registry
- func (r CreateRegistryResult) Status() string
- func (r CreateRegistryResult) StatusCode() int
- type CreateRegistryResult201Headers
- type CreateRegistryResult400Headers
- type CreateRegistryResult403Headers
- type CreateRegistryResult413Headers
- type CreateRegistryResult422Headers
- type CreateRegistryResult429Headers
- type CreateRegistryResultDefaultHeaders
- type DeleteRegistryResult
- func (r DeleteRegistryResult) ContentType() string
- func (r DeleteRegistryResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
- func (r DeleteRegistryResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r DeleteRegistryResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r DeleteRegistryResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r DeleteRegistryResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r DeleteRegistryResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r DeleteRegistryResult) GetBody() []byte
- func (r DeleteRegistryResult) Status() string
- func (r DeleteRegistryResult) StatusCode() int
- type DeleteRegistryResult204Headers
- type DeleteRegistryResult400Headers
- type DeleteRegistryResult403Headers
- type DeleteRegistryResult404Headers
- type DeleteRegistryResult429Headers
- type DeleteRegistryResultDefaultHeaders
- type GetRegistryResult
- func (r GetRegistryResult) ContentType() string
- func (r GetRegistryResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r GetRegistryResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r GetRegistryResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r GetRegistryResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r GetRegistryResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r GetRegistryResult) GetBody() []byte
- func (r GetRegistryResult) GetJSON200() *externalRef0.Registry
- func (r GetRegistryResult) Status() string
- func (r GetRegistryResult) StatusCode() int
- type GetRegistryResult200Headers
- type GetRegistryResult403Headers
- type GetRegistryResult404Headers
- type GetRegistryResult429Headers
- type GetRegistryResultDefaultHeaders
- type HttpRequestDoer
- type ListDelegationsResult
- func (r ListDelegationsResult) ContentType() string
- func (r ListDelegationsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListDelegationsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListDelegationsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListDelegationsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListDelegationsResult) GetBody() []byte
- func (r ListDelegationsResult) GetJSON200() *externalRef0.ListDelegationsResponse
- func (r ListDelegationsResult) Status() string
- func (r ListDelegationsResult) StatusCode() int
- type ListDelegationsResult200Headers
- type ListDelegationsResult403Headers
- type ListDelegationsResult429Headers
- type ListDelegationsResultDefaultHeaders
- type ListRegistriesResult
- func (r ListRegistriesResult) ContentType() string
- func (r ListRegistriesResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r ListRegistriesResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r ListRegistriesResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r ListRegistriesResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r ListRegistriesResult) GetBody() []byte
- func (r ListRegistriesResult) GetJSON200() *externalRef0.ListRegistriesResponse
- func (r ListRegistriesResult) Status() string
- func (r ListRegistriesResult) StatusCode() int
- type ListRegistriesResult200Headers
- type ListRegistriesResult403Headers
- type ListRegistriesResult429Headers
- type ListRegistriesResultDefaultHeaders
- type RequestEditorFn
- type RevokeDelegationResult
- func (r RevokeDelegationResult) ContentType() string
- func (r RevokeDelegationResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
- func (r RevokeDelegationResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
- func (r RevokeDelegationResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
- func (r RevokeDelegationResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
- func (r RevokeDelegationResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
- func (r RevokeDelegationResult) GetBody() []byte
- func (r RevokeDelegationResult) Status() string
- func (r RevokeDelegationResult) StatusCode() int
- type RevokeDelegationResult204Headers
- type RevokeDelegationResult403Headers
- type RevokeDelegationResult404Headers
- type RevokeDelegationResult429Headers
- type RevokeDelegationResultDefaultHeaders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateDelegationRequest ¶
func NewCreateDelegationRequest(server string, body CreateDelegationJSONRequestBody) (*http.Request, error)
NewCreateDelegationRequest calls the generic CreateDelegation builder with application/json body
func NewCreateDelegationRequestWithBody ¶
func NewCreateDelegationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateDelegationRequestWithBody constructs an http.Request for the CreateDelegation method, with any body, and a specified content type
func NewCreateRegistryRequest ¶
func NewCreateRegistryRequest(server string, body CreateRegistryJSONRequestBody) (*http.Request, error)
NewCreateRegistryRequest calls the generic CreateRegistry builder with application/json body
func NewCreateRegistryRequestWithBody ¶
func NewCreateRegistryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateRegistryRequestWithBody constructs an http.Request for the CreateRegistry method, with any body, and a specified content type
func NewDeleteRegistryRequest ¶
NewDeleteRegistryRequest constructs an http.Request for the DeleteRegistry method
func NewGetRegistryRequest ¶
NewGetRegistryRequest constructs an http.Request for the GetRegistry method
func NewListDelegationsRequest ¶
NewListDelegationsRequest constructs an http.Request for the ListDelegations method
func NewListRegistriesRequest ¶
NewListRegistriesRequest constructs an http.Request for the ListRegistries method
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) CreateDelegation ¶
func (c *Client) CreateDelegation(ctx context.Context, body CreateDelegationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDelegation Register an ECR delegation
Takes a body of the `application/json` content type.
Corresponds with POST /v2/registries/delegations (the `CreateDelegation` operationId).
func (*Client) CreateDelegationWithBody ¶
func (c *Client) CreateDelegationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDelegationWithBody Register an ECR delegation
Takes any type of body and a specified content type.
Corresponds with POST /v2/registries/delegations (the `CreateDelegation` operationId).
func (*Client) CreateRegistry ¶
func (c *Client) CreateRegistry(ctx context.Context, body CreateRegistryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateRegistry Create a container registry credential
Stores credentials for a private container registry. Credentials are write-only.
Takes a body of the `application/json` content type.
Corresponds with POST /v2/registries (the `CreateRegistry` operationId).
func (*Client) CreateRegistryWithBody ¶
func (c *Client) CreateRegistryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateRegistryWithBody Create a container registry credential
Stores credentials for a private container registry. Credentials are write-only.
Takes any type of body and a specified content type.
Corresponds with POST /v2/registries (the `CreateRegistry` operationId).
func (*Client) DeleteRegistry ¶
func (c *Client) DeleteRegistry(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteRegistry Delete a container registry credential
Permanently deletes a container registry credential by ID. Rejected if any pod currently uses this credential to pull its image. Templates that reference it are not part of that check — they silently lose the reference (`registry` becomes null) instead of blocking the delete.
Corresponds with DELETE /v2/registries/{id} (the `DeleteRegistry` operationId).
func (*Client) GetRegistry ¶
func (c *Client) GetRegistry(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
GetRegistry Get a container registry credential
Returns a single container registry credential by ID. `username` and `password` are never included in the response — credentials are write-only, matching `createRegistry`.
Corresponds with GET /v2/registries/{id} (the `GetRegistry` operationId).
func (*Client) ListDelegations ¶
func (c *Client) ListDelegations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDelegations List all ECR delegations
Corresponds with GET /v2/registries/delegations (the `ListDelegations` operationId).
func (*Client) ListRegistries ¶
func (c *Client) ListRegistries(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
ListRegistries List container registries
Returns all container registry credentials owned by the authenticated user.
Corresponds with GET /v2/registries (the `ListRegistries` operationId).
func (*Client) RevokeDelegation ¶
func (c *Client) RevokeDelegation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeDelegation Revoke an ECR delegation
Corresponds with DELETE /v2/registries/delegations/{id} (the `RevokeDelegation` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListRegistries List container registries
//
// Returns all container registry credentials owned by the authenticated user.
//
// Corresponds with GET /v2/registries (the `ListRegistries` operationId).
ListRegistries(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateRegistryWithBody Create a container registry credential
//
// Stores credentials for a private container registry. Credentials are write-only.
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v2/registries (the `CreateRegistry` operationId).
CreateRegistryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateRegistry Create a container registry credential
//
// Stores credentials for a private container registry. Credentials are write-only.
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v2/registries (the `CreateRegistry` operationId).
CreateRegistry(ctx context.Context, body CreateRegistryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDelegations List all ECR delegations
//
// Corresponds with GET /v2/registries/delegations (the `ListDelegations` operationId).
ListDelegations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDelegationWithBody Register an ECR delegation
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /v2/registries/delegations (the `CreateDelegation` operationId).
CreateDelegationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDelegation Register an ECR delegation
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /v2/registries/delegations (the `CreateDelegation` operationId).
CreateDelegation(ctx context.Context, body CreateDelegationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeDelegation Revoke an ECR delegation
//
// Corresponds with DELETE /v2/registries/delegations/{id} (the `RevokeDelegation` operationId).
RevokeDelegation(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteRegistry Delete a container registry credential
//
// Permanently deletes a container registry credential by ID. Rejected
// if any pod currently uses this credential to pull its image.
// Templates that reference it are not part of that check — they
// silently lose the reference (`registry` becomes null) instead of
// blocking the delete.
//
// Corresponds with DELETE /v2/registries/{id} (the `DeleteRegistry` operationId).
DeleteRegistry(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetRegistry Get a container registry credential
//
// Returns a single container registry credential by ID. `username` and
// `password` are never included in the response — credentials are
// write-only, matching `createRegistry`.
//
// Corresponds with GET /v2/registries/{id} (the `GetRegistry` operationId).
GetRegistry(ctx context.Context, id string, 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) CreateDelegationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateDelegationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDelegationResult, error)
CreateDelegationWithBodyWithResponse Register an ECR delegation
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v2/registries/delegations (the `CreateDelegation` operationId).
func (*ClientWithResponses) CreateDelegationWithResponse ¶
func (c *ClientWithResponses) CreateDelegationWithResponse(ctx context.Context, body CreateDelegationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDelegationResult, error)
CreateDelegationWithResponse Register an ECR delegation
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v2/registries/delegations (the `CreateDelegation` operationId).
func (*ClientWithResponses) CreateRegistryWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateRegistryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRegistryResult, error)
CreateRegistryWithBodyWithResponse Create a container registry credential
Stores credentials for a private container registry. Credentials are write-only.
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v2/registries (the `CreateRegistry` operationId).
func (*ClientWithResponses) CreateRegistryWithResponse ¶
func (c *ClientWithResponses) CreateRegistryWithResponse(ctx context.Context, body CreateRegistryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRegistryResult, error)
CreateRegistryWithResponse Create a container registry credential
Stores credentials for a private container registry. Credentials are write-only.
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /v2/registries (the `CreateRegistry` operationId).
func (*ClientWithResponses) DeleteRegistryWithResponse ¶
func (c *ClientWithResponses) DeleteRegistryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteRegistryResult, error)
DeleteRegistryWithResponse Delete a container registry credential
Permanently deletes a container registry credential by ID. Rejected if any pod currently uses this credential to pull its image. Templates that reference it are not part of that check — they silently lose the reference (`registry` becomes null) instead of blocking the delete.
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v2/registries/{id} (the `DeleteRegistry` operationId).
func (*ClientWithResponses) GetRegistryWithResponse ¶
func (c *ClientWithResponses) GetRegistryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetRegistryResult, error)
GetRegistryWithResponse Get a container registry credential
Returns a single container registry credential by ID. `username` and `password` are never included in the response — credentials are write-only, matching `createRegistry`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/registries/{id} (the `GetRegistry` operationId).
func (*ClientWithResponses) ListDelegationsWithResponse ¶
func (c *ClientWithResponses) ListDelegationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDelegationsResult, error)
ListDelegationsWithResponse List all ECR delegations
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/registries/delegations (the `ListDelegations` operationId).
func (*ClientWithResponses) ListRegistriesWithResponse ¶
func (c *ClientWithResponses) ListRegistriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegistriesResult, error)
ListRegistriesWithResponse List container registries
Returns all container registry credentials owned by the authenticated user.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /v2/registries (the `ListRegistries` operationId).
func (*ClientWithResponses) RevokeDelegationWithResponse ¶
func (c *ClientWithResponses) RevokeDelegationWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RevokeDelegationResult, error)
RevokeDelegationWithResponse Revoke an ECR delegation
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /v2/registries/delegations/{id} (the `RevokeDelegation` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListRegistriesWithResponse List container registries
//
// Returns all container registry credentials owned by the authenticated user.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/registries (the `ListRegistries` operationId).
ListRegistriesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegistriesResult, error)
// CreateRegistryWithBodyWithResponse Create a container registry credential
//
// Stores credentials for a private container registry. Credentials are write-only.
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v2/registries (the `CreateRegistry` operationId).
CreateRegistryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRegistryResult, error)
// CreateRegistryWithResponse Create a container registry credential
//
// Stores credentials for a private container registry. Credentials are write-only.
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v2/registries (the `CreateRegistry` operationId).
CreateRegistryWithResponse(ctx context.Context, body CreateRegistryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRegistryResult, error)
// ListDelegationsWithResponse List all ECR delegations
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/registries/delegations (the `ListDelegations` operationId).
ListDelegationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDelegationsResult, error)
// CreateDelegationWithBodyWithResponse Register an ECR delegation
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v2/registries/delegations (the `CreateDelegation` operationId).
CreateDelegationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDelegationResult, error)
// CreateDelegationWithResponse Register an ECR delegation
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /v2/registries/delegations (the `CreateDelegation` operationId).
CreateDelegationWithResponse(ctx context.Context, body CreateDelegationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDelegationResult, error)
// RevokeDelegationWithResponse Revoke an ECR delegation
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v2/registries/delegations/{id} (the `RevokeDelegation` operationId).
RevokeDelegationWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RevokeDelegationResult, error)
// DeleteRegistryWithResponse Delete a container registry credential
//
// Permanently deletes a container registry credential by ID. Rejected
// if any pod currently uses this credential to pull its image.
// Templates that reference it are not part of that check — they
// silently lose the reference (`registry` becomes null) instead of
// blocking the delete.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /v2/registries/{id} (the `DeleteRegistry` operationId).
DeleteRegistryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteRegistryResult, error)
// GetRegistryWithResponse Get a container registry credential
//
// Returns a single container registry credential by ID. `username` and
// `password` are never included in the response — credentials are
// write-only, matching `createRegistry`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /v2/registries/{id} (the `GetRegistry` operationId).
GetRegistryWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetRegistryResult, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateDelegationJSONRequestBody ¶
type CreateDelegationJSONRequestBody = externalRef0.CreateDelegationRequest
CreateDelegationJSONRequestBody defines body for CreateDelegation for application/json ContentType.
type CreateDelegationResult ¶
type CreateDelegationResult struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *externalRef0.EcrDelegation
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *externalRef0.ErrorResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateDelegationResult201Headers
// Headers400 the parsed response headers for an HTTP 400 response
Headers400 *CreateDelegationResult400Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *CreateDelegationResult403Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *CreateDelegationResult413Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateDelegationResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *CreateDelegationResultDefaultHeaders
}
func ParseCreateDelegationResult ¶
func ParseCreateDelegationResult(rsp *http.Response) (*CreateDelegationResult, error)
ParseCreateDelegationResult parses an HTTP response from a CreateDelegationWithResponse call
func (CreateDelegationResult) ContentType ¶
func (r CreateDelegationResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateDelegationResult) GetApplicationproblemJSON400 ¶ added in v2.1.0
func (r CreateDelegationResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateDelegationResult) GetApplicationproblemJSON401 ¶
func (r CreateDelegationResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateDelegationResult) GetApplicationproblemJSON403 ¶
func (r CreateDelegationResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateDelegationResult) GetApplicationproblemJSON413 ¶ added in v2.1.0
func (r CreateDelegationResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (CreateDelegationResult) GetApplicationproblemJSON429 ¶
func (r CreateDelegationResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateDelegationResult) GetApplicationproblemJSONDefault ¶
func (r CreateDelegationResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (CreateDelegationResult) GetBody ¶
func (r CreateDelegationResult) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateDelegationResult) GetJSON201 ¶
func (r CreateDelegationResult) GetJSON201() *externalRef0.EcrDelegation
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateDelegationResult) Status ¶
func (r CreateDelegationResult) Status() string
Status returns HTTPResponse.Status
func (CreateDelegationResult) StatusCode ¶
func (r CreateDelegationResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateDelegationResult201Headers ¶
type CreateDelegationResult201Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateDelegationResult201Headers the declared response headers of an HTTP 201 response for CreateDelegation
type CreateDelegationResult400Headers ¶ added in v2.1.0
type CreateDelegationResult400Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateDelegationResult400Headers the declared response headers of an HTTP 400 response for CreateDelegation
type CreateDelegationResult403Headers ¶
type CreateDelegationResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateDelegationResult403Headers the declared response headers of an HTTP 403 response for CreateDelegation
type CreateDelegationResult413Headers ¶ added in v2.1.0
type CreateDelegationResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateDelegationResult413Headers the declared response headers of an HTTP 413 response for CreateDelegation
type CreateDelegationResult429Headers ¶
type CreateDelegationResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
CreateDelegationResult429Headers the declared response headers of an HTTP 429 response for CreateDelegation
type CreateDelegationResultDefaultHeaders ¶
type CreateDelegationResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateDelegationResultDefaultHeaders the declared response headers of an HTTP default response for CreateDelegation
type CreateRegistryJSONRequestBody ¶
type CreateRegistryJSONRequestBody = externalRef0.CreateRegistryRequest
CreateRegistryJSONRequestBody defines body for CreateRegistry for application/json ContentType.
type CreateRegistryResult ¶
type CreateRegistryResult struct {
Body []byte
HTTPResponse *http.Response
// JSON201 the response for an HTTP 201 `application/json` response
JSON201 *externalRef0.Registry
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *externalRef0.ErrorResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
ApplicationproblemJSON413 *externalRef0.ErrorResponse
// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
ApplicationproblemJSON422 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers201 the parsed response headers for an HTTP 201 response
Headers201 *CreateRegistryResult201Headers
// Headers400 the parsed response headers for an HTTP 400 response
Headers400 *CreateRegistryResult400Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *CreateRegistryResult403Headers
// Headers413 the parsed response headers for an HTTP 413 response
Headers413 *CreateRegistryResult413Headers
// Headers422 the parsed response headers for an HTTP 422 response
Headers422 *CreateRegistryResult422Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *CreateRegistryResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *CreateRegistryResultDefaultHeaders
}
func ParseCreateRegistryResult ¶
func ParseCreateRegistryResult(rsp *http.Response) (*CreateRegistryResult, error)
ParseCreateRegistryResult parses an HTTP response from a CreateRegistryWithResponse call
func (CreateRegistryResult) ContentType ¶
func (r CreateRegistryResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateRegistryResult) GetApplicationproblemJSON400 ¶
func (r CreateRegistryResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (CreateRegistryResult) GetApplicationproblemJSON401 ¶
func (r CreateRegistryResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (CreateRegistryResult) GetApplicationproblemJSON403 ¶
func (r CreateRegistryResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (CreateRegistryResult) GetApplicationproblemJSON413 ¶ added in v2.1.0
func (r CreateRegistryResult) GetApplicationproblemJSON413() *externalRef0.ErrorResponse
GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response
func (CreateRegistryResult) GetApplicationproblemJSON422 ¶
func (r CreateRegistryResult) GetApplicationproblemJSON422() *externalRef0.ErrorResponse
GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response
func (CreateRegistryResult) GetApplicationproblemJSON429 ¶
func (r CreateRegistryResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (CreateRegistryResult) GetApplicationproblemJSONDefault ¶
func (r CreateRegistryResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (CreateRegistryResult) GetBody ¶
func (r CreateRegistryResult) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateRegistryResult) GetJSON201 ¶
func (r CreateRegistryResult) GetJSON201() *externalRef0.Registry
GetJSON201 returns the response for an HTTP 201 `application/json` response
func (CreateRegistryResult) Status ¶
func (r CreateRegistryResult) Status() string
Status returns HTTPResponse.Status
func (CreateRegistryResult) StatusCode ¶
func (r CreateRegistryResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateRegistryResult201Headers ¶
type CreateRegistryResult201Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateRegistryResult201Headers the declared response headers of an HTTP 201 response for CreateRegistry
type CreateRegistryResult400Headers ¶
type CreateRegistryResult400Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateRegistryResult400Headers the declared response headers of an HTTP 400 response for CreateRegistry
type CreateRegistryResult403Headers ¶
type CreateRegistryResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateRegistryResult403Headers the declared response headers of an HTTP 403 response for CreateRegistry
type CreateRegistryResult413Headers ¶ added in v2.1.0
type CreateRegistryResult413Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateRegistryResult413Headers the declared response headers of an HTTP 413 response for CreateRegistry
type CreateRegistryResult422Headers ¶
type CreateRegistryResult422Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateRegistryResult422Headers the declared response headers of an HTTP 422 response for CreateRegistry
type CreateRegistryResult429Headers ¶
type CreateRegistryResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
CreateRegistryResult429Headers the declared response headers of an HTTP 429 response for CreateRegistry
type CreateRegistryResultDefaultHeaders ¶
type CreateRegistryResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
CreateRegistryResultDefaultHeaders the declared response headers of an HTTP default response for CreateRegistry
type DeleteRegistryResult ¶
type DeleteRegistryResult struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
ApplicationproblemJSON400 *externalRef0.ErrorResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers204 the parsed response headers for an HTTP 204 response
Headers204 *DeleteRegistryResult204Headers
// Headers400 the parsed response headers for an HTTP 400 response
Headers400 *DeleteRegistryResult400Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *DeleteRegistryResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *DeleteRegistryResult404Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *DeleteRegistryResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *DeleteRegistryResultDefaultHeaders
}
func ParseDeleteRegistryResult ¶
func ParseDeleteRegistryResult(rsp *http.Response) (*DeleteRegistryResult, error)
ParseDeleteRegistryResult parses an HTTP response from a DeleteRegistryWithResponse call
func (DeleteRegistryResult) ContentType ¶
func (r DeleteRegistryResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteRegistryResult) GetApplicationproblemJSON400 ¶
func (r DeleteRegistryResult) GetApplicationproblemJSON400() *externalRef0.ErrorResponse
GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response
func (DeleteRegistryResult) GetApplicationproblemJSON401 ¶
func (r DeleteRegistryResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (DeleteRegistryResult) GetApplicationproblemJSON403 ¶
func (r DeleteRegistryResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (DeleteRegistryResult) GetApplicationproblemJSON404 ¶
func (r DeleteRegistryResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (DeleteRegistryResult) GetApplicationproblemJSON429 ¶
func (r DeleteRegistryResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (DeleteRegistryResult) GetApplicationproblemJSONDefault ¶
func (r DeleteRegistryResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (DeleteRegistryResult) GetBody ¶
func (r DeleteRegistryResult) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteRegistryResult) Status ¶
func (r DeleteRegistryResult) Status() string
Status returns HTTPResponse.Status
func (DeleteRegistryResult) StatusCode ¶
func (r DeleteRegistryResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteRegistryResult204Headers ¶
type DeleteRegistryResult204Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
DeleteRegistryResult204Headers the declared response headers of an HTTP 204 response for DeleteRegistry
type DeleteRegistryResult400Headers ¶
type DeleteRegistryResult400Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
DeleteRegistryResult400Headers the declared response headers of an HTTP 400 response for DeleteRegistry
type DeleteRegistryResult403Headers ¶
type DeleteRegistryResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
DeleteRegistryResult403Headers the declared response headers of an HTTP 403 response for DeleteRegistry
type DeleteRegistryResult404Headers ¶
type DeleteRegistryResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
DeleteRegistryResult404Headers the declared response headers of an HTTP 404 response for DeleteRegistry
type DeleteRegistryResult429Headers ¶
type DeleteRegistryResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
DeleteRegistryResult429Headers the declared response headers of an HTTP 429 response for DeleteRegistry
type DeleteRegistryResultDefaultHeaders ¶
type DeleteRegistryResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
DeleteRegistryResultDefaultHeaders the declared response headers of an HTTP default response for DeleteRegistry
type GetRegistryResult ¶
type GetRegistryResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.Registry
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *GetRegistryResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *GetRegistryResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *GetRegistryResult404Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *GetRegistryResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *GetRegistryResultDefaultHeaders
}
func ParseGetRegistryResult ¶
func ParseGetRegistryResult(rsp *http.Response) (*GetRegistryResult, error)
ParseGetRegistryResult parses an HTTP response from a GetRegistryWithResponse call
func (GetRegistryResult) ContentType ¶
func (r GetRegistryResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetRegistryResult) GetApplicationproblemJSON401 ¶
func (r GetRegistryResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (GetRegistryResult) GetApplicationproblemJSON403 ¶
func (r GetRegistryResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (GetRegistryResult) GetApplicationproblemJSON404 ¶
func (r GetRegistryResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (GetRegistryResult) GetApplicationproblemJSON429 ¶
func (r GetRegistryResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (GetRegistryResult) GetApplicationproblemJSONDefault ¶
func (r GetRegistryResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (GetRegistryResult) GetBody ¶
func (r GetRegistryResult) GetBody() []byte
GetBody returns the raw response body bytes
func (GetRegistryResult) GetJSON200 ¶
func (r GetRegistryResult) GetJSON200() *externalRef0.Registry
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetRegistryResult) Status ¶
func (r GetRegistryResult) Status() string
Status returns HTTPResponse.Status
func (GetRegistryResult) StatusCode ¶
func (r GetRegistryResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetRegistryResult200Headers ¶
type GetRegistryResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetRegistryResult200Headers the declared response headers of an HTTP 200 response for GetRegistry
type GetRegistryResult403Headers ¶
type GetRegistryResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetRegistryResult403Headers the declared response headers of an HTTP 403 response for GetRegistry
type GetRegistryResult404Headers ¶
type GetRegistryResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetRegistryResult404Headers the declared response headers of an HTTP 404 response for GetRegistry
type GetRegistryResult429Headers ¶
type GetRegistryResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
GetRegistryResult429Headers the declared response headers of an HTTP 429 response for GetRegistry
type GetRegistryResultDefaultHeaders ¶
type GetRegistryResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
GetRegistryResultDefaultHeaders the declared response headers of an HTTP default response for GetRegistry
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListDelegationsResult ¶
type ListDelegationsResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListDelegationsResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListDelegationsResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListDelegationsResult403Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListDelegationsResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListDelegationsResultDefaultHeaders
}
func ParseListDelegationsResult ¶
func ParseListDelegationsResult(rsp *http.Response) (*ListDelegationsResult, error)
ParseListDelegationsResult parses an HTTP response from a ListDelegationsWithResponse call
func (ListDelegationsResult) ContentType ¶
func (r ListDelegationsResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDelegationsResult) GetApplicationproblemJSON401 ¶
func (r ListDelegationsResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListDelegationsResult) GetApplicationproblemJSON403 ¶
func (r ListDelegationsResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListDelegationsResult) GetApplicationproblemJSON429 ¶
func (r ListDelegationsResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListDelegationsResult) GetApplicationproblemJSONDefault ¶
func (r ListDelegationsResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListDelegationsResult) GetBody ¶
func (r ListDelegationsResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDelegationsResult) GetJSON200 ¶
func (r ListDelegationsResult) GetJSON200() *externalRef0.ListDelegationsResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDelegationsResult) Status ¶
func (r ListDelegationsResult) Status() string
Status returns HTTPResponse.Status
func (ListDelegationsResult) StatusCode ¶
func (r ListDelegationsResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDelegationsResult200Headers ¶
type ListDelegationsResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListDelegationsResult200Headers the declared response headers of an HTTP 200 response for ListDelegations
type ListDelegationsResult403Headers ¶
type ListDelegationsResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListDelegationsResult403Headers the declared response headers of an HTTP 403 response for ListDelegations
type ListDelegationsResult429Headers ¶
type ListDelegationsResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListDelegationsResult429Headers the declared response headers of an HTTP 429 response for ListDelegations
type ListDelegationsResultDefaultHeaders ¶
type ListDelegationsResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListDelegationsResultDefaultHeaders the declared response headers of an HTTP default response for ListDelegations
type ListRegistriesResult ¶
type ListRegistriesResult struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *externalRef0.ListRegistriesResponse
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *ListRegistriesResult200Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *ListRegistriesResult403Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *ListRegistriesResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *ListRegistriesResultDefaultHeaders
}
func ParseListRegistriesResult ¶
func ParseListRegistriesResult(rsp *http.Response) (*ListRegistriesResult, error)
ParseListRegistriesResult parses an HTTP response from a ListRegistriesWithResponse call
func (ListRegistriesResult) ContentType ¶
func (r ListRegistriesResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListRegistriesResult) GetApplicationproblemJSON401 ¶
func (r ListRegistriesResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (ListRegistriesResult) GetApplicationproblemJSON403 ¶
func (r ListRegistriesResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (ListRegistriesResult) GetApplicationproblemJSON429 ¶
func (r ListRegistriesResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (ListRegistriesResult) GetApplicationproblemJSONDefault ¶
func (r ListRegistriesResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (ListRegistriesResult) GetBody ¶
func (r ListRegistriesResult) GetBody() []byte
GetBody returns the raw response body bytes
func (ListRegistriesResult) GetJSON200 ¶
func (r ListRegistriesResult) GetJSON200() *externalRef0.ListRegistriesResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListRegistriesResult) Status ¶
func (r ListRegistriesResult) Status() string
Status returns HTTPResponse.Status
func (ListRegistriesResult) StatusCode ¶
func (r ListRegistriesResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRegistriesResult200Headers ¶
type ListRegistriesResult200Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListRegistriesResult200Headers the declared response headers of an HTTP 200 response for ListRegistries
type ListRegistriesResult403Headers ¶
type ListRegistriesResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListRegistriesResult403Headers the declared response headers of an HTTP 403 response for ListRegistries
type ListRegistriesResult429Headers ¶
type ListRegistriesResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
ListRegistriesResult429Headers the declared response headers of an HTTP 429 response for ListRegistries
type ListRegistriesResultDefaultHeaders ¶
type ListRegistriesResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
ListRegistriesResultDefaultHeaders the declared response headers of an HTTP default response for ListRegistries
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RevokeDelegationResult ¶
type RevokeDelegationResult struct {
Body []byte
HTTPResponse *http.Response
// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
ApplicationproblemJSON401 *externalRef0.ErrorResponse
// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
ApplicationproblemJSON403 *externalRef0.ErrorResponse
// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
ApplicationproblemJSON404 *externalRef0.ErrorResponse
// ApplicationproblemJSON429 the response for an HTTP 429 `application/problem+json` response
ApplicationproblemJSON429 *externalRef0.ErrorResponse
// ApplicationproblemJSONDefault the response for an HTTP default `application/problem+json` response
ApplicationproblemJSONDefault *externalRef0.ErrorResponse
// Headers204 the parsed response headers for an HTTP 204 response
Headers204 *RevokeDelegationResult204Headers
// Headers403 the parsed response headers for an HTTP 403 response
Headers403 *RevokeDelegationResult403Headers
// Headers404 the parsed response headers for an HTTP 404 response
Headers404 *RevokeDelegationResult404Headers
// Headers429 the parsed response headers for an HTTP 429 response
Headers429 *RevokeDelegationResult429Headers
// HeadersDefault the parsed response headers for an HTTP default response
HeadersDefault *RevokeDelegationResultDefaultHeaders
}
func ParseRevokeDelegationResult ¶
func ParseRevokeDelegationResult(rsp *http.Response) (*RevokeDelegationResult, error)
ParseRevokeDelegationResult parses an HTTP response from a RevokeDelegationWithResponse call
func (RevokeDelegationResult) ContentType ¶
func (r RevokeDelegationResult) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeDelegationResult) GetApplicationproblemJSON401 ¶
func (r RevokeDelegationResult) GetApplicationproblemJSON401() *externalRef0.ErrorResponse
GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response
func (RevokeDelegationResult) GetApplicationproblemJSON403 ¶
func (r RevokeDelegationResult) GetApplicationproblemJSON403() *externalRef0.ErrorResponse
GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response
func (RevokeDelegationResult) GetApplicationproblemJSON404 ¶
func (r RevokeDelegationResult) GetApplicationproblemJSON404() *externalRef0.ErrorResponse
GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response
func (RevokeDelegationResult) GetApplicationproblemJSON429 ¶
func (r RevokeDelegationResult) GetApplicationproblemJSON429() *externalRef0.ErrorResponse
GetApplicationproblemJSON429 returns the response for an HTTP 429 `application/problem+json` response
func (RevokeDelegationResult) GetApplicationproblemJSONDefault ¶
func (r RevokeDelegationResult) GetApplicationproblemJSONDefault() *externalRef0.ErrorResponse
GetApplicationproblemJSONDefault returns the response for an HTTP default `application/problem+json` response
func (RevokeDelegationResult) GetBody ¶
func (r RevokeDelegationResult) GetBody() []byte
GetBody returns the raw response body bytes
func (RevokeDelegationResult) Status ¶
func (r RevokeDelegationResult) Status() string
Status returns HTTPResponse.Status
func (RevokeDelegationResult) StatusCode ¶
func (r RevokeDelegationResult) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RevokeDelegationResult204Headers ¶
type RevokeDelegationResult204Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
RevokeDelegationResult204Headers the declared response headers of an HTTP 204 response for RevokeDelegation
type RevokeDelegationResult403Headers ¶
type RevokeDelegationResult403Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
RevokeDelegationResult403Headers the declared response headers of an HTTP 403 response for RevokeDelegation
type RevokeDelegationResult404Headers ¶
type RevokeDelegationResult404Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
RevokeDelegationResult404Headers the declared response headers of an HTTP 404 response for RevokeDelegation
type RevokeDelegationResult429Headers ¶
type RevokeDelegationResult429Headers struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
RetryAfter *int
}
RevokeDelegationResult429Headers the declared response headers of an HTTP 429 response for RevokeDelegation
type RevokeDelegationResultDefaultHeaders ¶
type RevokeDelegationResultDefaultHeaders struct {
RateLimit *externalRef0.RateLimitHeader
RateLimitPolicy *externalRef0.RateLimitPolicyHeader
}
RevokeDelegationResultDefaultHeaders the declared response headers of an HTTP default response for RevokeDelegation