client

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildListPayload

func BuildListPayload(package_ListTag string, package_ListPage string, package_ListLimit string, package_ListJWT string) (*package_.ListPayload, error)

BuildListPayload builds the payload for the package list endpoint from CLI flags.

func BuildPatchPayload added in v0.41.1

func BuildPatchPayload(package_PatchTag string, package_PatchDigest string, package_PatchTotal string, package_PatchStart string, package_PatchEnd string, package_PatchLocation string, package_PatchJWT string) (*package_.PatchPayload, error)

BuildPatchPayload builds the payload for the package patch endpoint from CLI flags.

func BuildPatchStreamPayload added in v0.41.1

func BuildPatchStreamPayload(payload any, fpath string) (*package_.PatchRequestData, error)

// BuildPatchStreamPayload creates a streaming endpoint request payload from the method payload and the path to the file to be streamed

func BuildPullPayload

func BuildPullPayload(package_PullRef string, package_PullType string, package_PullOffset string, package_PullJWT string) (*package_.PullPayload, error)

BuildPullPayload builds the payload for the package pull endpoint from CLI flags.

func BuildPushPayload

func BuildPushPayload(package_PushTag string, package_PushForce string, package_PushType string, package_PushDigest string, package_PushJWT string) (*package_.PushPayload, error)

BuildPushPayload builds the payload for the package push endpoint from CLI flags.

func BuildPushStreamPayload

func BuildPushStreamPayload(payload any, fpath string) (*package_.PushRequestData, error)

// BuildPushStreamPayload creates a streaming endpoint request payload from the method payload and the path to the file to be streamed

func BuildPutPayload added in v0.41.1

func BuildPutPayload(package_PutTag string, package_PutDigest string, package_PutLocation string, package_PutJWT string) (*package_.PutPayload, error)

BuildPutPayload builds the payload for the package put endpoint from CLI flags.

func BuildRemovePayload

func BuildRemovePayload(package_RemoveTag string, package_RemoveJWT string) (*package_.RemovePayload, error)

BuildRemovePayload builds the payload for the package remove endpoint from CLI flags.

func DecodeListResponse

func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeListResponse returns a decoder for responses returned by the package list endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListResponse may return the following errors:

  • "bad-request" (type *package_.BadRequestT): http.StatusBadRequest
  • "invalid-parameter" (type *package_.InvalidParameterT): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *package_.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *package_.NotImplementedT): http.StatusNotImplemented
  • "not-available" (type *package_.ServiceNotAvailableT): http.StatusServiceUnavailable
  • "not-authorized" (type *package_.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func DecodePatchResponse added in v0.41.1

func DecodePatchResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodePatchResponse returns a decoder for responses returned by the package patch endpoint. restoreBody controls whether the response body should be restored after having been read. DecodePatchResponse may return the following errors:

  • "bad-request" (type *package_.BadRequestT): http.StatusBadRequest
  • "invalid-parameter" (type *package_.InvalidParameterT): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *package_.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *package_.NotImplementedT): http.StatusNotImplemented
  • "already-created" (type *package_.ResourceAlreadyCreatedT): http.StatusConflict
  • "not-available" (type *package_.ServiceNotAvailableT): http.StatusServiceUnavailable
  • "not-authorized" (type *package_.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func DecodePullResponse

func DecodePullResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodePullResponse returns a decoder for responses returned by the package pull endpoint. restoreBody controls whether the response body should be restored after having been read. DecodePullResponse may return the following errors:

  • "bad-request" (type *package_.BadRequestT): http.StatusBadRequest
  • "invalid-parameter" (type *package_.InvalidParameterT): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *package_.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *package_.NotImplementedT): http.StatusNotImplemented
  • "not-available" (type *package_.ServiceNotAvailableT): http.StatusServiceUnavailable
  • "not-authorized" (type *package_.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func DecodePushResponse

func DecodePushResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodePushResponse returns a decoder for responses returned by the package push endpoint. restoreBody controls whether the response body should be restored after having been read. DecodePushResponse may return the following errors:

  • "bad-request" (type *package_.BadRequestT): http.StatusBadRequest
  • "invalid-parameter" (type *package_.InvalidParameterT): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *package_.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *package_.NotImplementedT): http.StatusNotImplemented
  • "already-created" (type *package_.ResourceAlreadyCreatedT): http.StatusConflict
  • "not-available" (type *package_.ServiceNotAvailableT): http.StatusServiceUnavailable
  • "not-authorized" (type *package_.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func DecodePutResponse added in v0.41.1

func DecodePutResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodePutResponse returns a decoder for responses returned by the package put endpoint. restoreBody controls whether the response body should be restored after having been read. DecodePutResponse may return the following errors:

  • "bad-request" (type *package_.BadRequestT): http.StatusBadRequest
  • "invalid-parameter" (type *package_.InvalidParameterT): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *package_.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *package_.NotImplementedT): http.StatusNotImplemented
  • "already-created" (type *package_.ResourceAlreadyCreatedT): http.StatusConflict
  • "not-available" (type *package_.ServiceNotAvailableT): http.StatusServiceUnavailable
  • "not-authorized" (type *package_.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func DecodeRemoveResponse

func DecodeRemoveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)

