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

# Functions

DecodeRefreshConfigRequest returns a decoder for requests sent to the admin RefreshConfig endpoint.
DecodeUpdateAgentRequest returns a decoder for requests sent to the admin UpdateAgent endpoint.
EncodeRefreshConfigError returns an encoder for errors returned by the RefreshConfig admin endpoint.
EncodeRefreshConfigResponse returns an encoder for responses returned by the admin RefreshConfig endpoint.
EncodeUpdateAgentError returns an encoder for errors returned by the UpdateAgent admin endpoint.
EncodeUpdateAgentResponse returns an encoder for responses returned by the admin UpdateAgent endpoint.
HandleAdminOrigin applies the CORS response headers corresponding to the origin for the service admin.
Mount configures the mux to serve the admin endpoints.
MountCORSHandler configures the mux to serve the CORS endpoints for the service admin.
MountRefreshConfigHandler configures the mux to serve the "admin" service "RefreshConfig" endpoint.
MountUpdateAgentHandler configures the mux to serve the "admin" service "UpdateAgent" endpoint.
New instantiates HTTP handlers for all the admin service endpoints using the provided encoder and decoder.
NewCORSHandler creates a HTTP handler which returns a simple 204 response.
NewRefreshConfigHandler creates a HTTP handler which loads the HTTP request and calls the "admin" service "RefreshConfig" endpoint.
NewRefreshConfigInternalErrorResponseBody builds the HTTP response body from the result of the "RefreshConfig" endpoint of the "admin" service.
NewRefreshConfigInvalidScopesResponseBody builds the HTTP response body from the result of the "RefreshConfig" endpoint of the "admin" service.
NewRefreshConfigInvalidTokenResponseBody builds the HTTP response body from the result of the "RefreshConfig" endpoint of the "admin" service.
NewRefreshConfigPayload builds a admin service RefreshConfig endpoint payload.
NewRefreshConfigResponseBody builds the HTTP response body from the result of the "RefreshConfig" endpoint of the "admin" service.
NewUpdateAgentHandler creates a HTTP handler which loads the HTTP request and calls the "admin" service "UpdateAgent" endpoint.
NewUpdateAgentInternalErrorResponseBody builds the HTTP response body from the result of the "UpdateAgent" endpoint of the "admin" service.
NewUpdateAgentInvalidPayloadResponseBody builds the HTTP response body from the result of the "UpdateAgent" endpoint of the "admin" service.
NewUpdateAgentInvalidScopesResponseBody builds the HTTP response body from the result of the "UpdateAgent" endpoint of the "admin" service.
NewUpdateAgentInvalidTokenResponseBody builds the HTTP response body from the result of the "UpdateAgent" endpoint of the "admin" service.
NewUpdateAgentPayload builds a admin service UpdateAgent endpoint payload.
NewUpdateAgentResponseBody builds the HTTP response body from the result of the "UpdateAgent" endpoint of the "admin" service.
RefreshConfigAdminPath returns the URL path to the admin service RefreshConfig HTTP endpoint.
UpdateAgentAdminPath returns the URL path to the admin service UpdateAgent HTTP endpoint.
ValidateUpdateAgentRequestBody runs the validations defined on UpdateAgentRequestBody.

# Structs

MountPoint holds information about the mounted endpoints.
RefreshConfigInternalErrorResponseBody is the type of the "admin" service "RefreshConfig" endpoint HTTP response body for the "internal-error" error.
RefreshConfigInvalidScopesResponseBody is the type of the "admin" service "RefreshConfig" endpoint HTTP response body for the "invalid-scopes" error.
RefreshConfigInvalidTokenResponseBody is the type of the "admin" service "RefreshConfig" endpoint HTTP response body for the "invalid-token" error.
RefreshConfigResponseBody is the type of the "admin" service "RefreshConfig" endpoint HTTP response body.
Server lists the admin service endpoint HTTP handlers.
UpdateAgentInternalErrorResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body for the "internal-error" error.
UpdateAgentInvalidPayloadResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body for the "invalid-payload" error.
UpdateAgentInvalidScopesResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body for the "invalid-scopes" error.
UpdateAgentInvalidTokenResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body for the "invalid-token" error.
UpdateAgentRequestBody is the type of the "admin" service "UpdateAgent" endpoint HTTP request body.
UpdateAgentResponseBody is the type of the "admin" service "UpdateAgent" endpoint HTTP response body.