package
1.20.0
Repository: https://github.com/tektoncd/hub.git
Documentation: pkg.go.dev

# Functions

ByCatalogKindNameResourcePath returns the URL path to the resource service ByCatalogKindName HTTP endpoint.
ByCatalogKindNameVersionReadmeResourcePath returns the URL path to the resource service ByCatalogKindNameVersionReadme HTTP endpoint.
ByCatalogKindNameVersionResourcePath returns the URL path to the resource service ByCatalogKindNameVersion HTTP endpoint.
ByCatalogKindNameVersionYamlResourcePath returns the URL path to the resource service ByCatalogKindNameVersionYaml HTTP endpoint.
ByIDResourcePath returns the URL path to the resource service ById HTTP endpoint.
ByVersionIDResourcePath returns the URL path to the resource service ByVersionId HTTP endpoint.
DecodeByCatalogKindNameRequest returns a decoder for requests sent to the resource ByCatalogKindName endpoint.
DecodeByCatalogKindNameVersionReadmeRequest returns a decoder for requests sent to the resource ByCatalogKindNameVersionReadme endpoint.
DecodeByCatalogKindNameVersionRequest returns a decoder for requests sent to the resource ByCatalogKindNameVersion endpoint.
DecodeByCatalogKindNameVersionYamlRequest returns a decoder for requests sent to the resource ByCatalogKindNameVersionYaml endpoint.
DecodeByIDRequest returns a decoder for requests sent to the resource ById endpoint.
DecodeByVersionIDRequest returns a decoder for requests sent to the resource ByVersionId endpoint.
DecodeGetLatestRawYamlByCatalogKindNameRequest returns a decoder for requests sent to the resource GetLatestRawYamlByCatalogKindName endpoint.
DecodeGetRawYamlByCatalogKindNameVersionRequest returns a decoder for requests sent to the resource GetRawYamlByCatalogKindNameVersion endpoint.
DecodeListRequest returns a decoder for requests sent to the resource List endpoint.
DecodeQueryRequest returns a decoder for requests sent to the resource Query endpoint.
DecodeVersionsByIDRequest returns a decoder for requests sent to the resource VersionsByID endpoint.
EncodeByCatalogKindNameError returns an encoder for errors returned by the ByCatalogKindName resource endpoint.
EncodeByCatalogKindNameResponse returns an encoder for responses returned by the resource ByCatalogKindName endpoint.
EncodeByCatalogKindNameVersionError returns an encoder for errors returned by the ByCatalogKindNameVersion resource endpoint.
EncodeByCatalogKindNameVersionReadmeError returns an encoder for errors returned by the ByCatalogKindNameVersionReadme resource endpoint.
EncodeByCatalogKindNameVersionReadmeResponse returns an encoder for responses returned by the resource ByCatalogKindNameVersionReadme endpoint.
EncodeByCatalogKindNameVersionResponse returns an encoder for responses returned by the resource ByCatalogKindNameVersion endpoint.
EncodeByCatalogKindNameVersionYamlError returns an encoder for errors returned by the ByCatalogKindNameVersionYaml resource endpoint.
EncodeByCatalogKindNameVersionYamlResponse returns an encoder for responses returned by the resource ByCatalogKindNameVersionYaml endpoint.
EncodeByIDError returns an encoder for errors returned by the ById resource endpoint.
EncodeByIDResponse returns an encoder for responses returned by the resource ById endpoint.
EncodeByVersionIDError returns an encoder for errors returned by the ByVersionId resource endpoint.
EncodeByVersionIDResponse returns an encoder for responses returned by the resource ByVersionId endpoint.
EncodeGetLatestRawYamlByCatalogKindNameError returns an encoder for errors returned by the GetLatestRawYamlByCatalogKindName resource endpoint.
EncodeGetLatestRawYamlByCatalogKindNameResponse returns an encoder for responses returned by the resource GetLatestRawYamlByCatalogKindName endpoint.
EncodeGetRawYamlByCatalogKindNameVersionError returns an encoder for errors returned by the GetRawYamlByCatalogKindNameVersion resource endpoint.
EncodeGetRawYamlByCatalogKindNameVersionResponse returns an encoder for responses returned by the resource GetRawYamlByCatalogKindNameVersion endpoint.
EncodeListError returns an encoder for errors returned by the List resource endpoint.
EncodeListResponse returns an encoder for responses returned by the resource List endpoint.
EncodeQueryError returns an encoder for errors returned by the Query resource endpoint.
EncodeQueryResponse returns an encoder for responses returned by the resource Query endpoint.
EncodeVersionsByIDError returns an encoder for errors returned by the VersionsByID resource endpoint.
EncodeVersionsByIDResponse returns an encoder for responses returned by the resource VersionsByID endpoint.
GetLatestRawYamlByCatalogKindNameResourcePath returns the URL path to the resource service GetLatestRawYamlByCatalogKindName HTTP endpoint.
GetRawYamlByCatalogKindNameVersionResourcePath returns the URL path to the resource service GetRawYamlByCatalogKindNameVersion HTTP endpoint.
HandleResourceOrigin applies the CORS response headers corresponding to the origin for the service resource.
ListResourcePath returns the URL path to the resource service List HTTP endpoint.
Mount configures the mux to serve the resource endpoints.
MountByCatalogKindNameHandler configures the mux to serve the "resource" service "ByCatalogKindName" endpoint.
MountByCatalogKindNameVersionHandler configures the mux to serve the "resource" service "ByCatalogKindNameVersion" endpoint.
MountByCatalogKindNameVersionReadmeHandler configures the mux to serve the "resource" service "ByCatalogKindNameVersionReadme" endpoint.
MountByCatalogKindNameVersionYamlHandler configures the mux to serve the "resource" service "ByCatalogKindNameVersionYaml" endpoint.
MountByIDHandler configures the mux to serve the "resource" service "ById" endpoint.
MountByVersionIDHandler configures the mux to serve the "resource" service "ByVersionId" endpoint.
MountCORSHandler configures the mux to serve the CORS endpoints for the service resource.
MountGetLatestRawYamlByCatalogKindNameHandler configures the mux to serve the "resource" service "GetLatestRawYamlByCatalogKindName" endpoint.
MountGetRawYamlByCatalogKindNameVersionHandler configures the mux to serve the "resource" service "GetRawYamlByCatalogKindNameVersion" endpoint.
MountListHandler configures the mux to serve the "resource" service "List" endpoint.
MountQueryHandler configures the mux to serve the "resource" service "Query" endpoint.
MountVersionsByIDHandler configures the mux to serve the "resource" service "VersionsByID" endpoint.
New instantiates HTTP handlers for all the resource service endpoints using the provided encoder and decoder.
NewByCatalogKindNameHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByCatalogKindName" endpoint.
NewByCatalogKindNameInternalErrorResponseBody builds the HTTP response body from the result of the "ByCatalogKindName" endpoint of the "resource" service.
NewByCatalogKindNameNotFoundResponseBody builds the HTTP response body from the result of the "ByCatalogKindName" endpoint of the "resource" service.
NewByCatalogKindNamePayload builds a resource service ByCatalogKindName endpoint payload.
NewByCatalogKindNameResponseBody builds the HTTP response body from the result of the "ByCatalogKindName" endpoint of the "resource" service.
NewByCatalogKindNameVersionHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByCatalogKindNameVersion" endpoint.
NewByCatalogKindNameVersionInternalErrorResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersion" endpoint of the "resource" service.
NewByCatalogKindNameVersionNotFoundResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersion" endpoint of the "resource" service.
NewByCatalogKindNameVersionPayload builds a resource service ByCatalogKindNameVersion endpoint payload.
NewByCatalogKindNameVersionReadmeHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByCatalogKindNameVersionReadme" endpoint.
NewByCatalogKindNameVersionReadmeInternalErrorResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionReadme" endpoint of the "resource" service.
NewByCatalogKindNameVersionReadmeNotFoundResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionReadme" endpoint of the "resource" service.
NewByCatalogKindNameVersionReadmePayload builds a resource service ByCatalogKindNameVersionReadme endpoint payload.
NewByCatalogKindNameVersionReadmeResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionReadme" endpoint of the "resource" service.
NewByCatalogKindNameVersionResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersion" endpoint of the "resource" service.
NewByCatalogKindNameVersionYamlHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByCatalogKindNameVersionYaml" endpoint.
NewByCatalogKindNameVersionYamlInternalErrorResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionYaml" endpoint of the "resource" service.
NewByCatalogKindNameVersionYamlNotFoundResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionYaml" endpoint of the "resource" service.
NewByCatalogKindNameVersionYamlPayload builds a resource service ByCatalogKindNameVersionYaml endpoint payload.
NewByCatalogKindNameVersionYamlResponseBody builds the HTTP response body from the result of the "ByCatalogKindNameVersionYaml" endpoint of the "resource" service.
NewByIDHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ById" endpoint.
NewByIDInternalErrorResponseBody builds the HTTP response body from the result of the "ById" endpoint of the "resource" service.
NewByIDNotFoundResponseBody builds the HTTP response body from the result of the "ById" endpoint of the "resource" service.
NewByIDPayload builds a resource service ById endpoint payload.
NewByIDResponseBody builds the HTTP response body from the result of the "ById" endpoint of the "resource" service.
NewByVersionIDHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "ByVersionId" endpoint.
NewByVersionIDInternalErrorResponseBody builds the HTTP response body from the result of the "ByVersionId" endpoint of the "resource" service.
NewByVersionIDNotFoundResponseBody builds the HTTP response body from the result of the "ByVersionId" endpoint of the "resource" service.
NewByVersionIDPayload builds a resource service ByVersionId endpoint payload.
NewByVersionIDResponseBody builds the HTTP response body from the result of the "ByVersionId" endpoint of the "resource" service.
NewCORSHandler creates a HTTP handler which returns a simple 204 response.
NewGetLatestRawYamlByCatalogKindNameHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "GetLatestRawYamlByCatalogKindName" endpoint.
NewGetLatestRawYamlByCatalogKindNameInternalErrorResponseBody builds the HTTP response body from the result of the "GetLatestRawYamlByCatalogKindName" endpoint of the "resource" service.
NewGetLatestRawYamlByCatalogKindNameNotFoundResponseBody builds the HTTP response body from the result of the "GetLatestRawYamlByCatalogKindName" endpoint of the "resource" service.
NewGetLatestRawYamlByCatalogKindNamePayload builds a resource service GetLatestRawYamlByCatalogKindName endpoint payload.
NewGetRawYamlByCatalogKindNameVersionHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "GetRawYamlByCatalogKindNameVersion" endpoint.
NewGetRawYamlByCatalogKindNameVersionInternalErrorResponseBody builds the HTTP response body from the result of the "GetRawYamlByCatalogKindNameVersion" endpoint of the "resource" service.
NewGetRawYamlByCatalogKindNameVersionNotFoundResponseBody builds the HTTP response body from the result of the "GetRawYamlByCatalogKindNameVersion" endpoint of the "resource" service.
NewGetRawYamlByCatalogKindNameVersionPayload builds a resource service GetRawYamlByCatalogKindNameVersion endpoint payload.
NewListHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "List" endpoint.
NewListInternalErrorResponseBody builds the HTTP response body from the result of the "List" endpoint of the "resource" service.
NewListNotFoundResponseBody builds the HTTP response body from the result of the "List" endpoint of the "resource" service.
NewListPayload builds a resource service List endpoint payload.
NewListResponseBody builds the HTTP response body from the result of the "List" endpoint of the "resource" service.
NewQueryHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "Query" endpoint.
NewQueryInternalErrorResponseBody builds the HTTP response body from the result of the "Query" endpoint of the "resource" service.
NewQueryInvalidKindResponseBody builds the HTTP response body from the result of the "Query" endpoint of the "resource" service.
NewQueryNotFoundResponseBody builds the HTTP response body from the result of the "Query" endpoint of the "resource" service.
NewQueryPayload builds a resource service Query endpoint payload.
NewQueryResponseBody builds the HTTP response body from the result of the "Query" endpoint of the "resource" service.
NewVersionsByIDHandler creates a HTTP handler which loads the HTTP request and calls the "resource" service "VersionsByID" endpoint.
NewVersionsByIDInternalErrorResponseBody builds the HTTP response body from the result of the "VersionsByID" endpoint of the "resource" service.
NewVersionsByIDNotFoundResponseBody builds the HTTP response body from the result of the "VersionsByID" endpoint of the "resource" service.
NewVersionsByIDPayload builds a resource service VersionsByID endpoint payload.
NewVersionsByIDResponseBody builds the HTTP response body from the result of the "VersionsByID" endpoint of the "resource" service.
QueryResourcePath returns the URL path to the resource service Query HTTP endpoint.
VersionsByIDResourcePath returns the URL path to the resource service VersionsByID HTTP endpoint.