DecodeRemoveResponse returns a decoder for responses returned by the package remove endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeRemoveResponse may return the following errors:

  • "bad-request" (type *package_.BadRequestT): http.StatusBadRequest
  • "invalid-parameter" (type *package_.InvalidParameterT): http.StatusUnprocessableEntity
  • "invalid-scopes" (type *package_.InvalidScopesT): http.StatusForbidden
  • "not-implemented" (type *package_.NotImplementedT): http.StatusNotImplemented
  • "not-available" (type *package_.ServiceNotAvailableT): http.StatusServiceUnavailable
  • "not-authorized" (type *package_.UnauthorizedT): http.StatusUnauthorized
  • error: internal error

func EncodeListRequest

func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeListRequest returns an encoder for requests sent to the package list server.

func EncodePatchRequest added in v0.41.1

func EncodePatchRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodePatchRequest returns an encoder for requests sent to the package patch server.

func EncodePullRequest

func EncodePullRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodePullRequest returns an encoder for requests sent to the package pull server.

func EncodePushRequest

func EncodePushRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodePushRequest returns an encoder for requests sent to the package push server.

func EncodePutRequest added in v0.41.1

func EncodePutRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodePutRequest returns an encoder for requests sent to the package put server.

func EncodeRemoveRequest

func EncodeRemoveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error

EncodeRemoveRequest returns an encoder for requests sent to the package remove server.

func ListPackagePath

func ListPackagePath() string

ListPackagePath returns the URL path to the package service list HTTP endpoint.

func NewListBadRequest

func NewListBadRequest(body *ListBadRequestResponseBody) *package_.BadRequestT

NewListBadRequest builds a package service list endpoint bad-request error.

func NewListInvalidParameter

func NewListInvalidParameter(body *ListInvalidParameterResponseBody) *package_.InvalidParameterT

NewListInvalidParameter builds a package service list endpoint invalid-parameter error.

func NewListInvalidScopes

func NewListInvalidScopes(body *ListInvalidScopesResponseBody) *package_.InvalidScopesT

NewListInvalidScopes builds a package service list endpoint invalid-scopes error.

func NewListNotAuthorized

func NewListNotAuthorized() *package_.UnauthorizedT

NewListNotAuthorized builds a package service list endpoint not-authorized error.

func NewListNotAvailable

func NewListNotAvailable() *package_.ServiceNotAvailableT

NewListNotAvailable builds a package service list endpoint not-available error.

func NewListNotImplemented

func NewListNotImplemented(body *ListNotImplementedResponseBody) *package_.NotImplementedT

NewListNotImplemented builds a package service list endpoint not-implemented error.

func NewListResultOK

func NewListResultOK(body *ListResponseBody) *package_.ListResult

NewListResultOK builds a "package" service "list" endpoint result from a HTTP "OK" response.

func NewPatchAlreadyCreated added in v0.41.1

NewPatchAlreadyCreated builds a package service patch endpoint already-created error.

func NewPatchBadRequest added in v0.41.1

func NewPatchBadRequest(body *PatchBadRequestResponseBody) *package_.BadRequestT

NewPatchBadRequest builds a package service patch endpoint bad-request error.

func NewPatchInvalidParameter added in v0.41.1

func NewPatchInvalidParameter(body *PatchInvalidParameterResponseBody) *package_.InvalidParameterT

NewPatchInvalidParameter builds a package service patch endpoint invalid-parameter error.

func NewPatchInvalidScopes added in v0.41.1

func NewPatchInvalidScopes(body *PatchInvalidScopesResponseBody) *package_.InvalidScopesT

