Documentation
¶
Overview ¶
Package teaapi holds the models and the low-level client of the Transparency Exchange API (TEA) v1.0.0, generated by oapi-codegen (pinned in ../tools.mod) from ../spec/openapi.yaml, which is a byte copy of spec/openapi.yaml of CycloneDX/transparency-exchange-api at commit 962a0228af1bfcc1232ac3f79239317ff33fdb04 (see ../spec/SPEC_PIN.md).
tea.gen.go is generated and never edited by hand: regenerate it with `go generate ./...` from the module root. Most callers use the hand-written package github.com/oolong-project/tea-client-go, which returns these types and bounds every response; tea.API.Generated returns a client of this package built on the same bounded, auth-aware transport.
Licence: the doc comments in tea.gen.go are taken from the TEA OpenAPI document, which is licensed under the Apache License, Version 2.0 (a copy is in ../spec/LICENSE; Copyright OWASP Foundation). The generator transformed that document into Go source; this package therefore includes Apache-2.0 material. The rest of this module is MIT-licensed (../LICENSE).
Package teaapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.2 DO NOT EDIT.
Index ¶
- func NewDiscoverRequest(server string, params *DiscoverParams) (*http.Request, error)
- func NewDownloadArtifactByVersionRequest(server string, uuid Uuid, artifactVersion int, ...) (*http.Request, error)
- func NewDownloadArtifactSignatureByVersionRequest(server string, uuid Uuid, artifactVersion int, ...) (*http.Request, error)
- func NewDownloadLatestArtifactRequest(server string, uuid Uuid, params *DownloadLatestArtifactParams) (*http.Request, error)
- func NewDownloadLatestArtifactSignatureRequest(server string, uuid Uuid, params *DownloadLatestArtifactSignatureParams) (*http.Request, error)
- func NewGetArtifactByVersionRequest(server string, uuid Uuid, artifactVersion int) (*http.Request, error)
- func NewGetComponentCleRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetComponentReleaseCleRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetComponentReleaseCollectionByVersionRequest(server string, uuid Uuid, collectionVersion int) (*http.Request, error)
- func NewGetComponentReleaseRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetComponentRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetLatestArtifactRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetLatestComponentReleaseCollectionRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetLatestProductReleaseCollectionRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetProductCleRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetProductReleaseCleRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetProductReleaseCollectionByVersionRequest(server string, uuid Uuid, collectionVersion int) (*http.Request, error)
- func NewGetProductReleaseRequest(server string, uuid Uuid) (*http.Request, error)
- func NewGetProductRequest(server string, uuid Uuid) (*http.Request, error)
- func NewListComponentReleaseCollectionsRequest(server string, uuid Uuid, params *ListComponentReleaseCollectionsParams) (*http.Request, error)
- func NewListComponentReleasesRequest(server string, uuid Uuid, params *ListComponentReleasesParams) (*http.Request, error)
- func NewListProductReleaseCollectionsRequest(server string, uuid Uuid, params *ListProductReleaseCollectionsParams) (*http.Request, error)
- func NewListProductReleasesRequest(server string, uuid Uuid, params *ListProductReleasesParams) (*http.Request, error)
- func NewQueryComponentReleasesRequest(server string, params *QueryComponentReleasesParams) (*http.Request, error)
- func NewQueryComponentsRequest(server string, params *QueryComponentsParams) (*http.Request, error)
- func NewQueryProductReleasesRequest(server string, params *QueryProductReleasesParams) (*http.Request, error)
- func NewQueryProductsRequest(server string, params *QueryProductsParams) (*http.Request, error)
- func NewRequestTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRequestTokenRequestWithFormdataBody(server string, body RequestTokenFormdataRequestBody) (*http.Request, error)
- type Artifact
- type ArtifactFormat
- type ArtifactMediaType
- type ArtifactSignatureMediaType
- type ArtifactType
- type Checksum
- type ChecksumType
- type Cle
- type CleDefinitions
- type CleEvent
- type CleEventType
- type CleSupportDefinition
- type CleVersionSpecifier
- type Client
- func (c *Client) Discover(ctx context.Context, params *DiscoverParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DownloadArtifactByVersion(ctx context.Context, uuid Uuid, artifactVersion int, ...) (*http.Response, error)
- func (c *Client) DownloadArtifactSignatureByVersion(ctx context.Context, uuid Uuid, artifactVersion int, ...) (*http.Response, error)
- func (c *Client) DownloadLatestArtifact(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactParams, ...) (*http.Response, error)
- func (c *Client) DownloadLatestArtifactSignature(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactSignatureParams, ...) (*http.Response, error)
- func (c *Client) GetArtifactByVersion(ctx context.Context, uuid Uuid, artifactVersion int, ...) (*http.Response, error)
- func (c *Client) GetComponent(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetComponentCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetComponentRelease(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetComponentReleaseCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetComponentReleaseCollectionByVersion(ctx context.Context, uuid Uuid, collectionVersion int, ...) (*http.Response, error)
- func (c *Client) GetLatestArtifact(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLatestComponentReleaseCollection(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLatestProductReleaseCollection(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProduct(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProductCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProductRelease(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProductReleaseCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProductReleaseCollectionByVersion(ctx context.Context, uuid Uuid, collectionVersion int, ...) (*http.Response, error)
- func (c *Client) ListComponentReleaseCollections(ctx context.Context, uuid Uuid, params *ListComponentReleaseCollectionsParams, ...) (*http.Response, error)
- func (c *Client) ListComponentReleases(ctx context.Context, uuid Uuid, params *ListComponentReleasesParams, ...) (*http.Response, error)
- func (c *Client) ListProductReleaseCollections(ctx context.Context, uuid Uuid, params *ListProductReleaseCollectionsParams, ...) (*http.Response, error)
- func (c *Client) ListProductReleases(ctx context.Context, uuid Uuid, params *ListProductReleasesParams, ...) (*http.Response, error)
- func (c *Client) QueryComponentReleases(ctx context.Context, params *QueryComponentReleasesParams, ...) (*http.Response, error)
- func (c *Client) QueryComponents(ctx context.Context, params *QueryComponentsParams, ...) (*http.Response, error)
- func (c *Client) QueryProductReleases(ctx context.Context, params *QueryProductReleasesParams, ...) (*http.Response, error)
- func (c *Client) QueryProducts(ctx context.Context, params *QueryProductsParams, ...) (*http.Response, error)
- func (c *Client) RequestTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RequestTokenWithFormdataBody(ctx context.Context, body RequestTokenFormdataRequestBody, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DiscoverWithResponse(ctx context.Context, params *DiscoverParams, reqEditors ...RequestEditorFn) (*DiscoverResponse, error)
- func (c *ClientWithResponses) DownloadArtifactByVersionWithResponse(ctx context.Context, uuid Uuid, artifactVersion int, ...) (*DownloadArtifactByVersionResponse, error)
- func (c *ClientWithResponses) DownloadArtifactSignatureByVersionWithResponse(ctx context.Context, uuid Uuid, artifactVersion int, ...) (*DownloadArtifactSignatureByVersionResponse, error)
- func (c *ClientWithResponses) DownloadLatestArtifactSignatureWithResponse(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactSignatureParams, ...) (*DownloadLatestArtifactSignatureResponse, error)
- func (c *ClientWithResponses) DownloadLatestArtifactWithResponse(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactParams, ...) (*DownloadLatestArtifactResponse, error)
- func (c *ClientWithResponses) GetArtifactByVersionWithResponse(ctx context.Context, uuid Uuid, artifactVersion int, ...) (*GetArtifactByVersionResponse, error)
- func (c *ClientWithResponses) GetComponentCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentCleResponse, error)
- func (c *ClientWithResponses) GetComponentReleaseCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentReleaseCleResponse, error)
- func (c *ClientWithResponses) GetComponentReleaseCollectionByVersionWithResponse(ctx context.Context, uuid Uuid, collectionVersion int, ...) (*GetComponentReleaseCollectionByVersionResponse, error)
- func (c *ClientWithResponses) GetComponentReleaseWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentReleaseResponse, error)
- func (c *ClientWithResponses) GetComponentWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentResponse, error)
- func (c *ClientWithResponses) GetLatestArtifactWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetLatestArtifactResponse, error)
- func (c *ClientWithResponses) GetLatestComponentReleaseCollectionWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetLatestComponentReleaseCollectionResponse, error)
- func (c *ClientWithResponses) GetLatestProductReleaseCollectionWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetLatestProductReleaseCollectionResponse, error)
- func (c *ClientWithResponses) GetProductCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductCleResponse, error)
- func (c *ClientWithResponses) GetProductReleaseCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductReleaseCleResponse, error)
- func (c *ClientWithResponses) GetProductReleaseCollectionByVersionWithResponse(ctx context.Context, uuid Uuid, collectionVersion int, ...) (*GetProductReleaseCollectionByVersionResponse, error)
- func (c *ClientWithResponses) GetProductReleaseWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductReleaseResponse, error)
- func (c *ClientWithResponses) GetProductWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductResponse, error)
- func (c *ClientWithResponses) ListComponentReleaseCollectionsWithResponse(ctx context.Context, uuid Uuid, params *ListComponentReleaseCollectionsParams, ...) (*ListComponentReleaseCollectionsResponse, error)
- func (c *ClientWithResponses) ListComponentReleasesWithResponse(ctx context.Context, uuid Uuid, params *ListComponentReleasesParams, ...) (*ListComponentReleasesResponse, error)
- func (c *ClientWithResponses) ListProductReleaseCollectionsWithResponse(ctx context.Context, uuid Uuid, params *ListProductReleaseCollectionsParams, ...) (*ListProductReleaseCollectionsResponse, error)
- func (c *ClientWithResponses) ListProductReleasesWithResponse(ctx context.Context, uuid Uuid, params *ListProductReleasesParams, ...) (*ListProductReleasesResponse, error)
- func (c *ClientWithResponses) QueryComponentReleasesWithResponse(ctx context.Context, params *QueryComponentReleasesParams, ...) (*QueryComponentReleasesResponse, error)
- func (c *ClientWithResponses) QueryComponentsWithResponse(ctx context.Context, params *QueryComponentsParams, ...) (*QueryComponentsResponse, error)
- func (c *ClientWithResponses) QueryProductReleasesWithResponse(ctx context.Context, params *QueryProductReleasesParams, ...) (*QueryProductReleasesResponse, error)
- func (c *ClientWithResponses) QueryProductsWithResponse(ctx context.Context, params *QueryProductsParams, ...) (*QueryProductsResponse, error)
- func (c *ClientWithResponses) RequestTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RequestTokenResponse, error)
- func (c *ClientWithResponses) RequestTokenWithFormdataBodyWithResponse(ctx context.Context, body RequestTokenFormdataRequestBody, ...) (*RequestTokenResponse, error)
- type ClientWithResponsesInterface
- type Collection
- type CollectionBelongsToType
- type CollectionUpdateReason
- type CollectionUpdateReasonType
- type Component
- type ComponentRef
- type ComponentRelease
- type ComponentReleaseWithCollection
- type DateTime
- type DiscoverParams
- type DiscoverResponse
- func (r DiscoverResponse) ContentType() string
- func (r DiscoverResponse) GetBody() []byte
- func (r DiscoverResponse) GetJSON200() *DiscoveryResponse
- func (r DiscoverResponse) GetJSON400() *N400InvalidRequest
- func (r DiscoverResponse) GetJSON401() *N401Unauthorized
- func (r DiscoverResponse) GetJSON403() *N403Forbidden
- func (r DiscoverResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r DiscoverResponse) Status() string
- func (r DiscoverResponse) StatusCode() int
- type DiscoverResponse401Headers
- type DiscoveryInfo
- type DiscoveryResponse
- type DownloadArtifactByVersionParams
- type DownloadArtifactByVersionResponse
- func (r DownloadArtifactByVersionResponse) ContentType() string
- func (r DownloadArtifactByVersionResponse) GetBody() []byte
- func (r DownloadArtifactByVersionResponse) GetJSON400() *N400InvalidRequest
- func (r DownloadArtifactByVersionResponse) GetJSON401() *N401Unauthorized
- func (r DownloadArtifactByVersionResponse) GetJSON403() *N403Forbidden
- func (r DownloadArtifactByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r DownloadArtifactByVersionResponse) GetJSON406() *N406NoAcceptableFormat
- func (r DownloadArtifactByVersionResponse) Status() string
- func (r DownloadArtifactByVersionResponse) StatusCode() int
- type DownloadArtifactByVersionResponse200Headers
- type DownloadArtifactByVersionResponse302Headers
- type DownloadArtifactByVersionResponse304Headers
- type DownloadArtifactByVersionResponse401Headers
- type DownloadArtifactSignatureByVersionParams
- type DownloadArtifactSignatureByVersionResponse
- func (r DownloadArtifactSignatureByVersionResponse) ContentType() string
- func (r DownloadArtifactSignatureByVersionResponse) GetBody() []byte
- func (r DownloadArtifactSignatureByVersionResponse) GetJSON400() *N400InvalidRequest
- func (r DownloadArtifactSignatureByVersionResponse) GetJSON401() *N401Unauthorized
- func (r DownloadArtifactSignatureByVersionResponse) GetJSON403() *N403Forbidden
- func (r DownloadArtifactSignatureByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r DownloadArtifactSignatureByVersionResponse) GetJSON406() *N406NoAcceptableFormat
- func (r DownloadArtifactSignatureByVersionResponse) Status() string
- func (r DownloadArtifactSignatureByVersionResponse) StatusCode() int
- type DownloadArtifactSignatureByVersionResponse200Headers
- type DownloadArtifactSignatureByVersionResponse302Headers
- type DownloadArtifactSignatureByVersionResponse304Headers
- type DownloadArtifactSignatureByVersionResponse401Headers
- type DownloadLatestArtifactParams
- type DownloadLatestArtifactResponse
- func (r DownloadLatestArtifactResponse) ContentType() string
- func (r DownloadLatestArtifactResponse) GetBody() []byte
- func (r DownloadLatestArtifactResponse) GetJSON400() *N400InvalidRequest
- func (r DownloadLatestArtifactResponse) GetJSON401() *N401Unauthorized
- func (r DownloadLatestArtifactResponse) GetJSON403() *N403Forbidden
- func (r DownloadLatestArtifactResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r DownloadLatestArtifactResponse) GetJSON406() *N406NoAcceptableFormat
- func (r DownloadLatestArtifactResponse) Status() string
- func (r DownloadLatestArtifactResponse) StatusCode() int
- type DownloadLatestArtifactResponse200Headers
- type DownloadLatestArtifactResponse302Headers
- type DownloadLatestArtifactResponse304Headers
- type DownloadLatestArtifactResponse401Headers
- type DownloadLatestArtifactSignatureParams
- type DownloadLatestArtifactSignatureResponse
- func (r DownloadLatestArtifactSignatureResponse) ContentType() string
- func (r DownloadLatestArtifactSignatureResponse) GetBody() []byte
- func (r DownloadLatestArtifactSignatureResponse) GetJSON400() *N400InvalidRequest
- func (r DownloadLatestArtifactSignatureResponse) GetJSON401() *N401Unauthorized
- func (r DownloadLatestArtifactSignatureResponse) GetJSON403() *N403Forbidden
- func (r DownloadLatestArtifactSignatureResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r DownloadLatestArtifactSignatureResponse) GetJSON406() *N406NoAcceptableFormat
- func (r DownloadLatestArtifactSignatureResponse) Status() string
- func (r DownloadLatestArtifactSignatureResponse) StatusCode() int
- type DownloadLatestArtifactSignatureResponse200Headers
- type DownloadLatestArtifactSignatureResponse302Headers
- type DownloadLatestArtifactSignatureResponse304Headers
- type DownloadLatestArtifactSignatureResponse401Headers
- type ErrorResponse
- type GetArtifactByVersionResponse
- func (r GetArtifactByVersionResponse) ContentType() string
- func (r GetArtifactByVersionResponse) GetBody() []byte
- func (r GetArtifactByVersionResponse) GetJSON200() *Artifact
- func (r GetArtifactByVersionResponse) GetJSON400() *N400InvalidRequest
- func (r GetArtifactByVersionResponse) GetJSON401() *N401Unauthorized
- func (r GetArtifactByVersionResponse) GetJSON403() *N403Forbidden
- func (r GetArtifactByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetArtifactByVersionResponse) Status() string
- func (r GetArtifactByVersionResponse) StatusCode() int
- type GetArtifactByVersionResponse401Headers
- type GetComponentCleResponse
- func (r GetComponentCleResponse) ContentType() string
- func (r GetComponentCleResponse) GetBody() []byte
- func (r GetComponentCleResponse) GetJSON200() *Cle
- func (r GetComponentCleResponse) GetJSON400() *N400InvalidRequest
- func (r GetComponentCleResponse) GetJSON401() *N401Unauthorized
- func (r GetComponentCleResponse) GetJSON403() *N403Forbidden
- func (r GetComponentCleResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetComponentCleResponse) Status() string
- func (r GetComponentCleResponse) StatusCode() int
- type GetComponentCleResponse401Headers
- type GetComponentReleaseCleResponse
- func (r GetComponentReleaseCleResponse) ContentType() string
- func (r GetComponentReleaseCleResponse) GetBody() []byte
- func (r GetComponentReleaseCleResponse) GetJSON200() *Cle
- func (r GetComponentReleaseCleResponse) GetJSON400() *N400InvalidRequest
- func (r GetComponentReleaseCleResponse) GetJSON401() *N401Unauthorized
- func (r GetComponentReleaseCleResponse) GetJSON403() *N403Forbidden
- func (r GetComponentReleaseCleResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetComponentReleaseCleResponse) Status() string
- func (r GetComponentReleaseCleResponse) StatusCode() int
- type GetComponentReleaseCleResponse401Headers
- type GetComponentReleaseCollectionByVersionResponse
- func (r GetComponentReleaseCollectionByVersionResponse) ContentType() string
- func (r GetComponentReleaseCollectionByVersionResponse) GetBody() []byte
- func (r GetComponentReleaseCollectionByVersionResponse) GetJSON200() *Collection
- func (r GetComponentReleaseCollectionByVersionResponse) GetJSON400() *N400InvalidRequest
- func (r GetComponentReleaseCollectionByVersionResponse) GetJSON401() *N401Unauthorized
- func (r GetComponentReleaseCollectionByVersionResponse) GetJSON403() *N403Forbidden
- func (r GetComponentReleaseCollectionByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetComponentReleaseCollectionByVersionResponse) Status() string
- func (r GetComponentReleaseCollectionByVersionResponse) StatusCode() int
- type GetComponentReleaseCollectionByVersionResponse401Headers
- type GetComponentReleaseResponse
- func (r GetComponentReleaseResponse) ContentType() string
- func (r GetComponentReleaseResponse) GetBody() []byte
- func (r GetComponentReleaseResponse) GetJSON200() *ComponentReleaseWithCollection
- func (r GetComponentReleaseResponse) GetJSON400() *N400InvalidRequest
- func (r GetComponentReleaseResponse) GetJSON401() *N401Unauthorized
- func (r GetComponentReleaseResponse) GetJSON403() *N403Forbidden
- func (r GetComponentReleaseResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetComponentReleaseResponse) Status() string
- func (r GetComponentReleaseResponse) StatusCode() int
- type GetComponentReleaseResponse401Headers
- type GetComponentResponse
- func (r GetComponentResponse) ContentType() string
- func (r GetComponentResponse) GetBody() []byte
- func (r GetComponentResponse) GetJSON200() *Component
- func (r GetComponentResponse) GetJSON400() *N400InvalidRequest
- func (r GetComponentResponse) GetJSON401() *N401Unauthorized
- func (r GetComponentResponse) GetJSON403() *N403Forbidden
- func (r GetComponentResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetComponentResponse) Status() string
- func (r GetComponentResponse) StatusCode() int
- type GetComponentResponse401Headers
- type GetLatestArtifactResponse
- func (r GetLatestArtifactResponse) ContentType() string
- func (r GetLatestArtifactResponse) GetBody() []byte
- func (r GetLatestArtifactResponse) GetJSON200() *Artifact
- func (r GetLatestArtifactResponse) GetJSON400() *N400InvalidRequest
- func (r GetLatestArtifactResponse) GetJSON401() *N401Unauthorized
- func (r GetLatestArtifactResponse) GetJSON403() *N403Forbidden
- func (r GetLatestArtifactResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetLatestArtifactResponse) Status() string
- func (r GetLatestArtifactResponse) StatusCode() int
- type GetLatestArtifactResponse401Headers
- type GetLatestComponentReleaseCollectionResponse
- func (r GetLatestComponentReleaseCollectionResponse) ContentType() string
- func (r GetLatestComponentReleaseCollectionResponse) GetBody() []byte
- func (r GetLatestComponentReleaseCollectionResponse) GetJSON200() *Collection
- func (r GetLatestComponentReleaseCollectionResponse) GetJSON400() *N400InvalidRequest
- func (r GetLatestComponentReleaseCollectionResponse) GetJSON401() *N401Unauthorized
- func (r GetLatestComponentReleaseCollectionResponse) GetJSON403() *N403Forbidden
- func (r GetLatestComponentReleaseCollectionResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetLatestComponentReleaseCollectionResponse) Status() string
- func (r GetLatestComponentReleaseCollectionResponse) StatusCode() int
- type GetLatestComponentReleaseCollectionResponse401Headers
- type GetLatestProductReleaseCollectionResponse
- func (r GetLatestProductReleaseCollectionResponse) ContentType() string
- func (r GetLatestProductReleaseCollectionResponse) GetBody() []byte
- func (r GetLatestProductReleaseCollectionResponse) GetJSON200() *Collection
- func (r GetLatestProductReleaseCollectionResponse) GetJSON400() *N400InvalidRequest
- func (r GetLatestProductReleaseCollectionResponse) GetJSON401() *N401Unauthorized
- func (r GetLatestProductReleaseCollectionResponse) GetJSON403() *N403Forbidden
- func (r GetLatestProductReleaseCollectionResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetLatestProductReleaseCollectionResponse) Status() string
- func (r GetLatestProductReleaseCollectionResponse) StatusCode() int
- type GetLatestProductReleaseCollectionResponse401Headers
- type GetProductCleResponse
- func (r GetProductCleResponse) ContentType() string
- func (r GetProductCleResponse) GetBody() []byte
- func (r GetProductCleResponse) GetJSON200() *Cle
- func (r GetProductCleResponse) GetJSON400() *N400InvalidRequest
- func (r GetProductCleResponse) GetJSON401() *N401Unauthorized
- func (r GetProductCleResponse) GetJSON403() *N403Forbidden
- func (r GetProductCleResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetProductCleResponse) Status() string
- func (r GetProductCleResponse) StatusCode() int
- type GetProductCleResponse401Headers
- type GetProductReleaseCleResponse
- func (r GetProductReleaseCleResponse) ContentType() string
- func (r GetProductReleaseCleResponse) GetBody() []byte
- func (r GetProductReleaseCleResponse) GetJSON200() *Cle
- func (r GetProductReleaseCleResponse) GetJSON400() *N400InvalidRequest
- func (r GetProductReleaseCleResponse) GetJSON401() *N401Unauthorized
- func (r GetProductReleaseCleResponse) GetJSON403() *N403Forbidden
- func (r GetProductReleaseCleResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetProductReleaseCleResponse) Status() string
- func (r GetProductReleaseCleResponse) StatusCode() int
- type GetProductReleaseCleResponse401Headers
- type GetProductReleaseCollectionByVersionResponse
- func (r GetProductReleaseCollectionByVersionResponse) ContentType() string
- func (r GetProductReleaseCollectionByVersionResponse) GetBody() []byte
- func (r GetProductReleaseCollectionByVersionResponse) GetJSON200() *Collection
- func (r GetProductReleaseCollectionByVersionResponse) GetJSON400() *N400InvalidRequest
- func (r GetProductReleaseCollectionByVersionResponse) GetJSON401() *N401Unauthorized
- func (r GetProductReleaseCollectionByVersionResponse) GetJSON403() *N403Forbidden
- func (r GetProductReleaseCollectionByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetProductReleaseCollectionByVersionResponse) Status() string
- func (r GetProductReleaseCollectionByVersionResponse) StatusCode() int
- type GetProductReleaseCollectionByVersionResponse401Headers
- type GetProductReleaseResponse
- func (r GetProductReleaseResponse) ContentType() string
- func (r GetProductReleaseResponse) GetBody() []byte
- func (r GetProductReleaseResponse) GetJSON200() *ProductReleaseWithCollection
- func (r GetProductReleaseResponse) GetJSON400() *N400InvalidRequest
- func (r GetProductReleaseResponse) GetJSON401() *N401Unauthorized
- func (r GetProductReleaseResponse) GetJSON403() *N403Forbidden
- func (r GetProductReleaseResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetProductReleaseResponse) Status() string
- func (r GetProductReleaseResponse) StatusCode() int
- type GetProductReleaseResponse401Headers
- type GetProductResponse
- func (r GetProductResponse) ContentType() string
- func (r GetProductResponse) GetBody() []byte
- func (r GetProductResponse) GetJSON200() *Product
- func (r GetProductResponse) GetJSON400() *N400InvalidRequest
- func (r GetProductResponse) GetJSON401() *N401Unauthorized
- func (r GetProductResponse) GetJSON403() *N403Forbidden
- func (r GetProductResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r GetProductResponse) Status() string
- func (r GetProductResponse) StatusCode() int
- type GetProductResponse401Headers
- type HttpRequestDoer
- type IdType
- type IdValue
- type Identifier
- type IdentifierType
- type IfNoneMatch
- type ListComponentReleaseCollectionsParams
- type ListComponentReleaseCollectionsParamsSortField
- type ListComponentReleaseCollectionsParamsSortOrder
- type ListComponentReleaseCollectionsResponse
- func (r ListComponentReleaseCollectionsResponse) ContentType() string
- func (r ListComponentReleaseCollectionsResponse) GetBody() []byte
- func (r ListComponentReleaseCollectionsResponse) GetJSON200() *PaginatedCollection
- func (r ListComponentReleaseCollectionsResponse) GetJSON400() *N400InvalidRequest
- func (r ListComponentReleaseCollectionsResponse) GetJSON401() *N401Unauthorized
- func (r ListComponentReleaseCollectionsResponse) GetJSON403() *N403Forbidden
- func (r ListComponentReleaseCollectionsResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r ListComponentReleaseCollectionsResponse) Status() string
- func (r ListComponentReleaseCollectionsResponse) StatusCode() int
- type ListComponentReleaseCollectionsResponse401Headers
- type ListComponentReleasesParams
- type ListComponentReleasesParamsSortField
- type ListComponentReleasesParamsSortOrder
- type ListComponentReleasesResponse
- func (r ListComponentReleasesResponse) ContentType() string
- func (r ListComponentReleasesResponse) GetBody() []byte
- func (r ListComponentReleasesResponse) GetJSON200() *PaginatedComponentRelease
- func (r ListComponentReleasesResponse) GetJSON400() *N400InvalidRequest
- func (r ListComponentReleasesResponse) GetJSON401() *N401Unauthorized
- func (r ListComponentReleasesResponse) GetJSON403() *N403Forbidden
- func (r ListComponentReleasesResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r ListComponentReleasesResponse) Status() string
- func (r ListComponentReleasesResponse) StatusCode() int
- type ListComponentReleasesResponse401Headers
- type ListProductReleaseCollectionsParams
- type ListProductReleaseCollectionsParamsSortField
- type ListProductReleaseCollectionsParamsSortOrder
- type ListProductReleaseCollectionsResponse
- func (r ListProductReleaseCollectionsResponse) ContentType() string
- func (r ListProductReleaseCollectionsResponse) GetBody() []byte
- func (r ListProductReleaseCollectionsResponse) GetJSON200() *PaginatedCollection
- func (r ListProductReleaseCollectionsResponse) GetJSON400() *N400InvalidRequest
- func (r ListProductReleaseCollectionsResponse) GetJSON401() *N401Unauthorized
- func (r ListProductReleaseCollectionsResponse) GetJSON403() *N403Forbidden
- func (r ListProductReleaseCollectionsResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r ListProductReleaseCollectionsResponse) Status() string
- func (r ListProductReleaseCollectionsResponse) StatusCode() int
- type ListProductReleaseCollectionsResponse401Headers
- type ListProductReleasesParams
- type ListProductReleasesParamsSortField
- type ListProductReleasesParamsSortOrder
- type ListProductReleasesResponse
- func (r ListProductReleasesResponse) ContentType() string
- func (r ListProductReleasesResponse) GetBody() []byte
- func (r ListProductReleasesResponse) GetJSON200() *PaginatedProductRelease
- func (r ListProductReleasesResponse) GetJSON400() *N400InvalidRequest
- func (r ListProductReleasesResponse) GetJSON401() *N401Unauthorized
- func (r ListProductReleasesResponse) GetJSON403() *N403Forbidden
- func (r ListProductReleasesResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r ListProductReleasesResponse) Status() string
- func (r ListProductReleasesResponse) StatusCode() int
- type ListProductReleasesResponse401Headers
- type N400InvalidRequest
- type N400TokenError
- type N401TokenError
- type N401Unauthorized
- type N403Forbidden
- type N404ObjectByIdNotFound
- type N406NoAcceptableFormat
- type PageSize
- type PageToken
- type PaginatedCollection
- type PaginatedCollectionResponse
- type PaginatedComponent
- type PaginatedComponentRelease
- type PaginatedComponentReleaseResponse
- type PaginatedComponentResponse
- type PaginatedProduct
- type PaginatedProductRelease
- type PaginatedProductReleaseResponse
- type PaginatedProductResponse
- type PaginationDetails
- type Product
- type ProductRelease
- type ProductReleaseWithCollection
- type QueryComponentReleasesParams
- type QueryComponentReleasesParamsSortField
- type QueryComponentReleasesParamsSortOrder
- type QueryComponentReleasesResponse
- func (r QueryComponentReleasesResponse) ContentType() string
- func (r QueryComponentReleasesResponse) GetBody() []byte
- func (r QueryComponentReleasesResponse) GetJSON200() *PaginatedComponentRelease
- func (r QueryComponentReleasesResponse) GetJSON400() *N400InvalidRequest
- func (r QueryComponentReleasesResponse) GetJSON401() *N401Unauthorized
- func (r QueryComponentReleasesResponse) GetJSON403() *N403Forbidden
- func (r QueryComponentReleasesResponse) Status() string
- func (r QueryComponentReleasesResponse) StatusCode() int
- type QueryComponentReleasesResponse401Headers
- type QueryComponentsParams
- type QueryComponentsParamsSortField
- type QueryComponentsParamsSortOrder
- type QueryComponentsResponse
- func (r QueryComponentsResponse) ContentType() string
- func (r QueryComponentsResponse) GetBody() []byte
- func (r QueryComponentsResponse) GetJSON200() *PaginatedComponent
- func (r QueryComponentsResponse) GetJSON400() *N400InvalidRequest
- func (r QueryComponentsResponse) GetJSON401() *N401Unauthorized
- func (r QueryComponentsResponse) GetJSON403() *N403Forbidden
- func (r QueryComponentsResponse) Status() string
- func (r QueryComponentsResponse) StatusCode() int
- type QueryComponentsResponse401Headers
- type QueryProductReleasesParams
- type QueryProductReleasesParamsSortField
- type QueryProductReleasesParamsSortOrder
- type QueryProductReleasesResponse
- func (r QueryProductReleasesResponse) ContentType() string
- func (r QueryProductReleasesResponse) GetBody() []byte
- func (r QueryProductReleasesResponse) GetJSON200() *PaginatedProductRelease
- func (r QueryProductReleasesResponse) GetJSON400() *N400InvalidRequest
- func (r QueryProductReleasesResponse) GetJSON401() *N401Unauthorized
- func (r QueryProductReleasesResponse) GetJSON403() *N403Forbidden
- func (r QueryProductReleasesResponse) Status() string
- func (r QueryProductReleasesResponse) StatusCode() int
- type QueryProductReleasesResponse401Headers
- type QueryProductsParams
- type QueryProductsParamsSortField
- type QueryProductsParamsSortOrder
- type QueryProductsResponse
- func (r QueryProductsResponse) ContentType() string
- func (r QueryProductsResponse) GetBody() []byte
- func (r QueryProductsResponse) GetJSON200() *PaginatedProduct
- func (r QueryProductsResponse) GetJSON400() *N400InvalidRequest
- func (r QueryProductsResponse) GetJSON401() *N401Unauthorized
- func (r QueryProductsResponse) GetJSON403() *N403Forbidden
- func (r QueryProductsResponse) Status() string
- func (r QueryProductsResponse) StatusCode() int
- type QueryProductsResponse401Headers
- type ReleaseDistribution
- type RequestEditorFn
- type RequestTokenFormdataRequestBody
- type RequestTokenResponse
- func (r RequestTokenResponse) ContentType() string
- func (r RequestTokenResponse) GetBody() []byte
- func (r RequestTokenResponse) GetJSON200() *TokenIssued
- func (r RequestTokenResponse) GetJSON400() *N400TokenError
- func (r RequestTokenResponse) GetJSON401() *N401TokenError
- func (r RequestTokenResponse) GetJSON404() *N404ObjectByIdNotFound
- func (r RequestTokenResponse) Status() string
- func (r RequestTokenResponse) StatusCode() int
- type RequestTokenResponse200Headers
- type RequestTokenResponse401Headers
- type ServerInfo
- type SortFieldCollection
- type SortFieldComponent
- type SortFieldComponentRelease
- type SortFieldProduct
- type SortFieldProductRelease
- type SortOrder
- type TokenErrorResponse
- type TokenErrorResponseError
- type TokenIssued
- type TokenRequest
- type TokenResponse
- type TokenResponseTokenType
- type UnknownErrorType
- type Uuid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDiscoverRequest ¶
func NewDiscoverRequest(server string, params *DiscoverParams) (*http.Request, error)
NewDiscoverRequest constructs an http.Request for the Discover method
func NewDownloadArtifactByVersionRequest ¶
func NewDownloadArtifactByVersionRequest(server string, uuid Uuid, artifactVersion int, params *DownloadArtifactByVersionParams) (*http.Request, error)
NewDownloadArtifactByVersionRequest constructs an http.Request for the DownloadArtifactByVersion method
func NewDownloadArtifactSignatureByVersionRequest ¶
func NewDownloadArtifactSignatureByVersionRequest(server string, uuid Uuid, artifactVersion int, params *DownloadArtifactSignatureByVersionParams) (*http.Request, error)
NewDownloadArtifactSignatureByVersionRequest constructs an http.Request for the DownloadArtifactSignatureByVersion method
func NewDownloadLatestArtifactRequest ¶
func NewDownloadLatestArtifactRequest(server string, uuid Uuid, params *DownloadLatestArtifactParams) (*http.Request, error)
NewDownloadLatestArtifactRequest constructs an http.Request for the DownloadLatestArtifact method
func NewDownloadLatestArtifactSignatureRequest ¶
func NewDownloadLatestArtifactSignatureRequest(server string, uuid Uuid, params *DownloadLatestArtifactSignatureParams) (*http.Request, error)
NewDownloadLatestArtifactSignatureRequest constructs an http.Request for the DownloadLatestArtifactSignature method
func NewGetArtifactByVersionRequest ¶
func NewGetArtifactByVersionRequest(server string, uuid Uuid, artifactVersion int) (*http.Request, error)
NewGetArtifactByVersionRequest constructs an http.Request for the GetArtifactByVersion method
func NewGetComponentCleRequest ¶
NewGetComponentCleRequest constructs an http.Request for the GetComponentCle method
func NewGetComponentReleaseCleRequest ¶
NewGetComponentReleaseCleRequest constructs an http.Request for the GetComponentReleaseCle method
func NewGetComponentReleaseCollectionByVersionRequest ¶
func NewGetComponentReleaseCollectionByVersionRequest(server string, uuid Uuid, collectionVersion int) (*http.Request, error)
NewGetComponentReleaseCollectionByVersionRequest constructs an http.Request for the GetComponentReleaseCollectionByVersion method
func NewGetComponentReleaseRequest ¶
NewGetComponentReleaseRequest constructs an http.Request for the GetComponentRelease method
func NewGetComponentRequest ¶
NewGetComponentRequest constructs an http.Request for the GetComponent method
func NewGetLatestArtifactRequest ¶
NewGetLatestArtifactRequest constructs an http.Request for the GetLatestArtifact method
func NewGetLatestComponentReleaseCollectionRequest ¶
NewGetLatestComponentReleaseCollectionRequest constructs an http.Request for the GetLatestComponentReleaseCollection method
func NewGetLatestProductReleaseCollectionRequest ¶
NewGetLatestProductReleaseCollectionRequest constructs an http.Request for the GetLatestProductReleaseCollection method
func NewGetProductCleRequest ¶
NewGetProductCleRequest constructs an http.Request for the GetProductCle method
func NewGetProductReleaseCleRequest ¶
NewGetProductReleaseCleRequest constructs an http.Request for the GetProductReleaseCle method
func NewGetProductReleaseCollectionByVersionRequest ¶
func NewGetProductReleaseCollectionByVersionRequest(server string, uuid Uuid, collectionVersion int) (*http.Request, error)
NewGetProductReleaseCollectionByVersionRequest constructs an http.Request for the GetProductReleaseCollectionByVersion method
func NewGetProductReleaseRequest ¶
NewGetProductReleaseRequest constructs an http.Request for the GetProductRelease method
func NewGetProductRequest ¶
NewGetProductRequest constructs an http.Request for the GetProduct method
func NewListComponentReleaseCollectionsRequest ¶
func NewListComponentReleaseCollectionsRequest(server string, uuid Uuid, params *ListComponentReleaseCollectionsParams) (*http.Request, error)
NewListComponentReleaseCollectionsRequest constructs an http.Request for the ListComponentReleaseCollections method
func NewListComponentReleasesRequest ¶
func NewListComponentReleasesRequest(server string, uuid Uuid, params *ListComponentReleasesParams) (*http.Request, error)
NewListComponentReleasesRequest constructs an http.Request for the ListComponentReleases method
func NewListProductReleaseCollectionsRequest ¶
func NewListProductReleaseCollectionsRequest(server string, uuid Uuid, params *ListProductReleaseCollectionsParams) (*http.Request, error)
NewListProductReleaseCollectionsRequest constructs an http.Request for the ListProductReleaseCollections method
func NewListProductReleasesRequest ¶
func NewListProductReleasesRequest(server string, uuid Uuid, params *ListProductReleasesParams) (*http.Request, error)
NewListProductReleasesRequest constructs an http.Request for the ListProductReleases method
func NewQueryComponentReleasesRequest ¶
func NewQueryComponentReleasesRequest(server string, params *QueryComponentReleasesParams) (*http.Request, error)
NewQueryComponentReleasesRequest constructs an http.Request for the QueryComponentReleases method
func NewQueryComponentsRequest ¶
func NewQueryComponentsRequest(server string, params *QueryComponentsParams) (*http.Request, error)
NewQueryComponentsRequest constructs an http.Request for the QueryComponents method
func NewQueryProductReleasesRequest ¶
func NewQueryProductReleasesRequest(server string, params *QueryProductReleasesParams) (*http.Request, error)
NewQueryProductReleasesRequest constructs an http.Request for the QueryProductReleases method
func NewQueryProductsRequest ¶
func NewQueryProductsRequest(server string, params *QueryProductsParams) (*http.Request, error)
NewQueryProductsRequest constructs an http.Request for the QueryProducts method
func NewRequestTokenRequestWithBody ¶
func NewRequestTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRequestTokenRequestWithBody constructs an http.Request for the RequestToken method, with any body, and a specified content type
func NewRequestTokenRequestWithFormdataBody ¶
func NewRequestTokenRequestWithFormdataBody(server string, body RequestTokenFormdataRequestBody) (*http.Request, error)
NewRequestTokenRequestWithFormdataBody calls the generic RequestToken builder with application/x-www-form-urlencoded body
Types ¶
type Artifact ¶
type Artifact struct {
// CreatedDate The date and time the TEA Artifact revision was created.
CreatedDate DateTime `json:"createdDate"`
// DistributionIds Array of TEA Component Release distributions that this TEA Artifact applies to.
// If absent or empty, the TEA Artifact applies to all distributions.
DistributionIds *[]Uuid `json:"distributionIds,omitempty"`
// Formats List of objects with the same content, but in different formats.
// The order of the list has no significance.
Formats []ArtifactFormat `json:"formats"`
// Name A human-readable name for the artefact
Name *string `json:"name,omitempty"`
// Type Type of TEA Artifact
Type ArtifactType `json:"type"`
// Uuid The UUID of the TEA Artifact object. Together with *version* uniquely identifies the TEA Artifact.
Uuid Uuid `json:"uuid"`
// Version Revision number, starting at 1 and incremented by 1 for each new revision of the same artifact UUID.
// Together with `uuid` uniquely identifies the TEA Artifact.
// Successive revisions cover content changes and changes to any published
// field, including external `url` or `signatureUrl` values. Each published
// revision is immutable. For a fixed artifact UUID, version, and format, the
// server shall ensure that successful content retrieval through its download
// endpoint, including retrieval after following redirects, yields unchanged
// artifact bytes after HTTP transfer coding and content coding are removed,
// and that successful signature retrieval through its signature download
// endpoint yields unchanged signature bytes on the same terms. Changing only
// a download response's `Location`, or only its HTTP content coding, while
// preserving those bytes, does not require a new artifact or collection version.
Version int `json:"version"`
}
Artifact A security-related document
Examples: {"createdDate":"2024-12-13T00:00:00Z","formats":[{"checksums":[{"algType":"SHA-256","algValue":"e04c9d55986d7194822eaa4f8115a77f801844d807ad6e0d454ac31dd41861e5"},{"algType":"SHA-1","algValue":"5a7d4caef63c5c5ccdf07c39337323529eb5a770"}],"description":"CycloneDX SBOM (XML)","mediaType":"application/vnd.cyclonedx+xml","signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml.asc","url":"https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml"}],"name":"Build SBOM","type":"BOM","uuid":"1cb47b95-8bf8-3bad-a5a4-0d54d86e10ce","version":2}, {"createdDate":"2024-12-15T00:00:00Z","formats":[{"checksums":[{"algType":"SHA-256","algValue":"75b81020b3917cb682b1a7605ade431e062f7a4c01a412f0b87543b6e995ad2a"}],"description":"CycloneDX VDR (XML)","mediaType":"application/vnd.cyclonedx+xml","url":"https://logging.apache.org/cyclonedx/vdr.xml"}],"name":"Vulnerability Disclosure Report","type":"VULNERABILITIES","uuid":"dfa35519-9734-4259-bba1-3e825cf4be06","version":7}
type ArtifactFormat ¶
type ArtifactFormat struct {
// Checksums Checksums for this artifact format's content bytes (the payload retrieved
// from `url` or from the artifact download endpoint for this `mediaType`),
// not the detached signature. When present, `checksums` shall contain at least
// one entry. When `url` is present, `checksums` is required. Those checksums are
// the integrity statement for that external `url`. Content retrieved from `url`
// that does not match them is not the content of that revision.
//
// Published checksums shall be calculated over the artifact format's bytes
// before HTTP content coding is applied. Clients verifying them shall first
// remove any HTTP transfer coding and content coding, and shall not otherwise
// transform or canonicalize the artifact bytes. An artifact that is itself
// compressed, such as a `.gz` file, stays in that form. The TEA servers
// shall not declare the artifact's own compression as HTTP content coding,
// because clients would then remove it and the checksum would not match.
Checksums *[]Checksum `json:"checksums,omitempty"`
// Description A free text describing the TEA Artifact
Description *string `json:"description,omitempty"`
// MediaType The Media Type of the document.
//
// A media type shall appear at most once across the `formats` of a single TEA
// Artifact revision, so that every format can be selected unambiguously by
// media type when downloading its content or its signature.
MediaType string `json:"mediaType"`
// SignatureUrl External download URL for a detached signature of this format of the TEA
// Artifact.
//
// As with `url`, this is always a location outside the TEA API. When present,
// clients shall retrieve the signature from it. When absent, clients shall
// retrieve it from the artifact signature download endpoint,
// `/artifact/{uuid}/{artifactVersion}/signature/download`, selecting this
// format by its `mediaType`; that endpoint returns `404` when no signature is
// published for the format. The same access-token, stable-URL, and revision rules
// as for `url` apply to `signatureUrl`. Byte stability for signature retrieval
// through the server's signature download endpoint follows `artifact.version`.
//
// This specification does not define which signature technology is used, nor
// model the signing algorithm, key, or certificate chain.
SignatureUrl *string `json:"signatureUrl,omitempty"`
// Url External download URL for this format of the TEA Artifact.
//
// This is always a location outside the TEA API. When present, clients shall
// retrieve the content from it. When absent, the TEA server hosts the content
// itself and clients shall retrieve it from the artifact download endpoint,
// `/artifact/{uuid}/{artifactVersion}/download`, selecting this format by its
// `mediaType`.
//
// `url` and `signatureUrl` should be stable URLs. Servers should not publish
// pre-signed or otherwise expiring URLs in them. A server that serves content
// from expiring storage links shall omit them and answer from the download
// endpoints, with `302` where the bytes live elsewhere.
//
// A TEA access token is sent only to the TEA server's own API base URL, never
// to an external URL. External locations are either openly accessible or require
// credentials the client arranges separately.
//
// External `url` values are part of the published artifact revision. Changing
// `url` shall create a new artifact revision, even when content bytes and
// checksums are unchanged. The server shall preserve the URLs published on each
// historical artifact revision. If a Collection adopts that new revision,
// collection versioning follows `collection.version`.
//
// Byte stability for content retrieved through the server's download endpoint
// follows `artifact.version`.
//
// The TEA server does not control the bytes behind an external `url`, so for
// every format that has a `url` the server shall publish at least one checksum:
// the checksums are the integrity statement for the revision. Content retrieved
// from `url` that does not match them is not the content of that revision.
Url *string `json:"url,omitempty"`
}
ArtifactFormat A security-related document in a specific format
type ArtifactMediaType ¶
type ArtifactMediaType = string
ArtifactMediaType Examples: application/vnd.cyclonedx+json
type ArtifactSignatureMediaType ¶
type ArtifactSignatureMediaType = string
ArtifactSignatureMediaType Examples: application/vnd.cyclonedx+json
type ArtifactType ¶
type ArtifactType string
ArtifactType Type of TEA Artifact.
const ( ATTESTATION ArtifactType = "ATTESTATION" BOM ArtifactType = "BOM" BUILDMETA ArtifactType = "BUILD_META" CERTIFICATION ArtifactType = "CERTIFICATION" FORMULATION ArtifactType = "FORMULATION" LICENSE ArtifactType = "LICENSE" OTHER ArtifactType = "OTHER" RELEASENOTES ArtifactType = "RELEASE_NOTES" SECURITYTXT ArtifactType = "SECURITY_TXT" THREATMODEL ArtifactType = "THREAT_MODEL" VULNERABILITIES ArtifactType = "VULNERABILITIES" )
Defines values for ArtifactType.
func (ArtifactType) Valid ¶
func (e ArtifactType) Valid() bool
Valid indicates whether the value is a known member of the ArtifactType enum.
type Checksum ¶
type Checksum struct {
// AlgType Checksum algorithm
AlgType ChecksumType `json:"algType"`
// AlgValue Lowercase hexadecimal digest value for `algType`. Do not use Base64 or
// uppercase hex.
AlgValue string `json:"algValue"`
}
Checksum Integrity digest for identified content bytes. `algValue` is the lowercase hexadecimal encoding of the digest produced by `algType` over those bytes. The hex length shall match the algorithm's digest size (for example 40 for SHA-1, 64 for SHA-256 / SHA3-256 / BLAKE2b-256 / BLAKE3, 96 for SHA-384 / SHA3-384 / BLAKE2b-384, 128 for SHA-512 / SHA3-512 / BLAKE2b-512).
type ChecksumType ¶
type ChecksumType string
ChecksumType Checksum algorithm
const ( BLAKE2b256 ChecksumType = "BLAKE2b-256" BLAKE2b384 ChecksumType = "BLAKE2b-384" BLAKE2b512 ChecksumType = "BLAKE2b-512" BLAKE3 ChecksumType = "BLAKE3" SHA1 ChecksumType = "SHA-1" SHA256 ChecksumType = "SHA-256" SHA3256 ChecksumType = "SHA3-256" SHA3384 ChecksumType = "SHA3-384" SHA3512 ChecksumType = "SHA3-512" SHA384 ChecksumType = "SHA-384" SHA512 ChecksumType = "SHA-512" )
Defines values for ChecksumType.
func (ChecksumType) Valid ¶
func (e ChecksumType) Valid() bool
Valid indicates whether the value is a known member of the ChecksumType enum.
type Cle ¶
type Cle struct {
// Definitions Container for reusable policy definitions referenced by events
Definitions *CleDefinitions `json:"definitions,omitempty"`
// Events Array of CLE Event objects representing lifecycle events. Events shall be ordered
// by id descending (newest events with highest IDs first).
Events []CleEvent `json:"events"`
}
Cle Lifecycle events for the object this endpoint is called on, as a TEA projection of the Common Lifecycle Enumeration (ECMA-428, 1st edition).
This is not a CLE document. The document envelope (`$schema`, `identifier`, `updatedAt`, and `index` / `next` page chaining) is not carried: the TEA object the response belongs to supplies the identity, and TEA has its own pagination. The event vocabulary, ordering and semantics are those of ECMA-428; the field shapes are TEA's. A consumer that needs a CLE document applies the mapping rules below and adds the envelope; a producer that holds a CLE document applies them in reverse. Publishers that need a bit-identical CLE 1.0.0 document publish it as a TEA Artifact in a release collection, as artifact type `OTHER` until a dedicated type exists; the same artifact may be referenced from more than one collection. The CLE endpoints are not a substitute for that document.
Mapping to ECMA-428:
- `identifiers[]` on `componentRenamed` uses the TEA `identifier` shape (`idType`, `idValue`); CLE uses `type` / `value` with the same meaning.
- A version specifier `{ version }` names one version without a `vers` scheme, because a TEA server does not always know the package ecosystem. It corresponds to the CLE range `vers:<scheme>/<version>` once the scheme is known. `{ range }` is a CLE range as-is.
- `cle-event` is one flat object. The fields ECMA-428 requires or permits for each event type apply as written there; servers shall populate the required ones and omit fields that do not belong to the type.
Selection. Servers shall return in `events` a subset of the events of the CLE data they hold for the component or product, and shall not alter an event beyond the mapping above. On a release endpoint, servers may omit events scoped to other versions: events whose `versions` do not cover the release's `version`, and `released` events whose `version` differs from it. Events that name no version, other than `withdrawn` events, apply to the component as a whole and are retained. Inclusion of `withdrawn` events follows the rule below. Servers shall not otherwise reduce the set, and in particular shall not collapse it to the latest event per type. Servers shall not renumber event `id` values. Servers shall include a `withdrawn` event if, and only if, they include the event it withdraws. `definitions.support` shall contain at least the policies referenced by the included events.
`events` shall be ordered by `id` descending, as in ECMA-428. A server that provides CLE for an object answers `200`, with an empty `events` array when no event has been recorded yet. A server that does not provide CLE for the object answers `404` with `error: NOT_IMPLEMENTED`; `error: OBJECT_UNKNOWN` means the object itself is unknown.
Examples: {"definitions":{"support":[{"description":"Standard product support policy","id":"standard","url":"https://example.com/support/standard"}]},"events":[{"effective":"2025-06-01T00:00:00Z","id":3,"published":"2025-01-01T00:00:00Z","supportId":"standard","type":"endOfSupport","versions":[{"range":"vers:npm/\u003e=1.0.0|\u003c2.0.0"}]},{"effective":"2025-01-01T00:00:00Z","id":2,"published":"2024-06-01T00:00:00Z","supportId":"standard","type":"endOfDevelopment","versions":[{"version":"1.0.0"}]},{"effective":"2024-01-01T00:00:00Z","id":1,"license":"Apache-2.0","published":"2024-01-01T00:00:00Z","type":"released","version":"1.0.0"}]}
type CleDefinitions ¶
type CleDefinitions struct {
// Support List of support policies
Support *[]CleSupportDefinition `json:"support,omitempty"`
}
CleDefinitions Container for reusable CLE policy definitions
type CleEvent ¶
type CleEvent struct {
// Description Human-readable description of the event
Description *string `json:"description,omitempty"`
// Effective When the event takes effect.
Effective DateTime `json:"effective"`
// EventId ID of the event being withdrawn (used by withdrawn event type)
EventId *int `json:"eventId,omitempty"`
// Id A unique, auto-incrementing integer identifier for the event
Id int `json:"id"`
// Identifiers New identifiers for the component (`componentRenamed` only), in the TEA
// `identifier` shape. Corresponds to CLE `identifiers[]` with `type` / `value`.
Identifiers *[]Identifier `json:"identifiers,omitempty"`
// License License identifier (used by released event type)
License *string `json:"license,omitempty"`
// Published When the event was first published.
Published DateTime `json:"published"`
// Reason Human-readable explanation (used by withdrawn event type)
Reason *string `json:"reason,omitempty"`
// References List of URLs to supporting documentation
References *[]string `json:"references,omitempty"`
// SupersededByVersion Version string that supersedes the affected versions (used by supersededBy event type)
SupersededByVersion *string `json:"supersededByVersion,omitempty"`
// SupportId Reference to a support policy ID defined in the definitions section
SupportId *string `json:"supportId,omitempty"`
// Type The type of lifecycle event
Type CleEventType `json:"type"`
// Version Version string (used by released event type)
Version *string `json:"version,omitempty"`
// Versions List of version specifiers affected by this event
Versions *[]CleVersionSpecifier `json:"versions,omitempty"`
}
CleEvent A discrete lifecycle event from the CLE specification (ECMA-428).
CLE timestamps in TEA responses use the shared `date-time` schema: UTC with the `Z` designator, fractional seconds preserved. A `+00:00` offset in an upstream CLE document denotes the same instant and is re-expressed as `Z`. Any other offset is not UTC and is not valid CLE.
Examples: {"effective":"2024-01-01T00:00:00Z","id":1,"license":"MIT","published":"2023-06-01T00:00:00Z","type":"released","version":"1.0.0"}, {"effective":"2024-01-01T00:00:00Z","id":3,"published":"2023-06-01T00:00:00Z","supportId":"standard","type":"endOfSupport","versions":[{"version":"1.0.0"}]}
type CleEventType ¶
type CleEventType string
CleEventType The type of CLE lifecycle event
const ( ComponentRenamed CleEventType = "componentRenamed" EndOfDevelopment CleEventType = "endOfDevelopment" EndOfDistribution CleEventType = "endOfDistribution" EndOfLife CleEventType = "endOfLife" EndOfMarketing CleEventType = "endOfMarketing" EndOfSupport CleEventType = "endOfSupport" Released CleEventType = "released" SupersededBy CleEventType = "supersededBy" Withdrawn CleEventType = "withdrawn" )
Defines values for CleEventType.
func (CleEventType) Valid ¶
func (e CleEventType) Valid() bool
Valid indicates whether the value is a known member of the CleEventType enum.
type CleSupportDefinition ¶
type CleSupportDefinition struct {
// Description Human-readable description of the policy
Description string `json:"description"`
// Id Unique identifier for the support policy
Id string `json:"id"`
// Url URL to detailed documentation about this support policy
Url *string `json:"url,omitempty"`
}
CleSupportDefinition A support policy definition from CLE
Examples: {"description":"Standard product support policy","id":"standard","url":"https://example.com/support/standard"}
type CleVersionSpecifier ¶
type CleVersionSpecifier struct {
// Range A version range in vers format (e.g. "vers:npm/>=1.0.0|<2.0.0")
Range *string `json:"range,omitempty"`
// Version A specific version string
Version *string `json:"version,omitempty"`
}
CleVersionSpecifier Which versions an event affects. Exactly one of `version` or `range`. `range` is an ECMA-428 version specification (`vers`). `version` names a single version without a `vers` scheme and is a TEA extension: it maps to `vers:<scheme>/<version>` when the ecosystem is known.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) Discover ¶
func (c *Client) Discover(ctx context.Context, params *DiscoverParams, reqEditors ...RequestEditorFn) (*http.Response, error)
Discover Resolve an identifier to TEA Product Releases
Discovery endpoint which resolves an identifier into one or more product release UUIDs.
Exactly one of the `tei` and `purl` query parameters shall be provided. A request with neither, or with both, is rejected with `400`. OpenAPI cannot express this constraint on query parameters, so both are declared optional here.
Discovery by TEI resolves the product across TEA servers, using the domain carried by the TEI (typically after DNS / `.well-known` selection of an API host). Discovery by PURL requires an already-known API base URL and resolves within that server's inventory.
A successful response is a non-empty JSON array of `discovery-info` objects, ordered by priority when multiple product releases match (first entry highest). If the server does not resolve the identifier, it responds with `404` and `error: OBJECT_UNKNOWN`, not `200` with an empty array.
Parameter values are the identifier itself (not a pre-encoded wire form). Clients shall apply query-parameter serialization once. Servers shall interpret the value after one query-decoding step. Escapes that are part of a PURL value are preserved by that single decode.
Example request lines after serialization: - `.../discovery?tei=tei%3A%2F%2Fproducts.example.com%2Fuuid%2F47f51950-b0e2-11f1-adc2-1a52914d44b2` - `.../discovery?purl=pkg%3Amaven%2Forg.apache.logging.log4j%2Flog4j-core%402.24.3`
Unlike `/token`, this operation is required on a conforming TEA API base for the advertised version. A conforming `404` uses the shared object-not-found response (`error-response`, typically `OBJECT_UNKNOWN`) and means this server does not resolve the identifier, not that `/discovery` is optional or unimplemented. Client recognition of that body and the terminal outcome are defined in the discovery document.
Corresponds with GET /discovery (the `Discover` operationId).
func (*Client) DownloadArtifactByVersion ¶
func (c *Client) DownloadArtifactByVersion(ctx context.Context, uuid Uuid, artifactVersion int, params *DownloadArtifactByVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DownloadArtifactByVersion Download the content of one TEA Artifact revision
Download the content of a specific revision of a specific TEA Artifact.
This endpoint returns the bytes of one `format` of the artifact revision. It is how a TEA server hosts artifact content itself: a format that has no external `url` is retrieved from here, selected by its `mediaType`. A format that has a `url` is retrieved from that external location instead, and this endpoint is not required to serve it.
A TEA access token is sent only to the TEA server's own API base URL. External `url` targets are retrieved without it. They are openly accessible or require credentials the client arranges separately. Expiring storage links should not be published in `url`; the server answers from this endpoint, including with `302`.
When serving the content itself (`200`), servers shall return a strong `ETag` for the HTTP representation selected after negotiation, including content coding, and shall honor `If-None-Match` with `304`. `ETag` is the only conditional validator for these downloads. Servers that support `HEAD` for this operation shall return the same headers as `GET` without a response body. `302` redirects are outside conditional semantics: `If-None-Match` applies only to the TEA-hosted download response, not to following an external `Location`.
How long a cache may retain the response depends on whether the content is publicly accessible: see `artifact-cache-control-immutable`. Immutability does not imply that shared caches may store access-controlled responses. Successful responses include `Content-Location` as an absolute URL of this versioned download including the `mediaType` query parameter. That URL identifies the revision and format; HTTP content coding can still be negotiated.
Corresponds with GET /artifact/{uuid}/{artifactVersion}/download (the `DownloadArtifactByVersion` operationId).
func (*Client) DownloadArtifactSignatureByVersion ¶
func (c *Client) DownloadArtifactSignatureByVersion(ctx context.Context, uuid Uuid, artifactVersion int, params *DownloadArtifactSignatureByVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DownloadArtifactSignatureByVersion Download the signature of one TEA Artifact revision
Download the detached signature for one format of a specific revision of a specific TEA Artifact.
This is the counterpart of the artifact content endpoint, for TEA servers that host signatures themselves: a format that has no external `signatureUrl` is retrieved from here, selected by its `mediaType`. A format that has a `signatureUrl` is retrieved from that external location instead, and this endpoint is not required to serve it.
Signatures are per format: each format of a revision is a distinct sequence of bytes and therefore has its own signature. The `mediaType` parameter selects which format's signature is returned, not the format of the signature itself.
This specification makes no assumption about the signature technology in use, and does not model the signing algorithm, key, or certificate chain; the response is the signature as published. A client that cannot determine how to verify what it receives should treat the signature as unusable rather than as invalid.
`404` distinguishes the cases by TEA error body: `OBJECT_UNKNOWN` when the artifact revision is unknown (or concealed), and `SIGNATURE_NOT_FOUND` when the revision exists but the selected format has no signature published. A server concealing an artifact from a client shall answer `OBJECT_UNKNOWN` for every sub-resource of it, including signatures.
When serving the signature itself (`200`), servers shall return a strong `ETag` for the HTTP representation selected after negotiation, including content coding, and shall honor `If-None-Match` with `304`. `ETag` is the only conditional validator for these downloads. Servers that support `HEAD` for this operation shall return the same headers as `GET` without a response body. `302` redirects are outside conditional semantics: `If-None-Match` applies only to the TEA-hosted download response, not to following an external `Location`. Successful responses include `Content-Location` as an absolute URL of this versioned signature download including the `mediaType` query parameter. That URL identifies the revision and format; HTTP content coding can still be negotiated.
Corresponds with GET /artifact/{uuid}/{artifactVersion}/signature/download (the `DownloadArtifactSignatureByVersion` operationId).
func (*Client) DownloadLatestArtifact ¶
func (c *Client) DownloadLatestArtifact(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DownloadLatestArtifact Download the content of the latest TEA Artifact revision
Download the content of the latest revision of a specific TEA Artifact.
Equivalent to the versioned download endpoint, resolving to the revision with the greatest published `version` — the same revision `/artifact/{uuid}/latest` reports. The content this returns changes when a new revision is published, so unlike the versioned endpoint the response is not immutable: caches shall revalidate it via `ETag` for the HTTP representation selected after negotiation. The `Content-Location` header is an absolute versioned URL including the API base, version path, and `mediaType` query parameter. That URL identifies the revision and format; HTTP content coding can still be negotiated.
When serving the content itself (`200`), servers shall return a strong `ETag` for the HTTP representation selected after negotiation, including content coding, and shall honor `If-None-Match` with `304`. `ETag` is the only conditional validator for these downloads. Servers that support `HEAD` for this operation shall return the same headers as `GET` without a response body. `302` redirects are outside conditional semantics: `If-None-Match` applies only to the TEA-hosted download response, not to following an external `Location`.
Corresponds with GET /artifact/{uuid}/latest/download (the `DownloadLatestArtifact` operationId).
func (*Client) DownloadLatestArtifactSignature ¶
func (c *Client) DownloadLatestArtifactSignature(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactSignatureParams, reqEditors ...RequestEditorFn) (*http.Response, error)
DownloadLatestArtifactSignature Download the signature of the latest TEA Artifact revision
Download the detached signature for the latest revision of a specific TEA Artifact.
Equivalent to the versioned signature endpoint, resolving to the revision with the greatest published `version` — the same revision `/artifact/{uuid}/latest` reports. As with the latest content endpoint, the response is not immutable and caches shall revalidate it via `ETag` for the HTTP representation selected after negotiation. `Content-Location` is an absolute versioned signature URL including the API base, version path, and `mediaType` query parameter. That URL identifies the revision and format; HTTP content coding can still be negotiated.
When serving the signature itself (`200`), servers shall return a strong `ETag` for the HTTP representation selected after negotiation, including content coding, and shall honor `If-None-Match` with `304`. `ETag` is the only conditional validator for these downloads. Servers that support `HEAD` for this operation shall return the same headers as `GET` without a response body. `302` redirects are outside conditional semantics: `If-None-Match` applies only to the TEA-hosted download response, not to following an external `Location`.
`404` distinguishes the cases by TEA error body: `OBJECT_UNKNOWN` when the artifact revision is unknown (or concealed), and `SIGNATURE_NOT_FOUND` when the revision exists but the selected format has no signature published. A server concealing an artifact from a client shall answer `OBJECT_UNKNOWN` for every sub-resource of it, including signatures.
Corresponds with GET /artifact/{uuid}/latest/signature/download (the `DownloadLatestArtifactSignature` operationId).
func (*Client) GetArtifactByVersion ¶
func (c *Client) GetArtifactByVersion(ctx context.Context, uuid Uuid, artifactVersion int, reqEditors ...RequestEditorFn) (*http.Response, error)
GetArtifactByVersion Get the metadata of one TEA Artifact revision
Get metadata for a specific revision of a specific TEA Artifact.
Corresponds with GET /artifact/{uuid}/{artifactVersion} (the `GetArtifactByVersion` operationId).
func (*Client) GetComponent ¶
func (c *Client) GetComponent(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetComponent Get a TEA Component
Corresponds with GET /component/{uuid} (the `GetComponent` operationId).
func (*Client) GetComponentCle ¶
func (c *Client) GetComponentCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetComponentCle Get the lifecycle events of a TEA Component
Get the CLE (Common Lifecycle Enumeration) data for a TEA Component.
Corresponds with GET /component/{uuid}/cle (the `GetComponentCle` operationId).
func (*Client) GetComponentRelease ¶
func (c *Client) GetComponentRelease(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetComponentRelease Get a TEA Component Release with its latest collection
Get the TEA Component Release with its latest collection.
Corresponds with GET /componentRelease/{uuid} (the `GetComponentRelease` operationId).
func (*Client) GetComponentReleaseCle ¶
func (c *Client) GetComponentReleaseCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetComponentReleaseCle Get the lifecycle events of a TEA Component Release
Get the CLE (Common Lifecycle Enumeration) data for a TEA Component Release.
Corresponds with GET /componentRelease/{uuid}/cle (the `GetComponentReleaseCle` operationId).
func (*Client) GetComponentReleaseCollectionByVersion ¶
func (c *Client) GetComponentReleaseCollectionByVersion(ctx context.Context, uuid Uuid, collectionVersion int, reqEditors ...RequestEditorFn) (*http.Response, error)
GetComponentReleaseCollectionByVersion Get one collection version of a TEA Component Release
Get a specific Collection (by version) for a TEA Component Release by its UUID.
Corresponds with GET /componentRelease/{uuid}/collection/{collectionVersion} (the `GetComponentReleaseCollectionByVersion` operationId).
func (*Client) GetLatestArtifact ¶
func (c *Client) GetLatestArtifact(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLatestArtifact Get the metadata of the latest TEA Artifact revision
Get metadata for the latest revision of a specific TEA Artifact, that is, the revision with the greatest published `version`.
Corresponds with GET /artifact/{uuid}/latest (the `GetLatestArtifact` operationId).
func (*Client) GetLatestComponentReleaseCollection ¶
func (c *Client) GetLatestComponentReleaseCollection(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLatestComponentReleaseCollection Get the latest collection of a TEA Component Release
Get the latest TEA Collection belonging to the TEA Component Release, that is, the collection with the greatest published `version`.
`404` means the release is unknown; a release always has a latest collection.
Corresponds with GET /componentRelease/{uuid}/collection/latest (the `GetLatestComponentReleaseCollection` operationId).
func (*Client) GetLatestProductReleaseCollection ¶
func (c *Client) GetLatestProductReleaseCollection(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetLatestProductReleaseCollection Get the latest collection of a TEA Product Release
Get the latest TEA Collection belonging to the TEA Product Release, that is, the collection with the greatest published `version`.
`404` means the release is unknown; a release always has a latest collection.
Corresponds with GET /productRelease/{uuid}/collection/latest (the `GetLatestProductReleaseCollection` operationId).
func (*Client) GetProduct ¶
func (c *Client) GetProduct(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProduct Get a TEA Product
Get a TEA Product by UUID.
Corresponds with GET /product/{uuid} (the `GetProduct` operationId).
func (*Client) GetProductCle ¶
func (c *Client) GetProductCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProductCle Get the lifecycle events of a TEA Product
Get the CLE (Common Lifecycle Enumeration) data for a TEA Product.
Corresponds with GET /product/{uuid}/cle (the `GetProductCle` operationId).
func (*Client) GetProductRelease ¶
func (c *Client) GetProductRelease(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProductRelease Get a TEA Product Release with its latest collection
Get the TEA Product Release with its latest collection.
Corresponds with GET /productRelease/{uuid} (the `GetProductRelease` operationId).
func (*Client) GetProductReleaseCle ¶
func (c *Client) GetProductReleaseCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProductReleaseCle Get the lifecycle events of a TEA Product Release
Get the CLE (Common Lifecycle Enumeration) data for a TEA Product Release.
Corresponds with GET /productRelease/{uuid}/cle (the `GetProductReleaseCle` operationId).
func (*Client) GetProductReleaseCollectionByVersion ¶
func (c *Client) GetProductReleaseCollectionByVersion(ctx context.Context, uuid Uuid, collectionVersion int, reqEditors ...RequestEditorFn) (*http.Response, error)
GetProductReleaseCollectionByVersion Get one collection version of a TEA Product Release
Get a specific Collection (by version) for a TEA Product Release by its UUID.
Corresponds with GET /productRelease/{uuid}/collection/{collectionVersion} (the `GetProductReleaseCollectionByVersion` operationId).
func (*Client) ListComponentReleaseCollections ¶
func (c *Client) ListComponentReleaseCollections(ctx context.Context, uuid Uuid, params *ListComponentReleaseCollectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListComponentReleaseCollections List the collections of a TEA Component Release
Get the TEA Collections belonging to the TEA Component Release.
Corresponds with GET /componentRelease/{uuid}/collections (the `ListComponentReleaseCollections` operationId).
func (*Client) ListComponentReleases ¶
func (c *Client) ListComponentReleases(ctx context.Context, uuid Uuid, params *ListComponentReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListComponentReleases List the releases of a TEA Component
Get releases of the component.
Corresponds with GET /component/{uuid}/releases (the `ListComponentReleases` operationId).
func (*Client) ListProductReleaseCollections ¶
func (c *Client) ListProductReleaseCollections(ctx context.Context, uuid Uuid, params *ListProductReleaseCollectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListProductReleaseCollections List the collections of a TEA Product Release
Get the TEA Collections belonging to the TEA Product Release.
Corresponds with GET /productRelease/{uuid}/collections (the `ListProductReleaseCollections` operationId).
func (*Client) ListProductReleases ¶
func (c *Client) ListProductReleases(ctx context.Context, uuid Uuid, params *ListProductReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListProductReleases List the releases of a TEA Product
Get releases of the product.
Corresponds with GET /product/{uuid}/releases (the `ListProductReleases` operationId).
func (*Client) QueryComponentReleases ¶
func (c *Client) QueryComponentReleases(ctx context.Context, params *QueryComponentReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryComponentReleases Query TEA Component Releases
Returns a list of TEA component releases. Note that multiple component releases may match.
Corresponds with GET /componentReleases (the `QueryComponentReleases` operationId).
func (*Client) QueryComponents ¶
func (c *Client) QueryComponents(ctx context.Context, params *QueryComponentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryComponents Query TEA Components
Returns a list of TEA components. Note that multiple components may match.
Corresponds with GET /components (the `QueryComponents` operationId).
func (*Client) QueryProductReleases ¶
func (c *Client) QueryProductReleases(ctx context.Context, params *QueryProductReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryProductReleases Query TEA Product Releases
Returns a list of TEA product releases. Note that multiple product releases may match.
Corresponds with GET /productReleases (the `QueryProductReleases` operationId).
func (*Client) QueryProducts ¶
func (c *Client) QueryProducts(ctx context.Context, params *QueryProductsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
QueryProducts Query TEA Products
Returns a list of TEA products. Note that multiple products may match.
Corresponds with GET /products (the `QueryProducts` operationId).
func (*Client) RequestTokenWithBody ¶
func (c *Client) RequestTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RequestTokenWithBody Exchange credentials for a TEA access token
Exchange credentials for a TEA access token.
A TEA server that requires authentication on any of its endpoints shall implement this endpoint, and shall support the `client_credentials` grant type with HTTP Basic client authentication (RFC 6749 section 2.3.1, RFC 7617): the API key identifier is sent as the user-id and the API key secret as the password. A server that requires no authentication need not implement it.
Clients do not probe this endpoint to discover whether authentication is required: they issue the resource request, and a `401` response carrying a `WWW-Authenticate: Bearer` challenge is the signal to obtain a token here. A `404` from this endpoint, with or without a TEA error body, means only that it is not implemented. A server that mounts the path without implementing the exchange should answer with the shared object-not-found response and `error: NOT_IMPLEMENTED`.
Servers may support additional grant types for federated identity, for example SAML 2.0 assertions (RFC 7522) or JWT assertions (RFC 7523), and may authenticate the client with mutual TLS (RFC 8705) instead of Basic. Whichever grant type is used, the token returned by this endpoint is the only credential accepted on the other TEA endpoints.
RFC 8693 token exchange (`urn:ietf:params:oauth:grant-type:token-exchange`) is outside the scope of the TEA 1.0 interoperable authentication profile. TEA 1.0 does not specify the request or response contract for this grant. Implementations may support it as an extension by separate agreement, but clients shall not assume its availability based solely on TEA 1.0 conformance. Such extensions do not remove the requirement for servers requiring authentication to support the `client_credentials` baseline.
The access token is opaque to the client: clients shall not inspect, parse, or depend on its contents.
The empty security requirement on this operation does not authorize anonymous `client_credentials` issuance. It only allows the alternate client-authentication methods described above (for example, mutual TLS, JWT client assertion (RFC 7523), or credentials in the request body). For the baseline `client_credentials` grant with HTTP Basic, unauthenticated requests shall not be accepted: servers shall respond with `401`, `error: invalid_client`, and a `WWW-Authenticate: Basic` challenge (see `401-token-error`; RFC 6749 section 5.2).
Takes any type of body and a specified content type.
Corresponds with POST /token (the `RequestToken` operationId).
func (*Client) RequestTokenWithFormdataBody ¶
func (c *Client) RequestTokenWithFormdataBody(ctx context.Context, body RequestTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
RequestTokenWithFormdataBody Exchange credentials for a TEA access token
Exchange credentials for a TEA access token.
A TEA server that requires authentication on any of its endpoints shall implement this endpoint, and shall support the `client_credentials` grant type with HTTP Basic client authentication (RFC 6749 section 2.3.1, RFC 7617): the API key identifier is sent as the user-id and the API key secret as the password. A server that requires no authentication need not implement it.
Clients do not probe this endpoint to discover whether authentication is required: they issue the resource request, and a `401` response carrying a `WWW-Authenticate: Bearer` challenge is the signal to obtain a token here. A `404` from this endpoint, with or without a TEA error body, means only that it is not implemented. A server that mounts the path without implementing the exchange should answer with the shared object-not-found response and `error: NOT_IMPLEMENTED`.
Servers may support additional grant types for federated identity, for example SAML 2.0 assertions (RFC 7522) or JWT assertions (RFC 7523), and may authenticate the client with mutual TLS (RFC 8705) instead of Basic. Whichever grant type is used, the token returned by this endpoint is the only credential accepted on the other TEA endpoints.
RFC 8693 token exchange (`urn:ietf:params:oauth:grant-type:token-exchange`) is outside the scope of the TEA 1.0 interoperable authentication profile. TEA 1.0 does not specify the request or response contract for this grant. Implementations may support it as an extension by separate agreement, but clients shall not assume its availability based solely on TEA 1.0 conformance. Such extensions do not remove the requirement for servers requiring authentication to support the `client_credentials` baseline.
The access token is opaque to the client: clients shall not inspect, parse, or depend on its contents.
The empty security requirement on this operation does not authorize anonymous `client_credentials` issuance. It only allows the alternate client-authentication methods described above (for example, mutual TLS, JWT client assertion (RFC 7523), or credentials in the request body). For the baseline `client_credentials` grant with HTTP Basic, unauthenticated requests shall not be accepted: servers shall respond with `401`, `error: invalid_client`, and a `WWW-Authenticate: Basic` challenge (see `401-token-error`; RFC 6749 section 5.2).
Takes a body of the `application/x-www-form-urlencoded` content type.
Corresponds with POST /token (the `RequestToken` operationId).
type ClientInterface ¶
type ClientInterface interface {
// GetLatestArtifact Get the metadata of the latest TEA Artifact revision
//
// Get metadata for the latest revision of a specific TEA Artifact, that is, the
// revision with the greatest published `version`.
//
// Corresponds with GET /artifact/{uuid}/latest (the `GetLatestArtifact` operationId).
GetLatestArtifact(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadLatestArtifact Download the content of the latest TEA Artifact revision
//
// Download the content of the latest revision of a specific TEA Artifact.
//
// Equivalent to the versioned download endpoint, resolving to the revision with
// the greatest published `version` — the same revision `/artifact/{uuid}/latest`
// reports. The content this returns changes when a new revision is published, so
// unlike the versioned endpoint the response is not immutable: caches shall
// revalidate it via `ETag` for the HTTP representation selected after negotiation.
// The `Content-Location` header is an absolute versioned URL including the API
// base, version path, and `mediaType` query parameter. That URL identifies the
// revision and format; HTTP content coding can still be negotiated.
//
// When serving the content itself (`200`), servers shall return a strong `ETag`
// for the HTTP representation selected after negotiation, including content
// coding, and shall honor `If-None-Match` with `304`.
// `ETag` is the only conditional validator for these downloads. Servers that support
// `HEAD` for this operation shall return the same headers as `GET` without a response
// body. `302` redirects are outside conditional semantics: `If-None-Match` applies
// only to the TEA-hosted download response, not to following an external `Location`.
//
// Corresponds with GET /artifact/{uuid}/latest/download (the `DownloadLatestArtifact` operationId).
DownloadLatestArtifact(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadLatestArtifactSignature Download the signature of the latest TEA Artifact revision
//
// Download the detached signature for the latest revision of a specific TEA Artifact.
//
// Equivalent to the versioned signature endpoint, resolving to the revision with
// the greatest published `version` — the same revision `/artifact/{uuid}/latest`
// reports. As with the latest content endpoint, the response is not immutable and
// caches shall revalidate it via `ETag` for the HTTP representation selected after
// negotiation. `Content-Location` is an absolute versioned signature URL including
// the API base, version path, and `mediaType` query parameter. That URL identifies
// the revision and format; HTTP content coding can still be negotiated.
//
// When serving the signature itself (`200`), servers shall return a strong `ETag`
// for the HTTP representation selected after negotiation, including content
// coding, and shall honor `If-None-Match` with `304`.
// `ETag` is the only conditional validator for these downloads. Servers that support
// `HEAD` for this operation shall return the same headers as `GET` without a response
// body. `302` redirects are outside conditional semantics: `If-None-Match` applies
// only to the TEA-hosted download response, not to following an external `Location`.
//
// `404` distinguishes the cases by TEA error body: `OBJECT_UNKNOWN` when the
// artifact revision is unknown (or concealed), and `SIGNATURE_NOT_FOUND` when the
// revision exists but the selected format has no signature published. A server
// concealing an artifact from a client shall answer `OBJECT_UNKNOWN` for every
// sub-resource of it, including signatures.
//
// Corresponds with GET /artifact/{uuid}/latest/signature/download (the `DownloadLatestArtifactSignature` operationId).
DownloadLatestArtifactSignature(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactSignatureParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetArtifactByVersion Get the metadata of one TEA Artifact revision
//
// Get metadata for a specific revision of a specific TEA Artifact.
//
// Corresponds with GET /artifact/{uuid}/{artifactVersion} (the `GetArtifactByVersion` operationId).
GetArtifactByVersion(ctx context.Context, uuid Uuid, artifactVersion int, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadArtifactByVersion Download the content of one TEA Artifact revision
//
// Download the content of a specific revision of a specific TEA Artifact.
//
// This endpoint returns the bytes of one `format` of the artifact revision. It is
// how a TEA server hosts artifact content itself: a format that has no external
// `url` is retrieved from here, selected by its `mediaType`. A format that has a
// `url` is retrieved from that external location instead, and this endpoint is not
// required to serve it.
//
// A TEA access token is sent only to the TEA server's own API base URL. External
// `url` targets are retrieved without it. They are openly accessible or require
// credentials the client arranges separately. Expiring storage links should not
// be published in `url`; the server answers from this endpoint, including with `302`.
//
// When serving the content itself (`200`), servers shall return a strong `ETag`
// for the HTTP representation selected after negotiation, including content
// coding, and shall honor `If-None-Match` with `304`.
// `ETag` is the only conditional validator for these downloads. Servers that support
// `HEAD` for this operation shall return the same headers as `GET` without a response
// body. `302` redirects are outside conditional semantics: `If-None-Match` applies
// only to the TEA-hosted download response, not to following an external `Location`.
//
// How long a cache may retain the response depends on whether the content is
// publicly accessible: see `artifact-cache-control-immutable`. Immutability does
// not imply that shared caches may store access-controlled responses. Successful
// responses include `Content-Location` as an absolute URL of this versioned
// download including the `mediaType` query parameter. That URL identifies the
// revision and format; HTTP content coding can still be negotiated.
//
// Corresponds with GET /artifact/{uuid}/{artifactVersion}/download (the `DownloadArtifactByVersion` operationId).
DownloadArtifactByVersion(ctx context.Context, uuid Uuid, artifactVersion int, params *DownloadArtifactByVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DownloadArtifactSignatureByVersion Download the signature of one TEA Artifact revision
//
// Download the detached signature for one format of a specific revision of a
// specific TEA Artifact.
//
// This is the counterpart of the artifact content endpoint, for TEA servers that
// host signatures themselves: a format that has no external `signatureUrl` is
// retrieved from here, selected by its `mediaType`. A format that has a
// `signatureUrl` is retrieved from that external location instead, and this
// endpoint is not required to serve it.
//
// Signatures are per format: each format of a revision is a distinct sequence of
// bytes and therefore has its own signature. The `mediaType` parameter selects which
// format's signature is returned, not the format of the signature itself.
//
// This specification makes no assumption about the signature technology in use, and
// does not model the signing algorithm, key, or certificate chain; the response is
// the signature as published. A client that cannot determine how to verify what it
// receives should treat the signature as unusable rather than as invalid.
//
// `404` distinguishes the cases by TEA error body: `OBJECT_UNKNOWN` when the
// artifact revision is unknown (or concealed), and `SIGNATURE_NOT_FOUND` when the
// revision exists but the selected format has no signature published. A server
// concealing an artifact from a client shall answer `OBJECT_UNKNOWN` for every
// sub-resource of it, including signatures.
//
// When serving the signature itself (`200`), servers shall return a strong `ETag`
// for the HTTP representation selected after negotiation, including content
// coding, and shall honor `If-None-Match` with `304`.
// `ETag` is the only conditional validator for these downloads. Servers that support
// `HEAD` for this operation shall return the same headers as `GET` without a response
// body.
// `302` redirects are outside conditional semantics: `If-None-Match` applies only
// to the TEA-hosted download response, not to following an external `Location`.
// Successful responses include `Content-Location` as an absolute URL of this
// versioned signature download including the `mediaType` query parameter. That URL
// identifies the revision and format; HTTP content coding can still be negotiated.
//
// Corresponds with GET /artifact/{uuid}/{artifactVersion}/signature/download (the `DownloadArtifactSignatureByVersion` operationId).
DownloadArtifactSignatureByVersion(ctx context.Context, uuid Uuid, artifactVersion int, params *DownloadArtifactSignatureByVersionParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetComponent Get a TEA Component
//
// Corresponds with GET /component/{uuid} (the `GetComponent` operationId).
GetComponent(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetComponentCle Get the lifecycle events of a TEA Component
//
// Get the CLE (Common Lifecycle Enumeration) data for a TEA Component.
//
// Corresponds with GET /component/{uuid}/cle (the `GetComponentCle` operationId).
GetComponentCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListComponentReleases List the releases of a TEA Component
//
// Get releases of the component.
//
// Corresponds with GET /component/{uuid}/releases (the `ListComponentReleases` operationId).
ListComponentReleases(ctx context.Context, uuid Uuid, params *ListComponentReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetComponentRelease Get a TEA Component Release with its latest collection
//
// Get the TEA Component Release with its latest collection.
//
// Corresponds with GET /componentRelease/{uuid} (the `GetComponentRelease` operationId).
GetComponentRelease(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetComponentReleaseCle Get the lifecycle events of a TEA Component Release
//
// Get the CLE (Common Lifecycle Enumeration) data for a TEA Component Release.
//
// Corresponds with GET /componentRelease/{uuid}/cle (the `GetComponentReleaseCle` operationId).
GetComponentReleaseCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLatestComponentReleaseCollection Get the latest collection of a TEA Component Release
//
// Get the latest TEA Collection belonging to the TEA Component Release, that is,
// the collection with the greatest published `version`.
//
// `404` means the release is unknown; a release always has a latest collection.
//
// Corresponds with GET /componentRelease/{uuid}/collection/latest (the `GetLatestComponentReleaseCollection` operationId).
GetLatestComponentReleaseCollection(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetComponentReleaseCollectionByVersion Get one collection version of a TEA Component Release
//
// Get a specific Collection (by version) for a TEA Component Release by its UUID.
//
// Corresponds with GET /componentRelease/{uuid}/collection/{collectionVersion} (the `GetComponentReleaseCollectionByVersion` operationId).
GetComponentReleaseCollectionByVersion(ctx context.Context, uuid Uuid, collectionVersion int, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListComponentReleaseCollections List the collections of a TEA Component Release
//
// Get the TEA Collections belonging to the TEA Component Release.
//
// Corresponds with GET /componentRelease/{uuid}/collections (the `ListComponentReleaseCollections` operationId).
ListComponentReleaseCollections(ctx context.Context, uuid Uuid, params *ListComponentReleaseCollectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryComponentReleases Query TEA Component Releases
//
// Returns a list of TEA component releases. Note that multiple component releases may match.
//
// Corresponds with GET /componentReleases (the `QueryComponentReleases` operationId).
QueryComponentReleases(ctx context.Context, params *QueryComponentReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryComponents Query TEA Components
//
// Returns a list of TEA components. Note that multiple components may match.
//
// Corresponds with GET /components (the `QueryComponents` operationId).
QueryComponents(ctx context.Context, params *QueryComponentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// Discover Resolve an identifier to TEA Product Releases
//
// Discovery endpoint which resolves an identifier into one or more product release
// UUIDs.
//
// Exactly one of the `tei` and `purl` query parameters shall be provided. A request
// with neither, or with both, is rejected with `400`. OpenAPI cannot express this
// constraint on query parameters, so both are declared optional here.
//
// Discovery by TEI resolves the product across TEA servers, using the domain carried
// by the TEI (typically after DNS / `.well-known` selection of an API host).
// Discovery by PURL requires an already-known API base URL and resolves within that
// server's inventory.
//
// A successful response is a non-empty JSON array of `discovery-info` objects,
// ordered by priority when multiple product releases match (first entry highest).
// If the server does not resolve the identifier, it responds with `404` and
// `error: OBJECT_UNKNOWN`, not `200` with an empty array.
//
// Parameter values are the identifier itself (not a pre-encoded wire form). Clients
// shall apply query-parameter serialization once. Servers shall interpret the value
// after one query-decoding step. Escapes that are part of a PURL value are preserved
// by that single decode.
//
// Example request lines after serialization:
// - `.../discovery?tei=tei%3A%2F%2Fproducts.example.com%2Fuuid%2F47f51950-b0e2-11f1-adc2-1a52914d44b2`
// - `.../discovery?purl=pkg%3Amaven%2Forg.apache.logging.log4j%2Flog4j-core%402.24.3`
//
// Unlike `/token`, this operation is required on a conforming TEA API base for the
// advertised version. A conforming `404` uses the shared object-not-found response
// (`error-response`, typically `OBJECT_UNKNOWN`) and means this server does not resolve
// the identifier, not that `/discovery` is optional or unimplemented. Client
// recognition of that body and the terminal outcome are defined in the discovery
// document.
//
// Corresponds with GET /discovery (the `Discover` operationId).
Discover(ctx context.Context, params *DiscoverParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProduct Get a TEA Product
//
// Get a TEA Product by UUID.
//
// Corresponds with GET /product/{uuid} (the `GetProduct` operationId).
GetProduct(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProductCle Get the lifecycle events of a TEA Product
//
// Get the CLE (Common Lifecycle Enumeration) data for a TEA Product.
//
// Corresponds with GET /product/{uuid}/cle (the `GetProductCle` operationId).
GetProductCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListProductReleases List the releases of a TEA Product
//
// Get releases of the product.
//
// Corresponds with GET /product/{uuid}/releases (the `ListProductReleases` operationId).
ListProductReleases(ctx context.Context, uuid Uuid, params *ListProductReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProductRelease Get a TEA Product Release with its latest collection
//
// Get the TEA Product Release with its latest collection.
//
// Corresponds with GET /productRelease/{uuid} (the `GetProductRelease` operationId).
GetProductRelease(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProductReleaseCle Get the lifecycle events of a TEA Product Release
//
// Get the CLE (Common Lifecycle Enumeration) data for a TEA Product Release.
//
// Corresponds with GET /productRelease/{uuid}/cle (the `GetProductReleaseCle` operationId).
GetProductReleaseCle(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLatestProductReleaseCollection Get the latest collection of a TEA Product Release
//
// Get the latest TEA Collection belonging to the TEA Product Release, that is,
// the collection with the greatest published `version`.
//
// `404` means the release is unknown; a release always has a latest collection.
//
// Corresponds with GET /productRelease/{uuid}/collection/latest (the `GetLatestProductReleaseCollection` operationId).
GetLatestProductReleaseCollection(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetProductReleaseCollectionByVersion Get one collection version of a TEA Product Release
//
// Get a specific Collection (by version) for a TEA Product Release by its UUID.
//
// Corresponds with GET /productRelease/{uuid}/collection/{collectionVersion} (the `GetProductReleaseCollectionByVersion` operationId).
GetProductReleaseCollectionByVersion(ctx context.Context, uuid Uuid, collectionVersion int, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListProductReleaseCollections List the collections of a TEA Product Release
//
// Get the TEA Collections belonging to the TEA Product Release.
//
// Corresponds with GET /productRelease/{uuid}/collections (the `ListProductReleaseCollections` operationId).
ListProductReleaseCollections(ctx context.Context, uuid Uuid, params *ListProductReleaseCollectionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryProductReleases Query TEA Product Releases
//
// Returns a list of TEA product releases. Note that multiple product releases may match.
//
// Corresponds with GET /productReleases (the `QueryProductReleases` operationId).
QueryProductReleases(ctx context.Context, params *QueryProductReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// QueryProducts Query TEA Products
//
// Returns a list of TEA products. Note that multiple products may match.
//
// Corresponds with GET /products (the `QueryProducts` operationId).
QueryProducts(ctx context.Context, params *QueryProductsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RequestTokenWithBody Exchange credentials for a TEA access token
//
// Exchange credentials for a TEA access token.
//
// A TEA server that requires authentication on any of its endpoints shall
// implement this endpoint, and shall support the `client_credentials` grant type
// with HTTP Basic client authentication (RFC 6749 section 2.3.1, RFC 7617): the
// API key identifier is sent as the user-id and the API key secret as the
// password. A server that requires no authentication need not implement it.
//
// Clients do not probe this endpoint to discover whether authentication is
// required: they issue the resource request, and a `401` response carrying a
// `WWW-Authenticate: Bearer` challenge is the signal to obtain a token here. A
// `404` from this endpoint, with or without a TEA error body, means only that it is
// not implemented. A server that mounts the path without implementing the exchange
// should answer with the shared object-not-found response and `error:
// NOT_IMPLEMENTED`.
//
// Servers may support additional grant types for federated identity, for example
// SAML 2.0 assertions (RFC 7522) or JWT assertions (RFC 7523), and may authenticate
// the client with mutual TLS (RFC 8705) instead of Basic. Whichever grant type is
// used, the token returned by this endpoint is the only credential accepted on the
// other TEA endpoints.
//
// RFC 8693 token exchange (`urn:ietf:params:oauth:grant-type:token-exchange`) is
// outside the scope of the TEA 1.0 interoperable authentication profile. TEA 1.0 does
// not specify the request or response contract for this grant. Implementations may
// support it as an extension by separate agreement, but clients shall not assume its
// availability based solely on TEA 1.0 conformance. Such extensions do not remove the
// requirement for servers requiring authentication to support the
// `client_credentials` baseline.
//
// The access token is opaque to the client: clients shall not inspect, parse, or
// depend on its contents.
//
// The empty security requirement on this operation does not authorize anonymous
// `client_credentials` issuance. It only allows the alternate client-authentication
// methods described above (for example, mutual TLS, JWT client assertion
// (RFC 7523), or credentials in the request body). For the baseline
// `client_credentials` grant with HTTP Basic, unauthenticated requests shall not be
// accepted: servers shall respond with `401`, `error: invalid_client`, and a
// `WWW-Authenticate: Basic` challenge (see `401-token-error`; RFC 6749 section 5.2).
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /token (the `RequestToken` operationId).
RequestTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// RequestTokenWithFormdataBody Exchange credentials for a TEA access token
//
// Exchange credentials for a TEA access token.
//
// A TEA server that requires authentication on any of its endpoints shall
// implement this endpoint, and shall support the `client_credentials` grant type
// with HTTP Basic client authentication (RFC 6749 section 2.3.1, RFC 7617): the
// API key identifier is sent as the user-id and the API key secret as the
// password. A server that requires no authentication need not implement it.
//
// Clients do not probe this endpoint to discover whether authentication is
// required: they issue the resource request, and a `401` response carrying a
// `WWW-Authenticate: Bearer` challenge is the signal to obtain a token here. A
// `404` from this endpoint, with or without a TEA error body, means only that it is
// not implemented. A server that mounts the path without implementing the exchange
// should answer with the shared object-not-found response and `error:
// NOT_IMPLEMENTED`.
//
// Servers may support additional grant types for federated identity, for example
// SAML 2.0 assertions (RFC 7522) or JWT assertions (RFC 7523), and may authenticate
// the client with mutual TLS (RFC 8705) instead of Basic. Whichever grant type is
// used, the token returned by this endpoint is the only credential accepted on the
// other TEA endpoints.
//
// RFC 8693 token exchange (`urn:ietf:params:oauth:grant-type:token-exchange`) is
// outside the scope of the TEA 1.0 interoperable authentication profile. TEA 1.0 does
// not specify the request or response contract for this grant. Implementations may
// support it as an extension by separate agreement, but clients shall not assume its
// availability based solely on TEA 1.0 conformance. Such extensions do not remove the
// requirement for servers requiring authentication to support the
// `client_credentials` baseline.
//
// The access token is opaque to the client: clients shall not inspect, parse, or
// depend on its contents.
//
// The empty security requirement on this operation does not authorize anonymous
// `client_credentials` issuance. It only allows the alternate client-authentication
// methods described above (for example, mutual TLS, JWT client assertion
// (RFC 7523), or credentials in the request body). For the baseline
// `client_credentials` grant with HTTP Basic, unauthenticated requests shall not be
// accepted: servers shall respond with `401`, `error: invalid_client`, and a
// `WWW-Authenticate: Basic` challenge (see `401-token-error`; RFC 6749 section 5.2).
//
// Takes a body of the `application/x-www-form-urlencoded` content type.
//
// Corresponds with POST /token (the `RequestToken` operationId).
RequestTokenWithFormdataBody(ctx context.Context, body RequestTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DiscoverWithResponse ¶
func (c *ClientWithResponses) DiscoverWithResponse(ctx context.Context, params *DiscoverParams, reqEditors ...RequestEditorFn) (*DiscoverResponse, error)
DiscoverWithResponse Resolve an identifier to TEA Product Releases
Discovery endpoint which resolves an identifier into one or more product release UUIDs.
Exactly one of the `tei` and `purl` query parameters shall be provided. A request with neither, or with both, is rejected with `400`. OpenAPI cannot express this constraint on query parameters, so both are declared optional here.
Discovery by TEI resolves the product across TEA servers, using the domain carried by the TEI (typically after DNS / `.well-known` selection of an API host). Discovery by PURL requires an already-known API base URL and resolves within that server's inventory.
A successful response is a non-empty JSON array of `discovery-info` objects, ordered by priority when multiple product releases match (first entry highest). If the server does not resolve the identifier, it responds with `404` and `error: OBJECT_UNKNOWN`, not `200` with an empty array.
Parameter values are the identifier itself (not a pre-encoded wire form). Clients shall apply query-parameter serialization once. Servers shall interpret the value after one query-decoding step. Escapes that are part of a PURL value are preserved by that single decode.
Example request lines after serialization: - `.../discovery?tei=tei%3A%2F%2Fproducts.example.com%2Fuuid%2F47f51950-b0e2-11f1-adc2-1a52914d44b2` - `.../discovery?purl=pkg%3Amaven%2Forg.apache.logging.log4j%2Flog4j-core%402.24.3`
Unlike `/token`, this operation is required on a conforming TEA API base for the advertised version. A conforming `404` uses the shared object-not-found response (`error-response`, typically `OBJECT_UNKNOWN`) and means this server does not resolve the identifier, not that `/discovery` is optional or unimplemented. Client recognition of that body and the terminal outcome are defined in the discovery document.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /discovery (the `Discover` operationId).
func (*ClientWithResponses) DownloadArtifactByVersionWithResponse ¶
func (c *ClientWithResponses) DownloadArtifactByVersionWithResponse(ctx context.Context, uuid Uuid, artifactVersion int, params *DownloadArtifactByVersionParams, reqEditors ...RequestEditorFn) (*DownloadArtifactByVersionResponse, error)
DownloadArtifactByVersionWithResponse Download the content of one TEA Artifact revision
Download the content of a specific revision of a specific TEA Artifact.
This endpoint returns the bytes of one `format` of the artifact revision. It is how a TEA server hosts artifact content itself: a format that has no external `url` is retrieved from here, selected by its `mediaType`. A format that has a `url` is retrieved from that external location instead, and this endpoint is not required to serve it.
A TEA access token is sent only to the TEA server's own API base URL. External `url` targets are retrieved without it. They are openly accessible or require credentials the client arranges separately. Expiring storage links should not be published in `url`; the server answers from this endpoint, including with `302`.
When serving the content itself (`200`), servers shall return a strong `ETag` for the HTTP representation selected after negotiation, including content coding, and shall honor `If-None-Match` with `304`. `ETag` is the only conditional validator for these downloads. Servers that support `HEAD` for this operation shall return the same headers as `GET` without a response body. `302` redirects are outside conditional semantics: `If-None-Match` applies only to the TEA-hosted download response, not to following an external `Location`.
How long a cache may retain the response depends on whether the content is publicly accessible: see `artifact-cache-control-immutable`. Immutability does not imply that shared caches may store access-controlled responses. Successful responses include `Content-Location` as an absolute URL of this versioned download including the `mediaType` query parameter. That URL identifies the revision and format; HTTP content coding can still be negotiated.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /artifact/{uuid}/{artifactVersion}/download (the `DownloadArtifactByVersion` operationId).
func (*ClientWithResponses) DownloadArtifactSignatureByVersionWithResponse ¶
func (c *ClientWithResponses) DownloadArtifactSignatureByVersionWithResponse(ctx context.Context, uuid Uuid, artifactVersion int, params *DownloadArtifactSignatureByVersionParams, reqEditors ...RequestEditorFn) (*DownloadArtifactSignatureByVersionResponse, error)
DownloadArtifactSignatureByVersionWithResponse Download the signature of one TEA Artifact revision
Download the detached signature for one format of a specific revision of a specific TEA Artifact.
This is the counterpart of the artifact content endpoint, for TEA servers that host signatures themselves: a format that has no external `signatureUrl` is retrieved from here, selected by its `mediaType`. A format that has a `signatureUrl` is retrieved from that external location instead, and this endpoint is not required to serve it.
Signatures are per format: each format of a revision is a distinct sequence of bytes and therefore has its own signature. The `mediaType` parameter selects which format's signature is returned, not the format of the signature itself.
This specification makes no assumption about the signature technology in use, and does not model the signing algorithm, key, or certificate chain; the response is the signature as published. A client that cannot determine how to verify what it receives should treat the signature as unusable rather than as invalid.
`404` distinguishes the cases by TEA error body: `OBJECT_UNKNOWN` when the artifact revision is unknown (or concealed), and `SIGNATURE_NOT_FOUND` when the revision exists but the selected format has no signature published. A server concealing an artifact from a client shall answer `OBJECT_UNKNOWN` for every sub-resource of it, including signatures.
When serving the signature itself (`200`), servers shall return a strong `ETag` for the HTTP representation selected after negotiation, including content coding, and shall honor `If-None-Match` with `304`. `ETag` is the only conditional validator for these downloads. Servers that support `HEAD` for this operation shall return the same headers as `GET` without a response body. `302` redirects are outside conditional semantics: `If-None-Match` applies only to the TEA-hosted download response, not to following an external `Location`. Successful responses include `Content-Location` as an absolute URL of this versioned signature download including the `mediaType` query parameter. That URL identifies the revision and format; HTTP content coding can still be negotiated.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /artifact/{uuid}/{artifactVersion}/signature/download (the `DownloadArtifactSignatureByVersion` operationId).
func (*ClientWithResponses) DownloadLatestArtifactSignatureWithResponse ¶
func (c *ClientWithResponses) DownloadLatestArtifactSignatureWithResponse(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactSignatureParams, reqEditors ...RequestEditorFn) (*DownloadLatestArtifactSignatureResponse, error)
DownloadLatestArtifactSignatureWithResponse Download the signature of the latest TEA Artifact revision
Download the detached signature for the latest revision of a specific TEA Artifact.
Equivalent to the versioned signature endpoint, resolving to the revision with the greatest published `version` — the same revision `/artifact/{uuid}/latest` reports. As with the latest content endpoint, the response is not immutable and caches shall revalidate it via `ETag` for the HTTP representation selected after negotiation. `Content-Location` is an absolute versioned signature URL including the API base, version path, and `mediaType` query parameter. That URL identifies the revision and format; HTTP content coding can still be negotiated.
When serving the signature itself (`200`), servers shall return a strong `ETag` for the HTTP representation selected after negotiation, including content coding, and shall honor `If-None-Match` with `304`. `ETag` is the only conditional validator for these downloads. Servers that support `HEAD` for this operation shall return the same headers as `GET` without a response body. `302` redirects are outside conditional semantics: `If-None-Match` applies only to the TEA-hosted download response, not to following an external `Location`.
`404` distinguishes the cases by TEA error body: `OBJECT_UNKNOWN` when the artifact revision is unknown (or concealed), and `SIGNATURE_NOT_FOUND` when the revision exists but the selected format has no signature published. A server concealing an artifact from a client shall answer `OBJECT_UNKNOWN` for every sub-resource of it, including signatures.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /artifact/{uuid}/latest/signature/download (the `DownloadLatestArtifactSignature` operationId).
func (*ClientWithResponses) DownloadLatestArtifactWithResponse ¶
func (c *ClientWithResponses) DownloadLatestArtifactWithResponse(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactParams, reqEditors ...RequestEditorFn) (*DownloadLatestArtifactResponse, error)
DownloadLatestArtifactWithResponse Download the content of the latest TEA Artifact revision
Download the content of the latest revision of a specific TEA Artifact.
Equivalent to the versioned download endpoint, resolving to the revision with the greatest published `version` — the same revision `/artifact/{uuid}/latest` reports. The content this returns changes when a new revision is published, so unlike the versioned endpoint the response is not immutable: caches shall revalidate it via `ETag` for the HTTP representation selected after negotiation. The `Content-Location` header is an absolute versioned URL including the API base, version path, and `mediaType` query parameter. That URL identifies the revision and format; HTTP content coding can still be negotiated.
When serving the content itself (`200`), servers shall return a strong `ETag` for the HTTP representation selected after negotiation, including content coding, and shall honor `If-None-Match` with `304`. `ETag` is the only conditional validator for these downloads. Servers that support `HEAD` for this operation shall return the same headers as `GET` without a response body. `302` redirects are outside conditional semantics: `If-None-Match` applies only to the TEA-hosted download response, not to following an external `Location`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /artifact/{uuid}/latest/download (the `DownloadLatestArtifact` operationId).
func (*ClientWithResponses) GetArtifactByVersionWithResponse ¶
func (c *ClientWithResponses) GetArtifactByVersionWithResponse(ctx context.Context, uuid Uuid, artifactVersion int, reqEditors ...RequestEditorFn) (*GetArtifactByVersionResponse, error)
GetArtifactByVersionWithResponse Get the metadata of one TEA Artifact revision
Get metadata for a specific revision of a specific TEA Artifact.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /artifact/{uuid}/{artifactVersion} (the `GetArtifactByVersion` operationId).
func (*ClientWithResponses) GetComponentCleWithResponse ¶
func (c *ClientWithResponses) GetComponentCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentCleResponse, error)
GetComponentCleWithResponse Get the lifecycle events of a TEA Component
Get the CLE (Common Lifecycle Enumeration) data for a TEA Component.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /component/{uuid}/cle (the `GetComponentCle` operationId).
func (*ClientWithResponses) GetComponentReleaseCleWithResponse ¶
func (c *ClientWithResponses) GetComponentReleaseCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentReleaseCleResponse, error)
GetComponentReleaseCleWithResponse Get the lifecycle events of a TEA Component Release
Get the CLE (Common Lifecycle Enumeration) data for a TEA Component Release.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /componentRelease/{uuid}/cle (the `GetComponentReleaseCle` operationId).
func (*ClientWithResponses) GetComponentReleaseCollectionByVersionWithResponse ¶
func (c *ClientWithResponses) GetComponentReleaseCollectionByVersionWithResponse(ctx context.Context, uuid Uuid, collectionVersion int, reqEditors ...RequestEditorFn) (*GetComponentReleaseCollectionByVersionResponse, error)
GetComponentReleaseCollectionByVersionWithResponse Get one collection version of a TEA Component Release
Get a specific Collection (by version) for a TEA Component Release by its UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /componentRelease/{uuid}/collection/{collectionVersion} (the `GetComponentReleaseCollectionByVersion` operationId).
func (*ClientWithResponses) GetComponentReleaseWithResponse ¶
func (c *ClientWithResponses) GetComponentReleaseWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentReleaseResponse, error)
GetComponentReleaseWithResponse Get a TEA Component Release with its latest collection
Get the TEA Component Release with its latest collection.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /componentRelease/{uuid} (the `GetComponentRelease` operationId).
func (*ClientWithResponses) GetComponentWithResponse ¶
func (c *ClientWithResponses) GetComponentWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentResponse, error)
GetComponentWithResponse Get a TEA Component
Returns a wrapper object for the known response body format(s).
Corresponds with GET /component/{uuid} (the `GetComponent` operationId).
func (*ClientWithResponses) GetLatestArtifactWithResponse ¶
func (c *ClientWithResponses) GetLatestArtifactWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetLatestArtifactResponse, error)
GetLatestArtifactWithResponse Get the metadata of the latest TEA Artifact revision
Get metadata for the latest revision of a specific TEA Artifact, that is, the revision with the greatest published `version`.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /artifact/{uuid}/latest (the `GetLatestArtifact` operationId).
func (*ClientWithResponses) GetLatestComponentReleaseCollectionWithResponse ¶
func (c *ClientWithResponses) GetLatestComponentReleaseCollectionWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetLatestComponentReleaseCollectionResponse, error)
GetLatestComponentReleaseCollectionWithResponse Get the latest collection of a TEA Component Release
Get the latest TEA Collection belonging to the TEA Component Release, that is, the collection with the greatest published `version`.
`404` means the release is unknown; a release always has a latest collection.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /componentRelease/{uuid}/collection/latest (the `GetLatestComponentReleaseCollection` operationId).
func (*ClientWithResponses) GetLatestProductReleaseCollectionWithResponse ¶
func (c *ClientWithResponses) GetLatestProductReleaseCollectionWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetLatestProductReleaseCollectionResponse, error)
GetLatestProductReleaseCollectionWithResponse Get the latest collection of a TEA Product Release
Get the latest TEA Collection belonging to the TEA Product Release, that is, the collection with the greatest published `version`.
`404` means the release is unknown; a release always has a latest collection.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /productRelease/{uuid}/collection/latest (the `GetLatestProductReleaseCollection` operationId).
func (*ClientWithResponses) GetProductCleWithResponse ¶
func (c *ClientWithResponses) GetProductCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductCleResponse, error)
GetProductCleWithResponse Get the lifecycle events of a TEA Product
Get the CLE (Common Lifecycle Enumeration) data for a TEA Product.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /product/{uuid}/cle (the `GetProductCle` operationId).
func (*ClientWithResponses) GetProductReleaseCleWithResponse ¶
func (c *ClientWithResponses) GetProductReleaseCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductReleaseCleResponse, error)
GetProductReleaseCleWithResponse Get the lifecycle events of a TEA Product Release
Get the CLE (Common Lifecycle Enumeration) data for a TEA Product Release.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /productRelease/{uuid}/cle (the `GetProductReleaseCle` operationId).
func (*ClientWithResponses) GetProductReleaseCollectionByVersionWithResponse ¶
func (c *ClientWithResponses) GetProductReleaseCollectionByVersionWithResponse(ctx context.Context, uuid Uuid, collectionVersion int, reqEditors ...RequestEditorFn) (*GetProductReleaseCollectionByVersionResponse, error)
GetProductReleaseCollectionByVersionWithResponse Get one collection version of a TEA Product Release
Get a specific Collection (by version) for a TEA Product Release by its UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /productRelease/{uuid}/collection/{collectionVersion} (the `GetProductReleaseCollectionByVersion` operationId).
func (*ClientWithResponses) GetProductReleaseWithResponse ¶
func (c *ClientWithResponses) GetProductReleaseWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductReleaseResponse, error)
GetProductReleaseWithResponse Get a TEA Product Release with its latest collection
Get the TEA Product Release with its latest collection.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /productRelease/{uuid} (the `GetProductRelease` operationId).
func (*ClientWithResponses) GetProductWithResponse ¶
func (c *ClientWithResponses) GetProductWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductResponse, error)
GetProductWithResponse Get a TEA Product
Get a TEA Product by UUID.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /product/{uuid} (the `GetProduct` operationId).
func (*ClientWithResponses) ListComponentReleaseCollectionsWithResponse ¶
func (c *ClientWithResponses) ListComponentReleaseCollectionsWithResponse(ctx context.Context, uuid Uuid, params *ListComponentReleaseCollectionsParams, reqEditors ...RequestEditorFn) (*ListComponentReleaseCollectionsResponse, error)
ListComponentReleaseCollectionsWithResponse List the collections of a TEA Component Release
Get the TEA Collections belonging to the TEA Component Release.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /componentRelease/{uuid}/collections (the `ListComponentReleaseCollections` operationId).
func (*ClientWithResponses) ListComponentReleasesWithResponse ¶
func (c *ClientWithResponses) ListComponentReleasesWithResponse(ctx context.Context, uuid Uuid, params *ListComponentReleasesParams, reqEditors ...RequestEditorFn) (*ListComponentReleasesResponse, error)
ListComponentReleasesWithResponse List the releases of a TEA Component
Get releases of the component.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /component/{uuid}/releases (the `ListComponentReleases` operationId).
func (*ClientWithResponses) ListProductReleaseCollectionsWithResponse ¶
func (c *ClientWithResponses) ListProductReleaseCollectionsWithResponse(ctx context.Context, uuid Uuid, params *ListProductReleaseCollectionsParams, reqEditors ...RequestEditorFn) (*ListProductReleaseCollectionsResponse, error)
ListProductReleaseCollectionsWithResponse List the collections of a TEA Product Release
Get the TEA Collections belonging to the TEA Product Release.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /productRelease/{uuid}/collections (the `ListProductReleaseCollections` operationId).
func (*ClientWithResponses) ListProductReleasesWithResponse ¶
func (c *ClientWithResponses) ListProductReleasesWithResponse(ctx context.Context, uuid Uuid, params *ListProductReleasesParams, reqEditors ...RequestEditorFn) (*ListProductReleasesResponse, error)
ListProductReleasesWithResponse List the releases of a TEA Product
Get releases of the product.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /product/{uuid}/releases (the `ListProductReleases` operationId).
func (*ClientWithResponses) QueryComponentReleasesWithResponse ¶
func (c *ClientWithResponses) QueryComponentReleasesWithResponse(ctx context.Context, params *QueryComponentReleasesParams, reqEditors ...RequestEditorFn) (*QueryComponentReleasesResponse, error)
QueryComponentReleasesWithResponse Query TEA Component Releases
Returns a list of TEA component releases. Note that multiple component releases may match.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /componentReleases (the `QueryComponentReleases` operationId).
func (*ClientWithResponses) QueryComponentsWithResponse ¶
func (c *ClientWithResponses) QueryComponentsWithResponse(ctx context.Context, params *QueryComponentsParams, reqEditors ...RequestEditorFn) (*QueryComponentsResponse, error)
QueryComponentsWithResponse Query TEA Components
Returns a list of TEA components. Note that multiple components may match.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /components (the `QueryComponents` operationId).
func (*ClientWithResponses) QueryProductReleasesWithResponse ¶
func (c *ClientWithResponses) QueryProductReleasesWithResponse(ctx context.Context, params *QueryProductReleasesParams, reqEditors ...RequestEditorFn) (*QueryProductReleasesResponse, error)
QueryProductReleasesWithResponse Query TEA Product Releases
Returns a list of TEA product releases. Note that multiple product releases may match.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /productReleases (the `QueryProductReleases` operationId).
func (*ClientWithResponses) QueryProductsWithResponse ¶
func (c *ClientWithResponses) QueryProductsWithResponse(ctx context.Context, params *QueryProductsParams, reqEditors ...RequestEditorFn) (*QueryProductsResponse, error)
QueryProductsWithResponse Query TEA Products
Returns a list of TEA products. Note that multiple products may match.
Returns a wrapper object for the known response body format(s).
Corresponds with GET /products (the `QueryProducts` operationId).
func (*ClientWithResponses) RequestTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) RequestTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestTokenResponse, error)
RequestTokenWithBodyWithResponse Exchange credentials for a TEA access token
Exchange credentials for a TEA access token.
A TEA server that requires authentication on any of its endpoints shall implement this endpoint, and shall support the `client_credentials` grant type with HTTP Basic client authentication (RFC 6749 section 2.3.1, RFC 7617): the API key identifier is sent as the user-id and the API key secret as the password. A server that requires no authentication need not implement it.
Clients do not probe this endpoint to discover whether authentication is required: they issue the resource request, and a `401` response carrying a `WWW-Authenticate: Bearer` challenge is the signal to obtain a token here. A `404` from this endpoint, with or without a TEA error body, means only that it is not implemented. A server that mounts the path without implementing the exchange should answer with the shared object-not-found response and `error: NOT_IMPLEMENTED`.
Servers may support additional grant types for federated identity, for example SAML 2.0 assertions (RFC 7522) or JWT assertions (RFC 7523), and may authenticate the client with mutual TLS (RFC 8705) instead of Basic. Whichever grant type is used, the token returned by this endpoint is the only credential accepted on the other TEA endpoints.
RFC 8693 token exchange (`urn:ietf:params:oauth:grant-type:token-exchange`) is outside the scope of the TEA 1.0 interoperable authentication profile. TEA 1.0 does not specify the request or response contract for this grant. Implementations may support it as an extension by separate agreement, but clients shall not assume its availability based solely on TEA 1.0 conformance. Such extensions do not remove the requirement for servers requiring authentication to support the `client_credentials` baseline.
The access token is opaque to the client: clients shall not inspect, parse, or depend on its contents.
The empty security requirement on this operation does not authorize anonymous `client_credentials` issuance. It only allows the alternate client-authentication methods described above (for example, mutual TLS, JWT client assertion (RFC 7523), or credentials in the request body). For the baseline `client_credentials` grant with HTTP Basic, unauthenticated requests shall not be accepted: servers shall respond with `401`, `error: invalid_client`, and a `WWW-Authenticate: Basic` challenge (see `401-token-error`; RFC 6749 section 5.2).
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /token (the `RequestToken` operationId).
func (*ClientWithResponses) RequestTokenWithFormdataBodyWithResponse ¶
func (c *ClientWithResponses) RequestTokenWithFormdataBodyWithResponse(ctx context.Context, body RequestTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*RequestTokenResponse, error)
RequestTokenWithFormdataBodyWithResponse Exchange credentials for a TEA access token
Exchange credentials for a TEA access token.
A TEA server that requires authentication on any of its endpoints shall implement this endpoint, and shall support the `client_credentials` grant type with HTTP Basic client authentication (RFC 6749 section 2.3.1, RFC 7617): the API key identifier is sent as the user-id and the API key secret as the password. A server that requires no authentication need not implement it.
Clients do not probe this endpoint to discover whether authentication is required: they issue the resource request, and a `401` response carrying a `WWW-Authenticate: Bearer` challenge is the signal to obtain a token here. A `404` from this endpoint, with or without a TEA error body, means only that it is not implemented. A server that mounts the path without implementing the exchange should answer with the shared object-not-found response and `error: NOT_IMPLEMENTED`.
Servers may support additional grant types for federated identity, for example SAML 2.0 assertions (RFC 7522) or JWT assertions (RFC 7523), and may authenticate the client with mutual TLS (RFC 8705) instead of Basic. Whichever grant type is used, the token returned by this endpoint is the only credential accepted on the other TEA endpoints.
RFC 8693 token exchange (`urn:ietf:params:oauth:grant-type:token-exchange`) is outside the scope of the TEA 1.0 interoperable authentication profile. TEA 1.0 does not specify the request or response contract for this grant. Implementations may support it as an extension by separate agreement, but clients shall not assume its availability based solely on TEA 1.0 conformance. Such extensions do not remove the requirement for servers requiring authentication to support the `client_credentials` baseline.
The access token is opaque to the client: clients shall not inspect, parse, or depend on its contents.
The empty security requirement on this operation does not authorize anonymous `client_credentials` issuance. It only allows the alternate client-authentication methods described above (for example, mutual TLS, JWT client assertion (RFC 7523), or credentials in the request body). For the baseline `client_credentials` grant with HTTP Basic, unauthenticated requests shall not be accepted: servers shall respond with `401`, `error: invalid_client`, and a `WWW-Authenticate: Basic` challenge (see `401-token-error`; RFC 6749 section 5.2).
Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /token (the `RequestToken` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetLatestArtifactWithResponse Get the metadata of the latest TEA Artifact revision
//
// Get metadata for the latest revision of a specific TEA Artifact, that is, the
// revision with the greatest published `version`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /artifact/{uuid}/latest (the `GetLatestArtifact` operationId).
GetLatestArtifactWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetLatestArtifactResponse, error)
// DownloadLatestArtifactWithResponse Download the content of the latest TEA Artifact revision
//
// Download the content of the latest revision of a specific TEA Artifact.
//
// Equivalent to the versioned download endpoint, resolving to the revision with
// the greatest published `version` — the same revision `/artifact/{uuid}/latest`
// reports. The content this returns changes when a new revision is published, so
// unlike the versioned endpoint the response is not immutable: caches shall
// revalidate it via `ETag` for the HTTP representation selected after negotiation.
// The `Content-Location` header is an absolute versioned URL including the API
// base, version path, and `mediaType` query parameter. That URL identifies the
// revision and format; HTTP content coding can still be negotiated.
//
// When serving the content itself (`200`), servers shall return a strong `ETag`
// for the HTTP representation selected after negotiation, including content
// coding, and shall honor `If-None-Match` with `304`.
// `ETag` is the only conditional validator for these downloads. Servers that support
// `HEAD` for this operation shall return the same headers as `GET` without a response
// body. `302` redirects are outside conditional semantics: `If-None-Match` applies
// only to the TEA-hosted download response, not to following an external `Location`.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /artifact/{uuid}/latest/download (the `DownloadLatestArtifact` operationId).
DownloadLatestArtifactWithResponse(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactParams, reqEditors ...RequestEditorFn) (*DownloadLatestArtifactResponse, error)
// DownloadLatestArtifactSignatureWithResponse Download the signature of the latest TEA Artifact revision
//
// Download the detached signature for the latest revision of a specific TEA Artifact.
//
// Equivalent to the versioned signature endpoint, resolving to the revision with
// the greatest published `version` — the same revision `/artifact/{uuid}/latest`
// reports. As with the latest content endpoint, the response is not immutable and
// caches shall revalidate it via `ETag` for the HTTP representation selected after
// negotiation. `Content-Location` is an absolute versioned signature URL including
// the API base, version path, and `mediaType` query parameter. That URL identifies
// the revision and format; HTTP content coding can still be negotiated.
//
// When serving the signature itself (`200`), servers shall return a strong `ETag`
// for the HTTP representation selected after negotiation, including content
// coding, and shall honor `If-None-Match` with `304`.
// `ETag` is the only conditional validator for these downloads. Servers that support
// `HEAD` for this operation shall return the same headers as `GET` without a response
// body. `302` redirects are outside conditional semantics: `If-None-Match` applies
// only to the TEA-hosted download response, not to following an external `Location`.
//
// `404` distinguishes the cases by TEA error body: `OBJECT_UNKNOWN` when the
// artifact revision is unknown (or concealed), and `SIGNATURE_NOT_FOUND` when the
// revision exists but the selected format has no signature published. A server
// concealing an artifact from a client shall answer `OBJECT_UNKNOWN` for every
// sub-resource of it, including signatures.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /artifact/{uuid}/latest/signature/download (the `DownloadLatestArtifactSignature` operationId).
DownloadLatestArtifactSignatureWithResponse(ctx context.Context, uuid Uuid, params *DownloadLatestArtifactSignatureParams, reqEditors ...RequestEditorFn) (*DownloadLatestArtifactSignatureResponse, error)
// GetArtifactByVersionWithResponse Get the metadata of one TEA Artifact revision
//
// Get metadata for a specific revision of a specific TEA Artifact.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /artifact/{uuid}/{artifactVersion} (the `GetArtifactByVersion` operationId).
GetArtifactByVersionWithResponse(ctx context.Context, uuid Uuid, artifactVersion int, reqEditors ...RequestEditorFn) (*GetArtifactByVersionResponse, error)
// DownloadArtifactByVersionWithResponse Download the content of one TEA Artifact revision
//
// Download the content of a specific revision of a specific TEA Artifact.
//
// This endpoint returns the bytes of one `format` of the artifact revision. It is
// how a TEA server hosts artifact content itself: a format that has no external
// `url` is retrieved from here, selected by its `mediaType`. A format that has a
// `url` is retrieved from that external location instead, and this endpoint is not
// required to serve it.
//
// A TEA access token is sent only to the TEA server's own API base URL. External
// `url` targets are retrieved without it. They are openly accessible or require
// credentials the client arranges separately. Expiring storage links should not
// be published in `url`; the server answers from this endpoint, including with `302`.
//
// When serving the content itself (`200`), servers shall return a strong `ETag`
// for the HTTP representation selected after negotiation, including content
// coding, and shall honor `If-None-Match` with `304`.
// `ETag` is the only conditional validator for these downloads. Servers that support
// `HEAD` for this operation shall return the same headers as `GET` without a response
// body. `302` redirects are outside conditional semantics: `If-None-Match` applies
// only to the TEA-hosted download response, not to following an external `Location`.
//
// How long a cache may retain the response depends on whether the content is
// publicly accessible: see `artifact-cache-control-immutable`. Immutability does
// not imply that shared caches may store access-controlled responses. Successful
// responses include `Content-Location` as an absolute URL of this versioned
// download including the `mediaType` query parameter. That URL identifies the
// revision and format; HTTP content coding can still be negotiated.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /artifact/{uuid}/{artifactVersion}/download (the `DownloadArtifactByVersion` operationId).
DownloadArtifactByVersionWithResponse(ctx context.Context, uuid Uuid, artifactVersion int, params *DownloadArtifactByVersionParams, reqEditors ...RequestEditorFn) (*DownloadArtifactByVersionResponse, error)
// DownloadArtifactSignatureByVersionWithResponse Download the signature of one TEA Artifact revision
//
// Download the detached signature for one format of a specific revision of a
// specific TEA Artifact.
//
// This is the counterpart of the artifact content endpoint, for TEA servers that
// host signatures themselves: a format that has no external `signatureUrl` is
// retrieved from here, selected by its `mediaType`. A format that has a
// `signatureUrl` is retrieved from that external location instead, and this
// endpoint is not required to serve it.
//
// Signatures are per format: each format of a revision is a distinct sequence of
// bytes and therefore has its own signature. The `mediaType` parameter selects which
// format's signature is returned, not the format of the signature itself.
//
// This specification makes no assumption about the signature technology in use, and
// does not model the signing algorithm, key, or certificate chain; the response is
// the signature as published. A client that cannot determine how to verify what it
// receives should treat the signature as unusable rather than as invalid.
//
// `404` distinguishes the cases by TEA error body: `OBJECT_UNKNOWN` when the
// artifact revision is unknown (or concealed), and `SIGNATURE_NOT_FOUND` when the
// revision exists but the selected format has no signature published. A server
// concealing an artifact from a client shall answer `OBJECT_UNKNOWN` for every
// sub-resource of it, including signatures.
//
// When serving the signature itself (`200`), servers shall return a strong `ETag`
// for the HTTP representation selected after negotiation, including content
// coding, and shall honor `If-None-Match` with `304`.
// `ETag` is the only conditional validator for these downloads. Servers that support
// `HEAD` for this operation shall return the same headers as `GET` without a response
// body.
// `302` redirects are outside conditional semantics: `If-None-Match` applies only
// to the TEA-hosted download response, not to following an external `Location`.
// Successful responses include `Content-Location` as an absolute URL of this
// versioned signature download including the `mediaType` query parameter. That URL
// identifies the revision and format; HTTP content coding can still be negotiated.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /artifact/{uuid}/{artifactVersion}/signature/download (the `DownloadArtifactSignatureByVersion` operationId).
DownloadArtifactSignatureByVersionWithResponse(ctx context.Context, uuid Uuid, artifactVersion int, params *DownloadArtifactSignatureByVersionParams, reqEditors ...RequestEditorFn) (*DownloadArtifactSignatureByVersionResponse, error)
// GetComponentWithResponse Get a TEA Component
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /component/{uuid} (the `GetComponent` operationId).
GetComponentWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentResponse, error)
// GetComponentCleWithResponse Get the lifecycle events of a TEA Component
//
// Get the CLE (Common Lifecycle Enumeration) data for a TEA Component.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /component/{uuid}/cle (the `GetComponentCle` operationId).
GetComponentCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentCleResponse, error)
// ListComponentReleasesWithResponse List the releases of a TEA Component
//
// Get releases of the component.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /component/{uuid}/releases (the `ListComponentReleases` operationId).
ListComponentReleasesWithResponse(ctx context.Context, uuid Uuid, params *ListComponentReleasesParams, reqEditors ...RequestEditorFn) (*ListComponentReleasesResponse, error)
// GetComponentReleaseWithResponse Get a TEA Component Release with its latest collection
//
// Get the TEA Component Release with its latest collection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /componentRelease/{uuid} (the `GetComponentRelease` operationId).
GetComponentReleaseWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentReleaseResponse, error)
// GetComponentReleaseCleWithResponse Get the lifecycle events of a TEA Component Release
//
// Get the CLE (Common Lifecycle Enumeration) data for a TEA Component Release.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /componentRelease/{uuid}/cle (the `GetComponentReleaseCle` operationId).
GetComponentReleaseCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetComponentReleaseCleResponse, error)
// GetLatestComponentReleaseCollectionWithResponse Get the latest collection of a TEA Component Release
//
// Get the latest TEA Collection belonging to the TEA Component Release, that is,
// the collection with the greatest published `version`.
//
// `404` means the release is unknown; a release always has a latest collection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /componentRelease/{uuid}/collection/latest (the `GetLatestComponentReleaseCollection` operationId).
GetLatestComponentReleaseCollectionWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetLatestComponentReleaseCollectionResponse, error)
// GetComponentReleaseCollectionByVersionWithResponse Get one collection version of a TEA Component Release
//
// Get a specific Collection (by version) for a TEA Component Release by its UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /componentRelease/{uuid}/collection/{collectionVersion} (the `GetComponentReleaseCollectionByVersion` operationId).
GetComponentReleaseCollectionByVersionWithResponse(ctx context.Context, uuid Uuid, collectionVersion int, reqEditors ...RequestEditorFn) (*GetComponentReleaseCollectionByVersionResponse, error)
// ListComponentReleaseCollectionsWithResponse List the collections of a TEA Component Release
//
// Get the TEA Collections belonging to the TEA Component Release.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /componentRelease/{uuid}/collections (the `ListComponentReleaseCollections` operationId).
ListComponentReleaseCollectionsWithResponse(ctx context.Context, uuid Uuid, params *ListComponentReleaseCollectionsParams, reqEditors ...RequestEditorFn) (*ListComponentReleaseCollectionsResponse, error)
// QueryComponentReleasesWithResponse Query TEA Component Releases
//
// Returns a list of TEA component releases. Note that multiple component releases may match.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /componentReleases (the `QueryComponentReleases` operationId).
QueryComponentReleasesWithResponse(ctx context.Context, params *QueryComponentReleasesParams, reqEditors ...RequestEditorFn) (*QueryComponentReleasesResponse, error)
// QueryComponentsWithResponse Query TEA Components
//
// Returns a list of TEA components. Note that multiple components may match.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /components (the `QueryComponents` operationId).
QueryComponentsWithResponse(ctx context.Context, params *QueryComponentsParams, reqEditors ...RequestEditorFn) (*QueryComponentsResponse, error)
// DiscoverWithResponse Resolve an identifier to TEA Product Releases
//
// Discovery endpoint which resolves an identifier into one or more product release
// UUIDs.
//
// Exactly one of the `tei` and `purl` query parameters shall be provided. A request
// with neither, or with both, is rejected with `400`. OpenAPI cannot express this
// constraint on query parameters, so both are declared optional here.
//
// Discovery by TEI resolves the product across TEA servers, using the domain carried
// by the TEI (typically after DNS / `.well-known` selection of an API host).
// Discovery by PURL requires an already-known API base URL and resolves within that
// server's inventory.
//
// A successful response is a non-empty JSON array of `discovery-info` objects,
// ordered by priority when multiple product releases match (first entry highest).
// If the server does not resolve the identifier, it responds with `404` and
// `error: OBJECT_UNKNOWN`, not `200` with an empty array.
//
// Parameter values are the identifier itself (not a pre-encoded wire form). Clients
// shall apply query-parameter serialization once. Servers shall interpret the value
// after one query-decoding step. Escapes that are part of a PURL value are preserved
// by that single decode.
//
// Example request lines after serialization:
// - `.../discovery?tei=tei%3A%2F%2Fproducts.example.com%2Fuuid%2F47f51950-b0e2-11f1-adc2-1a52914d44b2`
// - `.../discovery?purl=pkg%3Amaven%2Forg.apache.logging.log4j%2Flog4j-core%402.24.3`
//
// Unlike `/token`, this operation is required on a conforming TEA API base for the
// advertised version. A conforming `404` uses the shared object-not-found response
// (`error-response`, typically `OBJECT_UNKNOWN`) and means this server does not resolve
// the identifier, not that `/discovery` is optional or unimplemented. Client
// recognition of that body and the terminal outcome are defined in the discovery
// document.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /discovery (the `Discover` operationId).
DiscoverWithResponse(ctx context.Context, params *DiscoverParams, reqEditors ...RequestEditorFn) (*DiscoverResponse, error)
// GetProductWithResponse Get a TEA Product
//
// Get a TEA Product by UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /product/{uuid} (the `GetProduct` operationId).
GetProductWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductResponse, error)
// GetProductCleWithResponse Get the lifecycle events of a TEA Product
//
// Get the CLE (Common Lifecycle Enumeration) data for a TEA Product.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /product/{uuid}/cle (the `GetProductCle` operationId).
GetProductCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductCleResponse, error)
// ListProductReleasesWithResponse List the releases of a TEA Product
//
// Get releases of the product.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /product/{uuid}/releases (the `ListProductReleases` operationId).
ListProductReleasesWithResponse(ctx context.Context, uuid Uuid, params *ListProductReleasesParams, reqEditors ...RequestEditorFn) (*ListProductReleasesResponse, error)
// GetProductReleaseWithResponse Get a TEA Product Release with its latest collection
//
// Get the TEA Product Release with its latest collection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /productRelease/{uuid} (the `GetProductRelease` operationId).
GetProductReleaseWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductReleaseResponse, error)
// GetProductReleaseCleWithResponse Get the lifecycle events of a TEA Product Release
//
// Get the CLE (Common Lifecycle Enumeration) data for a TEA Product Release.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /productRelease/{uuid}/cle (the `GetProductReleaseCle` operationId).
GetProductReleaseCleWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetProductReleaseCleResponse, error)
// GetLatestProductReleaseCollectionWithResponse Get the latest collection of a TEA Product Release
//
// Get the latest TEA Collection belonging to the TEA Product Release, that is,
// the collection with the greatest published `version`.
//
// `404` means the release is unknown; a release always has a latest collection.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /productRelease/{uuid}/collection/latest (the `GetLatestProductReleaseCollection` operationId).
GetLatestProductReleaseCollectionWithResponse(ctx context.Context, uuid Uuid, reqEditors ...RequestEditorFn) (*GetLatestProductReleaseCollectionResponse, error)
// GetProductReleaseCollectionByVersionWithResponse Get one collection version of a TEA Product Release
//
// Get a specific Collection (by version) for a TEA Product Release by its UUID.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /productRelease/{uuid}/collection/{collectionVersion} (the `GetProductReleaseCollectionByVersion` operationId).
GetProductReleaseCollectionByVersionWithResponse(ctx context.Context, uuid Uuid, collectionVersion int, reqEditors ...RequestEditorFn) (*GetProductReleaseCollectionByVersionResponse, error)
// ListProductReleaseCollectionsWithResponse List the collections of a TEA Product Release
//
// Get the TEA Collections belonging to the TEA Product Release.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /productRelease/{uuid}/collections (the `ListProductReleaseCollections` operationId).
ListProductReleaseCollectionsWithResponse(ctx context.Context, uuid Uuid, params *ListProductReleaseCollectionsParams, reqEditors ...RequestEditorFn) (*ListProductReleaseCollectionsResponse, error)
// QueryProductReleasesWithResponse Query TEA Product Releases
//
// Returns a list of TEA product releases. Note that multiple product releases may match.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /productReleases (the `QueryProductReleases` operationId).
QueryProductReleasesWithResponse(ctx context.Context, params *QueryProductReleasesParams, reqEditors ...RequestEditorFn) (*QueryProductReleasesResponse, error)
// QueryProductsWithResponse Query TEA Products
//
// Returns a list of TEA products. Note that multiple products may match.
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /products (the `QueryProducts` operationId).
QueryProductsWithResponse(ctx context.Context, params *QueryProductsParams, reqEditors ...RequestEditorFn) (*QueryProductsResponse, error)
// RequestTokenWithBodyWithResponse Exchange credentials for a TEA access token
//
// Exchange credentials for a TEA access token.
//
// A TEA server that requires authentication on any of its endpoints shall
// implement this endpoint, and shall support the `client_credentials` grant type
// with HTTP Basic client authentication (RFC 6749 section 2.3.1, RFC 7617): the
// API key identifier is sent as the user-id and the API key secret as the
// password. A server that requires no authentication need not implement it.
//
// Clients do not probe this endpoint to discover whether authentication is
// required: they issue the resource request, and a `401` response carrying a
// `WWW-Authenticate: Bearer` challenge is the signal to obtain a token here. A
// `404` from this endpoint, with or without a TEA error body, means only that it is
// not implemented. A server that mounts the path without implementing the exchange
// should answer with the shared object-not-found response and `error:
// NOT_IMPLEMENTED`.
//
// Servers may support additional grant types for federated identity, for example
// SAML 2.0 assertions (RFC 7522) or JWT assertions (RFC 7523), and may authenticate
// the client with mutual TLS (RFC 8705) instead of Basic. Whichever grant type is
// used, the token returned by this endpoint is the only credential accepted on the
// other TEA endpoints.
//
// RFC 8693 token exchange (`urn:ietf:params:oauth:grant-type:token-exchange`) is
// outside the scope of the TEA 1.0 interoperable authentication profile. TEA 1.0 does
// not specify the request or response contract for this grant. Implementations may
// support it as an extension by separate agreement, but clients shall not assume its
// availability based solely on TEA 1.0 conformance. Such extensions do not remove the
// requirement for servers requiring authentication to support the
// `client_credentials` baseline.
//
// The access token is opaque to the client: clients shall not inspect, parse, or
// depend on its contents.
//
// The empty security requirement on this operation does not authorize anonymous
// `client_credentials` issuance. It only allows the alternate client-authentication
// methods described above (for example, mutual TLS, JWT client assertion
// (RFC 7523), or credentials in the request body). For the baseline
// `client_credentials` grant with HTTP Basic, unauthenticated requests shall not be
// accepted: servers shall respond with `401`, `error: invalid_client`, and a
// `WWW-Authenticate: Basic` challenge (see `401-token-error`; RFC 6749 section 5.2).
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /token (the `RequestToken` operationId).
RequestTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RequestTokenResponse, error)
// RequestTokenWithFormdataBodyWithResponse Exchange credentials for a TEA access token
//
// Exchange credentials for a TEA access token.
//
// A TEA server that requires authentication on any of its endpoints shall
// implement this endpoint, and shall support the `client_credentials` grant type
// with HTTP Basic client authentication (RFC 6749 section 2.3.1, RFC 7617): the
// API key identifier is sent as the user-id and the API key secret as the
// password. A server that requires no authentication need not implement it.
//
// Clients do not probe this endpoint to discover whether authentication is
// required: they issue the resource request, and a `401` response carrying a
// `WWW-Authenticate: Bearer` challenge is the signal to obtain a token here. A
// `404` from this endpoint, with or without a TEA error body, means only that it is
// not implemented. A server that mounts the path without implementing the exchange
// should answer with the shared object-not-found response and `error:
// NOT_IMPLEMENTED`.
//
// Servers may support additional grant types for federated identity, for example
// SAML 2.0 assertions (RFC 7522) or JWT assertions (RFC 7523), and may authenticate
// the client with mutual TLS (RFC 8705) instead of Basic. Whichever grant type is
// used, the token returned by this endpoint is the only credential accepted on the
// other TEA endpoints.
//
// RFC 8693 token exchange (`urn:ietf:params:oauth:grant-type:token-exchange`) is
// outside the scope of the TEA 1.0 interoperable authentication profile. TEA 1.0 does
// not specify the request or response contract for this grant. Implementations may
// support it as an extension by separate agreement, but clients shall not assume its
// availability based solely on TEA 1.0 conformance. Such extensions do not remove the
// requirement for servers requiring authentication to support the
// `client_credentials` baseline.
//
// The access token is opaque to the client: clients shall not inspect, parse, or
// depend on its contents.
//
// The empty security requirement on this operation does not authorize anonymous
// `client_credentials` issuance. It only allows the alternate client-authentication
// methods described above (for example, mutual TLS, JWT client assertion
// (RFC 7523), or credentials in the request body). For the baseline
// `client_credentials` grant with HTTP Basic, unauthenticated requests shall not be
// accepted: servers shall respond with `401`, `error: invalid_client`, and a
// `WWW-Authenticate: Basic` challenge (see `401-token-error`; RFC 6749 section 5.2).
//
// Takes a body of the `application/x-www-form-urlencoded` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /token (the `RequestToken` operationId).
RequestTokenWithFormdataBodyWithResponse(ctx context.Context, body RequestTokenFormdataRequestBody, reqEditors ...RequestEditorFn) (*RequestTokenResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type Collection ¶
type Collection struct {
// Artifacts Array of TEA Artifact objects (may be empty).
Artifacts []Artifact `json:"artifacts"`
// BelongsTo Indicates whether this collection belongs to a Component Release or a Product Release
BelongsTo CollectionBelongsToType `json:"belongsTo"`
// CreatedDate The date when the TEA Collection version was created.
CreatedDate DateTime `json:"createdDate"`
// UpdateReason Reason for the update/release of the TEA Collection object.
UpdateReason CollectionUpdateReason `json:"updateReason"`
// Uuid UUID of the TEA Collection object.
// A TEA Collection shall use the same UUID as its parent Product Release or
// Component Release. Within an API base, a Product Release and a
// Component Release shall not share a UUID. Consequently, Collections belonging
// to different parent releases have different UUIDs. Versions of the same
// Collection retain the same UUID. See `doc/tea-uuid-scope.md`.
Uuid Uuid `json:"uuid"`
// Version TEA Collection version, incremented by 1 each time its content changes.
// Versions start with 1. Content changes include replacing an embedded artifact
// with a newer revision (for example one published because an external `url` or
// `signatureUrl` changed). If a Collection adopts that new artifact revision, the
// server shall publish a new Collection version. Previously published Collection
// versions shall remain unchanged. Classification of that adoption follows
// `collection-update-reason-type`.
Version int `json:"version"`
}
Collection A collection of security-related documents.
Every component release and product release has a collection. If no artifacts have been published when the release first becomes retrievable, the server serves version 1 with an empty `artifacts` list and `updateReason.type: INITIAL_RELEASE`. That version is immutable like any other; the first artifacts are published as version 2.
Examples: {"artifacts":[{"createdDate":"2024-12-13T00:00:00Z","formats":[{"checksums":[{"algType":"SHA-256","algValue":"e04c9d55986d7194822eaa4f8115a77f801844d807ad6e0d454ac31dd41861e5"},{"algType":"SHA-1","algValue":"5a7d4caef63c5c5ccdf07c39337323529eb5a770"}],"description":"CycloneDX SBOM (XML)","mediaType":"application/vnd.cyclonedx+xml","signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml.asc","url":"https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml"}],"name":"Build SBOM","type":"BOM","uuid":"1cb47b95-8bf8-3bad-a5a4-0d54d86e10ce","version":2},{"createdDate":"2024-12-15T00:00:00Z","formats":[{"checksums":[{"algType":"SHA-256","algValue":"75b81020b3917cb682b1a7605ade431e062f7a4c01a412f0b87543b6e995ad2a"}],"description":"CycloneDX VDR (XML)","mediaType":"application/vnd.cyclonedx+xml","url":"https://logging.apache.org/cyclonedx/vdr.xml"}],"name":"Vulnerability Disclosure Report","type":"VULNERABILITIES","uuid":"dfa35519-9734-4259-bba1-3e825cf4be06","version":7}],"belongsTo":"COMPONENT_RELEASE","createdDate":"2024-12-15T00:00:00Z","updateReason":{"comment":"VDR file updated","type":"VEX_UPDATED"},"uuid":"da89e38e-95e7-44ca-aa7d-f3b6b34c7fab","version":10}
type CollectionBelongsToType ¶
type CollectionBelongsToType string
CollectionBelongsToType Indicates whether a collection belongs to a component release or a product release
const ( COMPONENTRELEASE CollectionBelongsToType = "COMPONENT_RELEASE" PRODUCTRELEASE CollectionBelongsToType = "PRODUCT_RELEASE" )
Defines values for CollectionBelongsToType.
func (CollectionBelongsToType) Valid ¶
func (e CollectionBelongsToType) Valid() bool
Valid indicates whether the value is a known member of the CollectionBelongsToType enum.
type CollectionUpdateReason ¶
type CollectionUpdateReason struct {
// Comment Free text description
Comment *string `json:"comment,omitempty"`
// Type Type of update reason.
Type CollectionUpdateReasonType `json:"type"`
}
CollectionUpdateReason Reason for the update to the TEA collection
type CollectionUpdateReasonType ¶
type CollectionUpdateReasonType string
CollectionUpdateReasonType Type of TEA collection update.
`VEX_UPDATED` covers adding or revising an artifact of type `VULNERABILITIES`, including a revision whose external `url` or `signatureUrl` changed. VEX and VDR share that type. `ARTIFACT_UPDATED` covers a new revision of an artifact whose type is not `VULNERABILITIES`, including a revision whose external `url` or `signatureUrl` changed. Replacing an embedded artifact revision solely because its published `url` or `signatureUrl` changed is `VEX_UPDATED` when the artifact type is `VULNERABILITIES`, and `ARTIFACT_UPDATED` otherwise. Removing an artifact, including one of type `VULNERABILITIES`, counts as `ARTIFACT_REMOVED`.
The first Collection version shall use `INITIAL_RELEASE`. In subsequent versions, adding or revising an artifact of type `VULNERABILITIES` counts as `VEX_UPDATED`. When multiple change kinds occur, the server shall select `updateReason.type` using the precedence rule below.
When a collection version other than the first contains changes of more than one kind, the server shall set `updateReason.type` to the first applicable value in this order: `VEX_UPDATED`, `ARTIFACT_REMOVED`, `ARTIFACT_ADDED`, `ARTIFACT_UPDATED`. `comment` can describe the other changes. A client that needs the complete set of changes should compare the version with the previous one.
const ( ARTIFACTADDED CollectionUpdateReasonType = "ARTIFACT_ADDED" ARTIFACTREMOVED CollectionUpdateReasonType = "ARTIFACT_REMOVED" ARTIFACTUPDATED CollectionUpdateReasonType = "ARTIFACT_UPDATED" INITIALRELEASE CollectionUpdateReasonType = "INITIAL_RELEASE" VEXUPDATED CollectionUpdateReasonType = "VEX_UPDATED" )
Defines values for CollectionUpdateReasonType.
func (CollectionUpdateReasonType) Valid ¶
func (e CollectionUpdateReasonType) Valid() bool
Valid indicates whether the value is a known member of the CollectionUpdateReasonType enum.
type Component ¶
type Component struct {
// Identifiers List of identifiers for the component
Identifiers []Identifier `json:"identifiers"`
// Name Component name. Within a TEA server, component names should be unique among
// components. Uniqueness is an implementation recommendation, not a hard API
// requirement. Product and component names are separate namespaces; a product
// and a component may share the same name.
Name string `json:"name"`
// Uuid A unique identifier for the TEA component
Uuid Uuid `json:"uuid"`
}
Component A TEA component
Examples: {"identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.logging.log4j/log4j-api"}],"name":"Apache Log4j API","uuid":"3910e0fd-aff4-48d6-b75f-8bf6b84687f0"}, {"identifiers":[{"idType":"CPE","idValue":"cpe:2.3:a:apache:log4j"},{"idType":"PURL","idValue":"pkg:maven/org.apache.logging.log4j/log4j-core"}],"name":"Apache Log4j Core","uuid":"b844c9bd-55d6-478c-af59-954a932b6ad3"}, {"identifiers":[{"idType":"CPE","idValue":"cpe:2.3:a:apache:tomcat"},{"idType":"PURL","idValue":"pkg:maven/org.apache.tomcat/tomcat"}],"name":"Apache Tomcat","uuid":"c71b316e-ae77-11f1-aafb-1a52914d44b2"}
type ComponentRef ¶
type ComponentRef struct {
// Release Optional UUID of a specific release included in the product in the case where the product
// always include a specific release of a component. The product name should include a version
// identifier in this case.
Release *Uuid `json:"release,omitempty"`
// Uuid A unique identifier for the TEA component
Uuid Uuid `json:"uuid"`
}
ComponentRef A reference to a TEA component or specific component release
type ComponentRelease ¶
type ComponentRelease struct {
// Component UUID of the TEA Component this release belongs to
Component Uuid `json:"component"`
// ComponentName Name of the TEA Component this release belongs to
ComponentName *string `json:"componentName,omitempty"`
// CreatedDate Timestamp when this Release was created in TEA (for sorting purposes)
CreatedDate DateTime `json:"createdDate"`
// Distributions List of different formats of this component release
Distributions *[]ReleaseDistribution `json:"distributions,omitempty"`
// Identifiers Array of identifiers for the component release
Identifiers *[]Identifier `json:"identifiers,omitempty"`
// PreRelease A flag indicating pre-release (or beta) status.
// May be disabled after the creation of the release object, but can't be enabled after creation of an object.
PreRelease *bool `json:"preRelease,omitempty"`
// ReleaseDate Timestamp of the release
ReleaseDate *DateTime `json:"releaseDate,omitempty"`
// Uuid A unique identifier of the TEA Component Release. Within an API base it
// shall not also identify a Product Release; see `doc/tea-uuid-scope.md`.
Uuid Uuid `json:"uuid"`
// Version Human-readable version string
Version string `json:"version"`
}
ComponentRelease A TEA Component Release
Examples: {"component":"b844c9bd-55d6-478c-af59-954a932b6ad3","componentName":"Apache Log4j Core","createdDate":"2024-12-10T10:51:00Z","identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.logging.log4j/log4j-core@2.24.3"}],"releaseDate":"2024-12-13T12:52:29Z","uuid":"da89e38e-95e7-44ca-aa7d-f3b6b34c7fab","version":"2.24.3"}, {"component":"c71b316e-ae77-11f1-aafb-1a52914d44b2","createdDate":"2025-05-07T18:08:00Z","distributions":[{"checksums":[{"algType":"SHA-256","algValue":"9da736a1cdd27231e70187cbc67398d29ca0b714f885e7032da9f1fb247693c1"}],"description":"Core binary distribution, zip archive","distributionId":"6a0d58e1-4896-4f1e-83f7-5feb6c032537","identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.tomcat/tomcat@11.0.7?type=zip"}],"signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7.zip.asc","url":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7.zip"},{"checksums":[{"algType":"SHA-256","algValue":"2fcece641c62ba1f28e1d7b257493151fc44f161fb391015ee6a95fa71632fb9"}],"description":"Core binary distribution, tar.gz archive","distributionId":"dba01c13-dd96-4928-be72-9c87ffa8cab8","identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.tomcat/tomcat@11.0.7?type=tar.gz"}],"signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7.tar.gz.asc","url":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7.tar.gz"},{"checksums":[{"algType":"SHA-256","algValue":"62a5c358d87a8ef21d7ec1b3b63c9bbb577453dda9c00cbb522b16cee6c23fc4"}],"description":"Core binary distribution, Windows x64 zip archive","distributionId":"cfe068c2-fae7-43d0-97ec-5ea092454040","identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.tomcat/tomcat@11.0.7?classifier=windows-x64\u0026type=zip"}],"signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7-windows-x64.zip.asc","url":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7-windows-x64.zip"},{"checksums":[{"algType":"SHA-512","algValue":"1d3824e7643c8aba455ab0bd9e67b14a60f2aaa6aa7775116bce40eb0579e8ced162a4f828051d3b867e96ee2858ec5da0cc654e83a83ba30823cbea0df4ff96"}],"description":"Core binary distribution, Windows Service Installer (.exe)","distributionId":"de45ffaf-e4b5-47b5-be28-444a76df098e","signatureUrl":"https://downloads.apache.org/tomcat/tomcat-11/v11.0.7/bin/apache-tomcat-11.0.7.exe.asc","url":"https://dlcdn.apache.org/tomcat/tomcat-11/v11.0.7/bin/apache-tomcat-11.0.7.exe"}],"identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.tomcat/tomcat@11.0.7"}],"releaseDate":"2025-05-12T18:08:00Z","uuid":"605d0ecb-1057-40e4-9abf-c400b10f0345","version":"11.0.7"}, {"component":"c71b316e-ae77-11f1-aafb-1a52914d44b2","createdDate":"2024-09-13T17:49:00Z","identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.tomcat/tomcat@11.0.0-M26"}],"preRelease":true,"uuid":"95f481df-f760-47f4-b2f2-f8b76d858450","version":"11.0.0-M26"}
type ComponentReleaseWithCollection ¶
type ComponentReleaseWithCollection struct {
// Component UUID of the TEA Component this release belongs to
Component Uuid `json:"component"`
// ComponentName Name of the TEA Component this release belongs to
ComponentName *string `json:"componentName,omitempty"`
// CreatedDate Timestamp when this Release was created in TEA (for sorting purposes)
CreatedDate DateTime `json:"createdDate"`
// Distributions List of different formats of this component release
Distributions *[]ReleaseDistribution `json:"distributions,omitempty"`
// Identifiers Array of identifiers for the component release
Identifiers *[]Identifier `json:"identifiers,omitempty"`
// LatestCollection The latest TEA Collection for this component release
//
// Examples: {"artifacts":[{"createdDate":"2024-12-13T00:00:00Z","formats":[{"checksums":[{"algType":"SHA-256","algValue":"e04c9d55986d7194822eaa4f8115a77f801844d807ad6e0d454ac31dd41861e5"},{"algType":"SHA-1","algValue":"5a7d4caef63c5c5ccdf07c39337323529eb5a770"}],"description":"CycloneDX SBOM (XML)","mediaType":"application/vnd.cyclonedx+xml","signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml.asc","url":"https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml"}],"name":"Build SBOM","type":"BOM","uuid":"1cb47b95-8bf8-3bad-a5a4-0d54d86e10ce","version":2},{"createdDate":"2024-12-15T00:00:00Z","formats":[{"checksums":[{"algType":"SHA-256","algValue":"75b81020b3917cb682b1a7605ade431e062f7a4c01a412f0b87543b6e995ad2a"}],"description":"CycloneDX VDR (XML)","mediaType":"application/vnd.cyclonedx+xml","url":"https://logging.apache.org/cyclonedx/vdr.xml"}],"name":"Vulnerability Disclosure Report","type":"VULNERABILITIES","uuid":"dfa35519-9734-4259-bba1-3e825cf4be06","version":7}],"belongsTo":"COMPONENT_RELEASE","createdDate":"2024-12-15T00:00:00Z","updateReason":{"comment":"VDR file updated","type":"VEX_UPDATED"},"uuid":"da89e38e-95e7-44ca-aa7d-f3b6b34c7fab","version":10}
LatestCollection Collection `json:"latestCollection"`
// PreRelease A flag indicating pre-release (or beta) status.
// May be disabled after the creation of the release object, but can't be enabled after creation of an object.
PreRelease *bool `json:"preRelease,omitempty"`
// ReleaseDate Timestamp of the release
ReleaseDate *DateTime `json:"releaseDate,omitempty"`
// Uuid A unique identifier of the TEA Component Release. Within an API base it
// shall not also identify a Product Release; see `doc/tea-uuid-scope.md`.
Uuid Uuid `json:"uuid"`
// Version Human-readable version string
Version string `json:"version"`
}
ComponentReleaseWithCollection A TEA Component Release together with its latest collection.
Extends `component-release` with a `latestCollection` property; every field of `component-release` applies unchanged.
type DateTime ¶
DateTime Timestamp, RFC 3339 in UTC with the `Z` designator. Offsets are not accepted; servers shall convert to UTC before emitting. Fractional seconds are optional and preserved as sent. All timestamps in this specification use this schema.
type DiscoverParams ¶
type DiscoverParams struct {
// Tei Transparency Exchange Identifier (TEI) for the product being discovered, as the
// logical TEI string. Do not pre-encode for the schema example or client model;
// apply query-parameter encoding once when forming the HTTP request.
Tei *string `form:"tei,omitempty" json:"tei,omitempty"`
// Purl Package URL (PURL) of the product being discovered, resolved within this TEA
// server's inventory, as the logical PURL string. Do not pre-encode for the schema
// example or client model; apply query-parameter encoding once when forming the
// HTTP request.
Purl *string `form:"purl,omitempty" json:"purl,omitempty"`
}
DiscoverParams defines parameters for Discover.
type DiscoverResponse ¶
type DiscoverResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DiscoveryResponse
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *DiscoverResponse401Headers
}
func ParseDiscoverResponse ¶
func ParseDiscoverResponse(rsp *http.Response) (*DiscoverResponse, error)
ParseDiscoverResponse parses an HTTP response from a DiscoverWithResponse call
func (DiscoverResponse) ContentType ¶
func (r DiscoverResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DiscoverResponse) GetBody ¶
func (r DiscoverResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DiscoverResponse) GetJSON200 ¶
func (r DiscoverResponse) GetJSON200() *DiscoveryResponse
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DiscoverResponse) GetJSON400 ¶
func (r DiscoverResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DiscoverResponse) GetJSON401 ¶
func (r DiscoverResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DiscoverResponse) GetJSON403 ¶
func (r DiscoverResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DiscoverResponse) GetJSON404 ¶
func (r DiscoverResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DiscoverResponse) Status ¶
func (r DiscoverResponse) Status() string
Status returns HTTPResponse.Status
func (DiscoverResponse) StatusCode ¶
func (r DiscoverResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DiscoverResponse401Headers ¶
type DiscoverResponse401Headers struct {
WWWAuthenticate string
}
DiscoverResponse401Headers the declared response headers of an HTTP 401 response for Discover
type DiscoveryInfo ¶
type DiscoveryInfo struct {
// ProductReleaseUuid UUID of the resolved TEA Product Release
ProductReleaseUuid Uuid `json:"productReleaseUuid"`
// Servers Non-empty array of TEA servers that serve this product release. Each entry
// has `rootUrl` (without trailing slash) and `versions`.
Servers []ServerInfo `json:"servers"`
}
DiscoveryInfo Discovery information for one product release matched by a TEI or PURL lookup. A successful `/discovery` response is a non-empty array of these objects, ordered by priority when more than one release matches (first entry highest). `.well-known/tea` selects where `/discovery` is called; `servers[]` lists API bases that serve this product release (same version and priority selection rules). A `rootUrl` need not appear in the well-known endpoint list.
type DiscoveryResponse ¶
type DiscoveryResponse = []DiscoveryInfo
DiscoveryResponse defines model for discovery-response.
type DownloadArtifactByVersionParams ¶
type DownloadArtifactByVersionParams struct {
// MediaType Selects which of the artifact revision's `formats` to return, by its `mediaType`.
// The parameter value is the media type itself (for example
// `application/vnd.cyclonedx+json`), not a pre-encoded wire form. Clients shall
// apply query-parameter serialization once. Servers shall interpret the value after
// one query-decoding step.
//
// Matching against a format's `mediaType` is case-insensitive for the type and
// subtype. Parameter names are compared case-insensitively; parameter values
// require exact equality. When omitted, the server selects a format using the
// request's `Accept` header per RFC 9110 section 12, and falls back to a format of
// its choice when `Accept` does not constrain the result. In either case the
// `Content-Type` of the response states which format was returned. An explicit
// `mediaType` can remove variation by `Accept` when it completely determines the
// format. When it does not, the server shall include `Accept` in `Vary` if
// changing or removing `Accept` could change the selected format, including when
// `Accept` is absent or contains `*/*`. A `mediaType` query parameter does not
// eliminate variation by `Accept-Encoding`; see `artifact-vary`.
//
// Example after serialization:
// `.../download?mediaType=application%2Fvnd.cyclonedx%2Bjson`
MediaType *ArtifactMediaType `form:"mediaType,omitempty" json:"mediaType,omitempty"`
// IfNoneMatch Conditional request validator (RFC 9110). For artifact and signature downloads,
// `ETag` is the only defined validator. Servers evaluate `If-None-Match` with the
// weak comparison function (RFC 9110 section 13.1.2) against the `ETag` of the
// representation selected after negotiation, including content-coding negotiation,
// and answer `304` when it matches. The corresponding `304` shall carry that
// representation's validator and shall carry `Vary` when the `200` would. When
// present, that `ETag` is a strong validator. Other validators are not defined for
// these operations.
IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"`
}
DownloadArtifactByVersionParams defines parameters for DownloadArtifactByVersion.
type DownloadArtifactByVersionResponse ¶
type DownloadArtifactByVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// JSON406 the response for an HTTP 406 `application/json` response
JSON406 *N406NoAcceptableFormat
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *DownloadArtifactByVersionResponse200Headers
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *DownloadArtifactByVersionResponse302Headers
// Headers304 the parsed response headers for an HTTP 304 response
Headers304 *DownloadArtifactByVersionResponse304Headers
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *DownloadArtifactByVersionResponse401Headers
}
func ParseDownloadArtifactByVersionResponse ¶
func ParseDownloadArtifactByVersionResponse(rsp *http.Response) (*DownloadArtifactByVersionResponse, error)
ParseDownloadArtifactByVersionResponse parses an HTTP response from a DownloadArtifactByVersionWithResponse call
func (DownloadArtifactByVersionResponse) ContentType ¶
func (r DownloadArtifactByVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DownloadArtifactByVersionResponse) GetBody ¶
func (r DownloadArtifactByVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DownloadArtifactByVersionResponse) GetJSON400 ¶
func (r DownloadArtifactByVersionResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DownloadArtifactByVersionResponse) GetJSON401 ¶
func (r DownloadArtifactByVersionResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DownloadArtifactByVersionResponse) GetJSON403 ¶
func (r DownloadArtifactByVersionResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DownloadArtifactByVersionResponse) GetJSON404 ¶
func (r DownloadArtifactByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DownloadArtifactByVersionResponse) GetJSON406 ¶
func (r DownloadArtifactByVersionResponse) GetJSON406() *N406NoAcceptableFormat
GetJSON406 returns the response for an HTTP 406 `application/json` response
func (DownloadArtifactByVersionResponse) Status ¶
func (r DownloadArtifactByVersionResponse) Status() string
Status returns HTTPResponse.Status
func (DownloadArtifactByVersionResponse) StatusCode ¶
func (r DownloadArtifactByVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadArtifactByVersionResponse200Headers ¶
type DownloadArtifactByVersionResponse200Headers struct {
CacheControl *string
ContentDisposition *string
ContentEncoding *string
ContentLocation string
ETag string
ReprDigest *string
Vary *string
}
DownloadArtifactByVersionResponse200Headers the declared response headers of an HTTP 200 response for DownloadArtifactByVersion
type DownloadArtifactByVersionResponse302Headers ¶
type DownloadArtifactByVersionResponse302Headers struct {
Location string
}
DownloadArtifactByVersionResponse302Headers the declared response headers of an HTTP 302 response for DownloadArtifactByVersion
type DownloadArtifactByVersionResponse304Headers ¶
type DownloadArtifactByVersionResponse304Headers struct {
CacheControl *string
ContentLocation string
ETag string
Vary *string
}
DownloadArtifactByVersionResponse304Headers the declared response headers of an HTTP 304 response for DownloadArtifactByVersion
type DownloadArtifactByVersionResponse401Headers ¶
type DownloadArtifactByVersionResponse401Headers struct {
WWWAuthenticate string
}
DownloadArtifactByVersionResponse401Headers the declared response headers of an HTTP 401 response for DownloadArtifactByVersion
type DownloadArtifactSignatureByVersionParams ¶
type DownloadArtifactSignatureByVersionParams struct {
// MediaType Selects which of the artifact revision's `formats` the returned signature applies
// to, by that format's `mediaType`. This is the media type of the signed content,
// not of the signature. The parameter value is the media type itself, not a
// pre-encoded wire form. Clients shall apply query-parameter serialization once.
// Servers shall interpret the value after one query-decoding step.
//
// Matching against a format's `mediaType` is case-insensitive for the type and
// subtype. Parameter names are compared case-insensitively; parameter values
// require exact equality. When omitted, the server selects a format of its choice.
// Requests that need a specific format's signature should supply this parameter.
// Successful responses include `Content-Location` with a `mediaType` query
// parameter naming the selected content format. An explicit `mediaType` can
// remove variation by `Accept` when it completely determines the signed format.
// It does not eliminate variation by `Accept-Encoding`; see `artifact-vary`.
//
// Example after serialization:
// `.../signature/download?mediaType=application%2Fvnd.cyclonedx%2Bjson`
MediaType *ArtifactSignatureMediaType `form:"mediaType,omitempty" json:"mediaType,omitempty"`
// IfNoneMatch Conditional request validator (RFC 9110). For artifact and signature downloads,
// `ETag` is the only defined validator. Servers evaluate `If-None-Match` with the
// weak comparison function (RFC 9110 section 13.1.2) against the `ETag` of the
// representation selected after negotiation, including content-coding negotiation,
// and answer `304` when it matches. The corresponding `304` shall carry that
// representation's validator and shall carry `Vary` when the `200` would. When
// present, that `ETag` is a strong validator. Other validators are not defined for
// these operations.
IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"`
}
DownloadArtifactSignatureByVersionParams defines parameters for DownloadArtifactSignatureByVersion.
type DownloadArtifactSignatureByVersionResponse ¶
type DownloadArtifactSignatureByVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// JSON406 the response for an HTTP 406 `application/json` response
JSON406 *N406NoAcceptableFormat
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *DownloadArtifactSignatureByVersionResponse200Headers
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *DownloadArtifactSignatureByVersionResponse302Headers
// Headers304 the parsed response headers for an HTTP 304 response
Headers304 *DownloadArtifactSignatureByVersionResponse304Headers
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *DownloadArtifactSignatureByVersionResponse401Headers
}
func ParseDownloadArtifactSignatureByVersionResponse ¶
func ParseDownloadArtifactSignatureByVersionResponse(rsp *http.Response) (*DownloadArtifactSignatureByVersionResponse, error)
ParseDownloadArtifactSignatureByVersionResponse parses an HTTP response from a DownloadArtifactSignatureByVersionWithResponse call
func (DownloadArtifactSignatureByVersionResponse) ContentType ¶
func (r DownloadArtifactSignatureByVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DownloadArtifactSignatureByVersionResponse) GetBody ¶
func (r DownloadArtifactSignatureByVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DownloadArtifactSignatureByVersionResponse) GetJSON400 ¶
func (r DownloadArtifactSignatureByVersionResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DownloadArtifactSignatureByVersionResponse) GetJSON401 ¶
func (r DownloadArtifactSignatureByVersionResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DownloadArtifactSignatureByVersionResponse) GetJSON403 ¶
func (r DownloadArtifactSignatureByVersionResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DownloadArtifactSignatureByVersionResponse) GetJSON404 ¶
func (r DownloadArtifactSignatureByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DownloadArtifactSignatureByVersionResponse) GetJSON406 ¶
func (r DownloadArtifactSignatureByVersionResponse) GetJSON406() *N406NoAcceptableFormat
GetJSON406 returns the response for an HTTP 406 `application/json` response
func (DownloadArtifactSignatureByVersionResponse) Status ¶
func (r DownloadArtifactSignatureByVersionResponse) Status() string
Status returns HTTPResponse.Status
func (DownloadArtifactSignatureByVersionResponse) StatusCode ¶
func (r DownloadArtifactSignatureByVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadArtifactSignatureByVersionResponse200Headers ¶
type DownloadArtifactSignatureByVersionResponse200Headers struct {
CacheControl *string
ContentDisposition *string
ContentEncoding *string
ContentLocation string
ETag string
ReprDigest *string
Vary *string
}
DownloadArtifactSignatureByVersionResponse200Headers the declared response headers of an HTTP 200 response for DownloadArtifactSignatureByVersion
type DownloadArtifactSignatureByVersionResponse302Headers ¶
type DownloadArtifactSignatureByVersionResponse302Headers struct {
Location string
}
DownloadArtifactSignatureByVersionResponse302Headers the declared response headers of an HTTP 302 response for DownloadArtifactSignatureByVersion
type DownloadArtifactSignatureByVersionResponse304Headers ¶
type DownloadArtifactSignatureByVersionResponse304Headers struct {
CacheControl *string
ContentLocation string
ETag string
Vary *string
}
DownloadArtifactSignatureByVersionResponse304Headers the declared response headers of an HTTP 304 response for DownloadArtifactSignatureByVersion
type DownloadArtifactSignatureByVersionResponse401Headers ¶
type DownloadArtifactSignatureByVersionResponse401Headers struct {
WWWAuthenticate string
}
DownloadArtifactSignatureByVersionResponse401Headers the declared response headers of an HTTP 401 response for DownloadArtifactSignatureByVersion
type DownloadLatestArtifactParams ¶
type DownloadLatestArtifactParams struct {
// MediaType Selects which of the artifact revision's `formats` to return, by its `mediaType`.
// The parameter value is the media type itself (for example
// `application/vnd.cyclonedx+json`), not a pre-encoded wire form. Clients shall
// apply query-parameter serialization once. Servers shall interpret the value after
// one query-decoding step.
//
// Matching against a format's `mediaType` is case-insensitive for the type and
// subtype. Parameter names are compared case-insensitively; parameter values
// require exact equality. When omitted, the server selects a format using the
// request's `Accept` header per RFC 9110 section 12, and falls back to a format of
// its choice when `Accept` does not constrain the result. In either case the
// `Content-Type` of the response states which format was returned. An explicit
// `mediaType` can remove variation by `Accept` when it completely determines the
// format. When it does not, the server shall include `Accept` in `Vary` if
// changing or removing `Accept` could change the selected format, including when
// `Accept` is absent or contains `*/*`. A `mediaType` query parameter does not
// eliminate variation by `Accept-Encoding`; see `artifact-vary`.
//
// Example after serialization:
// `.../download?mediaType=application%2Fvnd.cyclonedx%2Bjson`
MediaType *ArtifactMediaType `form:"mediaType,omitempty" json:"mediaType,omitempty"`
// IfNoneMatch Conditional request validator (RFC 9110). For artifact and signature downloads,
// `ETag` is the only defined validator. Servers evaluate `If-None-Match` with the
// weak comparison function (RFC 9110 section 13.1.2) against the `ETag` of the
// representation selected after negotiation, including content-coding negotiation,
// and answer `304` when it matches. The corresponding `304` shall carry that
// representation's validator and shall carry `Vary` when the `200` would. When
// present, that `ETag` is a strong validator. Other validators are not defined for
// these operations.
IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"`
}
DownloadLatestArtifactParams defines parameters for DownloadLatestArtifact.
type DownloadLatestArtifactResponse ¶
type DownloadLatestArtifactResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// JSON406 the response for an HTTP 406 `application/json` response
JSON406 *N406NoAcceptableFormat
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *DownloadLatestArtifactResponse200Headers
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *DownloadLatestArtifactResponse302Headers
// Headers304 the parsed response headers for an HTTP 304 response
Headers304 *DownloadLatestArtifactResponse304Headers
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *DownloadLatestArtifactResponse401Headers
}
func ParseDownloadLatestArtifactResponse ¶
func ParseDownloadLatestArtifactResponse(rsp *http.Response) (*DownloadLatestArtifactResponse, error)
ParseDownloadLatestArtifactResponse parses an HTTP response from a DownloadLatestArtifactWithResponse call
func (DownloadLatestArtifactResponse) ContentType ¶
func (r DownloadLatestArtifactResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DownloadLatestArtifactResponse) GetBody ¶
func (r DownloadLatestArtifactResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DownloadLatestArtifactResponse) GetJSON400 ¶
func (r DownloadLatestArtifactResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DownloadLatestArtifactResponse) GetJSON401 ¶
func (r DownloadLatestArtifactResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DownloadLatestArtifactResponse) GetJSON403 ¶
func (r DownloadLatestArtifactResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DownloadLatestArtifactResponse) GetJSON404 ¶
func (r DownloadLatestArtifactResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DownloadLatestArtifactResponse) GetJSON406 ¶
func (r DownloadLatestArtifactResponse) GetJSON406() *N406NoAcceptableFormat
GetJSON406 returns the response for an HTTP 406 `application/json` response
func (DownloadLatestArtifactResponse) Status ¶
func (r DownloadLatestArtifactResponse) Status() string
Status returns HTTPResponse.Status
func (DownloadLatestArtifactResponse) StatusCode ¶
func (r DownloadLatestArtifactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadLatestArtifactResponse200Headers ¶
type DownloadLatestArtifactResponse200Headers struct {
CacheControl string
ContentDisposition *string
ContentEncoding *string
ContentLocation string
ETag string
ReprDigest *string
Vary *string
}
DownloadLatestArtifactResponse200Headers the declared response headers of an HTTP 200 response for DownloadLatestArtifact
type DownloadLatestArtifactResponse302Headers ¶
type DownloadLatestArtifactResponse302Headers struct {
Location string
}
DownloadLatestArtifactResponse302Headers the declared response headers of an HTTP 302 response for DownloadLatestArtifact
type DownloadLatestArtifactResponse304Headers ¶
type DownloadLatestArtifactResponse304Headers struct {
CacheControl *string
ContentLocation string
ETag string
Vary *string
}
DownloadLatestArtifactResponse304Headers the declared response headers of an HTTP 304 response for DownloadLatestArtifact
type DownloadLatestArtifactResponse401Headers ¶
type DownloadLatestArtifactResponse401Headers struct {
WWWAuthenticate string
}
DownloadLatestArtifactResponse401Headers the declared response headers of an HTTP 401 response for DownloadLatestArtifact
type DownloadLatestArtifactSignatureParams ¶
type DownloadLatestArtifactSignatureParams struct {
// MediaType Selects which of the artifact revision's `formats` the returned signature applies
// to, by that format's `mediaType`. This is the media type of the signed content,
// not of the signature. The parameter value is the media type itself, not a
// pre-encoded wire form. Clients shall apply query-parameter serialization once.
// Servers shall interpret the value after one query-decoding step.
//
// Matching against a format's `mediaType` is case-insensitive for the type and
// subtype. Parameter names are compared case-insensitively; parameter values
// require exact equality. When omitted, the server selects a format of its choice.
// Requests that need a specific format's signature should supply this parameter.
// Successful responses include `Content-Location` with a `mediaType` query
// parameter naming the selected content format. An explicit `mediaType` can
// remove variation by `Accept` when it completely determines the signed format.
// It does not eliminate variation by `Accept-Encoding`; see `artifact-vary`.
//
// Example after serialization:
// `.../signature/download?mediaType=application%2Fvnd.cyclonedx%2Bjson`
MediaType *ArtifactSignatureMediaType `form:"mediaType,omitempty" json:"mediaType,omitempty"`
// IfNoneMatch Conditional request validator (RFC 9110). For artifact and signature downloads,
// `ETag` is the only defined validator. Servers evaluate `If-None-Match` with the
// weak comparison function (RFC 9110 section 13.1.2) against the `ETag` of the
// representation selected after negotiation, including content-coding negotiation,
// and answer `304` when it matches. The corresponding `304` shall carry that
// representation's validator and shall carry `Vary` when the `200` would. When
// present, that `ETag` is a strong validator. Other validators are not defined for
// these operations.
IfNoneMatch *IfNoneMatch `json:"If-None-Match,omitempty"`
}
DownloadLatestArtifactSignatureParams defines parameters for DownloadLatestArtifactSignature.
type DownloadLatestArtifactSignatureResponse ¶
type DownloadLatestArtifactSignatureResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// JSON406 the response for an HTTP 406 `application/json` response
JSON406 *N406NoAcceptableFormat
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *DownloadLatestArtifactSignatureResponse200Headers
// Headers302 the parsed response headers for an HTTP 302 response
Headers302 *DownloadLatestArtifactSignatureResponse302Headers
// Headers304 the parsed response headers for an HTTP 304 response
Headers304 *DownloadLatestArtifactSignatureResponse304Headers
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *DownloadLatestArtifactSignatureResponse401Headers
}
func ParseDownloadLatestArtifactSignatureResponse ¶
func ParseDownloadLatestArtifactSignatureResponse(rsp *http.Response) (*DownloadLatestArtifactSignatureResponse, error)
ParseDownloadLatestArtifactSignatureResponse parses an HTTP response from a DownloadLatestArtifactSignatureWithResponse call
func (DownloadLatestArtifactSignatureResponse) ContentType ¶
func (r DownloadLatestArtifactSignatureResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DownloadLatestArtifactSignatureResponse) GetBody ¶
func (r DownloadLatestArtifactSignatureResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DownloadLatestArtifactSignatureResponse) GetJSON400 ¶
func (r DownloadLatestArtifactSignatureResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (DownloadLatestArtifactSignatureResponse) GetJSON401 ¶
func (r DownloadLatestArtifactSignatureResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (DownloadLatestArtifactSignatureResponse) GetJSON403 ¶
func (r DownloadLatestArtifactSignatureResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (DownloadLatestArtifactSignatureResponse) GetJSON404 ¶
func (r DownloadLatestArtifactSignatureResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (DownloadLatestArtifactSignatureResponse) GetJSON406 ¶
func (r DownloadLatestArtifactSignatureResponse) GetJSON406() *N406NoAcceptableFormat
GetJSON406 returns the response for an HTTP 406 `application/json` response
func (DownloadLatestArtifactSignatureResponse) Status ¶
func (r DownloadLatestArtifactSignatureResponse) Status() string
Status returns HTTPResponse.Status
func (DownloadLatestArtifactSignatureResponse) StatusCode ¶
func (r DownloadLatestArtifactSignatureResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DownloadLatestArtifactSignatureResponse200Headers ¶
type DownloadLatestArtifactSignatureResponse200Headers struct {
CacheControl string
ContentDisposition *string
ContentEncoding *string
ContentLocation string
ETag string
ReprDigest *string
Vary *string
}
DownloadLatestArtifactSignatureResponse200Headers the declared response headers of an HTTP 200 response for DownloadLatestArtifactSignature
type DownloadLatestArtifactSignatureResponse302Headers ¶
type DownloadLatestArtifactSignatureResponse302Headers struct {
Location string
}
DownloadLatestArtifactSignatureResponse302Headers the declared response headers of an HTTP 302 response for DownloadLatestArtifactSignature
type DownloadLatestArtifactSignatureResponse304Headers ¶
type DownloadLatestArtifactSignatureResponse304Headers struct {
CacheControl *string
ContentLocation string
ETag string
Vary *string
}
DownloadLatestArtifactSignatureResponse304Headers the declared response headers of an HTTP 304 response for DownloadLatestArtifactSignature
type DownloadLatestArtifactSignatureResponse401Headers ¶
type DownloadLatestArtifactSignatureResponse401Headers struct {
WWWAuthenticate string
}
DownloadLatestArtifactSignatureResponse401Headers the declared response headers of an HTTP 401 response for DownloadLatestArtifactSignature
type ErrorResponse ¶
type ErrorResponse struct {
// Error Classification of TEA error response
Error UnknownErrorType `json:"error"`
// Message Optional human-readable explanation for diagnostics. Clients shall not
// interpret it programmatically.
Message *string `json:"message,omitempty"`
}
ErrorResponse TEA API error body. Servers shall emit exactly this shape: `error` is one of the values of `unknown-error-type`, and `message` is the only other property allowed. Clients recognize a TEA error by an `application/json` response whose body is a JSON object with a string `error` property. Other JSON 404 bodies are not TEA error responses.
Any `4xx` from a resource endpoint may carry an `error-response` body; when present, `error` is from `unknown-error-type`. Clients shall not require a body.
type GetArtifactByVersionResponse ¶
type GetArtifactByVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Artifact
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetArtifactByVersionResponse401Headers
}
func ParseGetArtifactByVersionResponse ¶
func ParseGetArtifactByVersionResponse(rsp *http.Response) (*GetArtifactByVersionResponse, error)
ParseGetArtifactByVersionResponse parses an HTTP response from a GetArtifactByVersionWithResponse call
func (GetArtifactByVersionResponse) ContentType ¶
func (r GetArtifactByVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetArtifactByVersionResponse) GetBody ¶
func (r GetArtifactByVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetArtifactByVersionResponse) GetJSON200 ¶
func (r GetArtifactByVersionResponse) GetJSON200() *Artifact
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetArtifactByVersionResponse) GetJSON400 ¶
func (r GetArtifactByVersionResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetArtifactByVersionResponse) GetJSON401 ¶
func (r GetArtifactByVersionResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetArtifactByVersionResponse) GetJSON403 ¶
func (r GetArtifactByVersionResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetArtifactByVersionResponse) GetJSON404 ¶
func (r GetArtifactByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetArtifactByVersionResponse) Status ¶
func (r GetArtifactByVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetArtifactByVersionResponse) StatusCode ¶
func (r GetArtifactByVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetArtifactByVersionResponse401Headers ¶
type GetArtifactByVersionResponse401Headers struct {
WWWAuthenticate string
}
GetArtifactByVersionResponse401Headers the declared response headers of an HTTP 401 response for GetArtifactByVersion
type GetComponentCleResponse ¶
type GetComponentCleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Cle
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetComponentCleResponse401Headers
}
func ParseGetComponentCleResponse ¶
func ParseGetComponentCleResponse(rsp *http.Response) (*GetComponentCleResponse, error)
ParseGetComponentCleResponse parses an HTTP response from a GetComponentCleWithResponse call
func (GetComponentCleResponse) ContentType ¶
func (r GetComponentCleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetComponentCleResponse) GetBody ¶
func (r GetComponentCleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetComponentCleResponse) GetJSON200 ¶
func (r GetComponentCleResponse) GetJSON200() *Cle
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetComponentCleResponse) GetJSON400 ¶
func (r GetComponentCleResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetComponentCleResponse) GetJSON401 ¶
func (r GetComponentCleResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetComponentCleResponse) GetJSON403 ¶
func (r GetComponentCleResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetComponentCleResponse) GetJSON404 ¶
func (r GetComponentCleResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetComponentCleResponse) Status ¶
func (r GetComponentCleResponse) Status() string
Status returns HTTPResponse.Status
func (GetComponentCleResponse) StatusCode ¶
func (r GetComponentCleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetComponentCleResponse401Headers ¶
type GetComponentCleResponse401Headers struct {
WWWAuthenticate string
}
GetComponentCleResponse401Headers the declared response headers of an HTTP 401 response for GetComponentCle
type GetComponentReleaseCleResponse ¶
type GetComponentReleaseCleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Cle
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetComponentReleaseCleResponse401Headers
}
func ParseGetComponentReleaseCleResponse ¶
func ParseGetComponentReleaseCleResponse(rsp *http.Response) (*GetComponentReleaseCleResponse, error)
ParseGetComponentReleaseCleResponse parses an HTTP response from a GetComponentReleaseCleWithResponse call
func (GetComponentReleaseCleResponse) ContentType ¶
func (r GetComponentReleaseCleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetComponentReleaseCleResponse) GetBody ¶
func (r GetComponentReleaseCleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetComponentReleaseCleResponse) GetJSON200 ¶
func (r GetComponentReleaseCleResponse) GetJSON200() *Cle
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetComponentReleaseCleResponse) GetJSON400 ¶
func (r GetComponentReleaseCleResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetComponentReleaseCleResponse) GetJSON401 ¶
func (r GetComponentReleaseCleResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetComponentReleaseCleResponse) GetJSON403 ¶
func (r GetComponentReleaseCleResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetComponentReleaseCleResponse) GetJSON404 ¶
func (r GetComponentReleaseCleResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetComponentReleaseCleResponse) Status ¶
func (r GetComponentReleaseCleResponse) Status() string
Status returns HTTPResponse.Status
func (GetComponentReleaseCleResponse) StatusCode ¶
func (r GetComponentReleaseCleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetComponentReleaseCleResponse401Headers ¶
type GetComponentReleaseCleResponse401Headers struct {
WWWAuthenticate string
}
GetComponentReleaseCleResponse401Headers the declared response headers of an HTTP 401 response for GetComponentReleaseCle
type GetComponentReleaseCollectionByVersionResponse ¶
type GetComponentReleaseCollectionByVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Collection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetComponentReleaseCollectionByVersionResponse401Headers
}
func ParseGetComponentReleaseCollectionByVersionResponse ¶
func ParseGetComponentReleaseCollectionByVersionResponse(rsp *http.Response) (*GetComponentReleaseCollectionByVersionResponse, error)
ParseGetComponentReleaseCollectionByVersionResponse parses an HTTP response from a GetComponentReleaseCollectionByVersionWithResponse call
func (GetComponentReleaseCollectionByVersionResponse) ContentType ¶
func (r GetComponentReleaseCollectionByVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetComponentReleaseCollectionByVersionResponse) GetBody ¶
func (r GetComponentReleaseCollectionByVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetComponentReleaseCollectionByVersionResponse) GetJSON200 ¶
func (r GetComponentReleaseCollectionByVersionResponse) GetJSON200() *Collection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetComponentReleaseCollectionByVersionResponse) GetJSON400 ¶
func (r GetComponentReleaseCollectionByVersionResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetComponentReleaseCollectionByVersionResponse) GetJSON401 ¶
func (r GetComponentReleaseCollectionByVersionResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetComponentReleaseCollectionByVersionResponse) GetJSON403 ¶
func (r GetComponentReleaseCollectionByVersionResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetComponentReleaseCollectionByVersionResponse) GetJSON404 ¶
func (r GetComponentReleaseCollectionByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetComponentReleaseCollectionByVersionResponse) Status ¶
func (r GetComponentReleaseCollectionByVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetComponentReleaseCollectionByVersionResponse) StatusCode ¶
func (r GetComponentReleaseCollectionByVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetComponentReleaseCollectionByVersionResponse401Headers ¶
type GetComponentReleaseCollectionByVersionResponse401Headers struct {
WWWAuthenticate string
}
GetComponentReleaseCollectionByVersionResponse401Headers the declared response headers of an HTTP 401 response for GetComponentReleaseCollectionByVersion
type GetComponentReleaseResponse ¶
type GetComponentReleaseResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ComponentReleaseWithCollection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetComponentReleaseResponse401Headers
}
func ParseGetComponentReleaseResponse ¶
func ParseGetComponentReleaseResponse(rsp *http.Response) (*GetComponentReleaseResponse, error)
ParseGetComponentReleaseResponse parses an HTTP response from a GetComponentReleaseWithResponse call
func (GetComponentReleaseResponse) ContentType ¶
func (r GetComponentReleaseResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetComponentReleaseResponse) GetBody ¶
func (r GetComponentReleaseResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetComponentReleaseResponse) GetJSON200 ¶
func (r GetComponentReleaseResponse) GetJSON200() *ComponentReleaseWithCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetComponentReleaseResponse) GetJSON400 ¶
func (r GetComponentReleaseResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetComponentReleaseResponse) GetJSON401 ¶
func (r GetComponentReleaseResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetComponentReleaseResponse) GetJSON403 ¶
func (r GetComponentReleaseResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetComponentReleaseResponse) GetJSON404 ¶
func (r GetComponentReleaseResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetComponentReleaseResponse) Status ¶
func (r GetComponentReleaseResponse) Status() string
Status returns HTTPResponse.Status
func (GetComponentReleaseResponse) StatusCode ¶
func (r GetComponentReleaseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetComponentReleaseResponse401Headers ¶
type GetComponentReleaseResponse401Headers struct {
WWWAuthenticate string
}
GetComponentReleaseResponse401Headers the declared response headers of an HTTP 401 response for GetComponentRelease
type GetComponentResponse ¶
type GetComponentResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Component
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetComponentResponse401Headers
}
func ParseGetComponentResponse ¶
func ParseGetComponentResponse(rsp *http.Response) (*GetComponentResponse, error)
ParseGetComponentResponse parses an HTTP response from a GetComponentWithResponse call
func (GetComponentResponse) ContentType ¶
func (r GetComponentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetComponentResponse) GetBody ¶
func (r GetComponentResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetComponentResponse) GetJSON200 ¶
func (r GetComponentResponse) GetJSON200() *Component
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetComponentResponse) GetJSON400 ¶
func (r GetComponentResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetComponentResponse) GetJSON401 ¶
func (r GetComponentResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetComponentResponse) GetJSON403 ¶
func (r GetComponentResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetComponentResponse) GetJSON404 ¶
func (r GetComponentResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetComponentResponse) Status ¶
func (r GetComponentResponse) Status() string
Status returns HTTPResponse.Status
func (GetComponentResponse) StatusCode ¶
func (r GetComponentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetComponentResponse401Headers ¶
type GetComponentResponse401Headers struct {
WWWAuthenticate string
}
GetComponentResponse401Headers the declared response headers of an HTTP 401 response for GetComponent
type GetLatestArtifactResponse ¶
type GetLatestArtifactResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Artifact
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetLatestArtifactResponse401Headers
}
func ParseGetLatestArtifactResponse ¶
func ParseGetLatestArtifactResponse(rsp *http.Response) (*GetLatestArtifactResponse, error)
ParseGetLatestArtifactResponse parses an HTTP response from a GetLatestArtifactWithResponse call
func (GetLatestArtifactResponse) ContentType ¶
func (r GetLatestArtifactResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLatestArtifactResponse) GetBody ¶
func (r GetLatestArtifactResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLatestArtifactResponse) GetJSON200 ¶
func (r GetLatestArtifactResponse) GetJSON200() *Artifact
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLatestArtifactResponse) GetJSON400 ¶
func (r GetLatestArtifactResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetLatestArtifactResponse) GetJSON401 ¶
func (r GetLatestArtifactResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetLatestArtifactResponse) GetJSON403 ¶
func (r GetLatestArtifactResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetLatestArtifactResponse) GetJSON404 ¶
func (r GetLatestArtifactResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetLatestArtifactResponse) Status ¶
func (r GetLatestArtifactResponse) Status() string
Status returns HTTPResponse.Status
func (GetLatestArtifactResponse) StatusCode ¶
func (r GetLatestArtifactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLatestArtifactResponse401Headers ¶
type GetLatestArtifactResponse401Headers struct {
WWWAuthenticate string
}
GetLatestArtifactResponse401Headers the declared response headers of an HTTP 401 response for GetLatestArtifact
type GetLatestComponentReleaseCollectionResponse ¶
type GetLatestComponentReleaseCollectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Collection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetLatestComponentReleaseCollectionResponse401Headers
}
func ParseGetLatestComponentReleaseCollectionResponse ¶
func ParseGetLatestComponentReleaseCollectionResponse(rsp *http.Response) (*GetLatestComponentReleaseCollectionResponse, error)
ParseGetLatestComponentReleaseCollectionResponse parses an HTTP response from a GetLatestComponentReleaseCollectionWithResponse call
func (GetLatestComponentReleaseCollectionResponse) ContentType ¶
func (r GetLatestComponentReleaseCollectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLatestComponentReleaseCollectionResponse) GetBody ¶
func (r GetLatestComponentReleaseCollectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLatestComponentReleaseCollectionResponse) GetJSON200 ¶
func (r GetLatestComponentReleaseCollectionResponse) GetJSON200() *Collection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLatestComponentReleaseCollectionResponse) GetJSON400 ¶
func (r GetLatestComponentReleaseCollectionResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetLatestComponentReleaseCollectionResponse) GetJSON401 ¶
func (r GetLatestComponentReleaseCollectionResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetLatestComponentReleaseCollectionResponse) GetJSON403 ¶
func (r GetLatestComponentReleaseCollectionResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetLatestComponentReleaseCollectionResponse) GetJSON404 ¶
func (r GetLatestComponentReleaseCollectionResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetLatestComponentReleaseCollectionResponse) Status ¶
func (r GetLatestComponentReleaseCollectionResponse) Status() string
Status returns HTTPResponse.Status
func (GetLatestComponentReleaseCollectionResponse) StatusCode ¶
func (r GetLatestComponentReleaseCollectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLatestComponentReleaseCollectionResponse401Headers ¶
type GetLatestComponentReleaseCollectionResponse401Headers struct {
WWWAuthenticate string
}
GetLatestComponentReleaseCollectionResponse401Headers the declared response headers of an HTTP 401 response for GetLatestComponentReleaseCollection
type GetLatestProductReleaseCollectionResponse ¶
type GetLatestProductReleaseCollectionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Collection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetLatestProductReleaseCollectionResponse401Headers
}
func ParseGetLatestProductReleaseCollectionResponse ¶
func ParseGetLatestProductReleaseCollectionResponse(rsp *http.Response) (*GetLatestProductReleaseCollectionResponse, error)
ParseGetLatestProductReleaseCollectionResponse parses an HTTP response from a GetLatestProductReleaseCollectionWithResponse call
func (GetLatestProductReleaseCollectionResponse) ContentType ¶
func (r GetLatestProductReleaseCollectionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLatestProductReleaseCollectionResponse) GetBody ¶
func (r GetLatestProductReleaseCollectionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetLatestProductReleaseCollectionResponse) GetJSON200 ¶
func (r GetLatestProductReleaseCollectionResponse) GetJSON200() *Collection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetLatestProductReleaseCollectionResponse) GetJSON400 ¶
func (r GetLatestProductReleaseCollectionResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetLatestProductReleaseCollectionResponse) GetJSON401 ¶
func (r GetLatestProductReleaseCollectionResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetLatestProductReleaseCollectionResponse) GetJSON403 ¶
func (r GetLatestProductReleaseCollectionResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetLatestProductReleaseCollectionResponse) GetJSON404 ¶
func (r GetLatestProductReleaseCollectionResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetLatestProductReleaseCollectionResponse) Status ¶
func (r GetLatestProductReleaseCollectionResponse) Status() string
Status returns HTTPResponse.Status
func (GetLatestProductReleaseCollectionResponse) StatusCode ¶
func (r GetLatestProductReleaseCollectionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLatestProductReleaseCollectionResponse401Headers ¶
type GetLatestProductReleaseCollectionResponse401Headers struct {
WWWAuthenticate string
}
GetLatestProductReleaseCollectionResponse401Headers the declared response headers of an HTTP 401 response for GetLatestProductReleaseCollection
type GetProductCleResponse ¶
type GetProductCleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Cle
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetProductCleResponse401Headers
}
func ParseGetProductCleResponse ¶
func ParseGetProductCleResponse(rsp *http.Response) (*GetProductCleResponse, error)
ParseGetProductCleResponse parses an HTTP response from a GetProductCleWithResponse call
func (GetProductCleResponse) ContentType ¶
func (r GetProductCleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProductCleResponse) GetBody ¶
func (r GetProductCleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProductCleResponse) GetJSON200 ¶
func (r GetProductCleResponse) GetJSON200() *Cle
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProductCleResponse) GetJSON400 ¶
func (r GetProductCleResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetProductCleResponse) GetJSON401 ¶
func (r GetProductCleResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetProductCleResponse) GetJSON403 ¶
func (r GetProductCleResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetProductCleResponse) GetJSON404 ¶
func (r GetProductCleResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetProductCleResponse) Status ¶
func (r GetProductCleResponse) Status() string
Status returns HTTPResponse.Status
func (GetProductCleResponse) StatusCode ¶
func (r GetProductCleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProductCleResponse401Headers ¶
type GetProductCleResponse401Headers struct {
WWWAuthenticate string
}
GetProductCleResponse401Headers the declared response headers of an HTTP 401 response for GetProductCle
type GetProductReleaseCleResponse ¶
type GetProductReleaseCleResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Cle
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetProductReleaseCleResponse401Headers
}
func ParseGetProductReleaseCleResponse ¶
func ParseGetProductReleaseCleResponse(rsp *http.Response) (*GetProductReleaseCleResponse, error)
ParseGetProductReleaseCleResponse parses an HTTP response from a GetProductReleaseCleWithResponse call
func (GetProductReleaseCleResponse) ContentType ¶
func (r GetProductReleaseCleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProductReleaseCleResponse) GetBody ¶
func (r GetProductReleaseCleResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProductReleaseCleResponse) GetJSON200 ¶
func (r GetProductReleaseCleResponse) GetJSON200() *Cle
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProductReleaseCleResponse) GetJSON400 ¶
func (r GetProductReleaseCleResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetProductReleaseCleResponse) GetJSON401 ¶
func (r GetProductReleaseCleResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetProductReleaseCleResponse) GetJSON403 ¶
func (r GetProductReleaseCleResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetProductReleaseCleResponse) GetJSON404 ¶
func (r GetProductReleaseCleResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetProductReleaseCleResponse) Status ¶
func (r GetProductReleaseCleResponse) Status() string
Status returns HTTPResponse.Status
func (GetProductReleaseCleResponse) StatusCode ¶
func (r GetProductReleaseCleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProductReleaseCleResponse401Headers ¶
type GetProductReleaseCleResponse401Headers struct {
WWWAuthenticate string
}
GetProductReleaseCleResponse401Headers the declared response headers of an HTTP 401 response for GetProductReleaseCle
type GetProductReleaseCollectionByVersionResponse ¶
type GetProductReleaseCollectionByVersionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Collection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetProductReleaseCollectionByVersionResponse401Headers
}
func ParseGetProductReleaseCollectionByVersionResponse ¶
func ParseGetProductReleaseCollectionByVersionResponse(rsp *http.Response) (*GetProductReleaseCollectionByVersionResponse, error)
ParseGetProductReleaseCollectionByVersionResponse parses an HTTP response from a GetProductReleaseCollectionByVersionWithResponse call
func (GetProductReleaseCollectionByVersionResponse) ContentType ¶
func (r GetProductReleaseCollectionByVersionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProductReleaseCollectionByVersionResponse) GetBody ¶
func (r GetProductReleaseCollectionByVersionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProductReleaseCollectionByVersionResponse) GetJSON200 ¶
func (r GetProductReleaseCollectionByVersionResponse) GetJSON200() *Collection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProductReleaseCollectionByVersionResponse) GetJSON400 ¶
func (r GetProductReleaseCollectionByVersionResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetProductReleaseCollectionByVersionResponse) GetJSON401 ¶
func (r GetProductReleaseCollectionByVersionResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetProductReleaseCollectionByVersionResponse) GetJSON403 ¶
func (r GetProductReleaseCollectionByVersionResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetProductReleaseCollectionByVersionResponse) GetJSON404 ¶
func (r GetProductReleaseCollectionByVersionResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetProductReleaseCollectionByVersionResponse) Status ¶
func (r GetProductReleaseCollectionByVersionResponse) Status() string
Status returns HTTPResponse.Status
func (GetProductReleaseCollectionByVersionResponse) StatusCode ¶
func (r GetProductReleaseCollectionByVersionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProductReleaseCollectionByVersionResponse401Headers ¶
type GetProductReleaseCollectionByVersionResponse401Headers struct {
WWWAuthenticate string
}
GetProductReleaseCollectionByVersionResponse401Headers the declared response headers of an HTTP 401 response for GetProductReleaseCollectionByVersion
type GetProductReleaseResponse ¶
type GetProductReleaseResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ProductReleaseWithCollection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetProductReleaseResponse401Headers
}
func ParseGetProductReleaseResponse ¶
func ParseGetProductReleaseResponse(rsp *http.Response) (*GetProductReleaseResponse, error)
ParseGetProductReleaseResponse parses an HTTP response from a GetProductReleaseWithResponse call
func (GetProductReleaseResponse) ContentType ¶
func (r GetProductReleaseResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProductReleaseResponse) GetBody ¶
func (r GetProductReleaseResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProductReleaseResponse) GetJSON200 ¶
func (r GetProductReleaseResponse) GetJSON200() *ProductReleaseWithCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProductReleaseResponse) GetJSON400 ¶
func (r GetProductReleaseResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetProductReleaseResponse) GetJSON401 ¶
func (r GetProductReleaseResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetProductReleaseResponse) GetJSON403 ¶
func (r GetProductReleaseResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetProductReleaseResponse) GetJSON404 ¶
func (r GetProductReleaseResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetProductReleaseResponse) Status ¶
func (r GetProductReleaseResponse) Status() string
Status returns HTTPResponse.Status
func (GetProductReleaseResponse) StatusCode ¶
func (r GetProductReleaseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProductReleaseResponse401Headers ¶
type GetProductReleaseResponse401Headers struct {
WWWAuthenticate string
}
GetProductReleaseResponse401Headers the declared response headers of an HTTP 401 response for GetProductRelease
type GetProductResponse ¶
type GetProductResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Product
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *GetProductResponse401Headers
}
func ParseGetProductResponse ¶
func ParseGetProductResponse(rsp *http.Response) (*GetProductResponse, error)
ParseGetProductResponse parses an HTTP response from a GetProductWithResponse call
func (GetProductResponse) ContentType ¶
func (r GetProductResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetProductResponse) GetBody ¶
func (r GetProductResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetProductResponse) GetJSON200 ¶
func (r GetProductResponse) GetJSON200() *Product
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetProductResponse) GetJSON400 ¶
func (r GetProductResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (GetProductResponse) GetJSON401 ¶
func (r GetProductResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (GetProductResponse) GetJSON403 ¶
func (r GetProductResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (GetProductResponse) GetJSON404 ¶
func (r GetProductResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (GetProductResponse) Status ¶
func (r GetProductResponse) Status() string
Status returns HTTPResponse.Status
func (GetProductResponse) StatusCode ¶
func (r GetProductResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProductResponse401Headers ¶
type GetProductResponse401Headers struct {
WWWAuthenticate string
}
GetProductResponse401Headers the declared response headers of an HTTP 401 response for GetProduct
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type IdType ¶
type IdType = IdentifierType
IdType Enumeration of identifier types.
`COMPLIANCE_DOCUMENT` marks a TEA Component or TEA Component Release as carrying a compliance document (for example a SOC 2 report), so that it can be discovered with `idType=COMPLIANCE_DOCUMENT` on `/components` and `/componentReleases`; the document itself is published as a TEA Artifact of the component release. It shall not be used on products, product releases, distributions, or CLE events.
type Identifier ¶
type Identifier struct {
// IdType Type of identifier, e.g. `TEI`, `PURL`, `CPE`
IdType IdentifierType `json:"idType"`
// IdValue Identifier value
IdValue string `json:"idValue"`
}
Identifier An identifier of a TEA object with a specified type. `COMPLIANCE_DOCUMENT` is valid only on TEA Components and TEA Component Releases (see `identifier-type`).
type IdentifierType ¶
type IdentifierType string
IdentifierType Enumeration of identifier types.
`COMPLIANCE_DOCUMENT` marks a TEA Component or TEA Component Release as carrying a compliance document (for example a SOC 2 report), so that it can be discovered with `idType=COMPLIANCE_DOCUMENT` on `/components` and `/componentReleases`; the document itself is published as a TEA Artifact of the component release. It shall not be used on products, product releases, distributions, or CLE events.
const ( COMPLIANCEDOCUMENT IdentifierType = "COMPLIANCE_DOCUMENT" CPE IdentifierType = "CPE" PURL IdentifierType = "PURL" TEI IdentifierType = "TEI" )
Defines values for IdentifierType.
func (IdentifierType) Valid ¶
func (e IdentifierType) Valid() bool
Valid indicates whether the value is a known member of the IdentifierType enum.
type ListComponentReleaseCollectionsParams ¶
type ListComponentReleaseCollectionsParams struct {
// PageSize The maximum number of results to return.
PageSize *PageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken An opaque continuation token produced by a previous response.
// This token shall be copied verbatim from the `nextPageToken` value returned by the previous response.
// Clients shall not parse, construct, or modify this token.
//
// The token represents continuation state for the original query, including
// `sortField`, `sortOrder`, result-affecting filters such as `idType` and `idValue`,
// and path parameters such as parent `uuid`.
// When `pageToken` is supplied, clients shall not change those result-affecting query
// parameters. Servers shall return `400 Bad Request` if supplied result-affecting query
// parameters conflict with the token state. To change any result-affecting parameter,
// clients shall start a new pagination sequence without `pageToken`.
//
// A `pageToken` is only valid with the same request path and same path parameter values
// used to obtain it. Clients shall not reuse a `pageToken` across different parent
// resource paths or different path `uuid` values. Servers shall return `400 Bad Request`
// when a `pageToken` is used with a different path or different path parameter values.
//
// Servers shall return `400 Bad Request` for malformed, invalid, expired, or conflicting
// `pageToken` values.
PageToken *PageToken `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// SortField The field by which to sort the results.
//
// Paginated collection results shall be ordered first by the selected `sortField`,
// then by `version` as the deterministic secondary key if additional tie-breaking
// is needed. Collection UUIDs are not used as tie-breakers because collection UUIDs
// match the associated release UUID and can be shared across collection revisions.
//
// The only currently supported collection `sortField` is `version`, so the secondary
// `version` key is redundant unless additional collection sort fields are added later.
SortField *ListComponentReleaseCollectionsParamsSortField `form:"sortField,omitempty" json:"sortField,omitempty"`
// SortOrder The direction of the sort.
//
// The default is `asc` for all paginated resources. Clients that need newest
// release or collection versions first can request `sortOrder=desc`.
//
// The selected sort order applies to both the primary `sortField` and the
// resource-specific deterministic secondary tie-breaker. For products, components,
// product releases, and component releases, the secondary key is `uuid`. For collections,
// the secondary key is `version` if additional tie-breaking is needed.
SortOrder *ListComponentReleaseCollectionsParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
}
ListComponentReleaseCollectionsParams defines parameters for ListComponentReleaseCollections.
type ListComponentReleaseCollectionsParamsSortField ¶
type ListComponentReleaseCollectionsParamsSortField string
ListComponentReleaseCollectionsParamsSortField defines parameters for ListComponentReleaseCollections.
const (
ListComponentReleaseCollectionsParamsSortFieldVersion ListComponentReleaseCollectionsParamsSortField = "version"
)
Defines values for ListComponentReleaseCollectionsParamsSortField.
func (ListComponentReleaseCollectionsParamsSortField) Valid ¶
func (e ListComponentReleaseCollectionsParamsSortField) Valid() bool
Valid indicates whether the value is a known member of the ListComponentReleaseCollectionsParamsSortField enum.
type ListComponentReleaseCollectionsParamsSortOrder ¶
type ListComponentReleaseCollectionsParamsSortOrder string
ListComponentReleaseCollectionsParamsSortOrder defines parameters for ListComponentReleaseCollections.
const ( ListComponentReleaseCollectionsParamsSortOrderAsc ListComponentReleaseCollectionsParamsSortOrder = "asc" ListComponentReleaseCollectionsParamsSortOrderDesc ListComponentReleaseCollectionsParamsSortOrder = "desc" )
Defines values for ListComponentReleaseCollectionsParamsSortOrder.
func (ListComponentReleaseCollectionsParamsSortOrder) Valid ¶
func (e ListComponentReleaseCollectionsParamsSortOrder) Valid() bool
Valid indicates whether the value is a known member of the ListComponentReleaseCollectionsParamsSortOrder enum.
type ListComponentReleaseCollectionsResponse ¶
type ListComponentReleaseCollectionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PaginatedCollection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *ListComponentReleaseCollectionsResponse401Headers
}
func ParseListComponentReleaseCollectionsResponse ¶
func ParseListComponentReleaseCollectionsResponse(rsp *http.Response) (*ListComponentReleaseCollectionsResponse, error)
ParseListComponentReleaseCollectionsResponse parses an HTTP response from a ListComponentReleaseCollectionsWithResponse call
func (ListComponentReleaseCollectionsResponse) ContentType ¶
func (r ListComponentReleaseCollectionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListComponentReleaseCollectionsResponse) GetBody ¶
func (r ListComponentReleaseCollectionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListComponentReleaseCollectionsResponse) GetJSON200 ¶
func (r ListComponentReleaseCollectionsResponse) GetJSON200() *PaginatedCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListComponentReleaseCollectionsResponse) GetJSON400 ¶
func (r ListComponentReleaseCollectionsResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListComponentReleaseCollectionsResponse) GetJSON401 ¶
func (r ListComponentReleaseCollectionsResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListComponentReleaseCollectionsResponse) GetJSON403 ¶
func (r ListComponentReleaseCollectionsResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListComponentReleaseCollectionsResponse) GetJSON404 ¶
func (r ListComponentReleaseCollectionsResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListComponentReleaseCollectionsResponse) Status ¶
func (r ListComponentReleaseCollectionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListComponentReleaseCollectionsResponse) StatusCode ¶
func (r ListComponentReleaseCollectionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListComponentReleaseCollectionsResponse401Headers ¶
type ListComponentReleaseCollectionsResponse401Headers struct {
WWWAuthenticate string
}
ListComponentReleaseCollectionsResponse401Headers the declared response headers of an HTTP 401 response for ListComponentReleaseCollections
type ListComponentReleasesParams ¶
type ListComponentReleasesParams struct {
// PageSize The maximum number of results to return.
PageSize *PageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken An opaque continuation token produced by a previous response.
// This token shall be copied verbatim from the `nextPageToken` value returned by the previous response.
// Clients shall not parse, construct, or modify this token.
//
// The token represents continuation state for the original query, including
// `sortField`, `sortOrder`, result-affecting filters such as `idType` and `idValue`,
// and path parameters such as parent `uuid`.
// When `pageToken` is supplied, clients shall not change those result-affecting query
// parameters. Servers shall return `400 Bad Request` if supplied result-affecting query
// parameters conflict with the token state. To change any result-affecting parameter,
// clients shall start a new pagination sequence without `pageToken`.
//
// A `pageToken` is only valid with the same request path and same path parameter values
// used to obtain it. Clients shall not reuse a `pageToken` across different parent
// resource paths or different path `uuid` values. Servers shall return `400 Bad Request`
// when a `pageToken` is used with a different path or different path parameter values.
//
// Servers shall return `400 Bad Request` for malformed, invalid, expired, or conflicting
// `pageToken` values.
PageToken *PageToken `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// SortField The field by which to sort the results.
//
// Paginated results shall be ordered first by the selected `sortField`, then by `uuid`
// as a deterministic secondary tie-breaker.
//
// When `version` is selected, ordering is by the stored version string according to
// the server's documented string collation; semantic-version precedence is not implied.
// Servers shall apply a stable and deterministic string collation for version sorting,
// and the same collation shall be used consistently across pages for a pagination sequence.
//
// When `releaseDate` is selected, releases without a `releaseDate` shall be ordered
// consistently. Missing `releaseDate` values sort after populated `releaseDate` values
// for ascending order and before populated `releaseDate` values for descending order.
SortField *ListComponentReleasesParamsSortField `form:"sortField,omitempty" json:"sortField,omitempty"`
// SortOrder The direction of the sort.
//
// The default is `asc` for all paginated resources. Clients that need newest
// release or collection versions first can request `sortOrder=desc`.
//
// The selected sort order applies to both the primary `sortField` and the
// resource-specific deterministic secondary tie-breaker. For products, components,
// product releases, and component releases, the secondary key is `uuid`. For collections,
// the secondary key is `version` if additional tie-breaking is needed.
SortOrder *ListComponentReleasesParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
}
ListComponentReleasesParams defines parameters for ListComponentReleases.
type ListComponentReleasesParamsSortField ¶
type ListComponentReleasesParamsSortField string
ListComponentReleasesParamsSortField defines parameters for ListComponentReleases.
const ( ListComponentReleasesParamsSortFieldCreatedDate ListComponentReleasesParamsSortField = "createdDate" ListComponentReleasesParamsSortFieldReleaseDate ListComponentReleasesParamsSortField = "releaseDate" ListComponentReleasesParamsSortFieldVersion ListComponentReleasesParamsSortField = "version" )
Defines values for ListComponentReleasesParamsSortField.
func (ListComponentReleasesParamsSortField) Valid ¶
func (e ListComponentReleasesParamsSortField) Valid() bool
Valid indicates whether the value is a known member of the ListComponentReleasesParamsSortField enum.
type ListComponentReleasesParamsSortOrder ¶
type ListComponentReleasesParamsSortOrder string
ListComponentReleasesParamsSortOrder defines parameters for ListComponentReleases.
const ( ListComponentReleasesParamsSortOrderAsc ListComponentReleasesParamsSortOrder = "asc" ListComponentReleasesParamsSortOrderDesc ListComponentReleasesParamsSortOrder = "desc" )
Defines values for ListComponentReleasesParamsSortOrder.
func (ListComponentReleasesParamsSortOrder) Valid ¶
func (e ListComponentReleasesParamsSortOrder) Valid() bool
Valid indicates whether the value is a known member of the ListComponentReleasesParamsSortOrder enum.
type ListComponentReleasesResponse ¶
type ListComponentReleasesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PaginatedComponentRelease
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *ListComponentReleasesResponse401Headers
}
func ParseListComponentReleasesResponse ¶
func ParseListComponentReleasesResponse(rsp *http.Response) (*ListComponentReleasesResponse, error)
ParseListComponentReleasesResponse parses an HTTP response from a ListComponentReleasesWithResponse call
func (ListComponentReleasesResponse) ContentType ¶
func (r ListComponentReleasesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListComponentReleasesResponse) GetBody ¶
func (r ListComponentReleasesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListComponentReleasesResponse) GetJSON200 ¶
func (r ListComponentReleasesResponse) GetJSON200() *PaginatedComponentRelease
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListComponentReleasesResponse) GetJSON400 ¶
func (r ListComponentReleasesResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListComponentReleasesResponse) GetJSON401 ¶
func (r ListComponentReleasesResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListComponentReleasesResponse) GetJSON403 ¶
func (r ListComponentReleasesResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListComponentReleasesResponse) GetJSON404 ¶
func (r ListComponentReleasesResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListComponentReleasesResponse) Status ¶
func (r ListComponentReleasesResponse) Status() string
Status returns HTTPResponse.Status
func (ListComponentReleasesResponse) StatusCode ¶
func (r ListComponentReleasesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListComponentReleasesResponse401Headers ¶
type ListComponentReleasesResponse401Headers struct {
WWWAuthenticate string
}
ListComponentReleasesResponse401Headers the declared response headers of an HTTP 401 response for ListComponentReleases
type ListProductReleaseCollectionsParams ¶
type ListProductReleaseCollectionsParams struct {
// PageSize The maximum number of results to return.
PageSize *PageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken An opaque continuation token produced by a previous response.
// This token shall be copied verbatim from the `nextPageToken` value returned by the previous response.
// Clients shall not parse, construct, or modify this token.
//
// The token represents continuation state for the original query, including
// `sortField`, `sortOrder`, result-affecting filters such as `idType` and `idValue`,
// and path parameters such as parent `uuid`.
// When `pageToken` is supplied, clients shall not change those result-affecting query
// parameters. Servers shall return `400 Bad Request` if supplied result-affecting query
// parameters conflict with the token state. To change any result-affecting parameter,
// clients shall start a new pagination sequence without `pageToken`.
//
// A `pageToken` is only valid with the same request path and same path parameter values
// used to obtain it. Clients shall not reuse a `pageToken` across different parent
// resource paths or different path `uuid` values. Servers shall return `400 Bad Request`
// when a `pageToken` is used with a different path or different path parameter values.
//
// Servers shall return `400 Bad Request` for malformed, invalid, expired, or conflicting
// `pageToken` values.
PageToken *PageToken `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// SortField The field by which to sort the results.
//
// Paginated collection results shall be ordered first by the selected `sortField`,
// then by `version` as the deterministic secondary key if additional tie-breaking
// is needed. Collection UUIDs are not used as tie-breakers because collection UUIDs
// match the associated release UUID and can be shared across collection revisions.
//
// The only currently supported collection `sortField` is `version`, so the secondary
// `version` key is redundant unless additional collection sort fields are added later.
SortField *ListProductReleaseCollectionsParamsSortField `form:"sortField,omitempty" json:"sortField,omitempty"`
// SortOrder The direction of the sort.
//
// The default is `asc` for all paginated resources. Clients that need newest
// release or collection versions first can request `sortOrder=desc`.
//
// The selected sort order applies to both the primary `sortField` and the
// resource-specific deterministic secondary tie-breaker. For products, components,
// product releases, and component releases, the secondary key is `uuid`. For collections,
// the secondary key is `version` if additional tie-breaking is needed.
SortOrder *ListProductReleaseCollectionsParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
}
ListProductReleaseCollectionsParams defines parameters for ListProductReleaseCollections.
type ListProductReleaseCollectionsParamsSortField ¶
type ListProductReleaseCollectionsParamsSortField string
ListProductReleaseCollectionsParamsSortField defines parameters for ListProductReleaseCollections.
const (
ListProductReleaseCollectionsParamsSortFieldVersion ListProductReleaseCollectionsParamsSortField = "version"
)
Defines values for ListProductReleaseCollectionsParamsSortField.
func (ListProductReleaseCollectionsParamsSortField) Valid ¶
func (e ListProductReleaseCollectionsParamsSortField) Valid() bool
Valid indicates whether the value is a known member of the ListProductReleaseCollectionsParamsSortField enum.
type ListProductReleaseCollectionsParamsSortOrder ¶
type ListProductReleaseCollectionsParamsSortOrder string
ListProductReleaseCollectionsParamsSortOrder defines parameters for ListProductReleaseCollections.
const ( ListProductReleaseCollectionsParamsSortOrderAsc ListProductReleaseCollectionsParamsSortOrder = "asc" ListProductReleaseCollectionsParamsSortOrderDesc ListProductReleaseCollectionsParamsSortOrder = "desc" )
Defines values for ListProductReleaseCollectionsParamsSortOrder.
func (ListProductReleaseCollectionsParamsSortOrder) Valid ¶
func (e ListProductReleaseCollectionsParamsSortOrder) Valid() bool
Valid indicates whether the value is a known member of the ListProductReleaseCollectionsParamsSortOrder enum.
type ListProductReleaseCollectionsResponse ¶
type ListProductReleaseCollectionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PaginatedCollection
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *ListProductReleaseCollectionsResponse401Headers
}
func ParseListProductReleaseCollectionsResponse ¶
func ParseListProductReleaseCollectionsResponse(rsp *http.Response) (*ListProductReleaseCollectionsResponse, error)
ParseListProductReleaseCollectionsResponse parses an HTTP response from a ListProductReleaseCollectionsWithResponse call
func (ListProductReleaseCollectionsResponse) ContentType ¶
func (r ListProductReleaseCollectionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListProductReleaseCollectionsResponse) GetBody ¶
func (r ListProductReleaseCollectionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListProductReleaseCollectionsResponse) GetJSON200 ¶
func (r ListProductReleaseCollectionsResponse) GetJSON200() *PaginatedCollection
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListProductReleaseCollectionsResponse) GetJSON400 ¶
func (r ListProductReleaseCollectionsResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListProductReleaseCollectionsResponse) GetJSON401 ¶
func (r ListProductReleaseCollectionsResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListProductReleaseCollectionsResponse) GetJSON403 ¶
func (r ListProductReleaseCollectionsResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListProductReleaseCollectionsResponse) GetJSON404 ¶
func (r ListProductReleaseCollectionsResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListProductReleaseCollectionsResponse) Status ¶
func (r ListProductReleaseCollectionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListProductReleaseCollectionsResponse) StatusCode ¶
func (r ListProductReleaseCollectionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListProductReleaseCollectionsResponse401Headers ¶
type ListProductReleaseCollectionsResponse401Headers struct {
WWWAuthenticate string
}
ListProductReleaseCollectionsResponse401Headers the declared response headers of an HTTP 401 response for ListProductReleaseCollections
type ListProductReleasesParams ¶
type ListProductReleasesParams struct {
// PageSize The maximum number of results to return.
PageSize *PageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken An opaque continuation token produced by a previous response.
// This token shall be copied verbatim from the `nextPageToken` value returned by the previous response.
// Clients shall not parse, construct, or modify this token.
//
// The token represents continuation state for the original query, including
// `sortField`, `sortOrder`, result-affecting filters such as `idType` and `idValue`,
// and path parameters such as parent `uuid`.
// When `pageToken` is supplied, clients shall not change those result-affecting query
// parameters. Servers shall return `400 Bad Request` if supplied result-affecting query
// parameters conflict with the token state. To change any result-affecting parameter,
// clients shall start a new pagination sequence without `pageToken`.
//
// A `pageToken` is only valid with the same request path and same path parameter values
// used to obtain it. Clients shall not reuse a `pageToken` across different parent
// resource paths or different path `uuid` values. Servers shall return `400 Bad Request`
// when a `pageToken` is used with a different path or different path parameter values.
//
// Servers shall return `400 Bad Request` for malformed, invalid, expired, or conflicting
// `pageToken` values.
PageToken *PageToken `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// SortField The field by which to sort the results.
//
// Paginated results shall be ordered first by the selected `sortField`, then by `uuid`
// as a deterministic secondary tie-breaker.
//
// When `version` is selected, ordering is by the stored version string according to
// the server's documented string collation; semantic-version precedence is not implied.
// Servers shall apply a stable and deterministic string collation for version sorting,
// and the same collation shall be used consistently across pages for a pagination sequence.
//
// When `releaseDate` is selected, releases without a `releaseDate` shall be ordered
// consistently. Missing `releaseDate` values sort after populated `releaseDate` values
// for ascending order and before populated `releaseDate` values for descending order.
SortField *ListProductReleasesParamsSortField `form:"sortField,omitempty" json:"sortField,omitempty"`
// SortOrder The direction of the sort.
//
// The default is `asc` for all paginated resources. Clients that need newest
// release or collection versions first can request `sortOrder=desc`.
//
// The selected sort order applies to both the primary `sortField` and the
// resource-specific deterministic secondary tie-breaker. For products, components,
// product releases, and component releases, the secondary key is `uuid`. For collections,
// the secondary key is `version` if additional tie-breaking is needed.
SortOrder *ListProductReleasesParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
}
ListProductReleasesParams defines parameters for ListProductReleases.
type ListProductReleasesParamsSortField ¶
type ListProductReleasesParamsSortField string
ListProductReleasesParamsSortField defines parameters for ListProductReleases.
const ( ListProductReleasesParamsSortFieldCreatedDate ListProductReleasesParamsSortField = "createdDate" ListProductReleasesParamsSortFieldReleaseDate ListProductReleasesParamsSortField = "releaseDate" ListProductReleasesParamsSortFieldVersion ListProductReleasesParamsSortField = "version" )
Defines values for ListProductReleasesParamsSortField.
func (ListProductReleasesParamsSortField) Valid ¶
func (e ListProductReleasesParamsSortField) Valid() bool
Valid indicates whether the value is a known member of the ListProductReleasesParamsSortField enum.
type ListProductReleasesParamsSortOrder ¶
type ListProductReleasesParamsSortOrder string
ListProductReleasesParamsSortOrder defines parameters for ListProductReleases.
const ( ListProductReleasesParamsSortOrderAsc ListProductReleasesParamsSortOrder = "asc" ListProductReleasesParamsSortOrderDesc ListProductReleasesParamsSortOrder = "desc" )
Defines values for ListProductReleasesParamsSortOrder.
func (ListProductReleasesParamsSortOrder) Valid ¶
func (e ListProductReleasesParamsSortOrder) Valid() bool
Valid indicates whether the value is a known member of the ListProductReleasesParamsSortOrder enum.
type ListProductReleasesResponse ¶
type ListProductReleasesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PaginatedProductRelease
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *ListProductReleasesResponse401Headers
}
func ParseListProductReleasesResponse ¶
func ParseListProductReleasesResponse(rsp *http.Response) (*ListProductReleasesResponse, error)
ParseListProductReleasesResponse parses an HTTP response from a ListProductReleasesWithResponse call
func (ListProductReleasesResponse) ContentType ¶
func (r ListProductReleasesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListProductReleasesResponse) GetBody ¶
func (r ListProductReleasesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListProductReleasesResponse) GetJSON200 ¶
func (r ListProductReleasesResponse) GetJSON200() *PaginatedProductRelease
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListProductReleasesResponse) GetJSON400 ¶
func (r ListProductReleasesResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (ListProductReleasesResponse) GetJSON401 ¶
func (r ListProductReleasesResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (ListProductReleasesResponse) GetJSON403 ¶
func (r ListProductReleasesResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (ListProductReleasesResponse) GetJSON404 ¶
func (r ListProductReleasesResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (ListProductReleasesResponse) Status ¶
func (r ListProductReleasesResponse) Status() string
Status returns HTTPResponse.Status
func (ListProductReleasesResponse) StatusCode ¶
func (r ListProductReleasesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListProductReleasesResponse401Headers ¶
type ListProductReleasesResponse401Headers struct {
WWWAuthenticate string
}
ListProductReleasesResponse401Headers the declared response headers of an HTTP 401 response for ListProductReleases
type N400InvalidRequest ¶
type N400InvalidRequest = ErrorResponse
N400InvalidRequest TEA API error body. Servers shall emit exactly this shape: `error` is one of the values of `unknown-error-type`, and `message` is the only other property allowed. Clients recognize a TEA error by an `application/json` response whose body is a JSON object with a string `error` property. Other JSON 404 bodies are not TEA error responses.
Any `4xx` from a resource endpoint may carry an `error-response` body; when present, `error` is from `unknown-error-type`. Clients shall not require a body.
type N400TokenError ¶
type N400TokenError = TokenErrorResponse
N400TokenError Token error response, as defined in RFC 6749 section 5.2.
type N401TokenError ¶
type N401TokenError = TokenErrorResponse
N401TokenError Token error response, as defined in RFC 6749 section 5.2.
type N401Unauthorized ¶
type N401Unauthorized = ErrorResponse
N401Unauthorized TEA API error body. Servers shall emit exactly this shape: `error` is one of the values of `unknown-error-type`, and `message` is the only other property allowed. Clients recognize a TEA error by an `application/json` response whose body is a JSON object with a string `error` property. Other JSON 404 bodies are not TEA error responses.
Any `4xx` from a resource endpoint may carry an `error-response` body; when present, `error` is from `unknown-error-type`. Clients shall not require a body.
type N403Forbidden ¶
type N403Forbidden = ErrorResponse
N403Forbidden TEA API error body. Servers shall emit exactly this shape: `error` is one of the values of `unknown-error-type`, and `message` is the only other property allowed. Clients recognize a TEA error by an `application/json` response whose body is a JSON object with a string `error` property. Other JSON 404 bodies are not TEA error responses.
Any `4xx` from a resource endpoint may carry an `error-response` body; when present, `error` is from `unknown-error-type`. Clients shall not require a body.
type N404ObjectByIdNotFound ¶
type N404ObjectByIdNotFound = ErrorResponse
N404ObjectByIdNotFound TEA API error body. Servers shall emit exactly this shape: `error` is one of the values of `unknown-error-type`, and `message` is the only other property allowed. Clients recognize a TEA error by an `application/json` response whose body is a JSON object with a string `error` property. Other JSON 404 bodies are not TEA error responses.
Any `4xx` from a resource endpoint may carry an `error-response` body; when present, `error` is from `unknown-error-type`. Clients shall not require a body.
type N406NoAcceptableFormat ¶
type N406NoAcceptableFormat = ErrorResponse
N406NoAcceptableFormat TEA API error body. Servers shall emit exactly this shape: `error` is one of the values of `unknown-error-type`, and `message` is the only other property allowed. Clients recognize a TEA error by an `application/json` response whose body is a JSON object with a string `error` property. Other JSON 404 bodies are not TEA error responses.
Any `4xx` from a resource endpoint may carry an `error-response` body; when present, `error` is from `unknown-error-type`. Clients shall not require a body.
type PaginatedCollection ¶
type PaginatedCollection = PaginatedCollectionResponse
PaginatedCollection A paginated response containing TEA Collections
Examples: {"hasNext":true,"nextPageToken":"eyJwYWdlIjoiY29udGludWF0aW9uIn0","results":[]}, {"hasNext":false,"results":[]}
type PaginatedCollectionResponse ¶
type PaginatedCollectionResponse struct {
// HasNext A flag indicating whether there is another page of results to fetch.
//
// When `hasNext` is `true`, `nextPageToken` shall be present.
// When `hasNext` is `false`, `nextPageToken` shall not be included.
HasNext bool `json:"hasNext"`
// NextPageToken An opaque token that can be used in a following request to retrieve the next page of results.
//
// This field shall be present when `hasNext` is `true`.
// This field shall not be included when `hasNext` is `false`.
NextPageToken *string `json:"nextPageToken,omitempty"`
Results []Collection `json:"results"`
}
PaginatedCollectionResponse A paginated response containing TEA Collections
type PaginatedComponent ¶
type PaginatedComponent = PaginatedComponentResponse
PaginatedComponent A paginated response containing TEA Components
Examples: {"hasNext":true,"nextPageToken":"eyJwYWdlIjoiY29udGludWF0aW9uIn0","results":[]}, {"hasNext":false,"results":[]}
type PaginatedComponentRelease ¶
type PaginatedComponentRelease = PaginatedComponentReleaseResponse
PaginatedComponentRelease A paginated response containing TEA Component Releases
Examples: {"hasNext":true,"nextPageToken":"eyJwYWdlIjoiY29udGludWF0aW9uIn0","results":[]}, {"hasNext":false,"results":[]}
type PaginatedComponentReleaseResponse ¶
type PaginatedComponentReleaseResponse struct {
// HasNext A flag indicating whether there is another page of results to fetch.
//
// When `hasNext` is `true`, `nextPageToken` shall be present.
// When `hasNext` is `false`, `nextPageToken` shall not be included.
HasNext bool `json:"hasNext"`
// NextPageToken An opaque token that can be used in a following request to retrieve the next page of results.
//
// This field shall be present when `hasNext` is `true`.
// This field shall not be included when `hasNext` is `false`.
NextPageToken *string `json:"nextPageToken,omitempty"`
Results []ComponentRelease `json:"results"`
}
PaginatedComponentReleaseResponse A paginated response containing TEA Component Releases
type PaginatedComponentResponse ¶
type PaginatedComponentResponse struct {
// HasNext A flag indicating whether there is another page of results to fetch.
//
// When `hasNext` is `true`, `nextPageToken` shall be present.
// When `hasNext` is `false`, `nextPageToken` shall not be included.
HasNext bool `json:"hasNext"`
// NextPageToken An opaque token that can be used in a following request to retrieve the next page of results.
//
// This field shall be present when `hasNext` is `true`.
// This field shall not be included when `hasNext` is `false`.
NextPageToken *string `json:"nextPageToken,omitempty"`
Results []Component `json:"results"`
}
PaginatedComponentResponse A paginated response containing TEA Components
type PaginatedProduct ¶
type PaginatedProduct = PaginatedProductResponse
PaginatedProduct A paginated response containing TEA Products
Examples: {"hasNext":true,"nextPageToken":"eyJwYWdlIjoiY29udGludWF0aW9uIn0","results":[]}, {"hasNext":false,"results":[]}
type PaginatedProductRelease ¶
type PaginatedProductRelease = PaginatedProductReleaseResponse
PaginatedProductRelease A paginated response containing TEA Product Releases
Examples: {"hasNext":true,"nextPageToken":"eyJwYWdlIjoiY29udGludWF0aW9uIn0","results":[]}, {"hasNext":false,"results":[]}
type PaginatedProductReleaseResponse ¶
type PaginatedProductReleaseResponse struct {
// HasNext A flag indicating whether there is another page of results to fetch.
//
// When `hasNext` is `true`, `nextPageToken` shall be present.
// When `hasNext` is `false`, `nextPageToken` shall not be included.
HasNext bool `json:"hasNext"`
// NextPageToken An opaque token that can be used in a following request to retrieve the next page of results.
//
// This field shall be present when `hasNext` is `true`.
// This field shall not be included when `hasNext` is `false`.
NextPageToken *string `json:"nextPageToken,omitempty"`
Results []ProductRelease `json:"results"`
}
PaginatedProductReleaseResponse A paginated response containing TEA Product Releases
type PaginatedProductResponse ¶
type PaginatedProductResponse struct {
// HasNext A flag indicating whether there is another page of results to fetch.
//
// When `hasNext` is `true`, `nextPageToken` shall be present.
// When `hasNext` is `false`, `nextPageToken` shall not be included.
HasNext bool `json:"hasNext"`
// NextPageToken An opaque token that can be used in a following request to retrieve the next page of results.
//
// This field shall be present when `hasNext` is `true`.
// This field shall not be included when `hasNext` is `false`.
NextPageToken *string `json:"nextPageToken,omitempty"`
Results []Product `json:"results"`
}
PaginatedProductResponse A paginated response containing TEA Products
type PaginationDetails ¶
type PaginationDetails struct {
// HasNext A flag indicating whether there is another page of results to fetch.
//
// When `hasNext` is `true`, `nextPageToken` shall be present.
// When `hasNext` is `false`, `nextPageToken` shall not be included.
HasNext bool `json:"hasNext"`
// NextPageToken An opaque token that can be used in a following request to retrieve the next page of results.
//
// This field shall be present when `hasNext` is `true`.
// This field shall not be included when `hasNext` is `false`.
NextPageToken *string `json:"nextPageToken,omitempty"`
}
PaginationDetails Examples: {"hasNext":true,"nextPageToken":"eyJwYWdlIjoiY29udGludWF0aW9uIn0"}, {"hasNext":false}
type Product ¶
type Product struct {
// Identifiers List of identifiers for the product, like TEI, CPE, PURL or other identifiers
Identifiers []Identifier `json:"identifiers"`
// Name Product name. Within a TEA server, product names should be unique among
// products. Uniqueness is an implementation recommendation, not a hard API
// requirement. Product and component names are separate namespaces; a product
// and a component may share the same name.
Name string `json:"name"`
// Uuid A unique identifier for the TEA product
Uuid Uuid `json:"uuid"`
}
Product A TEA product
Examples: {"identifiers":[{"idType":"CPE","idValue":"cpe:2.3:a:apache:log4j"},{"idType":"PURL","idValue":"pkg:maven/org.apache.logging.log4j/log4j-api"}],"name":"Apache Log4j 2","uuid":"09e8c73b-ac45-4475-acac-33e6a7314e6d"}
type ProductRelease ¶
type ProductRelease struct {
// Components Array of component references that compose this product release. A component reference can optionally include
// the UUID of a specific component release to pin the exact version.
Components []ComponentRef `json:"components"`
// CreatedDate Timestamp when this Product Release was created in TEA (for sorting purposes)
CreatedDate DateTime `json:"createdDate"`
// Identifiers Array of identifiers for the product release (`idType` is `CPE`, `TEI` or `PURL`;
// `COMPLIANCE_DOCUMENT` is not valid here)
Identifiers *[]Identifier `json:"identifiers,omitempty"`
// PreRelease A flag indicating pre-release (or beta) status.
// May be disabled after the creation of the release object, but can't be enabled after creation of an object.
PreRelease *bool `json:"preRelease,omitempty"`
// Product UUID of the TEA Product this release belongs to
Product Uuid `json:"product"`
// ProductName Name of the TEA Product this release belongs to
ProductName *string `json:"productName,omitempty"`
// ReleaseDate Timestamp of the product release
ReleaseDate *DateTime `json:"releaseDate,omitempty"`
// Uuid A unique identifier for the TEA Product Release. Within an API base it
// shall not also identify a Component Release; see `doc/tea-uuid-scope.md`.
Uuid Uuid `json:"uuid"`
// Version Human-readable version string of the product release
Version string `json:"version"`
}
ProductRelease A specific release of a TEA product
Examples: {"components":[{"uuid":"3910e0fd-aff4-48d6-b75f-8bf6b84687f0"},{"release":"da89e38e-95e7-44ca-aa7d-f3b6b34c7fab","uuid":"b844c9bd-55d6-478c-af59-954a932b6ad3"}],"createdDate":"2025-04-01T15:43:00Z","identifiers":[{"idType":"TEI","idValue":"tei://vendor.example.com/uuid/47f51950-b0e2-11f1-adc2-1a52914d44b2"}],"product":"09e8c73b-ac45-4475-acac-33e6a7314e6d","releaseDate":"2025-04-01T15:43:00Z","uuid":"123e4567-e89b-12d3-a456-426614174000","version":"2.24.3"}
type ProductReleaseWithCollection ¶
type ProductReleaseWithCollection struct {
// Components Array of component references that compose this product release. A component reference can optionally include
// the UUID of a specific component release to pin the exact version.
Components []ComponentRef `json:"components"`
// CreatedDate Timestamp when this Product Release was created in TEA (for sorting purposes)
CreatedDate DateTime `json:"createdDate"`
// Identifiers Array of identifiers for the product release (`idType` is `CPE`, `TEI` or `PURL`;
// `COMPLIANCE_DOCUMENT` is not valid here)
Identifiers *[]Identifier `json:"identifiers,omitempty"`
// LatestCollection The latest TEA Collection for this product release
//
// Examples: {"artifacts":[{"createdDate":"2024-12-13T00:00:00Z","formats":[{"checksums":[{"algType":"SHA-256","algValue":"e04c9d55986d7194822eaa4f8115a77f801844d807ad6e0d454ac31dd41861e5"},{"algType":"SHA-1","algValue":"5a7d4caef63c5c5ccdf07c39337323529eb5a770"}],"description":"CycloneDX SBOM (XML)","mediaType":"application/vnd.cyclonedx+xml","signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml.asc","url":"https://repo.maven.apache.org/maven2/org/apache/logging/log4j/log4j-core/2.24.3/log4j-core-2.24.3-cyclonedx.xml"}],"name":"Build SBOM","type":"BOM","uuid":"1cb47b95-8bf8-3bad-a5a4-0d54d86e10ce","version":2},{"createdDate":"2024-12-15T00:00:00Z","formats":[{"checksums":[{"algType":"SHA-256","algValue":"75b81020b3917cb682b1a7605ade431e062f7a4c01a412f0b87543b6e995ad2a"}],"description":"CycloneDX VDR (XML)","mediaType":"application/vnd.cyclonedx+xml","url":"https://logging.apache.org/cyclonedx/vdr.xml"}],"name":"Vulnerability Disclosure Report","type":"VULNERABILITIES","uuid":"dfa35519-9734-4259-bba1-3e825cf4be06","version":7}],"belongsTo":"COMPONENT_RELEASE","createdDate":"2024-12-15T00:00:00Z","updateReason":{"comment":"VDR file updated","type":"VEX_UPDATED"},"uuid":"da89e38e-95e7-44ca-aa7d-f3b6b34c7fab","version":10}
LatestCollection Collection `json:"latestCollection"`
// PreRelease A flag indicating pre-release (or beta) status.
// May be disabled after the creation of the release object, but can't be enabled after creation of an object.
PreRelease *bool `json:"preRelease,omitempty"`
// Product UUID of the TEA Product this release belongs to
Product Uuid `json:"product"`
// ProductName Name of the TEA Product this release belongs to
ProductName *string `json:"productName,omitempty"`
// ReleaseDate Timestamp of the product release
ReleaseDate *DateTime `json:"releaseDate,omitempty"`
// Uuid A unique identifier for the TEA Product Release. Within an API base it
// shall not also identify a Component Release; see `doc/tea-uuid-scope.md`.
Uuid Uuid `json:"uuid"`
// Version Human-readable version string of the product release
Version string `json:"version"`
}
ProductReleaseWithCollection A TEA Product Release together with its latest collection.
Extends `product-release` with a `latestCollection` property; every field of `product-release` applies unchanged.
type QueryComponentReleasesParams ¶
type QueryComponentReleasesParams struct {
// IdType Type of identifier specified in the `idValue` parameter
IdType *IdType `form:"idType,omitempty" json:"idType,omitempty"`
// IdValue If present, only the objects with the given identifier value will be returned.
IdValue *IdValue `form:"idValue,omitempty" json:"idValue,omitempty"`
// PageSize The maximum number of results to return.
PageSize *PageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken An opaque continuation token produced by a previous response.
// This token shall be copied verbatim from the `nextPageToken` value returned by the previous response.
// Clients shall not parse, construct, or modify this token.
//
// The token represents continuation state for the original query, including
// `sortField`, `sortOrder`, result-affecting filters such as `idType` and `idValue`,
// and path parameters such as parent `uuid`.
// When `pageToken` is supplied, clients shall not change those result-affecting query
// parameters. Servers shall return `400 Bad Request` if supplied result-affecting query
// parameters conflict with the token state. To change any result-affecting parameter,
// clients shall start a new pagination sequence without `pageToken`.
//
// A `pageToken` is only valid with the same request path and same path parameter values
// used to obtain it. Clients shall not reuse a `pageToken` across different parent
// resource paths or different path `uuid` values. Servers shall return `400 Bad Request`
// when a `pageToken` is used with a different path or different path parameter values.
//
// Servers shall return `400 Bad Request` for malformed, invalid, expired, or conflicting
// `pageToken` values.
PageToken *PageToken `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// SortField The field by which to sort the results.
//
// Paginated results shall be ordered first by the selected `sortField`, then by `uuid`
// as a deterministic secondary tie-breaker.
//
// When `version` is selected, ordering is by the stored version string according to
// the server's documented string collation; semantic-version precedence is not implied.
// Servers shall apply a stable and deterministic string collation for version sorting,
// and the same collation shall be used consistently across pages for a pagination sequence.
//
// When `releaseDate` is selected, releases without a `releaseDate` shall be ordered
// consistently. Missing `releaseDate` values sort after populated `releaseDate` values
// for ascending order and before populated `releaseDate` values for descending order.
SortField *QueryComponentReleasesParamsSortField `form:"sortField,omitempty" json:"sortField,omitempty"`
// SortOrder The direction of the sort.
//
// The default is `asc` for all paginated resources. Clients that need newest
// release or collection versions first can request `sortOrder=desc`.
//
// The selected sort order applies to both the primary `sortField` and the
// resource-specific deterministic secondary tie-breaker. For products, components,
// product releases, and component releases, the secondary key is `uuid`. For collections,
// the secondary key is `version` if additional tie-breaking is needed.
SortOrder *QueryComponentReleasesParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
}
QueryComponentReleasesParams defines parameters for QueryComponentReleases.
type QueryComponentReleasesParamsSortField ¶
type QueryComponentReleasesParamsSortField string
QueryComponentReleasesParamsSortField defines parameters for QueryComponentReleases.
const ( QueryComponentReleasesParamsSortFieldCreatedDate QueryComponentReleasesParamsSortField = "createdDate" QueryComponentReleasesParamsSortFieldReleaseDate QueryComponentReleasesParamsSortField = "releaseDate" QueryComponentReleasesParamsSortFieldVersion QueryComponentReleasesParamsSortField = "version" )
Defines values for QueryComponentReleasesParamsSortField.
func (QueryComponentReleasesParamsSortField) Valid ¶
func (e QueryComponentReleasesParamsSortField) Valid() bool
Valid indicates whether the value is a known member of the QueryComponentReleasesParamsSortField enum.
type QueryComponentReleasesParamsSortOrder ¶
type QueryComponentReleasesParamsSortOrder string
QueryComponentReleasesParamsSortOrder defines parameters for QueryComponentReleases.
const ( QueryComponentReleasesParamsSortOrderAsc QueryComponentReleasesParamsSortOrder = "asc" QueryComponentReleasesParamsSortOrderDesc QueryComponentReleasesParamsSortOrder = "desc" )
Defines values for QueryComponentReleasesParamsSortOrder.
func (QueryComponentReleasesParamsSortOrder) Valid ¶
func (e QueryComponentReleasesParamsSortOrder) Valid() bool
Valid indicates whether the value is a known member of the QueryComponentReleasesParamsSortOrder enum.
type QueryComponentReleasesResponse ¶
type QueryComponentReleasesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PaginatedComponentRelease
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *QueryComponentReleasesResponse401Headers
}
func ParseQueryComponentReleasesResponse ¶
func ParseQueryComponentReleasesResponse(rsp *http.Response) (*QueryComponentReleasesResponse, error)
ParseQueryComponentReleasesResponse parses an HTTP response from a QueryComponentReleasesWithResponse call
func (QueryComponentReleasesResponse) ContentType ¶
func (r QueryComponentReleasesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (QueryComponentReleasesResponse) GetBody ¶
func (r QueryComponentReleasesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (QueryComponentReleasesResponse) GetJSON200 ¶
func (r QueryComponentReleasesResponse) GetJSON200() *PaginatedComponentRelease
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (QueryComponentReleasesResponse) GetJSON400 ¶
func (r QueryComponentReleasesResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (QueryComponentReleasesResponse) GetJSON401 ¶
func (r QueryComponentReleasesResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (QueryComponentReleasesResponse) GetJSON403 ¶
func (r QueryComponentReleasesResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (QueryComponentReleasesResponse) Status ¶
func (r QueryComponentReleasesResponse) Status() string
Status returns HTTPResponse.Status
func (QueryComponentReleasesResponse) StatusCode ¶
func (r QueryComponentReleasesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryComponentReleasesResponse401Headers ¶
type QueryComponentReleasesResponse401Headers struct {
WWWAuthenticate string
}
QueryComponentReleasesResponse401Headers the declared response headers of an HTTP 401 response for QueryComponentReleases
type QueryComponentsParams ¶
type QueryComponentsParams struct {
// IdType Type of identifier specified in the `idValue` parameter
IdType *IdType `form:"idType,omitempty" json:"idType,omitempty"`
// IdValue If present, only the objects with the given identifier value will be returned.
IdValue *IdValue `form:"idValue,omitempty" json:"idValue,omitempty"`
// PageSize The maximum number of results to return.
PageSize *PageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken An opaque continuation token produced by a previous response.
// This token shall be copied verbatim from the `nextPageToken` value returned by the previous response.
// Clients shall not parse, construct, or modify this token.
//
// The token represents continuation state for the original query, including
// `sortField`, `sortOrder`, result-affecting filters such as `idType` and `idValue`,
// and path parameters such as parent `uuid`.
// When `pageToken` is supplied, clients shall not change those result-affecting query
// parameters. Servers shall return `400 Bad Request` if supplied result-affecting query
// parameters conflict with the token state. To change any result-affecting parameter,
// clients shall start a new pagination sequence without `pageToken`.
//
// A `pageToken` is only valid with the same request path and same path parameter values
// used to obtain it. Clients shall not reuse a `pageToken` across different parent
// resource paths or different path `uuid` values. Servers shall return `400 Bad Request`
// when a `pageToken` is used with a different path or different path parameter values.
//
// Servers shall return `400 Bad Request` for malformed, invalid, expired, or conflicting
// `pageToken` values.
PageToken *PageToken `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// SortField The field by which to sort the results.
//
// Paginated results shall be ordered first by the selected `sortField`, then by `uuid`
// as a deterministic secondary tie-breaker.
SortField *QueryComponentsParamsSortField `form:"sortField,omitempty" json:"sortField,omitempty"`
// SortOrder The direction of the sort.
//
// The default is `asc` for all paginated resources. Clients that need newest
// release or collection versions first can request `sortOrder=desc`.
//
// The selected sort order applies to both the primary `sortField` and the
// resource-specific deterministic secondary tie-breaker. For products, components,
// product releases, and component releases, the secondary key is `uuid`. For collections,
// the secondary key is `version` if additional tie-breaking is needed.
SortOrder *QueryComponentsParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
}
QueryComponentsParams defines parameters for QueryComponents.
type QueryComponentsParamsSortField ¶
type QueryComponentsParamsSortField string
QueryComponentsParamsSortField defines parameters for QueryComponents.
const (
QueryComponentsParamsSortFieldName QueryComponentsParamsSortField = "name"
)
Defines values for QueryComponentsParamsSortField.
func (QueryComponentsParamsSortField) Valid ¶
func (e QueryComponentsParamsSortField) Valid() bool
Valid indicates whether the value is a known member of the QueryComponentsParamsSortField enum.
type QueryComponentsParamsSortOrder ¶
type QueryComponentsParamsSortOrder string
QueryComponentsParamsSortOrder defines parameters for QueryComponents.
const ( QueryComponentsParamsSortOrderAsc QueryComponentsParamsSortOrder = "asc" QueryComponentsParamsSortOrderDesc QueryComponentsParamsSortOrder = "desc" )
Defines values for QueryComponentsParamsSortOrder.
func (QueryComponentsParamsSortOrder) Valid ¶
func (e QueryComponentsParamsSortOrder) Valid() bool
Valid indicates whether the value is a known member of the QueryComponentsParamsSortOrder enum.
type QueryComponentsResponse ¶
type QueryComponentsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PaginatedComponent
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *QueryComponentsResponse401Headers
}
func ParseQueryComponentsResponse ¶
func ParseQueryComponentsResponse(rsp *http.Response) (*QueryComponentsResponse, error)
ParseQueryComponentsResponse parses an HTTP response from a QueryComponentsWithResponse call
func (QueryComponentsResponse) ContentType ¶
func (r QueryComponentsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (QueryComponentsResponse) GetBody ¶
func (r QueryComponentsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (QueryComponentsResponse) GetJSON200 ¶
func (r QueryComponentsResponse) GetJSON200() *PaginatedComponent
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (QueryComponentsResponse) GetJSON400 ¶
func (r QueryComponentsResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (QueryComponentsResponse) GetJSON401 ¶
func (r QueryComponentsResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (QueryComponentsResponse) GetJSON403 ¶
func (r QueryComponentsResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (QueryComponentsResponse) Status ¶
func (r QueryComponentsResponse) Status() string
Status returns HTTPResponse.Status
func (QueryComponentsResponse) StatusCode ¶
func (r QueryComponentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryComponentsResponse401Headers ¶
type QueryComponentsResponse401Headers struct {
WWWAuthenticate string
}
QueryComponentsResponse401Headers the declared response headers of an HTTP 401 response for QueryComponents
type QueryProductReleasesParams ¶
type QueryProductReleasesParams struct {
// IdType Type of identifier specified in the `idValue` parameter
IdType *IdType `form:"idType,omitempty" json:"idType,omitempty"`
// IdValue If present, only the objects with the given identifier value will be returned.
IdValue *IdValue `form:"idValue,omitempty" json:"idValue,omitempty"`
// PageSize The maximum number of results to return.
PageSize *PageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken An opaque continuation token produced by a previous response.
// This token shall be copied verbatim from the `nextPageToken` value returned by the previous response.
// Clients shall not parse, construct, or modify this token.
//
// The token represents continuation state for the original query, including
// `sortField`, `sortOrder`, result-affecting filters such as `idType` and `idValue`,
// and path parameters such as parent `uuid`.
// When `pageToken` is supplied, clients shall not change those result-affecting query
// parameters. Servers shall return `400 Bad Request` if supplied result-affecting query
// parameters conflict with the token state. To change any result-affecting parameter,
// clients shall start a new pagination sequence without `pageToken`.
//
// A `pageToken` is only valid with the same request path and same path parameter values
// used to obtain it. Clients shall not reuse a `pageToken` across different parent
// resource paths or different path `uuid` values. Servers shall return `400 Bad Request`
// when a `pageToken` is used with a different path or different path parameter values.
//
// Servers shall return `400 Bad Request` for malformed, invalid, expired, or conflicting
// `pageToken` values.
PageToken *PageToken `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// SortField The field by which to sort the results.
//
// Paginated results shall be ordered first by the selected `sortField`, then by `uuid`
// as a deterministic secondary tie-breaker.
//
// When `version` is selected, ordering is by the stored version string according to
// the server's documented string collation; semantic-version precedence is not implied.
// Servers shall apply a stable and deterministic string collation for version sorting,
// and the same collation shall be used consistently across pages for a pagination sequence.
//
// When `releaseDate` is selected, releases without a `releaseDate` shall be ordered
// consistently. Missing `releaseDate` values sort after populated `releaseDate` values
// for ascending order and before populated `releaseDate` values for descending order.
SortField *QueryProductReleasesParamsSortField `form:"sortField,omitempty" json:"sortField,omitempty"`
// SortOrder The direction of the sort.
//
// The default is `asc` for all paginated resources. Clients that need newest
// release or collection versions first can request `sortOrder=desc`.
//
// The selected sort order applies to both the primary `sortField` and the
// resource-specific deterministic secondary tie-breaker. For products, components,
// product releases, and component releases, the secondary key is `uuid`. For collections,
// the secondary key is `version` if additional tie-breaking is needed.
SortOrder *QueryProductReleasesParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
}
QueryProductReleasesParams defines parameters for QueryProductReleases.
type QueryProductReleasesParamsSortField ¶
type QueryProductReleasesParamsSortField string
QueryProductReleasesParamsSortField defines parameters for QueryProductReleases.
const ( QueryProductReleasesParamsSortFieldCreatedDate QueryProductReleasesParamsSortField = "createdDate" QueryProductReleasesParamsSortFieldReleaseDate QueryProductReleasesParamsSortField = "releaseDate" QueryProductReleasesParamsSortFieldVersion QueryProductReleasesParamsSortField = "version" )
Defines values for QueryProductReleasesParamsSortField.
func (QueryProductReleasesParamsSortField) Valid ¶
func (e QueryProductReleasesParamsSortField) Valid() bool
Valid indicates whether the value is a known member of the QueryProductReleasesParamsSortField enum.
type QueryProductReleasesParamsSortOrder ¶
type QueryProductReleasesParamsSortOrder string
QueryProductReleasesParamsSortOrder defines parameters for QueryProductReleases.
const ( QueryProductReleasesParamsSortOrderAsc QueryProductReleasesParamsSortOrder = "asc" QueryProductReleasesParamsSortOrderDesc QueryProductReleasesParamsSortOrder = "desc" )
Defines values for QueryProductReleasesParamsSortOrder.
func (QueryProductReleasesParamsSortOrder) Valid ¶
func (e QueryProductReleasesParamsSortOrder) Valid() bool
Valid indicates whether the value is a known member of the QueryProductReleasesParamsSortOrder enum.
type QueryProductReleasesResponse ¶
type QueryProductReleasesResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PaginatedProductRelease
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *QueryProductReleasesResponse401Headers
}
func ParseQueryProductReleasesResponse ¶
func ParseQueryProductReleasesResponse(rsp *http.Response) (*QueryProductReleasesResponse, error)
ParseQueryProductReleasesResponse parses an HTTP response from a QueryProductReleasesWithResponse call
func (QueryProductReleasesResponse) ContentType ¶
func (r QueryProductReleasesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (QueryProductReleasesResponse) GetBody ¶
func (r QueryProductReleasesResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (QueryProductReleasesResponse) GetJSON200 ¶
func (r QueryProductReleasesResponse) GetJSON200() *PaginatedProductRelease
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (QueryProductReleasesResponse) GetJSON400 ¶
func (r QueryProductReleasesResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (QueryProductReleasesResponse) GetJSON401 ¶
func (r QueryProductReleasesResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (QueryProductReleasesResponse) GetJSON403 ¶
func (r QueryProductReleasesResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (QueryProductReleasesResponse) Status ¶
func (r QueryProductReleasesResponse) Status() string
Status returns HTTPResponse.Status
func (QueryProductReleasesResponse) StatusCode ¶
func (r QueryProductReleasesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryProductReleasesResponse401Headers ¶
type QueryProductReleasesResponse401Headers struct {
WWWAuthenticate string
}
QueryProductReleasesResponse401Headers the declared response headers of an HTTP 401 response for QueryProductReleases
type QueryProductsParams ¶
type QueryProductsParams struct {
// IdType Type of identifier specified in the `idValue` parameter
IdType *IdType `form:"idType,omitempty" json:"idType,omitempty"`
// IdValue If present, only the objects with the given identifier value will be returned.
IdValue *IdValue `form:"idValue,omitempty" json:"idValue,omitempty"`
// PageSize The maximum number of results to return.
PageSize *PageSize `form:"pageSize,omitempty" json:"pageSize,omitempty"`
// PageToken An opaque continuation token produced by a previous response.
// This token shall be copied verbatim from the `nextPageToken` value returned by the previous response.
// Clients shall not parse, construct, or modify this token.
//
// The token represents continuation state for the original query, including
// `sortField`, `sortOrder`, result-affecting filters such as `idType` and `idValue`,
// and path parameters such as parent `uuid`.
// When `pageToken` is supplied, clients shall not change those result-affecting query
// parameters. Servers shall return `400 Bad Request` if supplied result-affecting query
// parameters conflict with the token state. To change any result-affecting parameter,
// clients shall start a new pagination sequence without `pageToken`.
//
// A `pageToken` is only valid with the same request path and same path parameter values
// used to obtain it. Clients shall not reuse a `pageToken` across different parent
// resource paths or different path `uuid` values. Servers shall return `400 Bad Request`
// when a `pageToken` is used with a different path or different path parameter values.
//
// Servers shall return `400 Bad Request` for malformed, invalid, expired, or conflicting
// `pageToken` values.
PageToken *PageToken `form:"pageToken,omitempty" json:"pageToken,omitempty"`
// SortField The field by which to sort the results.
//
// Paginated results shall be ordered first by the selected `sortField`, then by `uuid`
// as a deterministic secondary tie-breaker.
SortField *QueryProductsParamsSortField `form:"sortField,omitempty" json:"sortField,omitempty"`
// SortOrder The direction of the sort.
//
// The default is `asc` for all paginated resources. Clients that need newest
// release or collection versions first can request `sortOrder=desc`.
//
// The selected sort order applies to both the primary `sortField` and the
// resource-specific deterministic secondary tie-breaker. For products, components,
// product releases, and component releases, the secondary key is `uuid`. For collections,
// the secondary key is `version` if additional tie-breaking is needed.
SortOrder *QueryProductsParamsSortOrder `form:"sortOrder,omitempty" json:"sortOrder,omitempty"`
}
QueryProductsParams defines parameters for QueryProducts.
type QueryProductsParamsSortField ¶
type QueryProductsParamsSortField string
QueryProductsParamsSortField defines parameters for QueryProducts.
const (
QueryProductsParamsSortFieldName QueryProductsParamsSortField = "name"
)
Defines values for QueryProductsParamsSortField.
func (QueryProductsParamsSortField) Valid ¶
func (e QueryProductsParamsSortField) Valid() bool
Valid indicates whether the value is a known member of the QueryProductsParamsSortField enum.
type QueryProductsParamsSortOrder ¶
type QueryProductsParamsSortOrder string
QueryProductsParamsSortOrder defines parameters for QueryProducts.
const ( QueryProductsParamsSortOrderAsc QueryProductsParamsSortOrder = "asc" QueryProductsParamsSortOrderDesc QueryProductsParamsSortOrder = "desc" )
Defines values for QueryProductsParamsSortOrder.
func (QueryProductsParamsSortOrder) Valid ¶
func (e QueryProductsParamsSortOrder) Valid() bool
Valid indicates whether the value is a known member of the QueryProductsParamsSortOrder enum.
type QueryProductsResponse ¶
type QueryProductsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *PaginatedProduct
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400InvalidRequest
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401Unauthorized
// JSON403 the response for an HTTP 403 `application/json` response
JSON403 *N403Forbidden
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *QueryProductsResponse401Headers
}
func ParseQueryProductsResponse ¶
func ParseQueryProductsResponse(rsp *http.Response) (*QueryProductsResponse, error)
ParseQueryProductsResponse parses an HTTP response from a QueryProductsWithResponse call
func (QueryProductsResponse) ContentType ¶
func (r QueryProductsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (QueryProductsResponse) GetBody ¶
func (r QueryProductsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (QueryProductsResponse) GetJSON200 ¶
func (r QueryProductsResponse) GetJSON200() *PaginatedProduct
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (QueryProductsResponse) GetJSON400 ¶
func (r QueryProductsResponse) GetJSON400() *N400InvalidRequest
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (QueryProductsResponse) GetJSON401 ¶
func (r QueryProductsResponse) GetJSON401() *N401Unauthorized
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (QueryProductsResponse) GetJSON403 ¶
func (r QueryProductsResponse) GetJSON403() *N403Forbidden
GetJSON403 returns the response for an HTTP 403 `application/json` response
func (QueryProductsResponse) Status ¶
func (r QueryProductsResponse) Status() string
Status returns HTTPResponse.Status
func (QueryProductsResponse) StatusCode ¶
func (r QueryProductsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type QueryProductsResponse401Headers ¶
type QueryProductsResponse401Headers struct {
WWWAuthenticate string
}
QueryProductsResponse401Headers the declared response headers of an HTTP 401 response for QueryProducts
type ReleaseDistribution ¶
type ReleaseDistribution struct {
// Checksums Array of checksums for the distribution payload retrieved from `url`
// (the distribution bytes, not the signature at `signatureUrl`).
Checksums *[]Checksum `json:"checksums,omitempty"`
// Description Free-text description of the distribution
Description *string `json:"description,omitempty"`
// DistributionId A unique identifier for the TEA Distribution object (uuid)
DistributionId Uuid `json:"distributionId"`
// Identifiers Array of identifiers specific to this distribution
Identifiers *[]Identifier `json:"identifiers,omitempty"`
// SignatureUrl Direct download URL for the distribution's external signature. As with `url`,
// this is always a location outside the TEA API. A TEA access token is sent only
// to the TEA server's own API base URL, never to an external URL.
SignatureUrl *string `json:"signatureUrl,omitempty"`
// Url Direct download URL for the distribution. This is always a location outside
// the TEA API. A TEA access token is sent only to the TEA server's own API base
// URL, never to an external URL: distribution locations are either openly
// accessible, pre-signed, or require credentials the client arranges
// separately.
Url *string `json:"url,omitempty"`
}
ReleaseDistribution Examples: {"checksums":[{"algType":"SHA-256","algValue":"9da736a1cdd27231e70187cbc67398d29ca0b714f885e7032da9f1fb247693c1"}],"description":"Core binary distribution, zip archive","distributionId":"6a0d58e1-4896-4f1e-83f7-5feb6c032537","identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.tomcat/tomcat@11.0.7?type=zip"}],"signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7.zip.asc","url":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7.zip"}, {"checksums":[{"algType":"SHA-256","algValue":"2fcece641c62ba1f28e1d7b257493151fc44f161fb391015ee6a95fa71632fb9"}],"description":"Core binary distribution, tar.gz archive","distributionId":"dba01c13-dd96-4928-be72-9c87ffa8cab8","identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.tomcat/tomcat@11.0.7?type=tar.gz"}],"signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7.tar.gz.asc","url":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7.tar.gz"}, {"checksums":[{"algType":"SHA-256","algValue":"62a5c358d87a8ef21d7ec1b3b63c9bbb577453dda9c00cbb522b16cee6c23fc4"}],"description":"Core binary distribution, Windows x64 zip archive","distributionId":"cfe068c2-fae7-43d0-97ec-5ea092454040","identifiers":[{"idType":"PURL","idValue":"pkg:maven/org.apache.tomcat/tomcat@11.0.7?classifier=windows-x64\u0026type=zip"}],"signatureUrl":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7-windows-x64.zip.asc","url":"https://repo.maven.apache.org/maven2/org/apache/tomcat/tomcat/11.0.7/tomcat-11.0.7-windows-x64.zip"}, {"checksums":[{"algType":"SHA-512","algValue":"1d3824e7643c8aba455ab0bd9e67b14a60f2aaa6aa7775116bce40eb0579e8ced162a4f828051d3b867e96ee2858ec5da0cc654e83a83ba30823cbea0df4ff96"}],"description":"Core binary distribution, Windows Service Installer (.exe)","distributionId":"de45ffaf-e4b5-47b5-be28-444a76df098e","signatureUrl":"https://downloads.apache.org/tomcat/tomcat-11/v11.0.7/bin/apache-tomcat-11.0.7.exe.asc","url":"https://dlcdn.apache.org/tomcat/tomcat-11/v11.0.7/bin/apache-tomcat-11.0.7.exe"}
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequestTokenFormdataRequestBody ¶
type RequestTokenFormdataRequestBody = TokenRequest
RequestTokenFormdataRequestBody defines body for RequestToken for application/x-www-form-urlencoded ContentType.
type RequestTokenResponse ¶
type RequestTokenResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *TokenIssued
// JSON400 the response for an HTTP 400 `application/json` response
JSON400 *N400TokenError
// JSON401 the response for an HTTP 401 `application/json` response
JSON401 *N401TokenError
// JSON404 the response for an HTTP 404 `application/json` response
JSON404 *N404ObjectByIdNotFound
// Headers200 the parsed response headers for an HTTP 200 response
Headers200 *RequestTokenResponse200Headers
// Headers401 the parsed response headers for an HTTP 401 response
Headers401 *RequestTokenResponse401Headers
}
func ParseRequestTokenResponse ¶
func ParseRequestTokenResponse(rsp *http.Response) (*RequestTokenResponse, error)
ParseRequestTokenResponse parses an HTTP response from a RequestTokenWithResponse call
func (RequestTokenResponse) ContentType ¶
func (r RequestTokenResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RequestTokenResponse) GetBody ¶
func (r RequestTokenResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RequestTokenResponse) GetJSON200 ¶
func (r RequestTokenResponse) GetJSON200() *TokenIssued
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RequestTokenResponse) GetJSON400 ¶
func (r RequestTokenResponse) GetJSON400() *N400TokenError
GetJSON400 returns the response for an HTTP 400 `application/json` response
func (RequestTokenResponse) GetJSON401 ¶
func (r RequestTokenResponse) GetJSON401() *N401TokenError
GetJSON401 returns the response for an HTTP 401 `application/json` response
func (RequestTokenResponse) GetJSON404 ¶
func (r RequestTokenResponse) GetJSON404() *N404ObjectByIdNotFound
GetJSON404 returns the response for an HTTP 404 `application/json` response
func (RequestTokenResponse) Status ¶
func (r RequestTokenResponse) Status() string
Status returns HTTPResponse.Status
func (RequestTokenResponse) StatusCode ¶
func (r RequestTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestTokenResponse200Headers ¶
type RequestTokenResponse200Headers struct {
CacheControl string
}
RequestTokenResponse200Headers the declared response headers of an HTTP 200 response for RequestToken
type RequestTokenResponse401Headers ¶
type RequestTokenResponse401Headers struct {
WWWAuthenticate string
}
RequestTokenResponse401Headers the declared response headers of an HTTP 401 response for RequestToken
type ServerInfo ¶
type ServerInfo struct {
// Priority Optional priority for this server (0.0 to 1.0, where 1.0 is highest priority).
// If omitted in the JSON response, clients shall treat the effective priority as 1.0 when
// ordering servers (the same rule as for `.well-known/tea` endpoint `priority`).
Priority *float32 `json:"priority,omitempty"`
// RootUrl Absolute API base URL for this TEA server, without trailing slash. Shall not
// include userinfo, query, or fragment. The scheme match is lowercase only
// (normalized form). Conforming deployments use lowercase `https`; `http` is
// allowed only so local-test documents still validate.
RootUrl string `json:"rootUrl"`
// Versions Supported TEA API versions at this server, without a leading `v`. Each value
// is full SemVer 2.0.0 (MAJOR.MINOR.PATCH with optional prerelease and build
// metadata). Clients select the highest mutually supported version and append
// `/v` followed by that exact string.
Versions []string `json:"versions"`
}
ServerInfo TEA server information including URL, versions, and optional priority
type SortFieldCollection ¶
type SortFieldCollection string
SortFieldCollection defines model for sort-field-collection.
const (
SortFieldCollectionVersion SortFieldCollection = "version"
)
Defines values for SortFieldCollection.
func (SortFieldCollection) Valid ¶
func (e SortFieldCollection) Valid() bool
Valid indicates whether the value is a known member of the SortFieldCollection enum.
type SortFieldComponent ¶
type SortFieldComponent string
SortFieldComponent defines model for sort-field-component.
const (
SortFieldComponentName SortFieldComponent = "name"
)
Defines values for SortFieldComponent.
func (SortFieldComponent) Valid ¶
func (e SortFieldComponent) Valid() bool
Valid indicates whether the value is a known member of the SortFieldComponent enum.
type SortFieldComponentRelease ¶
type SortFieldComponentRelease string
SortFieldComponentRelease defines model for sort-field-component-release.
const ( SortFieldComponentReleaseCreatedDate SortFieldComponentRelease = "createdDate" SortFieldComponentReleaseReleaseDate SortFieldComponentRelease = "releaseDate" SortFieldComponentReleaseVersion SortFieldComponentRelease = "version" )
Defines values for SortFieldComponentRelease.
func (SortFieldComponentRelease) Valid ¶
func (e SortFieldComponentRelease) Valid() bool
Valid indicates whether the value is a known member of the SortFieldComponentRelease enum.
type SortFieldProduct ¶
type SortFieldProduct string
SortFieldProduct defines model for sort-field-product.
const (
SortFieldProductName SortFieldProduct = "name"
)
Defines values for SortFieldProduct.
func (SortFieldProduct) Valid ¶
func (e SortFieldProduct) Valid() bool
Valid indicates whether the value is a known member of the SortFieldProduct enum.
type SortFieldProductRelease ¶
type SortFieldProductRelease string
SortFieldProductRelease defines model for sort-field-product-release.
const ( SortFieldProductReleaseCreatedDate SortFieldProductRelease = "createdDate" SortFieldProductReleaseReleaseDate SortFieldProductRelease = "releaseDate" SortFieldProductReleaseVersion SortFieldProductRelease = "version" )
Defines values for SortFieldProductRelease.
func (SortFieldProductRelease) Valid ¶
func (e SortFieldProductRelease) Valid() bool
Valid indicates whether the value is a known member of the SortFieldProductRelease enum.
type SortOrder ¶
type SortOrder string
SortOrder defines model for sort-order.
Defines values for SortOrder.
type TokenErrorResponse ¶
type TokenErrorResponse struct {
// Error Error code as defined in RFC 6749 section 5.2.
Error TokenErrorResponseError `json:"error"`
// ErrorDescription Human-readable text providing additional information about the error.
ErrorDescription *string `json:"error_description,omitempty"`
// ErrorUri URI of a human-readable web page with information about the error.
ErrorUri *string `json:"error_uri,omitempty"`
}
TokenErrorResponse Token error response, as defined in RFC 6749 section 5.2.
type TokenErrorResponseError ¶
type TokenErrorResponseError string
TokenErrorResponseError Error code as defined in RFC 6749 section 5.2.
const ( InvalidClient TokenErrorResponseError = "invalid_client" InvalidGrant TokenErrorResponseError = "invalid_grant" InvalidRequest TokenErrorResponseError = "invalid_request" InvalidScope TokenErrorResponseError = "invalid_scope" UnsupportedGrantType TokenErrorResponseError = "unsupported_grant_type" )
Defines values for TokenErrorResponseError.
func (TokenErrorResponseError) Valid ¶
func (e TokenErrorResponseError) Valid() bool
Valid indicates whether the value is a known member of the TokenErrorResponseError enum.
type TokenIssued ¶
type TokenIssued = TokenResponse
TokenIssued Successful token response, as defined in RFC 6749 section 5.1.
type TokenRequest ¶
type TokenRequest struct {
// Assertion Assertion value, when an assertion grant type is used (RFC 7521 section 4.1).
Assertion *string `json:"assertion,omitempty"`
// GrantType OAuth 2.0 grant type. Servers shall support `client_credentials`. Servers may
// support assertion grants (`urn:ietf:params:oauth:grant-type:saml2-bearer`,
// `urn:ietf:params:oauth:grant-type:jwt-bearer`). Token exchange
// (`urn:ietf:params:oauth:grant-type:token-exchange`) is outside the TEA 1.0
// interoperable authentication profile; see `/token`.
GrantType string `json:"grant_type"`
// Scope Optional space-delimited scope request (RFC 6749 section 3.3). TEA does not
// define scope values; servers may ignore this parameter.
Scope *string `json:"scope,omitempty"`
}
TokenRequest Token request for the `client_credentials` grant, as defined in RFC 6749 section 4.4.2, or an optional assertion grant identified below. The `scope` parameter applies to both. The `assertion` parameter applies only to assertion grants. RFC 8693 token exchange is outside the TEA 1.0 profile (see `/token` description).
type TokenResponse ¶
type TokenResponse struct {
// AccessToken The issued access token, presented on other TEA endpoints as
// `Authorization: Bearer <access_token>`. Opaque to the client.
AccessToken string `json:"access_token"`
// ExpiresIn Lifetime of the access token in seconds. Servers should include this so that
// clients can re-authenticate before expiry rather than on failure.
ExpiresIn *int `json:"expires_in,omitempty"`
// Scope Granted scope, when it differs from the scope requested.
Scope *string `json:"scope,omitempty"`
// TokenType Token type. Always `Bearer` in TEA.
TokenType TokenResponseTokenType `json:"token_type"`
}
TokenResponse Successful token response, as defined in RFC 6749 section 5.1.
type TokenResponseTokenType ¶
type TokenResponseTokenType string
TokenResponseTokenType Token type. Always `Bearer` in TEA.
const (
Bearer TokenResponseTokenType = "Bearer"
)
Defines values for TokenResponseTokenType.
func (TokenResponseTokenType) Valid ¶
func (e TokenResponseTokenType) Valid() bool
Valid indicates whether the value is a known member of the TokenResponseTokenType enum.
type UnknownErrorType ¶
type UnknownErrorType string
UnknownErrorType Classification of TEA error response
const ( INVALIDPAGETOKEN UnknownErrorType = "INVALID_PAGE_TOKEN" INVALIDREQUEST UnknownErrorType = "INVALID_REQUEST" NOACCEPTABLEFORMAT UnknownErrorType = "NO_ACCEPTABLE_FORMAT" NOTIMPLEMENTED UnknownErrorType = "NOT_IMPLEMENTED" OBJECTUNKNOWN UnknownErrorType = "OBJECT_UNKNOWN" SIGNATURENOTFOUND UnknownErrorType = "SIGNATURE_NOT_FOUND" )
Defines values for UnknownErrorType.
func (UnknownErrorType) Valid ¶
func (e UnknownErrorType) Valid() bool
Valid indicates whether the value is a known member of the UnknownErrorType enum.