Documentation ¶
Index ¶
- func BuildListPayload(package_ListTag string, package_ListPage string, package_ListLimit string, ...) (*package_.ListPayload, error)
- func BuildPullPayload(package_PullRef string, package_PullType string, package_PullOffset string, ...) (*package_.PullPayload, error)
- func BuildPushPayload(package_PushTag string, package_PushForce string, package_PushType string, ...) (*package_.PushPayload, error)
- func BuildPushStreamPayload(payload any, fpath string) (*package_.PushRequestData, error)
- func BuildRemovePayload(package_RemoveTag string, package_RemoveJWT string) (*package_.RemovePayload, error)
- func BuildStatusPayload(package_StatusTag string, package_StatusDigest string, ...) (*package_.StatusPayload, error)
- func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodePullResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodePushResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeRemoveResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func DecodeStatusResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
- func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodePullRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodePushRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeRemoveRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func EncodeStatusRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
- func ListPackagePath() string
- func NewListBadRequest(body *ListBadRequestResponseBody) *package_.BadRequestT
- func NewListInvalidParameter(body *ListInvalidParameterResponseBody) *package_.InvalidParameterT
- func NewListInvalidScopes(body *ListInvalidScopesResponseBody) *package_.InvalidScopesT
- func NewListNotAuthorized() *package_.UnauthorizedT
- func NewListNotAvailable() *package_.ServiceNotAvailableT
- func NewListNotImplemented(body *ListNotImplementedResponseBody) *package_.NotImplementedT
- func NewListResultOK(body *ListResponseBody) *package_.ListResult
- func NewPullBadRequest(body *PullBadRequestResponseBody) *package_.BadRequestT
- func NewPullInvalidParameter(body *PullInvalidParameterResponseBody) *package_.InvalidParameterT
- func NewPullInvalidScopes(body *PullInvalidScopesResponseBody) *package_.InvalidScopesT
- func NewPullNotAuthorized() *package_.UnauthorizedT
- func NewPullNotAvailable() *package_.ServiceNotAvailableT
- func NewPullNotImplemented(body *PullNotImplementedResponseBody) *package_.NotImplementedT
- func NewPullResultTOK(total int, available int) *package_.PullResultT
- func NewPushAlreadyCreated(body *PushAlreadyCreatedResponseBody) *package_.ResourceAlreadyCreatedT
- func NewPushBadRequest(body *PushBadRequestResponseBody) *package_.BadRequestT
- func NewPushInvalidParameter(body *PushInvalidParameterResponseBody) *package_.InvalidParameterT
- func NewPushInvalidScopes(body *PushInvalidScopesResponseBody) *package_.InvalidScopesT
- func NewPushNotAuthorized() *package_.UnauthorizedT
- func NewPushNotAvailable() *package_.ServiceNotAvailableT
- func NewPushNotImplemented(body *PushNotImplementedResponseBody) *package_.NotImplementedT
- func NewPushResultCreated(body *PushResponseBody) *package_.PushResult
- func NewRemoveBadRequest(body *RemoveBadRequestResponseBody) *package_.BadRequestT
- func NewRemoveInvalidParameter(body *RemoveInvalidParameterResponseBody) *package_.InvalidParameterT
- func NewRemoveInvalidScopes(body *RemoveInvalidScopesResponseBody) *package_.InvalidScopesT
- func NewRemoveNotAuthorized() *package_.UnauthorizedT
- func NewRemoveNotAvailable() *package_.ServiceNotAvailableT
- func NewRemoveNotImplemented(body *RemoveNotImplementedResponseBody) *package_.NotImplementedT
- func NewStatusBadRequest(body *StatusBadRequestResponseBody) *package_.BadRequestT
- func NewStatusInvalidParameter(body *StatusInvalidParameterResponseBody) *package_.InvalidParameterT
- func NewStatusInvalidScopes(body *StatusInvalidScopesResponseBody) *package_.InvalidScopesT
- func NewStatusNotAuthorized() *package_.UnauthorizedT
- func NewStatusNotAvailable() *package_.ServiceNotAvailableT
- func NewStatusNotImplemented(body *StatusNotImplementedResponseBody) *package_.NotImplementedT
- func NewStatusPushStatusTOK(body *StatusResponseBody) *package_.PushStatusT
- func PullPackagePath() string
- func PushPackagePath() string
- func RemovePackagePath() string
- func StatusPackagePath() string
- func ValidateLinkTResponseBody(body *LinkTResponseBody) (err error)
- func ValidateListBadRequestResponseBody(body *ListBadRequestResponseBody) (err error)
- func ValidateListInvalidParameterResponseBody(body *ListInvalidParameterResponseBody) (err error)
- func ValidateListInvalidScopesResponseBody(body *ListInvalidScopesResponseBody) (err error)
- func ValidateListNotImplementedResponseBody(body *ListNotImplementedResponseBody) (err error)
- func ValidateListResponseBody(body *ListResponseBody) (err error)
- func ValidatePullBadRequestResponseBody(body *PullBadRequestResponseBody) (err error)
- func ValidatePullInvalidParameterResponseBody(body *PullInvalidParameterResponseBody) (err error)
- func ValidatePullInvalidScopesResponseBody(body *PullInvalidScopesResponseBody) (err error)
- func ValidatePullNotImplementedResponseBody(body *PullNotImplementedResponseBody) (err error)
- func ValidatePushAlreadyCreatedResponseBody(body *PushAlreadyCreatedResponseBody) (err error)
- func ValidatePushBadRequestResponseBody(body *PushBadRequestResponseBody) (err error)
- func ValidatePushInvalidParameterResponseBody(body *PushInvalidParameterResponseBody) (err error)
- func ValidatePushInvalidScopesResponseBody(body *PushInvalidScopesResponseBody) (err error)
- func ValidatePushNotImplementedResponseBody(body *PushNotImplementedResponseBody) (err error)
- func ValidatePushResponseBody(body *PushResponseBody) (err error)
- func ValidateRemoveBadRequestResponseBody(body *RemoveBadRequestResponseBody) (err error)
- func ValidateRemoveInvalidParameterResponseBody(body *RemoveInvalidParameterResponseBody) (err error)
- func ValidateRemoveInvalidScopesResponseBody(body *RemoveInvalidScopesResponseBody) (err error)
- func ValidateRemoveNotImplementedResponseBody(body *RemoveNotImplementedResponseBody) (err error)
- func ValidateStatusBadRequestResponseBody(body *StatusBadRequestResponseBody) (err error)
- func ValidateStatusInvalidParameterResponseBody(body *StatusInvalidParameterResponseBody) (err error)
- func ValidateStatusInvalidScopesResponseBody(body *StatusInvalidScopesResponseBody) (err error)
- func ValidateStatusNotImplementedResponseBody(body *StatusNotImplementedResponseBody) (err error)
- func ValidateStatusResponseBody(body *StatusResponseBody) (err error)
- type Client
- func (c *Client) BuildListRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildPullRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildPushRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildRemoveRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) BuildStatusRequest(ctx context.Context, v any) (*http.Request, error)
- func (c *Client) List() goa.Endpoint
- func (c *Client) Pull() goa.Endpoint
- func (c *Client) Push() goa.Endpoint
- func (c *Client) Remove() goa.Endpoint
- func (c *Client) Status() goa.Endpoint
- type LinkTResponseBody
- type ListBadRequestResponseBody
- type ListInvalidParameterResponseBody
- type ListInvalidScopesResponseBody
- type ListNotImplementedResponseBody
- type ListResponseBody
- type PullBadRequestResponseBody
- type PullInvalidParameterResponseBody
- type PullInvalidScopesResponseBody
- type PullNotImplementedResponseBody
- type PushAlreadyCreatedResponseBody
- type PushBadRequestResponseBody
- type PushInvalidParameterResponseBody
- type PushInvalidScopesResponseBody
- type PushNotImplementedResponseBody
- type PushResponseBody
- type RemoveBadRequestResponseBody
- type RemoveInvalidParameterResponseBody
- type RemoveInvalidScopesResponseBody
- type RemoveNotImplementedResponseBody
- type StatusBadRequestResponseBody
- type StatusInvalidParameterResponseBody
- type StatusInvalidScopesResponseBody
- type StatusNotImplementedResponseBody
- type StatusResponseBody
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 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_PushTotal string, package_PushStart string, package_PushEnd 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 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 BuildStatusPayload ¶
func BuildStatusPayload(package_StatusTag string, package_StatusDigest string, package_StatusJWT string) (*package_.StatusPayload, error)
BuildStatusPayload builds the payload for the package status 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 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 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 DecodeStatusResponse ¶
func DecodeStatusResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (any, error)
DecodeStatusResponse returns a decoder for responses returned by the package status endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeStatusResponse 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 ¶
EncodeListRequest returns an encoder for requests sent to the package list server.
func EncodePullRequest ¶
EncodePullRequest returns an encoder for requests sent to the package pull server.
func EncodePushRequest ¶
EncodePushRequest returns an encoder for requests sent to the package push 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 EncodeStatusRequest ¶
func EncodeStatusRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, any) error
EncodeStatusRequest returns an encoder for requests sent to the package status 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 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 ¶
func NewPushAlreadyCreated(body *PushAlreadyCreatedResponseBody) *package_.ResourceAlreadyCreatedT
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 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 NewStatusBadRequest ¶
func NewStatusBadRequest(body *StatusBadRequestResponseBody) *package_.BadRequestT
NewStatusBadRequest builds a package service status endpoint bad-request error.
func NewStatusInvalidParameter ¶
func NewStatusInvalidParameter(body *StatusInvalidParameterResponseBody) *package_.InvalidParameterT
NewStatusInvalidParameter builds a package service status endpoint invalid-parameter error.
func NewStatusInvalidScopes ¶
func NewStatusInvalidScopes(body *StatusInvalidScopesResponseBody) *package_.InvalidScopesT
NewStatusInvalidScopes builds a package service status endpoint invalid-scopes error.
func NewStatusNotAuthorized ¶
func NewStatusNotAuthorized() *package_.UnauthorizedT
NewStatusNotAuthorized builds a package service status endpoint not-authorized error.
func NewStatusNotAvailable ¶
func NewStatusNotAvailable() *package_.ServiceNotAvailableT
NewStatusNotAvailable builds a package service status endpoint not-available error.
func NewStatusNotImplemented ¶
func NewStatusNotImplemented(body *StatusNotImplementedResponseBody) *package_.NotImplementedT
NewStatusNotImplemented builds a package service status endpoint not-implemented error.
func NewStatusPushStatusTOK ¶
func NewStatusPushStatusTOK(body *StatusResponseBody) *package_.PushStatusT
NewStatusPushStatusTOK builds a "package" service "status" endpoint result from a HTTP "OK" response.
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 RemovePackagePath ¶
func RemovePackagePath() string
RemovePackagePath returns the URL path to the package service remove HTTP endpoint.
func StatusPackagePath ¶
func StatusPackagePath() string
StatusPackagePath returns the URL path to the package service status 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 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 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
func ValidateStatusBadRequestResponseBody ¶
func ValidateStatusBadRequestResponseBody(body *StatusBadRequestResponseBody) (err error)
ValidateStatusBadRequestResponseBody runs the validations defined on status_bad-request_response_body
func ValidateStatusInvalidParameterResponseBody ¶
func ValidateStatusInvalidParameterResponseBody(body *StatusInvalidParameterResponseBody) (err error)
ValidateStatusInvalidParameterResponseBody runs the validations defined on status_invalid-parameter_response_body
func ValidateStatusInvalidScopesResponseBody ¶
func ValidateStatusInvalidScopesResponseBody(body *StatusInvalidScopesResponseBody) (err error)
ValidateStatusInvalidScopesResponseBody runs the validations defined on status_invalid-scopes_response_body
func ValidateStatusNotImplementedResponseBody ¶
func ValidateStatusNotImplementedResponseBody(body *StatusNotImplementedResponseBody) (err error)
ValidateStatusNotImplementedResponseBody runs the validations defined on status_not-implemented_response_body
func ValidateStatusResponseBody ¶
func ValidateStatusResponseBody(body *StatusResponseBody) (err error)
ValidateStatusResponseBody runs the validations defined on StatusResponseBody
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 // Status Doer is the HTTP client used to make requests to the status endpoint. StatusDoer 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 ¶
BuildListRequest instantiates a HTTP request object with method and path set to call the "package" service "list" endpoint
func (*Client) BuildPullRequest ¶
BuildPullRequest instantiates a HTTP request object with method and path set to call the "package" service "pull" endpoint
func (*Client) BuildPushRequest ¶
BuildPushRequest instantiates a HTTP request object with method and path set to call the "package" service "push" endpoint
func (*Client) BuildRemoveRequest ¶
BuildRemoveRequest instantiates a HTTP request object with method and path set to call the "package" service "remove" endpoint
func (*Client) BuildStatusRequest ¶
BuildStatusRequest instantiates a HTTP request object with method and path set to call the "package" service "status" endpoint
func (*Client) List ¶
List returns an endpoint that makes HTTP requests to the package service list server.
func (*Client) Pull ¶
Pull returns an endpoint that makes HTTP requests to the package service pull server.
func (*Client) Push ¶
Push returns an endpoint that makes HTTP requests to the package service push 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 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 { // uploaded image digest or tag Digest *string `form:"digest,omitempty" json:"digest,omitempty" xml:"digest,omitempty"` // layer exists or not Exists *bool `form:"exists,omitempty" json:"exists,omitempty" xml:"exists,omitempty"` }
PushResponseBody is the type of the "package" service "push" 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.
type StatusBadRequestResponseBody ¶
type StatusBadRequestResponseBody struct { // Information message Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` }
StatusBadRequestResponseBody is the type of the "package" service "status" endpoint HTTP response body for the "bad-request" error.
type StatusInvalidParameterResponseBody ¶
type StatusInvalidParameterResponseBody 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"` }
StatusInvalidParameterResponseBody is the type of the "package" service "status" endpoint HTTP response body for the "invalid-parameter" error.
type StatusInvalidScopesResponseBody ¶
type StatusInvalidScopesResponseBody 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"` }
StatusInvalidScopesResponseBody is the type of the "package" service "status" endpoint HTTP response body for the "invalid-scopes" error.
type StatusNotImplementedResponseBody ¶
type StatusNotImplementedResponseBody struct { // Information message Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` }
StatusNotImplementedResponseBody is the type of the "package" service "status" endpoint HTTP response body for the "not-implemented" error.
type StatusResponseBody ¶
type StatusResponseBody struct { // Push status Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // Message Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` }
StatusResponseBody is the type of the "package" service "status" endpoint HTTP response body.