NewPatchInvalidScopes builds a package service patch endpoint invalid-scopes error.

func NewPatchNotAuthorized added in v0.41.1

func NewPatchNotAuthorized() *package_.UnauthorizedT

NewPatchNotAuthorized builds a package service patch endpoint not-authorized error.

func NewPatchNotAvailable added in v0.41.1

func NewPatchNotAvailable() *package_.ServiceNotAvailableT

NewPatchNotAvailable builds a package service patch endpoint not-available error.

func NewPatchNotImplemented added in v0.41.1

func NewPatchNotImplemented(body *PatchNotImplementedResponseBody) *package_.NotImplementedT

NewPatchNotImplemented builds a package service patch endpoint not-implemented error.

func NewPatchResultCreated added in v0.41.1

func NewPatchResultCreated(body *PatchResponseBody) *package_.PatchResult

NewPatchResultCreated builds a "package" service "patch" endpoint result from a HTTP "Created" response.

func NewPullBadRequest

func NewPullBadRequest(body *PullBadRequestResponseBody) *package_.BadRequestT

NewPullBadRequest builds a package service pull endpoint bad-request error.

func NewPullInvalidParameter

func NewPullInvalidParameter(body *PullInvalidParameterResponseBody) *package_.InvalidParameterT

NewPullInvalidParameter builds a package service pull endpoint invalid-parameter error.

func NewPullInvalidScopes

func NewPullInvalidScopes(body *PullInvalidScopesResponseBody) *package_.InvalidScopesT

NewPullInvalidScopes builds a package service pull endpoint invalid-scopes error.

func NewPullNotAuthorized

func NewPullNotAuthorized() *package_.UnauthorizedT

NewPullNotAuthorized builds a package service pull endpoint not-authorized error.

func NewPullNotAvailable

func NewPullNotAvailable() *package_.ServiceNotAvailableT

NewPullNotAvailable builds a package service pull endpoint not-available error.

func NewPullNotImplemented

func NewPullNotImplemented(body *PullNotImplementedResponseBody) *package_.NotImplementedT

NewPullNotImplemented builds a package service pull endpoint not-implemented error.

func NewPullResultTOK

func NewPullResultTOK(total int, available int) *package_.PullResultT

NewPullResultTOK builds a "package" service "pull" endpoint result from a HTTP "OK" response.

func NewPushAlreadyCreated

NewPushAlreadyCreated builds a package service push endpoint already-created error.

func NewPushBadRequest

func NewPushBadRequest(body *PushBadRequestResponseBody) *package_.BadRequestT

NewPushBadRequest builds a package service push endpoint bad-request error.

func NewPushInvalidParameter

func NewPushInvalidParameter(body *PushInvalidParameterResponseBody) *package_.InvalidParameterT

NewPushInvalidParameter builds a package service push endpoint invalid-parameter error.

func NewPushInvalidScopes

func NewPushInvalidScopes(body *PushInvalidScopesResponseBody) *package_.InvalidScopesT

NewPushInvalidScopes builds a package service push endpoint invalid-scopes error.

func NewPushNotAuthorized

func NewPushNotAuthorized() *package_.UnauthorizedT

NewPushNotAuthorized builds a package service push endpoint not-authorized error.

func NewPushNotAvailable

func NewPushNotAvailable() *package_.ServiceNotAvailableT

NewPushNotAvailable builds a package service push endpoint not-available error.

func NewPushNotImplemented

func NewPushNotImplemented(body *PushNotImplementedResponseBody) *package_.NotImplementedT

NewPushNotImplemented builds a package service push endpoint not-implemented error.

func NewPushResultCreated

func NewPushResultCreated(body *PushResponseBody) *package_.PushResult

NewPushResultCreated builds a "package" service "push" endpoint result from a HTTP "Created" response.

func NewPutAlreadyCreated added in v0.41.1

NewPutAlreadyCreated builds a package service put endpoint already-created error.

func NewPutBadRequest added in v0.41.1

func NewPutBadRequest(body *PutBadRequestResponseBody) *package_.BadRequestT

NewPutBadRequest builds a package service put endpoint bad-request error.

func NewPutInvalidParameter added in v0.41.1

func NewPutInvalidParameter(body *PutInvalidParameterResponseBody) *package_.InvalidParameterT

NewPutInvalidParameter builds a package service put endpoint invalid-parameter error.