# Structs

ByCatalogKindNameInternalErrorResponseBody is the type of the "resource" service "ByCatalogKindName" endpoint HTTP response body for the "internal-error" error.
ByCatalogKindNameNotFoundResponseBody is the type of the "resource" service "ByCatalogKindName" endpoint HTTP response body for the "not-found" error.
ByCatalogKindNameResponseBody is the type of the "resource" service "ByCatalogKindName" endpoint HTTP response body.
ByCatalogKindNameVersionInternalErrorResponseBody is the type of the "resource" service "ByCatalogKindNameVersion" endpoint HTTP response body for the "internal-error" error.
ByCatalogKindNameVersionNotFoundResponseBody is the type of the "resource" service "ByCatalogKindNameVersion" endpoint HTTP response body for the "not-found" error.
ByCatalogKindNameVersionReadmeInternalErrorResponseBody is the type of the "resource" service "ByCatalogKindNameVersionReadme" endpoint HTTP response body for the "internal-error" error.
ByCatalogKindNameVersionReadmeNotFoundResponseBody is the type of the "resource" service "ByCatalogKindNameVersionReadme" endpoint HTTP response body for the "not-found" error.
ByCatalogKindNameVersionReadmeResponseBody is the type of the "resource" service "ByCatalogKindNameVersionReadme" endpoint HTTP response body.
ByCatalogKindNameVersionResponseBody is the type of the "resource" service "ByCatalogKindNameVersion" endpoint HTTP response body.
ByCatalogKindNameVersionYamlInternalErrorResponseBody is the type of the "resource" service "ByCatalogKindNameVersionYaml" endpoint HTTP response body for the "internal-error" error.
ByCatalogKindNameVersionYamlNotFoundResponseBody is the type of the "resource" service "ByCatalogKindNameVersionYaml" endpoint HTTP response body for the "not-found" error.
ByCatalogKindNameVersionYamlResponseBody is the type of the "resource" service "ByCatalogKindNameVersionYaml" endpoint HTTP response body.
ByIDInternalErrorResponseBody is the type of the "resource" service "ById" endpoint HTTP response body for the "internal-error" error.
ByIDNotFoundResponseBody is the type of the "resource" service "ById" endpoint HTTP response body for the "not-found" error.
ByIDResponseBody is the type of the "resource" service "ById" endpoint HTTP response body.
ByVersionIDInternalErrorResponseBody is the type of the "resource" service "ByVersionId" endpoint HTTP response body for the "internal-error" error.
ByVersionIDNotFoundResponseBody is the type of the "resource" service "ByVersionId" endpoint HTTP response body for the "not-found" error.
ByVersionIDResponseBody is the type of the "resource" service "ByVersionId" endpoint HTTP response body.
CatalogResponseBodyMin is used to define fields on response body types.
CategoryResponseBody is used to define fields on response body types.
GetLatestRawYamlByCatalogKindNameInternalErrorResponseBody is the type of the "resource" service "GetLatestRawYamlByCatalogKindName" endpoint HTTP response body for the "internal-error" error.
GetLatestRawYamlByCatalogKindNameNotFoundResponseBody is the type of the "resource" service "GetLatestRawYamlByCatalogKindName" endpoint HTTP response body for the "not-found" error.
GetRawYamlByCatalogKindNameVersionInternalErrorResponseBody is the type of the "resource" service "GetRawYamlByCatalogKindNameVersion" endpoint HTTP response body for the "internal-error" error.
GetRawYamlByCatalogKindNameVersionNotFoundResponseBody is the type of the "resource" service "GetRawYamlByCatalogKindNameVersion" endpoint HTTP response body for the "not-found" error.
ListInternalErrorResponseBody is the type of the "resource" service "List" endpoint HTTP response body for the "internal-error" error.
ListNotFoundResponseBody is the type of the "resource" service "List" endpoint HTTP response body for the "not-found" error.
ListResponseBody is the type of the "resource" service "List" endpoint HTTP response body.
MountPoint holds information about the mounted endpoints.
PlatformResponseBody is used to define fields on response body types.
QueryInternalErrorResponseBody is the type of the "resource" service "Query" endpoint HTTP response body for the "internal-error" error.
QueryInvalidKindResponseBody is the type of the "resource" service "Query" endpoint HTTP response body for the "invalid-kind" error.
QueryNotFoundResponseBody is the type of the "resource" service "Query" endpoint HTTP response body for the "not-found" error.
QueryResponseBody is the type of the "resource" service "Query" endpoint HTTP response body.
ResourceContentResponseBodyReadme is used to define fields on response body types.
ResourceContentResponseBodyYaml is used to define fields on response body types.
ResourceDataResponseBody is used to define fields on response body types.
ResourceDataResponseBodyInfo is used to define fields on response body types.
ResourceDataResponseBodyWithoutVersion is used to define fields on response body types.
ResourceVersionDataResponseBody is used to define fields on response body types.
ResourceVersionDataResponseBodyMin is used to define fields on response body types.
ResourceVersionDataResponseBodyTiny is used to define fields on response body types.
ResourceVersionDataResponseBodyWithoutResource is used to define fields on response body types.
Server lists the resource service endpoint HTTP handlers.
TagResponseBody is used to define fields on response body types.
VersionsByIDInternalErrorResponseBody is the type of the "resource" service "VersionsByID" endpoint HTTP response body for the "internal-error" error.
VersionsByIDNotFoundResponseBody is the type of the "resource" service "VersionsByID" endpoint HTTP response body for the "not-found" error.
VersionsByIDResponseBody is the type of the "resource" service "VersionsByID" endpoint HTTP response body.
VersionsResponseBody is used to define fields on response body types.

# Type aliases

ResourceDataResponseBodyWithoutVersionCollection is used to define fields on response body types.