Documentation
¶
Index ¶
- func BuildListPayload(artifactListLimit string, artifactListPage string, artifactListFilter string, ...) (*artifact.ListPayload, error)
- func BuildReadPayload(artifactReadID string, artifactReadJWT string) (*artifact.ReadPayload, error)
- func BuildUploadPayload(artifactUploadJWT string, artifactUploadContentType string, ...) (*artifact.UploadPayload, error)
- func BuildUploadStreamPayload(payload interface{}, fpath string) (*artifact.UploadRequestData, error)
- func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeReadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func DecodeUploadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
- func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeReadRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func EncodeUploadRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
- func ListArtifactPath() string
- func NewListArtifactListRTOK(body *ListResponseBody) *artifactviews.ArtifactListRTView
- func NewListBadRequest(body *ListBadRequestResponseBody) *artifact.BadRequestT
- func NewListInvalidCredential() *artifact.InvalidCredentialsT
- func NewListInvalidParameter(body *ListInvalidParameterResponseBody) *artifact.InvalidParameterValue
- func NewListInvalidScopes(body *ListInvalidScopesResponseBody) *artifact.InvalidScopesT
- func NewListNotAuthorized() *artifact.UnauthorizedT
- func NewListNotImplemented(body *ListNotImplementedResponseBody) *artifact.NotImplementedT
- func NewReadArtifactStatusRTOK(body *ReadResponseBody) *artifactviews.ArtifactStatusRTView
- func NewReadBadRequest(body *ReadBadRequestResponseBody) *artifact.BadRequestT
- func NewReadInvalidCredential() *artifact.InvalidCredentialsT
- func NewReadInvalidScopes(body *ReadInvalidScopesResponseBody) *artifact.InvalidScopesT
- func NewReadNotAuthorized() *artifact.UnauthorizedT
- func NewReadNotFound(body *ReadNotFoundResponseBody) *artifact.ResourceNotFoundT
- func NewReadNotImplemented(body *ReadNotImplementedResponseBody) *artifact.NotImplementedT
- func NewUploadArtifactStatusRTCreated(body *UploadResponseBody, location *string, tusResumable *string, ...) *artifactviews.ArtifactStatusRTView
- func NewUploadBadRequest(body *UploadBadRequestResponseBody) *artifact.BadRequestT
- func NewUploadInvalidCredential() *artifact.InvalidCredentialsT
- func NewUploadInvalidScopes(body *UploadInvalidScopesResponseBody) *artifact.InvalidScopesT
- func NewUploadNotAuthorized() *artifact.UnauthorizedT
- func NewUploadNotImplemented(body *UploadNotImplementedResponseBody) *artifact.NotImplementedT
- func ReadArtifactPath(id string) string
- func UploadArtifactPath() string
- func ValidateArtifactListItemResponseBody(body *ArtifactListItemResponseBody) (err error)
- func ValidateDescribedByTResponseBody(body *DescribedByTResponseBody) (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 ValidateNavTResponseBody(body *NavTResponseBody) (err error)
- func ValidateReadBadRequestResponseBody(body *ReadBadRequestResponseBody) (err error)
- func ValidateReadInvalidScopesResponseBody(body *ReadInvalidScopesResponseBody) (err error)
- func ValidateReadNotFoundResponseBody(body *ReadNotFoundResponseBody) (err error)
- func ValidateReadNotImplementedResponseBody(body *ReadNotImplementedResponseBody) (err error)
- func ValidateRefTResponseBody(body *RefTResponseBody) (err error)
- func ValidateSelfTResponseBody(body *SelfTResponseBody) (err error)
- func ValidateUploadBadRequestResponseBody(body *UploadBadRequestResponseBody) (err error)
- func ValidateUploadInvalidScopesResponseBody(body *UploadInvalidScopesResponseBody) (err error)
- func ValidateUploadNotImplementedResponseBody(body *UploadNotImplementedResponseBody) (err error)
- type ArtifactListItemResponseBody
- type Client
- func (c *Client) BuildListRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildReadRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) BuildUploadRequest(ctx context.Context, v interface{}) (*http.Request, error)
- func (c *Client) List() goa.Endpoint
- func (c *Client) Read() goa.Endpoint
- func (c *Client) Upload() goa.Endpoint
- type DescribedByTResponseBody
- type ListBadRequestResponseBody
- type ListInvalidParameterResponseBody
- type ListInvalidScopesResponseBody
- type ListNotImplementedResponseBody
- type ListResponseBody
- type NavTResponseBody
- type ReadBadRequestResponseBody
- type ReadInvalidScopesResponseBody
- type ReadNotFoundResponseBody
- type ReadNotImplementedResponseBody
- type ReadResponseBody
- type RefTResponseBody
- type SelfTResponseBody
- type UploadBadRequestResponseBody
- type UploadInvalidScopesResponseBody
- type UploadNotImplementedResponseBody
- type UploadResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildListPayload ¶
func BuildListPayload(artifactListLimit string, artifactListPage string, artifactListFilter string, artifactListOrderBy string, artifactListOrderDesc string, artifactListAtTime string, artifactListJWT string) (*artifact.ListPayload, error)
BuildListPayload builds the payload for the artifact list endpoint from CLI flags.
func BuildReadPayload ¶
func BuildReadPayload(artifactReadID string, artifactReadJWT string) (*artifact.ReadPayload, error)
BuildReadPayload builds the payload for the artifact read endpoint from CLI flags.
func BuildUploadPayload ¶
func BuildUploadPayload(artifactUploadJWT string, artifactUploadContentType string, artifactUploadContentEncoding string, artifactUploadContentLength string, artifactUploadName string, artifactUploadCollection string, artifactUploadPolicy string, artifactUploadXContentType string, artifactUploadXContentLength string, artifactUploadUploadLength string, artifactUploadTusResumable string) (*artifact.UploadPayload, error)
BuildUploadPayload builds the payload for the artifact upload endpoint from CLI flags.
func BuildUploadStreamPayload ¶
func BuildUploadStreamPayload(payload interface{}, fpath string) (*artifact.UploadRequestData, error)
// BuildUploadStreamPayload creates a streaming endpoint request payload from the method payload and the path to the file to be streamed
func DecodeListResponse ¶
func DecodeListResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeListResponse returns a decoder for responses returned by the artifact list endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeListResponse may return the following errors:
- "bad-request" (type *artifact.BadRequestT): http.StatusBadRequest
- "invalid-credential" (type *artifact.InvalidCredentialsT): http.StatusBadRequest
- "invalid-parameter" (type *artifact.InvalidParameterValue): http.StatusUnprocessableEntity
- "invalid-scopes" (type *artifact.InvalidScopesT): http.StatusForbidden
- "not-implemented" (type *artifact.NotImplementedT): http.StatusNotImplemented
- "not-authorized" (type *artifact.UnauthorizedT): http.StatusUnauthorized
- error: internal error
func DecodeReadResponse ¶
func DecodeReadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeReadResponse returns a decoder for responses returned by the artifact read endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeReadResponse may return the following errors:
- "bad-request" (type *artifact.BadRequestT): http.StatusBadRequest
- "invalid-credential" (type *artifact.InvalidCredentialsT): http.StatusBadRequest
- "invalid-scopes" (type *artifact.InvalidScopesT): http.StatusForbidden
- "not-implemented" (type *artifact.NotImplementedT): http.StatusNotImplemented
- "not-found" (type *artifact.ResourceNotFoundT): http.StatusNotFound
- "not-authorized" (type *artifact.UnauthorizedT): http.StatusUnauthorized
- error: internal error
func DecodeUploadResponse ¶
func DecodeUploadResponse(decoder func(*http.Response) goahttp.Decoder, restoreBody bool) func(*http.Response) (interface{}, error)
DecodeUploadResponse returns a decoder for responses returned by the artifact upload endpoint. restoreBody controls whether the response body should be restored after having been read. DecodeUploadResponse may return the following errors:
- "bad-request" (type *artifact.BadRequestT): http.StatusBadRequest
- "invalid-credential" (type *artifact.InvalidCredentialsT): http.StatusBadRequest
- "invalid-scopes" (type *artifact.InvalidScopesT): http.StatusForbidden
- "not-implemented" (type *artifact.NotImplementedT): http.StatusNotImplemented
- "not-authorized" (type *artifact.UnauthorizedT): http.StatusUnauthorized
- error: internal error
func EncodeListRequest ¶
func EncodeListRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeListRequest returns an encoder for requests sent to the artifact list server.
func EncodeReadRequest ¶
func EncodeReadRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeReadRequest returns an encoder for requests sent to the artifact read server.
func EncodeUploadRequest ¶
func EncodeUploadRequest(encoder func(*http.Request) goahttp.Encoder) func(*http.Request, interface{}) error
EncodeUploadRequest returns an encoder for requests sent to the artifact upload server.
func ListArtifactPath ¶
func ListArtifactPath() string
ListArtifactPath returns the URL path to the artifact service list HTTP endpoint.
func NewListArtifactListRTOK ¶
func NewListArtifactListRTOK(body *ListResponseBody) *artifactviews.ArtifactListRTView
NewListArtifactListRTOK builds a "artifact" service "list" endpoint result from a HTTP "OK" response.
func NewListBadRequest ¶
func NewListBadRequest(body *ListBadRequestResponseBody) *artifact.BadRequestT
NewListBadRequest builds a artifact service list endpoint bad-request error.
func NewListInvalidCredential ¶
func NewListInvalidCredential() *artifact.InvalidCredentialsT
NewListInvalidCredential builds a artifact service list endpoint invalid-credential error.
func NewListInvalidParameter ¶ added in v0.25.0
func NewListInvalidParameter(body *ListInvalidParameterResponseBody) *artifact.InvalidParameterValue
NewListInvalidParameter builds a artifact service list endpoint invalid-parameter error.
func NewListInvalidScopes ¶
func NewListInvalidScopes(body *ListInvalidScopesResponseBody) *artifact.InvalidScopesT
NewListInvalidScopes builds a artifact service list endpoint invalid-scopes error.
func NewListNotAuthorized ¶
func NewListNotAuthorized() *artifact.UnauthorizedT
NewListNotAuthorized builds a artifact service list endpoint not-authorized error.
func NewListNotImplemented ¶
func NewListNotImplemented(body *ListNotImplementedResponseBody) *artifact.NotImplementedT
NewListNotImplemented builds a artifact service list endpoint not-implemented error.
func NewReadArtifactStatusRTOK ¶
func NewReadArtifactStatusRTOK(body *ReadResponseBody) *artifactviews.ArtifactStatusRTView
NewReadArtifactStatusRTOK builds a "artifact" service "read" endpoint result from a HTTP "OK" response.
func NewReadBadRequest ¶
func NewReadBadRequest(body *ReadBadRequestResponseBody) *artifact.BadRequestT
NewReadBadRequest builds a artifact service read endpoint bad-request error.
func NewReadInvalidCredential ¶
func NewReadInvalidCredential() *artifact.InvalidCredentialsT
NewReadInvalidCredential builds a artifact service read endpoint invalid-credential error.
func NewReadInvalidScopes ¶
func NewReadInvalidScopes(body *ReadInvalidScopesResponseBody) *artifact.InvalidScopesT
NewReadInvalidScopes builds a artifact service read endpoint invalid-scopes error.
func NewReadNotAuthorized ¶
func NewReadNotAuthorized() *artifact.UnauthorizedT
NewReadNotAuthorized builds a artifact service read endpoint not-authorized error.
func NewReadNotFound ¶
func NewReadNotFound(body *ReadNotFoundResponseBody) *artifact.ResourceNotFoundT
NewReadNotFound builds a artifact service read endpoint not-found error.
func NewReadNotImplemented ¶
func NewReadNotImplemented(body *ReadNotImplementedResponseBody) *artifact.NotImplementedT
NewReadNotImplemented builds a artifact service read endpoint not-implemented error.
func NewUploadArtifactStatusRTCreated ¶
func NewUploadArtifactStatusRTCreated(body *UploadResponseBody, location *string, tusResumable *string, tusOffset *int64) *artifactviews.ArtifactStatusRTView
NewUploadArtifactStatusRTCreated builds a "artifact" service "upload" endpoint result from a HTTP "Created" response.
func NewUploadBadRequest ¶
func NewUploadBadRequest(body *UploadBadRequestResponseBody) *artifact.BadRequestT
NewUploadBadRequest builds a artifact service upload endpoint bad-request error.
func NewUploadInvalidCredential ¶
func NewUploadInvalidCredential() *artifact.InvalidCredentialsT
NewUploadInvalidCredential builds a artifact service upload endpoint invalid-credential error.
func NewUploadInvalidScopes ¶
func NewUploadInvalidScopes(body *UploadInvalidScopesResponseBody) *artifact.InvalidScopesT
NewUploadInvalidScopes builds a artifact service upload endpoint invalid-scopes error.
func NewUploadNotAuthorized ¶
func NewUploadNotAuthorized() *artifact.UnauthorizedT
NewUploadNotAuthorized builds a artifact service upload endpoint not-authorized error.
func NewUploadNotImplemented ¶
func NewUploadNotImplemented(body *UploadNotImplementedResponseBody) *artifact.NotImplementedT
NewUploadNotImplemented builds a artifact service upload endpoint not-implemented error.
func ReadArtifactPath ¶
ReadArtifactPath returns the URL path to the artifact service read HTTP endpoint.
func UploadArtifactPath ¶
func UploadArtifactPath() string
UploadArtifactPath returns the URL path to the artifact service upload HTTP endpoint.
func ValidateArtifactListItemResponseBody ¶
func ValidateArtifactListItemResponseBody(body *ArtifactListItemResponseBody) (err error)
ValidateArtifactListItemResponseBody runs the validations defined on ArtifactListItemResponseBody
func ValidateDescribedByTResponseBody ¶
func ValidateDescribedByTResponseBody(body *DescribedByTResponseBody) (err error)
ValidateDescribedByTResponseBody runs the validations defined on DescribedByTResponseBody
func ValidateListBadRequestResponseBody ¶
func ValidateListBadRequestResponseBody(body *ListBadRequestResponseBody) (err error)
ValidateListBadRequestResponseBody runs the validations defined on list_bad-request_response_body
func ValidateListInvalidParameterResponseBody ¶ added in v0.25.0
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 ValidateNavTResponseBody ¶
func ValidateNavTResponseBody(body *NavTResponseBody) (err error)
ValidateNavTResponseBody runs the validations defined on NavTResponseBody
func ValidateReadBadRequestResponseBody ¶
func ValidateReadBadRequestResponseBody(body *ReadBadRequestResponseBody) (err error)
ValidateReadBadRequestResponseBody runs the validations defined on read_bad-request_response_body
func ValidateReadInvalidScopesResponseBody ¶
func ValidateReadInvalidScopesResponseBody(body *ReadInvalidScopesResponseBody) (err error)
ValidateReadInvalidScopesResponseBody runs the validations defined on read_invalid-scopes_response_body
func ValidateReadNotFoundResponseBody ¶
func ValidateReadNotFoundResponseBody(body *ReadNotFoundResponseBody) (err error)
ValidateReadNotFoundResponseBody runs the validations defined on read_not-found_response_body
func ValidateReadNotImplementedResponseBody ¶
func ValidateReadNotImplementedResponseBody(body *ReadNotImplementedResponseBody) (err error)
ValidateReadNotImplementedResponseBody runs the validations defined on read_not-implemented_response_body
func ValidateRefTResponseBody ¶
func ValidateRefTResponseBody(body *RefTResponseBody) (err error)
ValidateRefTResponseBody runs the validations defined on RefTResponseBody
func ValidateSelfTResponseBody ¶
func ValidateSelfTResponseBody(body *SelfTResponseBody) (err error)
ValidateSelfTResponseBody runs the validations defined on SelfTResponseBody
func ValidateUploadBadRequestResponseBody ¶
func ValidateUploadBadRequestResponseBody(body *UploadBadRequestResponseBody) (err error)
ValidateUploadBadRequestResponseBody runs the validations defined on upload_bad-request_response_body
func ValidateUploadInvalidScopesResponseBody ¶
func ValidateUploadInvalidScopesResponseBody(body *UploadInvalidScopesResponseBody) (err error)
ValidateUploadInvalidScopesResponseBody runs the validations defined on upload_invalid-scopes_response_body
func ValidateUploadNotImplementedResponseBody ¶
func ValidateUploadNotImplementedResponseBody(body *UploadNotImplementedResponseBody) (err error)
ValidateUploadNotImplementedResponseBody runs the validations defined on upload_not-implemented_response_body
Types ¶
type ArtifactListItemResponseBody ¶
type ArtifactListItemResponseBody struct { // Artifact ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Optional name Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Artifact status Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // Size of aritfact in bytes Size *int64 `form:"size,omitempty" json:"size,omitempty" xml:"size,omitempty"` // Mime (content) type of artifact MimeType *string `form:"mime-type,omitempty" json:"mime-type,omitempty" xml:"mime-type,omitempty"` Links *SelfTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"` }
ArtifactListItemResponseBody is used to define fields on 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 // Read Doer is the HTTP client used to make requests to the read endpoint. ReadDoer goahttp.Doer // Upload Doer is the HTTP client used to make requests to the upload endpoint. UploadDoer 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 artifact 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 artifact service servers.
func (*Client) BuildListRequest ¶
BuildListRequest instantiates a HTTP request object with method and path set to call the "artifact" service "list" endpoint
func (*Client) BuildReadRequest ¶
BuildReadRequest instantiates a HTTP request object with method and path set to call the "artifact" service "read" endpoint
func (*Client) BuildUploadRequest ¶
BuildUploadRequest instantiates a HTTP request object with method and path set to call the "artifact" service "upload" endpoint
func (*Client) List ¶
List returns an endpoint that makes HTTP requests to the artifact service list server.
type DescribedByTResponseBody ¶
type DescribedByTResponseBody struct { Href *string `form:"href,omitempty" json:"href,omitempty" xml:"href,omitempty"` Type *string `form:"type,omitempty" json:"type,omitempty" xml:"type,omitempty"` }
DescribedByTResponseBody 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 "artifact" service "list" endpoint HTTP response body for the "bad-request" error.
type ListInvalidParameterResponseBody ¶ added in v0.25.0
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 "artifact" 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 "artifact" 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 "artifact" service "list" endpoint HTTP response body for the "not-implemented" error.
type ListResponseBody ¶
type ListResponseBody struct { // Artifacts Artifacts []*ArtifactListItemResponseBody `form:"artifacts,omitempty" json:"artifacts,omitempty" xml:"artifacts,omitempty"` // Time at which this list was valid AtTime *string `form:"at-time,omitempty" json:"at-time,omitempty" xml:"at-time,omitempty"` // Navigation links Links *NavTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"` }
ListResponseBody is the type of the "artifact" service "list" endpoint HTTP response body.
type NavTResponseBody ¶
type NavTResponseBody struct {}
NavTResponseBody is used to define fields on response body types.
type ReadBadRequestResponseBody ¶
type ReadBadRequestResponseBody struct { // Information message Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` }
ReadBadRequestResponseBody is the type of the "artifact" service "read" endpoint HTTP response body for the "bad-request" error.
type ReadInvalidScopesResponseBody ¶
type ReadInvalidScopesResponseBody 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"` }
ReadInvalidScopesResponseBody is the type of the "artifact" service "read" endpoint HTTP response body for the "invalid-scopes" error.
type ReadNotFoundResponseBody ¶
type ReadNotFoundResponseBody struct { // ID of missing 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"` }
ReadNotFoundResponseBody is the type of the "artifact" service "read" endpoint HTTP response body for the "not-found" error.
type ReadNotImplementedResponseBody ¶
type ReadNotImplementedResponseBody struct { // Information message Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` }
ReadNotImplementedResponseBody is the type of the "artifact" service "read" endpoint HTTP response body for the "not-implemented" error.
type ReadResponseBody ¶
type ReadResponseBody struct { // Artifact ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Optional name Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Artifact status Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // Mime-type of data MimeType *string `form:"mime-type,omitempty" json:"mime-type,omitempty" xml:"mime-type,omitempty"` // Size of data Size *int64 `form:"size,omitempty" json:"size,omitempty" xml:"size,omitempty"` // URL of object this artifact is caching CacheOf *string `form:"cache-of,omitempty" json:"cache-of,omitempty" xml:"cache-of,omitempty"` // ETAG of artifact Etag *string `json:"etag,omitempty"` // DateTime artifact was created CreatedAt *string `form:"created-at,omitempty" json:"created-at,omitempty" xml:"created-at,omitempty"` // DateTime artifact was last modified LastModifiedAt *string `form:"last-modified-at,omitempty" json:"last-modified-at,omitempty" xml:"last-modified-at,omitempty"` // Reference to policy controlling access Policy *RefTResponseBody `form:"policy,omitempty" json:"policy,omitempty" xml:"policy,omitempty"` // Reference to billable account Account *RefTResponseBody `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"` // Link to retrieve the artifact data Data *SelfTResponseBody `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"` Links *SelfTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"` // link back to record Location *string `form:"location,omitempty" json:"location,omitempty" xml:"location,omitempty"` // indicate version of TUS supported TusResumable *string `form:"tus-resumable,omitempty" json:"tus-resumable,omitempty" xml:"tus-resumable,omitempty"` // TUS offset for partially uploaded content TusOffset *int64 `form:"tus-offset,omitempty" json:"tus-offset,omitempty" xml:"tus-offset,omitempty"` }
ReadResponseBody is the type of the "artifact" service "read" endpoint HTTP response body.
type RefTResponseBody ¶
type RefTResponseBody struct { ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` Links *SelfTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"` }
RefTResponseBody is used to define fields on response body types.
type SelfTResponseBody ¶
type SelfTResponseBody struct { Self *string `form:"self,omitempty" json:"self,omitempty" xml:"self,omitempty"` DescribedBy *DescribedByTResponseBody `form:"describedBy,omitempty" json:"describedBy,omitempty" xml:"describedBy,omitempty"` }
SelfTResponseBody is used to define fields on response body types.
type UploadBadRequestResponseBody ¶
type UploadBadRequestResponseBody struct { // Information message Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` }
UploadBadRequestResponseBody is the type of the "artifact" service "upload" endpoint HTTP response body for the "bad-request" error.
type UploadInvalidScopesResponseBody ¶
type UploadInvalidScopesResponseBody 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"` }
UploadInvalidScopesResponseBody is the type of the "artifact" service "upload" endpoint HTTP response body for the "invalid-scopes" error.
type UploadNotImplementedResponseBody ¶
type UploadNotImplementedResponseBody struct { // Information message Message *string `form:"message,omitempty" json:"message,omitempty" xml:"message,omitempty"` }
UploadNotImplementedResponseBody is the type of the "artifact" service "upload" endpoint HTTP response body for the "not-implemented" error.
type UploadResponseBody ¶
type UploadResponseBody struct { // Artifact ID ID *string `form:"id,omitempty" json:"id,omitempty" xml:"id,omitempty"` // Optional name Name *string `form:"name,omitempty" json:"name,omitempty" xml:"name,omitempty"` // Artifact status Status *string `form:"status,omitempty" json:"status,omitempty" xml:"status,omitempty"` // Mime-type of data MimeType *string `form:"mime-type,omitempty" json:"mime-type,omitempty" xml:"mime-type,omitempty"` // Size of data Size *int64 `form:"size,omitempty" json:"size,omitempty" xml:"size,omitempty"` // URL of object this artifact is caching CacheOf *string `form:"cache-of,omitempty" json:"cache-of,omitempty" xml:"cache-of,omitempty"` // ETAG of artifact Etag *string `json:"etag,omitempty"` // DateTime artifact was created CreatedAt *string `form:"created-at,omitempty" json:"created-at,omitempty" xml:"created-at,omitempty"` // DateTime artifact was last modified LastModifiedAt *string `form:"last-modified-at,omitempty" json:"last-modified-at,omitempty" xml:"last-modified-at,omitempty"` // Reference to policy controlling access Policy *RefTResponseBody `form:"policy,omitempty" json:"policy,omitempty" xml:"policy,omitempty"` // Reference to billable account Account *RefTResponseBody `form:"account,omitempty" json:"account,omitempty" xml:"account,omitempty"` // Link to retrieve the artifact data Data *SelfTResponseBody `form:"data,omitempty" json:"data,omitempty" xml:"data,omitempty"` Links *SelfTResponseBody `form:"links,omitempty" json:"links,omitempty" xml:"links,omitempty"` }
UploadResponseBody is the type of the "artifact" service "upload" endpoint HTTP response body.