func NewPutInvalidScopes added in v0.41.1

func NewPutInvalidScopes(body *PutInvalidScopesResponseBody) *package_.InvalidScopesT

NewPutInvalidScopes builds a package service put endpoint invalid-scopes error.

func NewPutNotAuthorized added in v0.41.1

func NewPutNotAuthorized() *package_.UnauthorizedT

NewPutNotAuthorized builds a package service put endpoint not-authorized error.

func NewPutNotAvailable added in v0.41.1

func NewPutNotAvailable() *package_.ServiceNotAvailableT

NewPutNotAvailable builds a package service put endpoint not-available error.

func NewPutNotImplemented added in v0.41.1

func NewPutNotImplemented(body *PutNotImplementedResponseBody) *package_.NotImplementedT

NewPutNotImplemented builds a package service put endpoint not-implemented error.

func NewPutResultCreated added in v0.41.1

func NewPutResultCreated(body *PutResponseBody) *package_.PutResult

NewPutResultCreated builds a "package" service "put" endpoint result from a HTTP "Created" response.

func NewRemoveBadRequest

func NewRemoveBadRequest(body *RemoveBadRequestResponseBody) *package_.BadRequestT

NewRemoveBadRequest builds a package service remove endpoint bad-request error.

func NewRemoveInvalidParameter

func NewRemoveInvalidParameter(body *RemoveInvalidParameterResponseBody) *package_.InvalidParameterT

NewRemoveInvalidParameter builds a package service remove endpoint invalid-parameter error.

func NewRemoveInvalidScopes

func NewRemoveInvalidScopes(body *RemoveInvalidScopesResponseBody) *package_.InvalidScopesT

NewRemoveInvalidScopes builds a package service remove endpoint invalid-scopes error.

func NewRemoveNotAuthorized

func NewRemoveNotAuthorized() *package_.UnauthorizedT

NewRemoveNotAuthorized builds a package service remove endpoint not-authorized error.

func NewRemoveNotAvailable

func NewRemoveNotAvailable() *package_.ServiceNotAvailableT

NewRemoveNotAvailable builds a package service remove endpoint not-available error.

func NewRemoveNotImplemented

func NewRemoveNotImplemented(body *RemoveNotImplementedResponseBody) *package_.NotImplementedT

NewRemoveNotImplemented builds a package service remove endpoint not-implemented error.

func PatchPackagePath added in v0.41.1

func PatchPackagePath() string

PatchPackagePath returns the URL path to the package service patch HTTP endpoint.

func PullPackagePath

func PullPackagePath() string

PullPackagePath returns the URL path to the package service pull HTTP endpoint.

func PushPackagePath

func PushPackagePath() string

PushPackagePath returns the URL path to the package service push HTTP endpoint.

func PutPackagePath added in v0.41.1

func PutPackagePath() string

PutPackagePath returns the URL path to the package service put HTTP endpoint.

func RemovePackagePath

func RemovePackagePath() string

RemovePackagePath returns the URL path to the package service remove HTTP endpoint.

func ValidateLinkTResponseBody

func ValidateLinkTResponseBody(body *LinkTResponseBody) (err error)

ValidateLinkTResponseBody runs the validations defined on LinkTResponseBody

func ValidateListBadRequestResponseBody

func ValidateListBadRequestResponseBody(body *ListBadRequestResponseBody) (err error)

ValidateListBadRequestResponseBody runs the validations defined on list_bad-request_response_body

func ValidateListInvalidParameterResponseBody

func ValidateListInvalidParameterResponseBody(body *ListInvalidParameterResponseBody) (err error)

ValidateListInvalidParameterResponseBody runs the validations defined on list_invalid-parameter_response_body

func ValidateListInvalidScopesResponseBody

func ValidateListInvalidScopesResponseBody(body *ListInvalidScopesResponseBody) (err error)

ValidateListInvalidScopesResponseBody runs the validations defined on list_invalid-scopes_response_body

func ValidateListNotImplementedResponseBody

func ValidateListNotImplementedResponseBody(body *ListNotImplementedResponseBody) (err error)

ValidateListNotImplementedResponseBody runs the validations defined on list_not-implemented_response_body

func ValidateListResponseBody

func ValidateListResponseBody(body *ListResponseBody) (err error)

ValidateListResponseBody runs the validations defined on ListResponseBody

func ValidatePatchAlreadyCreatedResponseBody added in v0.41.1

func ValidatePatchAlreadyCreatedResponseBody(body *PatchAlreadyCreatedResponseBody) (err error)

ValidatePatchAlreadyCreatedResponseBody runs the validations defined on patch_already-created_response_body

func ValidatePatchBadRequestResponseBody added in v0.41.1

func ValidatePatchBadRequestResponseBody(body *PatchBadRequestResponseBody) (err error)

ValidatePatchBadRequestResponseBody runs the validations defined on patch_bad-request_response_body

func ValidatePatchInvalidParameterResponseBody added in v0.41.1

func ValidatePatchInvalidParameterResponseBody(body *PatchInvalidParameterResponseBody) (err error)

ValidatePatchInvalidParameterResponseBody runs the validations defined on patch_invalid-parameter_response_body

func ValidatePatchInvalidScopesResponseBody added in v0.41.1

func ValidatePatchInvalidScopesResponseBody(body *PatchInvalidScopesResponseBody) (err error)

ValidatePatchInvalidScopesResponseBody runs the validations defined on patch_invalid-scopes_response_body

func ValidatePatchNotImplementedResponseBody added in v0.41.1

func ValidatePatchNotImplementedResponseBody(body *PatchNotImplementedResponseBody) (err error)

ValidatePatchNotImplementedResponseBody runs the validations defined on patch_not-implemented_response_body

func ValidatePatchResponseBody added in v0.41.1

func ValidatePatchResponseBody(body *PatchResponseBody) (err error)

ValidatePatchResponseBody runs the validations defined on PatchResponseBody

func ValidatePullBadRequestResponseBody

func ValidatePullBadRequestResponseBody(body *PullBadRequestResponseBody) (err error)

ValidatePullBadRequestResponseBody runs the validations defined on pull_bad-request_response_body

func ValidatePullInvalidParameterResponseBody

func ValidatePullInvalidParameterResponseBody(body *PullInvalidParameterResponseBody) (err error)

ValidatePullInvalidParameterResponseBody runs the validations defined on pull_invalid-parameter_response_body

func ValidatePullInvalidScopesResponseBody

func ValidatePullInvalidScopesResponseBody(body *PullInvalidScopesResponseBody) (err error)

ValidatePullInvalidScopesResponseBody runs the validations defined on pull_invalid-scopes_response_body

func ValidatePullNotImplementedResponseBody

func ValidatePullNotImplementedResponseBody(body *PullNotImplementedResponseBody) (err error)

ValidatePullNotImplementedResponseBody runs the validations defined on pull_not-implemented_response_body

func ValidatePushAlreadyCreatedResponseBody

func ValidatePushAlreadyCreatedResponseBody(body *PushAlreadyCreatedResponseBody) (err error)

ValidatePushAlreadyCreatedResponseBody runs the validations defined on push_already-created_response_body

func ValidatePushBadRequestResponseBody

func ValidatePushBadRequestResponseBody(body *PushBadRequestResponseBody) (err error)

ValidatePushBadRequestResponseBody runs the validations defined on push_bad-request_response_body

func ValidatePushInvalidParameterResponseBody

func ValidatePushInvalidParameterResponseBody(body *PushInvalidParameterResponseBody) (err error)

ValidatePushInvalidParameterResponseBody runs the validations defined on push_invalid-parameter_response_body

func ValidatePushInvalidScopesResponseBody

func ValidatePushInvalidScopesResponseBody(body *PushInvalidScopesResponseBody) (err error)

ValidatePushInvalidScopesResponseBody runs the validations defined on push_invalid-scopes_response_body

func ValidatePushNotImplementedResponseBody

func ValidatePushNotImplementedResponseBody(body *PushNotImplementedResponseBody) (err error)

ValidatePushNotImplementedResponseBody runs the validations defined on push_not-implemented_response_body

func ValidatePushResponseBody added in v0.41.1

func ValidatePushResponseBody(body *PushResponseBody) (err error)

ValidatePushResponseBody runs the validations defined on PushResponseBody

func ValidatePutAlreadyCreatedResponseBody added in v0.41.1

func ValidatePutAlreadyCreatedResponseBody(body *PutAlreadyCreatedResponseBody) (err error)

ValidatePutAlreadyCreatedResponseBody runs the validations defined on put_already-created_response_body

func ValidatePutBadRequestResponseBody added in v0.41.1

func ValidatePutBadRequestResponseBody(body *PutBadRequestResponseBody) (err error)

ValidatePutBadRequestResponseBody runs the validations defined on put_bad-request_response_body

func ValidatePutInvalidParameterResponseBody added in v0.41.1

func ValidatePutInvalidParameterResponseBody(body *PutInvalidParameterResponseBody) (err error)

ValidatePutInvalidParameterResponseBody runs the validations defined on put_invalid-parameter_response_body

func ValidatePutInvalidScopesResponseBody added in v0.41.1

func ValidatePutInvalidScopesResponseBody(body *PutInvalidScopesResponseBody) (err error)

ValidatePutInvalidScopesResponseBody runs the validations defined on put_invalid-scopes_response_body

func ValidatePutNotImplementedResponseBody added in v0.41.1

func ValidatePutNotImplementedResponseBody(body *PutNotImplementedResponseBody) (err error)

ValidatePutNotImplementedResponseBody runs the validations defined on put_not-implemented_response_body

func ValidatePutResponseBody added in v0.41.1

func ValidatePutResponseBody(body *PutResponseBody) (err error)

ValidatePutResponseBody runs the validations defined on PutResponseBody

func ValidateRemoveBadRequestResponseBody

func ValidateRemoveBadRequestResponseBody(body *RemoveBadRequestResponseBody) (err error)

ValidateRemoveBadRequestResponseBody runs the validations defined on remove_bad-request_response_body

func ValidateRemoveInvalidParameterResponseBody

func ValidateRemoveInvalidParameterResponseBody(body *RemoveInvalidParameterResponseBody) (err error)

ValidateRemoveInvalidParameterResponseBody runs the validations defined on remove_invalid-parameter_response_body

func ValidateRemoveInvalidScopesResponseBody

func ValidateRemoveInvalidScopesResponseBody(body *RemoveInvalidScopesResponseBody) (err error)

ValidateRemoveInvalidScopesResponseBody runs the validations defined on remove_invalid-scopes_response_body

func ValidateRemoveNotImplementedResponseBody

func ValidateRemoveNotImplementedResponseBody(body *RemoveNotImplementedResponseBody) (err error)

ValidateRemoveNotImplementedResponseBody runs the validations defined on remove_not-implemented_response_body

Types

type Client

type Client struct {
	// List Doer is the HTTP client used to make requests to the list endpoint.
	ListDoer goahttp.Doer

	// Pull Doer is the HTTP client used to make requests to the pull endpoint.
	PullDoer goahttp.Doer

	// Push Doer is the HTTP client used to make requests to the push endpoint.
	PushDoer goahttp.Doer

	// Patch Doer is the HTTP client used to make requests to the patch endpoint.
	PatchDoer goahttp.Doer

	// Put Doer is the HTTP client used to make requests to the put endpoint.
	PutDoer goahttp.Doer

	// Remove Doer is the HTTP client used to make requests to the remove endpoint.
	RemoveDoer goahttp.Doer

	// CORS Doer is the HTTP client used to make requests to the  endpoint.
	CORSDoer goahttp.Doer

	// RestoreResponseBody controls whether the response bodies are reset after
	// decoding so they can be read again.
	RestoreResponseBody bool
	// contains filtered or unexported fields
}

Client lists the package service endpoint HTTP clients.

func NewClient

func NewClient(
	scheme string,
	host string,
	doer goahttp.Doer,
	enc func(*http.Request) goahttp.Encoder,
	dec func(*http.Response) goahttp.Decoder,
	restoreBody bool,
) *Client

NewClient instantiates HTTP clients for all the package service servers.

func (*Client) BuildListRequest

func (c *Client) BuildListRequest(ctx context.Context, v any) (*http.Request, error)

BuildListRequest instantiates a HTTP request object with method and path set to call the "package" service "list" endpoint

func (*Client) BuildPatchRequest added in v0.41.1

func (c *Client) BuildPatchRequest(ctx context.Context, v any) (*http.Request, error)

BuildPatchRequest instantiates a HTTP request object with method and path set to call the "package" service "patch" endpoint

func (*Client) BuildPullRequest

func (c *Client) BuildPullRequest(ctx context.Context, v any) (*http.Request, error)

BuildPullRequest instantiates a HTTP request object with method and path set to call the "package" service "pull" endpoint

func (*Client) BuildPushRequest

func (c *Client) BuildPushRequest(ctx context.Context, v any) (*http.Request, error)

BuildPushRequest instantiates a HTTP request object with method and path set to call the "package" service "push" endpoint

func (*Client) BuildPutRequest added in v0.41.1

func (c *Client) BuildPutRequest(ctx context.Context, v any) (*http.Request, error)

BuildPutRequest instantiates a HTTP request object with method and path set to call the "package" service "put" endpoint

func (*Client) BuildRemoveRequest

func (c *Client) BuildRemoveRequest(ctx context.Context, v any) (*http.Request, error)

BuildRemoveRequest instantiates a HTTP request object with method and path set to call the "package" service "remove" endpoint

func (*Client) List

func (c *Client) List() goa.Endpoint

List returns an endpoint that makes HTTP requests to the package service list server.

func (*Client) Patch added in v0.41.1

func (c *Client) Patch() goa.Endpoint

Patch returns an endpoint that makes HTTP requests to the package service patch server.

func (*Client) Pull

func (c *Client) Pull() goa.Endpoint

Pull returns an endpoint that makes HTTP requests to the package service pull server.

func (*Client) Push

func (c *Client) Push() goa.Endpoint

Push returns an endpoint that makes HTTP requests to the package service push server.

func (*Client) Put added in v0.41.1

func (c *Client) Put() goa.Endpoint

Put returns an endpoint that makes HTTP requests to the package service put server.

func (*Client) Remove

func (c *Client) Remove() goa.Endpoint

Remove returns an endpoint that makes HTTP requests to the package service remove server.

type LinkTResponseBody

type LinkTResponseBody struct {
	// relation type
	Rel *string `form:"rel,omitempty" json:"rel,omitempty" xml:"rel,omitempty"`
	// mime type
	Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"`
	// web link
	Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"`
}

LinkTResponseBody is used to define fields on response body types.

type ListBadRequestResponseBody

type ListBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListBadRequestResponseBody is the type of the "package" service "list" endpoint HTTP response body for the "bad-request" error.

type ListInvalidParameterResponseBody

type ListInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

ListInvalidParameterResponseBody is the type of the "package" service "list" endpoint HTTP response body for the "invalid-parameter" error.

type ListInvalidScopesResponseBody

type ListInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListInvalidScopesResponseBody is the type of the "package" service "list" endpoint HTTP response body for the "invalid-scopes" error.

type ListNotImplementedResponseBody

type ListNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

ListNotImplementedResponseBody is the type of the "package" service "list" endpoint HTTP response body for the "not-implemented" error.

type ListResponseBody

type ListResponseBody struct {
	// docker image tags
	Items []string             `form:"items,omitempty" json:"items,omitempty" xml:"items,omitempty"`
	Links []*LinkTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"`
}

ListResponseBody is the type of the "package" service "list" endpoint HTTP response body.

type PatchAlreadyCreatedResponseBody added in v0.41.1

type PatchAlreadyCreatedResponseBody struct {
	// ID of already existing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PatchAlreadyCreatedResponseBody is the type of the "package" service "patch" endpoint HTTP response body for the "already-created" error.

type PatchBadRequestResponseBody added in v0.41.1

type PatchBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PatchBadRequestResponseBody is the type of the "package" service "patch" endpoint HTTP response body for the "bad-request" error.

type PatchInvalidParameterResponseBody added in v0.41.1

type PatchInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

PatchInvalidParameterResponseBody is the type of the "package" service "patch" endpoint HTTP response body for the "invalid-parameter" error.

type PatchInvalidScopesResponseBody added in v0.41.1

type PatchInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PatchInvalidScopesResponseBody is the type of the "package" service "patch" endpoint HTTP response body for the "invalid-scopes" error.

type PatchNotImplementedResponseBody added in v0.41.1

type PatchNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PatchNotImplementedResponseBody is the type of the "package" service "patch" endpoint HTTP response body for the "not-implemented" error.

type PatchResponseBody added in v0.41.1

type PatchResponseBody struct {
	// location url for patch
	Location *string `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"`
}

PatchResponseBody is the type of the "package" service "patch" endpoint HTTP response body.

type PullBadRequestResponseBody

type PullBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PullBadRequestResponseBody is the type of the "package" service "pull" endpoint HTTP response body for the "bad-request" error.

type PullInvalidParameterResponseBody

type PullInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

PullInvalidParameterResponseBody is the type of the "package" service "pull" endpoint HTTP response body for the "invalid-parameter" error.

type PullInvalidScopesResponseBody

type PullInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PullInvalidScopesResponseBody is the type of the "package" service "pull" endpoint HTTP response body for the "invalid-scopes" error.

type PullNotImplementedResponseBody

type PullNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PullNotImplementedResponseBody is the type of the "package" service "pull" endpoint HTTP response body for the "not-implemented" error.

type PushAlreadyCreatedResponseBody

type PushAlreadyCreatedResponseBody struct {
	// ID of already existing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PushAlreadyCreatedResponseBody is the type of the "package" service "push" endpoint HTTP response body for the "already-created" error.

type PushBadRequestResponseBody

type PushBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PushBadRequestResponseBody is the type of the "package" service "push" endpoint HTTP response body for the "bad-request" error.

type PushInvalidParameterResponseBody

type PushInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

PushInvalidParameterResponseBody is the type of the "package" service "push" endpoint HTTP response body for the "invalid-parameter" error.

type PushInvalidScopesResponseBody

type PushInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PushInvalidScopesResponseBody is the type of the "package" service "push" endpoint HTTP response body for the "invalid-scopes" error.

type PushNotImplementedResponseBody

type PushNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PushNotImplementedResponseBody is the type of the "package" service "push" endpoint HTTP response body for the "not-implemented" error.

type PushResponseBody

type PushResponseBody struct {
	// digest or tag of image or layer
	Digest *string `form:"digest,omitempty" json:"digest,omitempty" xml:"digest,omitempty"`
	// location url for patch
	Location *string `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"`
	// layer mounted or not
	Mounted *bool `form:"mounted,omitempty" json:"mounted,omitempty" xml:"mounted,omitempty"`
}

PushResponseBody is the type of the "package" service "push" endpoint HTTP response body.

type PutAlreadyCreatedResponseBody added in v0.41.1

type PutAlreadyCreatedResponseBody struct {
	// ID of already existing resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PutAlreadyCreatedResponseBody is the type of the "package" service "put" endpoint HTTP response body for the "already-created" error.

type PutBadRequestResponseBody added in v0.41.1

type PutBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PutBadRequestResponseBody is the type of the "package" service "put" endpoint HTTP response body for the "bad-request" error.

type PutInvalidParameterResponseBody added in v0.41.1

type PutInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

PutInvalidParameterResponseBody is the type of the "package" service "put" endpoint HTTP response body for the "invalid-parameter" error.

type PutInvalidScopesResponseBody added in v0.41.1

type PutInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PutInvalidScopesResponseBody is the type of the "package" service "put" endpoint HTTP response body for the "invalid-scopes" error.

type PutNotImplementedResponseBody added in v0.41.1

type PutNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

PutNotImplementedResponseBody is the type of the "package" service "put" endpoint HTTP response body for the "not-implemented" error.

type PutResponseBody added in v0.41.1

type PutResponseBody struct {
	// uploaded image digest or tag
	Digest *string `form:"digest,omitempty" json:"digest,omitempty" xml:"digest,omitempty"`
}

PutResponseBody is the type of the "package" service "put" endpoint HTTP response body.

type RemoveBadRequestResponseBody

type RemoveBadRequestResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RemoveBadRequestResponseBody is the type of the "package" service "remove" endpoint HTTP response body for the "bad-request" error.

type RemoveInvalidParameterResponseBody

type RemoveInvalidParameterResponseBody struct {
	// message describing expected type or pattern.
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
	// name of parameter.
	Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"`
	// provided parameter value.
	Value *string `form:"value,omitempty" json:"value,omitempty" xml:"value,omitempty"`
}

RemoveInvalidParameterResponseBody is the type of the "package" service "remove" endpoint HTTP response body for the "invalid-parameter" error.

type RemoveInvalidScopesResponseBody

type RemoveInvalidScopesResponseBody struct {
	// ID of involved resource
	ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"`
	// Message of error
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RemoveInvalidScopesResponseBody is the type of the "package" service "remove" endpoint HTTP response body for the "invalid-scopes" error.

type RemoveNotImplementedResponseBody

type RemoveNotImplementedResponseBody struct {
	// Information message
	Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"`
}

RemoveNotImplementedResponseBody is the type of the "package" service "remove" endpoint HTTP response body for the "not-implemented" error.

Jump to

Keyboard shortcuts

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