Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.2 DO NOT EDIT.
Package api holds the generated OpenAPI artifacts for the /api surface: request/response models (bound to internal/events via x-go-type — the events package stays the one canonical protocol definition), the std-http server router (ServerInterface + HandlerFromMux), and the typed Go client.
The hand-written contract is api/openapi.yaml at the repo root; the generated code is committed and CI verifies it is in sync. Wire-level compatibility is pinned by internal/server/testdata/wire.
Index ¶
- Constants
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func NewAdminChecksOverrideRequest(server string, body AdminChecksOverrideJSONRequestBody) (*http.Request, error)
- func NewAdminChecksOverrideRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAdminExecutionsCancelRequest(server string, body AdminExecutionsCancelJSONRequestBody) (*http.Request, error)
- func NewAdminExecutionsCancelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAdminGatesSatisfyRequest(server string, body AdminGatesSatisfyJSONRequestBody) (*http.Request, error)
- func NewAdminGatesSatisfyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAdminGrantsReleaseRequest(server string, body AdminGrantsReleaseJSONRequestBody) (*http.Request, error)
- func NewAdminGrantsReleaseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAppendLogsRequest(server string, body AppendLogsJSONRequestBody) (*http.Request, error)
- func NewAppendLogsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCheckGateRequest(server string, body CheckGateJSONRequestBody) (*http.Request, error)
- func NewCheckGateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewFinalizeExecutionRequest(server string, body FinalizeExecutionJSONRequestBody) (*http.Request, error)
- func NewFinalizeExecutionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetCatalogRequest(server string) (*http.Request, error)
- func NewGetExecutionRequest(server string, id string) (*http.Request, error)
- func NewGetLifecycleRequest(server string, params *GetLifecycleParams) (*http.Request, error)
- func NewGetPRRequest(server string, n int) (*http.Request, error)
- func NewInitExecutionRequest(server string, body InitExecutionJSONRequestBody) (*http.Request, error)
- func NewInitExecutionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewInspectClaimsRequest(server string, env string) (*http.Request, error)
- func NewInspectEventsRequest(server string, stream string, params *InspectEventsParams) (*http.Request, error)
- func NewInspectGateRequest(server string, pr int, env string) (*http.Request, error)
- func NewInspectGrantsRequest(server string, params *InspectGrantsParams) (*http.Request, error)
- func NewInspectOverviewRequest(server string) (*http.Request, error)
- func NewInspectPoolRequest(server string) (*http.Request, error)
- func NewListApprovalsRequest(server string) (*http.Request, error)
- func NewListClaimsRequest(server string, body ListClaimsJSONRequestBody) (*http.Request, error)
- func NewListClaimsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListExecutionsRequest(server string, params *ListExecutionsParams) (*http.Request, error)
- func NewMergeQueueRequest(server string) (*http.Request, error)
- func NewReconcileGatesRequest(server string) (*http.Request, error)
- func NewReleaseClaimsRequest(server string, body ReleaseClaimsJSONRequestBody) (*http.Request, error)
- func NewReleaseClaimsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewReportPhaseRequest(server string, body ReportPhaseJSONRequestBody) (*http.Request, error)
- func NewReportPhaseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRevokeGateRequest(server string, body RevokeGateJSONRequestBody) (*http.Request, error)
- func NewRevokeGateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateStackRequest(server string, body UpdateStackJSONRequestBody) (*http.Request, error)
- func NewUpdateStackRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type AdminChecksOverrideJSONRequestBody
- type AdminChecksOverrideRequest
- type AdminChecksOverrideResponse
- type AdminExecutionsCancelJSONRequestBody
- type AdminExecutionsCancelRequest
- type AdminExecutionsCancelResponse
- type AdminGatesSatisfyJSONRequestBody
- type AdminGatesSatisfyRequest
- type AdminGatesSatisfyResponse
- type AdminGrantsReleaseJSONRequestBody
- type AdminGrantsReleaseRequest
- type AdminGrantsReleaseResponse
- type AppendLogsJSONRequestBody
- type AppendLogsResponse
- type Catalog
- type CatalogComponent
- type CatalogEdge
- type Category
- type ChangeReason
- type CheckGateJSONRequestBody
- type CheckGateResponse
- type Claim
- type ClaimsListRequest
- type ClaimsReleaseRequest
- type Client
- func (c *Client) AdminChecksOverride(ctx context.Context, body AdminChecksOverrideJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AdminChecksOverrideWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AdminExecutionsCancel(ctx context.Context, body AdminExecutionsCancelJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AdminExecutionsCancelWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AdminGatesSatisfy(ctx context.Context, body AdminGatesSatisfyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AdminGatesSatisfyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AdminGrantsRelease(ctx context.Context, body AdminGrantsReleaseJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AdminGrantsReleaseWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AppendLogs(ctx context.Context, body AppendLogsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AppendLogsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CheckGate(ctx context.Context, body CheckGateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CheckGateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) FinalizeExecution(ctx context.Context, body FinalizeExecutionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) FinalizeExecutionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetCatalog(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetExecution(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLifecycle(ctx context.Context, params *GetLifecycleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPR(ctx context.Context, n int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) InitExecution(ctx context.Context, body InitExecutionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) InitExecutionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) InspectClaims(ctx context.Context, env string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) InspectEvents(ctx context.Context, stream string, params *InspectEventsParams, ...) (*http.Response, error)
- func (c *Client) InspectGate(ctx context.Context, pr int, env string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) InspectGrants(ctx context.Context, params *InspectGrantsParams, ...) (*http.Response, error)
- func (c *Client) InspectOverview(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) InspectPool(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListApprovals(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListClaims(ctx context.Context, body ListClaimsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ListClaimsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListExecutions(ctx context.Context, params *ListExecutionsParams, ...) (*http.Response, error)
- func (c *Client) MergeQueue(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReconcileGates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReleaseClaims(ctx context.Context, body ReleaseClaimsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReleaseClaimsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReportPhase(ctx context.Context, body ReportPhaseJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReportPhaseWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RevokeGate(ctx context.Context, body RevokeGateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RevokeGateWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateStack(ctx context.Context, body UpdateStackJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateStackWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AdminChecksOverrideWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AdminChecksOverrideResponse, error)
- func (c *ClientWithResponses) AdminChecksOverrideWithResponse(ctx context.Context, body AdminChecksOverrideJSONRequestBody, ...) (*AdminChecksOverrideResponse, error)
- func (c *ClientWithResponses) AdminExecutionsCancelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AdminExecutionsCancelResponse, error)
- func (c *ClientWithResponses) AdminExecutionsCancelWithResponse(ctx context.Context, body AdminExecutionsCancelJSONRequestBody, ...) (*AdminExecutionsCancelResponse, error)
- func (c *ClientWithResponses) AdminGatesSatisfyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AdminGatesSatisfyResponse, error)
- func (c *ClientWithResponses) AdminGatesSatisfyWithResponse(ctx context.Context, body AdminGatesSatisfyJSONRequestBody, ...) (*AdminGatesSatisfyResponse, error)
- func (c *ClientWithResponses) AdminGrantsReleaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AdminGrantsReleaseResponse, error)
- func (c *ClientWithResponses) AdminGrantsReleaseWithResponse(ctx context.Context, body AdminGrantsReleaseJSONRequestBody, ...) (*AdminGrantsReleaseResponse, error)
- func (c *ClientWithResponses) AppendLogsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AppendLogsResponse, error)
- func (c *ClientWithResponses) AppendLogsWithResponse(ctx context.Context, body AppendLogsJSONRequestBody, ...) (*AppendLogsResponse, error)
- func (c *ClientWithResponses) CheckGateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CheckGateResponse, error)
- func (c *ClientWithResponses) CheckGateWithResponse(ctx context.Context, body CheckGateJSONRequestBody, ...) (*CheckGateResponse, error)
- func (c *ClientWithResponses) FinalizeExecutionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*FinalizeExecutionResponse, error)
- func (c *ClientWithResponses) FinalizeExecutionWithResponse(ctx context.Context, body FinalizeExecutionJSONRequestBody, ...) (*FinalizeExecutionResponse, error)
- func (c *ClientWithResponses) GetCatalogWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCatalogResponse, error)
- func (c *ClientWithResponses) GetExecutionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetExecutionResponse, error)
- func (c *ClientWithResponses) GetLifecycleWithResponse(ctx context.Context, params *GetLifecycleParams, reqEditors ...RequestEditorFn) (*GetLifecycleResponse, error)
- func (c *ClientWithResponses) GetPRWithResponse(ctx context.Context, n int, reqEditors ...RequestEditorFn) (*GetPRResponse, error)
- func (c *ClientWithResponses) InitExecutionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*InitExecutionResponse, error)
- func (c *ClientWithResponses) InitExecutionWithResponse(ctx context.Context, body InitExecutionJSONRequestBody, ...) (*InitExecutionResponse, error)
- func (c *ClientWithResponses) InspectClaimsWithResponse(ctx context.Context, env string, reqEditors ...RequestEditorFn) (*InspectClaimsResponse, error)
- func (c *ClientWithResponses) InspectEventsWithResponse(ctx context.Context, stream string, params *InspectEventsParams, ...) (*InspectEventsResponse, error)
- func (c *ClientWithResponses) InspectGateWithResponse(ctx context.Context, pr int, env string, reqEditors ...RequestEditorFn) (*InspectGateResponse, error)
- func (c *ClientWithResponses) InspectGrantsWithResponse(ctx context.Context, params *InspectGrantsParams, ...) (*InspectGrantsResponse, error)
- func (c *ClientWithResponses) InspectOverviewWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InspectOverviewResponse, error)
- func (c *ClientWithResponses) InspectPoolWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InspectPoolResponse, error)
- func (c *ClientWithResponses) ListApprovalsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListApprovalsResponse, error)
- func (c *ClientWithResponses) ListClaimsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ListClaimsResponse, error)
- func (c *ClientWithResponses) ListClaimsWithResponse(ctx context.Context, body ListClaimsJSONRequestBody, ...) (*ListClaimsResponse, error)
- func (c *ClientWithResponses) ListExecutionsWithResponse(ctx context.Context, params *ListExecutionsParams, ...) (*ListExecutionsResponse, error)
- func (c *ClientWithResponses) MergeQueueWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MergeQueueResponse, error)
- func (c *ClientWithResponses) ReconcileGatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReconcileGatesResponse, error)
- func (c *ClientWithResponses) ReleaseClaimsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ReleaseClaimsResponse, error)
- func (c *ClientWithResponses) ReleaseClaimsWithResponse(ctx context.Context, body ReleaseClaimsJSONRequestBody, ...) (*ReleaseClaimsResponse, error)
- func (c *ClientWithResponses) ReportPhaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ReportPhaseResponse, error)
- func (c *ClientWithResponses) ReportPhaseWithResponse(ctx context.Context, body ReportPhaseJSONRequestBody, ...) (*ReportPhaseResponse, error)
- func (c *ClientWithResponses) RevokeGateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*RevokeGateResponse, error)
- func (c *ClientWithResponses) RevokeGateWithResponse(ctx context.Context, body RevokeGateJSONRequestBody, ...) (*RevokeGateResponse, error)
- func (c *ClientWithResponses) UpdateStackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdateStackResponse, error)
- func (c *ClientWithResponses) UpdateStackWithResponse(ctx context.Context, body UpdateStackJSONRequestBody, ...) (*UpdateStackResponse, error)
- type ClientWithResponsesInterface
- type CodedError
- type Counts
- type Edge
- type ExecutionDetail
- type ExecutionSummary
- type Finalize
- type FinalizeExecutionJSONRequestBody
- type FinalizeExecutionResponse
- type GateCheck
- type GateCheckOK
- type GateRevoke
- type GateTarget
- type GetCatalogResponse
- type GetExecutionResponse
- type GetLifecycleParams
- type GetLifecycleResponse
- type GetPRResponse
- type Graph
- type HttpRequestDoer
- type Init
- type InitExecutionJSONRequestBody
- type InitExecutionResponse
- type InspectClaim
- type InspectClaimsResponse
- type InspectClaimsSet
- type InspectEvent
- type InspectEventsParams
- type InspectEventsResponse
- type InspectGateDetail
- type InspectGateReason
- type InspectGateResponse
- type InspectGateTarget
- type InspectGrant
- type InspectGrantsParams
- type InspectGrantsResponse
- type InspectOverviewResponse
- type InspectPRSummary
- type InspectPoolResponse
- type InspectPoolSet
- type InspectPoolSlot
- type InspectPoolWaitingPR
- type InvalidParamFormatError
- type LifecyclePhase
- type ListApprovalsResponse
- type ListClaimsJSONRequestBody
- type ListClaimsResponse
- type ListExecutionsParams
- type ListExecutionsResponse
- type LogChunk
- type MergeQueue
- type MergeQueueEntry
- type MergeQueueResponse
- type MiddlewareFunc
- type NullInt64
- type PRMergeState
- type PRMeta
- type PRView
- type PendingApproval
- type Phase
- type PhaseEvent
- type ReconcileGatesResponse
- type ReleaseClaimsJSONRequestBody
- type ReleaseClaimsResponse
- type ReportPhaseJSONRequestBody
- type ReportPhaseResponse
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type RevokeGateJSONRequestBody
- type RevokeGateResponse
- type ServeMux
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AdminChecksOverride(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminExecutionsCancel(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminGatesSatisfy(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AdminGrantsRelease(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) AppendLogs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CheckGate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) FinalizeExecution(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCatalog(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetExecution(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLifecycle(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPR(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InitExecution(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InspectClaims(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InspectEvents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InspectGate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InspectGrants(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InspectOverview(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) InspectPool(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListApprovals(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListClaims(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListExecutions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) MergeQueue(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReconcileGates(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReleaseClaims(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReportPhase(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RevokeGate(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateStack(w http.ResponseWriter, r *http.Request)
- type StackState
- type Status
- type StdHTTPServerOptions
- type StoredGateTarget
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type Update
- type UpdateStackJSONRequestBody
- type UpdateStackResponse
Constants ¶
const (
OidcScopes oidcContextKey = "oidc.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewAdminChecksOverrideRequest ¶ added in v0.28.0
func NewAdminChecksOverrideRequest(server string, body AdminChecksOverrideJSONRequestBody) (*http.Request, error)
NewAdminChecksOverrideRequest calls the generic AdminChecksOverride builder with application/json body
func NewAdminChecksOverrideRequestWithBody ¶ added in v0.28.0
func NewAdminChecksOverrideRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAdminChecksOverrideRequestWithBody generates requests for AdminChecksOverride with any type of body
func NewAdminExecutionsCancelRequest ¶ added in v0.28.0
func NewAdminExecutionsCancelRequest(server string, body AdminExecutionsCancelJSONRequestBody) (*http.Request, error)
NewAdminExecutionsCancelRequest calls the generic AdminExecutionsCancel builder with application/json body
func NewAdminExecutionsCancelRequestWithBody ¶ added in v0.28.0
func NewAdminExecutionsCancelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAdminExecutionsCancelRequestWithBody generates requests for AdminExecutionsCancel with any type of body
func NewAdminGatesSatisfyRequest ¶ added in v0.28.0
func NewAdminGatesSatisfyRequest(server string, body AdminGatesSatisfyJSONRequestBody) (*http.Request, error)
NewAdminGatesSatisfyRequest calls the generic AdminGatesSatisfy builder with application/json body
func NewAdminGatesSatisfyRequestWithBody ¶ added in v0.28.0
func NewAdminGatesSatisfyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAdminGatesSatisfyRequestWithBody generates requests for AdminGatesSatisfy with any type of body
func NewAdminGrantsReleaseRequest ¶ added in v0.28.0
func NewAdminGrantsReleaseRequest(server string, body AdminGrantsReleaseJSONRequestBody) (*http.Request, error)
NewAdminGrantsReleaseRequest calls the generic AdminGrantsRelease builder with application/json body
func NewAdminGrantsReleaseRequestWithBody ¶ added in v0.28.0
func NewAdminGrantsReleaseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAdminGrantsReleaseRequestWithBody generates requests for AdminGrantsRelease with any type of body
func NewAppendLogsRequest ¶
func NewAppendLogsRequest(server string, body AppendLogsJSONRequestBody) (*http.Request, error)
NewAppendLogsRequest calls the generic AppendLogs builder with application/json body
func NewAppendLogsRequestWithBody ¶
func NewAppendLogsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAppendLogsRequestWithBody generates requests for AppendLogs with any type of body
func NewCheckGateRequest ¶
func NewCheckGateRequest(server string, body CheckGateJSONRequestBody) (*http.Request, error)
NewCheckGateRequest calls the generic CheckGate builder with application/json body
func NewCheckGateRequestWithBody ¶
func NewCheckGateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCheckGateRequestWithBody generates requests for CheckGate with any type of body
func NewFinalizeExecutionRequest ¶
func NewFinalizeExecutionRequest(server string, body FinalizeExecutionJSONRequestBody) (*http.Request, error)
NewFinalizeExecutionRequest calls the generic FinalizeExecution builder with application/json body
func NewFinalizeExecutionRequestWithBody ¶
func NewFinalizeExecutionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewFinalizeExecutionRequestWithBody generates requests for FinalizeExecution with any type of body
func NewGetCatalogRequest ¶ added in v0.31.0
NewGetCatalogRequest generates requests for GetCatalog
func NewGetExecutionRequest ¶
NewGetExecutionRequest generates requests for GetExecution
func NewGetLifecycleRequest ¶ added in v0.37.0
func NewGetLifecycleRequest(server string, params *GetLifecycleParams) (*http.Request, error)
NewGetLifecycleRequest generates requests for GetLifecycle
func NewGetPRRequest ¶ added in v0.27.0
NewGetPRRequest generates requests for GetPR
func NewInitExecutionRequest ¶
func NewInitExecutionRequest(server string, body InitExecutionJSONRequestBody) (*http.Request, error)
NewInitExecutionRequest calls the generic InitExecution builder with application/json body
func NewInitExecutionRequestWithBody ¶
func NewInitExecutionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewInitExecutionRequestWithBody generates requests for InitExecution with any type of body
func NewInspectClaimsRequest ¶ added in v0.28.0
NewInspectClaimsRequest generates requests for InspectClaims
func NewInspectEventsRequest ¶ added in v0.28.0
func NewInspectEventsRequest(server string, stream string, params *InspectEventsParams) (*http.Request, error)
NewInspectEventsRequest generates requests for InspectEvents
func NewInspectGateRequest ¶ added in v0.28.0
NewInspectGateRequest generates requests for InspectGate
func NewInspectGrantsRequest ¶ added in v0.28.0
func NewInspectGrantsRequest(server string, params *InspectGrantsParams) (*http.Request, error)
NewInspectGrantsRequest generates requests for InspectGrants
func NewInspectOverviewRequest ¶ added in v0.28.0
NewInspectOverviewRequest generates requests for InspectOverview
func NewInspectPoolRequest ¶ added in v0.28.0
NewInspectPoolRequest generates requests for InspectPool
func NewListApprovalsRequest ¶
NewListApprovalsRequest generates requests for ListApprovals
func NewListClaimsRequest ¶
func NewListClaimsRequest(server string, body ListClaimsJSONRequestBody) (*http.Request, error)
NewListClaimsRequest calls the generic ListClaims builder with application/json body
func NewListClaimsRequestWithBody ¶
func NewListClaimsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewListClaimsRequestWithBody generates requests for ListClaims with any type of body
func NewListExecutionsRequest ¶
func NewListExecutionsRequest(server string, params *ListExecutionsParams) (*http.Request, error)
NewListExecutionsRequest generates requests for ListExecutions
func NewMergeQueueRequest ¶ added in v0.37.0
NewMergeQueueRequest generates requests for MergeQueue
func NewReconcileGatesRequest ¶ added in v0.40.0
NewReconcileGatesRequest generates requests for ReconcileGates
func NewReleaseClaimsRequest ¶
func NewReleaseClaimsRequest(server string, body ReleaseClaimsJSONRequestBody) (*http.Request, error)
NewReleaseClaimsRequest calls the generic ReleaseClaims builder with application/json body
func NewReleaseClaimsRequestWithBody ¶
func NewReleaseClaimsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewReleaseClaimsRequestWithBody generates requests for ReleaseClaims with any type of body
func NewReportPhaseRequest ¶
func NewReportPhaseRequest(server string, body ReportPhaseJSONRequestBody) (*http.Request, error)
NewReportPhaseRequest calls the generic ReportPhase builder with application/json body
func NewReportPhaseRequestWithBody ¶
func NewReportPhaseRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewReportPhaseRequestWithBody generates requests for ReportPhase with any type of body
func NewRevokeGateRequest ¶
func NewRevokeGateRequest(server string, body RevokeGateJSONRequestBody) (*http.Request, error)
NewRevokeGateRequest calls the generic RevokeGate builder with application/json body
func NewRevokeGateRequestWithBody ¶
func NewRevokeGateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewRevokeGateRequestWithBody generates requests for RevokeGate with any type of body
func NewUpdateStackRequest ¶
func NewUpdateStackRequest(server string, body UpdateStackJSONRequestBody) (*http.Request, error)
NewUpdateStackRequest calls the generic UpdateStack builder with application/json body
Types ¶
type AdminChecksOverrideJSONRequestBody ¶ added in v0.28.0
type AdminChecksOverrideJSONRequestBody = AdminChecksOverrideRequest
AdminChecksOverrideJSONRequestBody defines body for AdminChecksOverride for application/json ContentType.
type AdminChecksOverrideRequest ¶ added in v0.28.0
type AdminChecksOverrideRequest struct {
Check string `json:"check"`
Conclusion string `json:"conclusion"`
Environment string `json:"environment"`
Pr int `json:"pr"`
Reason string `json:"reason"`
}
AdminChecksOverrideRequest defines model for AdminChecksOverrideRequest.
type AdminChecksOverrideResponse ¶ added in v0.28.0
func ParseAdminChecksOverrideResponse ¶ added in v0.28.0
func ParseAdminChecksOverrideResponse(rsp *http.Response) (*AdminChecksOverrideResponse, error)
ParseAdminChecksOverrideResponse parses an HTTP response from a AdminChecksOverrideWithResponse call
func (AdminChecksOverrideResponse) ContentType ¶ added in v0.28.0
func (r AdminChecksOverrideResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AdminChecksOverrideResponse) Status ¶ added in v0.28.0
func (r AdminChecksOverrideResponse) Status() string
Status returns HTTPResponse.Status
func (AdminChecksOverrideResponse) StatusCode ¶ added in v0.28.0
func (r AdminChecksOverrideResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminExecutionsCancelJSONRequestBody ¶ added in v0.28.0
type AdminExecutionsCancelJSONRequestBody = AdminExecutionsCancelRequest
AdminExecutionsCancelJSONRequestBody defines body for AdminExecutionsCancel for application/json ContentType.
type AdminExecutionsCancelRequest ¶ added in v0.28.0
AdminExecutionsCancelRequest defines model for AdminExecutionsCancelRequest.
type AdminExecutionsCancelResponse ¶ added in v0.28.0
func ParseAdminExecutionsCancelResponse ¶ added in v0.28.0
func ParseAdminExecutionsCancelResponse(rsp *http.Response) (*AdminExecutionsCancelResponse, error)
ParseAdminExecutionsCancelResponse parses an HTTP response from a AdminExecutionsCancelWithResponse call
func (AdminExecutionsCancelResponse) ContentType ¶ added in v0.28.0
func (r AdminExecutionsCancelResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AdminExecutionsCancelResponse) Status ¶ added in v0.28.0
func (r AdminExecutionsCancelResponse) Status() string
Status returns HTTPResponse.Status
func (AdminExecutionsCancelResponse) StatusCode ¶ added in v0.28.0
func (r AdminExecutionsCancelResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminGatesSatisfyJSONRequestBody ¶ added in v0.28.0
type AdminGatesSatisfyJSONRequestBody = AdminGatesSatisfyRequest
AdminGatesSatisfyJSONRequestBody defines body for AdminGatesSatisfy for application/json ContentType.
type AdminGatesSatisfyRequest ¶ added in v0.28.0
type AdminGatesSatisfyRequest struct {
Class string `json:"class"`
Environment string `json:"environment"`
Pr int `json:"pr"`
Reason string `json:"reason"`
Target string `json:"target"`
}
AdminGatesSatisfyRequest defines model for AdminGatesSatisfyRequest.
type AdminGatesSatisfyResponse ¶ added in v0.28.0
func ParseAdminGatesSatisfyResponse ¶ added in v0.28.0
func ParseAdminGatesSatisfyResponse(rsp *http.Response) (*AdminGatesSatisfyResponse, error)
ParseAdminGatesSatisfyResponse parses an HTTP response from a AdminGatesSatisfyWithResponse call
func (AdminGatesSatisfyResponse) ContentType ¶ added in v0.28.0
func (r AdminGatesSatisfyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AdminGatesSatisfyResponse) Status ¶ added in v0.28.0
func (r AdminGatesSatisfyResponse) Status() string
Status returns HTTPResponse.Status
func (AdminGatesSatisfyResponse) StatusCode ¶ added in v0.28.0
func (r AdminGatesSatisfyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdminGrantsReleaseJSONRequestBody ¶ added in v0.28.0
type AdminGrantsReleaseJSONRequestBody = AdminGrantsReleaseRequest
AdminGrantsReleaseJSONRequestBody defines body for AdminGrantsRelease for application/json ContentType.
type AdminGrantsReleaseRequest ¶ added in v0.28.0
type AdminGrantsReleaseRequest struct {
Class string `json:"class"`
Environment string `json:"environment"`
Pr int `json:"pr"`
Reason string `json:"reason"`
Target string `json:"target"`
}
AdminGrantsReleaseRequest defines model for AdminGrantsReleaseRequest.
type AdminGrantsReleaseResponse ¶ added in v0.28.0
func ParseAdminGrantsReleaseResponse ¶ added in v0.28.0
func ParseAdminGrantsReleaseResponse(rsp *http.Response) (*AdminGrantsReleaseResponse, error)
ParseAdminGrantsReleaseResponse parses an HTTP response from a AdminGrantsReleaseWithResponse call
func (AdminGrantsReleaseResponse) ContentType ¶ added in v0.28.0
func (r AdminGrantsReleaseResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AdminGrantsReleaseResponse) Status ¶ added in v0.28.0
func (r AdminGrantsReleaseResponse) Status() string
Status returns HTTPResponse.Status
func (AdminGrantsReleaseResponse) StatusCode ¶ added in v0.28.0
func (r AdminGrantsReleaseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AppendLogsJSONRequestBody ¶
type AppendLogsJSONRequestBody = LogChunk
AppendLogsJSONRequestBody defines body for AppendLogs for application/json ContentType.
type AppendLogsResponse ¶
func ParseAppendLogsResponse ¶
func ParseAppendLogsResponse(rsp *http.Response) (*AppendLogsResponse, error)
ParseAppendLogsResponse parses an HTTP response from a AppendLogsWithResponse call
func (AppendLogsResponse) ContentType ¶
func (r AppendLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AppendLogsResponse) Status ¶
func (r AppendLogsResponse) Status() string
Status returns HTTPResponse.Status
func (AppendLogsResponse) StatusCode ¶
func (r AppendLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Catalog ¶ added in v0.31.0
type Catalog struct {
Components []CatalogComponent `json:"components"`
Edges []CatalogEdge `json:"edges"`
}
Catalog defines model for Catalog.
type CatalogComponent ¶ added in v0.31.0
type CatalogComponent struct {
Id string `json:"id"`
Stacks []string `json:"stacks"`
Watches []string `json:"watches"`
}
CatalogComponent defines model for CatalogComponent.
type CatalogEdge ¶ added in v0.31.0
type CatalogEdge struct {
From string `json:"from"`
Kind string `json:"kind"`
To string `json:"to"`
}
CatalogEdge defines model for CatalogEdge.
type ChangeReason ¶ added in v0.31.0
type ChangeReason struct {
Kind string `json:"kind"`
Stack string `json:"stack"`
Via []string `json:"via"`
}
ChangeReason defines model for ChangeReason.
type CheckGateJSONRequestBody ¶
type CheckGateJSONRequestBody = GateCheck
CheckGateJSONRequestBody defines body for CheckGate for application/json ContentType.
type CheckGateResponse ¶
type CheckGateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GateCheckOK
JSON409 *CodedError
JSON500 *CodedError
JSON503 *CodedError
}
func ParseCheckGateResponse ¶
func ParseCheckGateResponse(rsp *http.Response) (*CheckGateResponse, error)
ParseCheckGateResponse parses an HTTP response from a CheckGateWithResponse call
func (CheckGateResponse) ContentType ¶
func (r CheckGateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CheckGateResponse) Status ¶
func (r CheckGateResponse) Status() string
Status returns HTTPResponse.Status
func (CheckGateResponse) StatusCode ¶
func (r CheckGateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ClaimsListRequest ¶
type ClaimsListRequest struct {
Environment string `json:"environment"`
}
ClaimsListRequest defines model for ClaimsListRequest.
type ClaimsReleaseRequest ¶
type ClaimsReleaseRequest struct {
Environment string `json:"environment"`
Pr int `json:"pr"`
// Stack Empty releases all of the PR's claims in the environment.
Stack string `json:"stack"`
}
ClaimsReleaseRequest defines model for ClaimsReleaseRequest.
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) AdminChecksOverride ¶ added in v0.28.0
func (c *Client) AdminChecksOverride(ctx context.Context, body AdminChecksOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminChecksOverrideWithBody ¶ added in v0.28.0
func (*Client) AdminExecutionsCancel ¶ added in v0.28.0
func (c *Client) AdminExecutionsCancel(ctx context.Context, body AdminExecutionsCancelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminExecutionsCancelWithBody ¶ added in v0.28.0
func (*Client) AdminGatesSatisfy ¶ added in v0.28.0
func (c *Client) AdminGatesSatisfy(ctx context.Context, body AdminGatesSatisfyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminGatesSatisfyWithBody ¶ added in v0.28.0
func (*Client) AdminGrantsRelease ¶ added in v0.28.0
func (c *Client) AdminGrantsRelease(ctx context.Context, body AdminGrantsReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AdminGrantsReleaseWithBody ¶ added in v0.28.0
func (*Client) AppendLogs ¶
func (c *Client) AppendLogs(ctx context.Context, body AppendLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AppendLogsWithBody ¶
func (*Client) CheckGate ¶
func (c *Client) CheckGate(ctx context.Context, body CheckGateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CheckGateWithBody ¶
func (*Client) FinalizeExecution ¶
func (c *Client) FinalizeExecution(ctx context.Context, body FinalizeExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FinalizeExecutionWithBody ¶
func (*Client) GetCatalog ¶ added in v0.31.0
func (*Client) GetExecution ¶
func (*Client) GetLifecycle ¶ added in v0.37.0
func (c *Client) GetLifecycle(ctx context.Context, params *GetLifecycleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InitExecution ¶
func (c *Client) InitExecution(ctx context.Context, body InitExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InitExecutionWithBody ¶
func (*Client) InspectClaims ¶ added in v0.28.0
func (*Client) InspectEvents ¶ added in v0.28.0
func (c *Client) InspectEvents(ctx context.Context, stream string, params *InspectEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InspectGate ¶ added in v0.28.0
func (*Client) InspectGrants ¶ added in v0.28.0
func (c *Client) InspectGrants(ctx context.Context, params *InspectGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) InspectOverview ¶ added in v0.28.0
func (*Client) InspectPool ¶ added in v0.28.0
func (*Client) ListApprovals ¶
func (*Client) ListClaims ¶
func (c *Client) ListClaims(ctx context.Context, body ListClaimsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListClaimsWithBody ¶
func (*Client) ListExecutions ¶
func (c *Client) ListExecutions(ctx context.Context, params *ListExecutionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MergeQueue ¶ added in v0.37.0
func (*Client) ReconcileGates ¶ added in v0.40.0
func (*Client) ReleaseClaims ¶
func (c *Client) ReleaseClaims(ctx context.Context, body ReleaseClaimsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReleaseClaimsWithBody ¶
func (*Client) ReportPhase ¶
func (c *Client) ReportPhase(ctx context.Context, body ReportPhaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReportPhaseWithBody ¶
func (*Client) RevokeGate ¶
func (c *Client) RevokeGate(ctx context.Context, body RevokeGateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RevokeGateWithBody ¶
func (*Client) UpdateStack ¶
func (c *Client) UpdateStack(ctx context.Context, body UpdateStackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// AdminChecksOverrideWithBody request with any body
AdminChecksOverrideWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AdminChecksOverride(ctx context.Context, body AdminChecksOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminExecutionsCancelWithBody request with any body
AdminExecutionsCancelWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AdminExecutionsCancel(ctx context.Context, body AdminExecutionsCancelJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminGatesSatisfyWithBody request with any body
AdminGatesSatisfyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AdminGatesSatisfy(ctx context.Context, body AdminGatesSatisfyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// AdminGrantsReleaseWithBody request with any body
AdminGrantsReleaseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AdminGrantsRelease(ctx context.Context, body AdminGrantsReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListApprovals request
ListApprovals(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCatalog request
GetCatalog(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListClaimsWithBody request with any body
ListClaimsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ListClaims(ctx context.Context, body ListClaimsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReleaseClaimsWithBody request with any body
ReleaseClaimsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReleaseClaims(ctx context.Context, body ReleaseClaimsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetExecution request
GetExecution(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListExecutions request
ListExecutions(ctx context.Context, params *ListExecutionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// FinalizeExecutionWithBody request with any body
FinalizeExecutionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FinalizeExecution(ctx context.Context, body FinalizeExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CheckGateWithBody request with any body
CheckGateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CheckGate(ctx context.Context, body CheckGateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReconcileGates request
ReconcileGates(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// RevokeGateWithBody request with any body
RevokeGateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RevokeGate(ctx context.Context, body RevokeGateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// InitExecutionWithBody request with any body
InitExecutionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
InitExecution(ctx context.Context, body InitExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// InspectClaims request
InspectClaims(ctx context.Context, env string, reqEditors ...RequestEditorFn) (*http.Response, error)
// InspectEvents request
InspectEvents(ctx context.Context, stream string, params *InspectEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// InspectGate request
InspectGate(ctx context.Context, pr int, env string, reqEditors ...RequestEditorFn) (*http.Response, error)
// InspectGrants request
InspectGrants(ctx context.Context, params *InspectGrantsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// InspectOverview request
InspectOverview(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// InspectPool request
InspectPool(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLifecycle request
GetLifecycle(ctx context.Context, params *GetLifecycleParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AppendLogsWithBody request with any body
AppendLogsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AppendLogs(ctx context.Context, body AppendLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MergeQueue request
MergeQueue(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReportPhaseWithBody request with any body
ReportPhaseWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReportPhase(ctx context.Context, body ReportPhaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPR request
GetPR(ctx context.Context, n int, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateStackWithBody request with any body
UpdateStackWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateStack(ctx context.Context, body UpdateStackJSONRequestBody, 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) AdminChecksOverrideWithBodyWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) AdminChecksOverrideWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminChecksOverrideResponse, error)
AdminChecksOverrideWithBodyWithResponse request with arbitrary body returning *AdminChecksOverrideResponse
func (*ClientWithResponses) AdminChecksOverrideWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) AdminChecksOverrideWithResponse(ctx context.Context, body AdminChecksOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminChecksOverrideResponse, error)
func (*ClientWithResponses) AdminExecutionsCancelWithBodyWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) AdminExecutionsCancelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminExecutionsCancelResponse, error)
AdminExecutionsCancelWithBodyWithResponse request with arbitrary body returning *AdminExecutionsCancelResponse
func (*ClientWithResponses) AdminExecutionsCancelWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) AdminExecutionsCancelWithResponse(ctx context.Context, body AdminExecutionsCancelJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminExecutionsCancelResponse, error)
func (*ClientWithResponses) AdminGatesSatisfyWithBodyWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) AdminGatesSatisfyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminGatesSatisfyResponse, error)
AdminGatesSatisfyWithBodyWithResponse request with arbitrary body returning *AdminGatesSatisfyResponse
func (*ClientWithResponses) AdminGatesSatisfyWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) AdminGatesSatisfyWithResponse(ctx context.Context, body AdminGatesSatisfyJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminGatesSatisfyResponse, error)
func (*ClientWithResponses) AdminGrantsReleaseWithBodyWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) AdminGrantsReleaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminGrantsReleaseResponse, error)
AdminGrantsReleaseWithBodyWithResponse request with arbitrary body returning *AdminGrantsReleaseResponse
func (*ClientWithResponses) AdminGrantsReleaseWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) AdminGrantsReleaseWithResponse(ctx context.Context, body AdminGrantsReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminGrantsReleaseResponse, error)
func (*ClientWithResponses) AppendLogsWithBodyWithResponse ¶
func (c *ClientWithResponses) AppendLogsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppendLogsResponse, error)
AppendLogsWithBodyWithResponse request with arbitrary body returning *AppendLogsResponse
func (*ClientWithResponses) AppendLogsWithResponse ¶
func (c *ClientWithResponses) AppendLogsWithResponse(ctx context.Context, body AppendLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*AppendLogsResponse, error)
func (*ClientWithResponses) CheckGateWithBodyWithResponse ¶
func (c *ClientWithResponses) CheckGateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckGateResponse, error)
CheckGateWithBodyWithResponse request with arbitrary body returning *CheckGateResponse
func (*ClientWithResponses) CheckGateWithResponse ¶
func (c *ClientWithResponses) CheckGateWithResponse(ctx context.Context, body CheckGateJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckGateResponse, error)
func (*ClientWithResponses) FinalizeExecutionWithBodyWithResponse ¶
func (c *ClientWithResponses) FinalizeExecutionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinalizeExecutionResponse, error)
FinalizeExecutionWithBodyWithResponse request with arbitrary body returning *FinalizeExecutionResponse
func (*ClientWithResponses) FinalizeExecutionWithResponse ¶
func (c *ClientWithResponses) FinalizeExecutionWithResponse(ctx context.Context, body FinalizeExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*FinalizeExecutionResponse, error)
func (*ClientWithResponses) GetCatalogWithResponse ¶ added in v0.31.0
func (c *ClientWithResponses) GetCatalogWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCatalogResponse, error)
GetCatalogWithResponse request returning *GetCatalogResponse
func (*ClientWithResponses) GetExecutionWithResponse ¶
func (c *ClientWithResponses) GetExecutionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetExecutionResponse, error)
GetExecutionWithResponse request returning *GetExecutionResponse
func (*ClientWithResponses) GetLifecycleWithResponse ¶ added in v0.37.0
func (c *ClientWithResponses) GetLifecycleWithResponse(ctx context.Context, params *GetLifecycleParams, reqEditors ...RequestEditorFn) (*GetLifecycleResponse, error)
GetLifecycleWithResponse request returning *GetLifecycleResponse
func (*ClientWithResponses) GetPRWithResponse ¶ added in v0.27.0
func (c *ClientWithResponses) GetPRWithResponse(ctx context.Context, n int, reqEditors ...RequestEditorFn) (*GetPRResponse, error)
GetPRWithResponse request returning *GetPRResponse
func (*ClientWithResponses) InitExecutionWithBodyWithResponse ¶
func (c *ClientWithResponses) InitExecutionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitExecutionResponse, error)
InitExecutionWithBodyWithResponse request with arbitrary body returning *InitExecutionResponse
func (*ClientWithResponses) InitExecutionWithResponse ¶
func (c *ClientWithResponses) InitExecutionWithResponse(ctx context.Context, body InitExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*InitExecutionResponse, error)
func (*ClientWithResponses) InspectClaimsWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) InspectClaimsWithResponse(ctx context.Context, env string, reqEditors ...RequestEditorFn) (*InspectClaimsResponse, error)
InspectClaimsWithResponse request returning *InspectClaimsResponse
func (*ClientWithResponses) InspectEventsWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) InspectEventsWithResponse(ctx context.Context, stream string, params *InspectEventsParams, reqEditors ...RequestEditorFn) (*InspectEventsResponse, error)
InspectEventsWithResponse request returning *InspectEventsResponse
func (*ClientWithResponses) InspectGateWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) InspectGateWithResponse(ctx context.Context, pr int, env string, reqEditors ...RequestEditorFn) (*InspectGateResponse, error)
InspectGateWithResponse request returning *InspectGateResponse
func (*ClientWithResponses) InspectGrantsWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) InspectGrantsWithResponse(ctx context.Context, params *InspectGrantsParams, reqEditors ...RequestEditorFn) (*InspectGrantsResponse, error)
InspectGrantsWithResponse request returning *InspectGrantsResponse
func (*ClientWithResponses) InspectOverviewWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) InspectOverviewWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InspectOverviewResponse, error)
InspectOverviewWithResponse request returning *InspectOverviewResponse
func (*ClientWithResponses) InspectPoolWithResponse ¶ added in v0.28.0
func (c *ClientWithResponses) InspectPoolWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InspectPoolResponse, error)
InspectPoolWithResponse request returning *InspectPoolResponse
func (*ClientWithResponses) ListApprovalsWithResponse ¶
func (c *ClientWithResponses) ListApprovalsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListApprovalsResponse, error)
ListApprovalsWithResponse request returning *ListApprovalsResponse
func (*ClientWithResponses) ListClaimsWithBodyWithResponse ¶
func (c *ClientWithResponses) ListClaimsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListClaimsResponse, error)
ListClaimsWithBodyWithResponse request with arbitrary body returning *ListClaimsResponse
func (*ClientWithResponses) ListClaimsWithResponse ¶
func (c *ClientWithResponses) ListClaimsWithResponse(ctx context.Context, body ListClaimsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListClaimsResponse, error)
func (*ClientWithResponses) ListExecutionsWithResponse ¶
func (c *ClientWithResponses) ListExecutionsWithResponse(ctx context.Context, params *ListExecutionsParams, reqEditors ...RequestEditorFn) (*ListExecutionsResponse, error)
ListExecutionsWithResponse request returning *ListExecutionsResponse
func (*ClientWithResponses) MergeQueueWithResponse ¶ added in v0.37.0
func (c *ClientWithResponses) MergeQueueWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MergeQueueResponse, error)
MergeQueueWithResponse request returning *MergeQueueResponse
func (*ClientWithResponses) ReconcileGatesWithResponse ¶ added in v0.40.0
func (c *ClientWithResponses) ReconcileGatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReconcileGatesResponse, error)
ReconcileGatesWithResponse request returning *ReconcileGatesResponse
func (*ClientWithResponses) ReleaseClaimsWithBodyWithResponse ¶
func (c *ClientWithResponses) ReleaseClaimsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReleaseClaimsResponse, error)
ReleaseClaimsWithBodyWithResponse request with arbitrary body returning *ReleaseClaimsResponse
func (*ClientWithResponses) ReleaseClaimsWithResponse ¶
func (c *ClientWithResponses) ReleaseClaimsWithResponse(ctx context.Context, body ReleaseClaimsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReleaseClaimsResponse, error)
func (*ClientWithResponses) ReportPhaseWithBodyWithResponse ¶
func (c *ClientWithResponses) ReportPhaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReportPhaseResponse, error)
ReportPhaseWithBodyWithResponse request with arbitrary body returning *ReportPhaseResponse
func (*ClientWithResponses) ReportPhaseWithResponse ¶
func (c *ClientWithResponses) ReportPhaseWithResponse(ctx context.Context, body ReportPhaseJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportPhaseResponse, error)
func (*ClientWithResponses) RevokeGateWithBodyWithResponse ¶
func (c *ClientWithResponses) RevokeGateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RevokeGateResponse, error)
RevokeGateWithBodyWithResponse request with arbitrary body returning *RevokeGateResponse
func (*ClientWithResponses) RevokeGateWithResponse ¶
func (c *ClientWithResponses) RevokeGateWithResponse(ctx context.Context, body RevokeGateJSONRequestBody, reqEditors ...RequestEditorFn) (*RevokeGateResponse, error)
func (*ClientWithResponses) UpdateStackWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateStackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStackResponse, error)
UpdateStackWithBodyWithResponse request with arbitrary body returning *UpdateStackResponse
func (*ClientWithResponses) UpdateStackWithResponse ¶
func (c *ClientWithResponses) UpdateStackWithResponse(ctx context.Context, body UpdateStackJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStackResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// AdminChecksOverrideWithBodyWithResponse request with any body
AdminChecksOverrideWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminChecksOverrideResponse, error)
AdminChecksOverrideWithResponse(ctx context.Context, body AdminChecksOverrideJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminChecksOverrideResponse, error)
// AdminExecutionsCancelWithBodyWithResponse request with any body
AdminExecutionsCancelWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminExecutionsCancelResponse, error)
AdminExecutionsCancelWithResponse(ctx context.Context, body AdminExecutionsCancelJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminExecutionsCancelResponse, error)
// AdminGatesSatisfyWithBodyWithResponse request with any body
AdminGatesSatisfyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminGatesSatisfyResponse, error)
AdminGatesSatisfyWithResponse(ctx context.Context, body AdminGatesSatisfyJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminGatesSatisfyResponse, error)
// AdminGrantsReleaseWithBodyWithResponse request with any body
AdminGrantsReleaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AdminGrantsReleaseResponse, error)
AdminGrantsReleaseWithResponse(ctx context.Context, body AdminGrantsReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*AdminGrantsReleaseResponse, error)
// ListApprovalsWithResponse request
ListApprovalsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListApprovalsResponse, error)
// GetCatalogWithResponse request
GetCatalogWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCatalogResponse, error)
// ListClaimsWithBodyWithResponse request with any body
ListClaimsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ListClaimsResponse, error)
ListClaimsWithResponse(ctx context.Context, body ListClaimsJSONRequestBody, reqEditors ...RequestEditorFn) (*ListClaimsResponse, error)
// ReleaseClaimsWithBodyWithResponse request with any body
ReleaseClaimsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReleaseClaimsResponse, error)
ReleaseClaimsWithResponse(ctx context.Context, body ReleaseClaimsJSONRequestBody, reqEditors ...RequestEditorFn) (*ReleaseClaimsResponse, error)
// GetExecutionWithResponse request
GetExecutionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetExecutionResponse, error)
// ListExecutionsWithResponse request
ListExecutionsWithResponse(ctx context.Context, params *ListExecutionsParams, reqEditors ...RequestEditorFn) (*ListExecutionsResponse, error)
// FinalizeExecutionWithBodyWithResponse request with any body
FinalizeExecutionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FinalizeExecutionResponse, error)
FinalizeExecutionWithResponse(ctx context.Context, body FinalizeExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*FinalizeExecutionResponse, error)
// CheckGateWithBodyWithResponse request with any body
CheckGateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CheckGateResponse, error)
CheckGateWithResponse(ctx context.Context, body CheckGateJSONRequestBody, reqEditors ...RequestEditorFn) (*CheckGateResponse, error)
// ReconcileGatesWithResponse request
ReconcileGatesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReconcileGatesResponse, error)
// RevokeGateWithBodyWithResponse request with any body
RevokeGateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RevokeGateResponse, error)
RevokeGateWithResponse(ctx context.Context, body RevokeGateJSONRequestBody, reqEditors ...RequestEditorFn) (*RevokeGateResponse, error)
// InitExecutionWithBodyWithResponse request with any body
InitExecutionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*InitExecutionResponse, error)
InitExecutionWithResponse(ctx context.Context, body InitExecutionJSONRequestBody, reqEditors ...RequestEditorFn) (*InitExecutionResponse, error)
// InspectClaimsWithResponse request
InspectClaimsWithResponse(ctx context.Context, env string, reqEditors ...RequestEditorFn) (*InspectClaimsResponse, error)
// InspectEventsWithResponse request
InspectEventsWithResponse(ctx context.Context, stream string, params *InspectEventsParams, reqEditors ...RequestEditorFn) (*InspectEventsResponse, error)
// InspectGateWithResponse request
InspectGateWithResponse(ctx context.Context, pr int, env string, reqEditors ...RequestEditorFn) (*InspectGateResponse, error)
// InspectGrantsWithResponse request
InspectGrantsWithResponse(ctx context.Context, params *InspectGrantsParams, reqEditors ...RequestEditorFn) (*InspectGrantsResponse, error)
// InspectOverviewWithResponse request
InspectOverviewWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InspectOverviewResponse, error)
// InspectPoolWithResponse request
InspectPoolWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InspectPoolResponse, error)
// GetLifecycleWithResponse request
GetLifecycleWithResponse(ctx context.Context, params *GetLifecycleParams, reqEditors ...RequestEditorFn) (*GetLifecycleResponse, error)
// AppendLogsWithBodyWithResponse request with any body
AppendLogsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AppendLogsResponse, error)
AppendLogsWithResponse(ctx context.Context, body AppendLogsJSONRequestBody, reqEditors ...RequestEditorFn) (*AppendLogsResponse, error)
// MergeQueueWithResponse request
MergeQueueWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MergeQueueResponse, error)
// ReportPhaseWithBodyWithResponse request with any body
ReportPhaseWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReportPhaseResponse, error)
ReportPhaseWithResponse(ctx context.Context, body ReportPhaseJSONRequestBody, reqEditors ...RequestEditorFn) (*ReportPhaseResponse, error)
// GetPRWithResponse request
GetPRWithResponse(ctx context.Context, n int, reqEditors ...RequestEditorFn) (*GetPRResponse, error)
// UpdateStackWithBodyWithResponse request with any body
UpdateStackWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateStackResponse, error)
UpdateStackWithResponse(ctx context.Context, body UpdateStackJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateStackResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CodedError ¶
type CodedError struct {
// Code e.g. GATE-001, GATE-002, GATE-003, SRV-001
Code string `json:"code"`
Message string `json:"message"`
}
CodedError Machine-readable error: HTTP status carries the coarse class, code the precise condition callers switch on.
type ExecutionDetail ¶
type ExecutionDetail struct {
// CheckRunID A database nullable int64, serialized raw (historical accident, preserved for wire compatibility).
CheckRunID NullInt64 `json:"CheckRunID"`
CreatedAt time.Time `json:"CreatedAt"`
Environment string `json:"Environment"`
ID string `json:"ID"`
LogURL string `json:"LogURL"`
PR int `json:"PR"`
Phase string `json:"Phase"`
ProgressLabel string `json:"ProgressLabel"`
ProgressPct int `json:"ProgressPct"`
Repo string `json:"Repo"`
ReportMarkdown string `json:"ReportMarkdown"`
Rev int `json:"Rev"`
SHA string `json:"SHA"`
// Status Execution-level status (in_progress/success/failure).
Status string `json:"Status"`
StatusContext string `json:"StatusContext"`
SupersededBy string `json:"SupersededBy"`
ChangeReasons *[]ChangeReason `json:"change_reasons,omitempty"`
Gates []StoredGateTarget `json:"gates"`
// Graph The changed subgraph for one execution.
Graph Graph `json:"graph"`
// VerifyExecutionId Latest verify execution for the same (pr, environment), "" when none. Additive (2026-07) — snake_case unlike its legacy siblings.
VerifyExecutionId string `json:"verify_execution_id"`
}
ExecutionDetail The full execution read. Top-level and gate keys are PascalCase with a raw NullInt64 (see getExecution).
type ExecutionSummary ¶
type ExecutionSummary struct {
// Context The commit-status context the run drives (e.g. plan/<env>, apply/<env>, verify/<env>).
Context string `json:"context"`
CreatedAt time.Time `json:"created_at"`
Environment string `json:"environment"`
Id string `json:"id"`
LogUrl string `json:"log_url"`
// Phase Current lifecycle phase ("" before the first phase event).
Phase string `json:"phase"`
Pr int `json:"pr"`
// ProgressLabel Dynamic progress label.
ProgressLabel string `json:"progress_label"`
// ProgressPct Dynamic progress percentage (0-100).
ProgressPct int `json:"progress_pct"`
Repo string `json:"repo"`
Sha string `json:"sha"`
// Status Execution-level status (in_progress/success/failure).
Status string `json:"status"`
// SupersededBy Id of the execution that superseded this one ("" when live).
SupersededBy string `json:"superseded_by"`
}
ExecutionSummary One execution in a list view — everything but the graph and the rendered report.
type FinalizeExecutionJSONRequestBody ¶
type FinalizeExecutionJSONRequestBody = Finalize
FinalizeExecutionJSONRequestBody defines body for FinalizeExecution for application/json ContentType.
type FinalizeExecutionResponse ¶
func ParseFinalizeExecutionResponse ¶
func ParseFinalizeExecutionResponse(rsp *http.Response) (*FinalizeExecutionResponse, error)
ParseFinalizeExecutionResponse parses an HTTP response from a FinalizeExecutionWithResponse call
func (FinalizeExecutionResponse) ContentType ¶
func (r FinalizeExecutionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (FinalizeExecutionResponse) Status ¶
func (r FinalizeExecutionResponse) Status() string
Status returns HTTPResponse.Status
func (FinalizeExecutionResponse) StatusCode ¶
func (r FinalizeExecutionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GateCheckOK ¶
type GateCheckOK struct {
// Requester Leased requester SA the apply impersonates; empty for a clean/no-gate pass.
Requester string `json:"requester"`
}
GateCheckOK A passing gate check.
type GateTarget ¶
type GateTarget = events.GateTarget
GateTarget One thing that must be approved: a classification class against a target (e.g. a cloud project).
type GetCatalogResponse ¶ added in v0.31.0
func ParseGetCatalogResponse ¶ added in v0.31.0
func ParseGetCatalogResponse(rsp *http.Response) (*GetCatalogResponse, error)
ParseGetCatalogResponse parses an HTTP response from a GetCatalogWithResponse call
func (GetCatalogResponse) ContentType ¶ added in v0.31.0
func (r GetCatalogResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCatalogResponse) Status ¶ added in v0.31.0
func (r GetCatalogResponse) Status() string
Status returns HTTPResponse.Status
func (GetCatalogResponse) StatusCode ¶ added in v0.31.0
func (r GetCatalogResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExecutionResponse ¶
type GetExecutionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExecutionDetail
}
func ParseGetExecutionResponse ¶
func ParseGetExecutionResponse(rsp *http.Response) (*GetExecutionResponse, error)
ParseGetExecutionResponse parses an HTTP response from a GetExecutionWithResponse call
func (GetExecutionResponse) ContentType ¶
func (r GetExecutionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetExecutionResponse) Status ¶
func (r GetExecutionResponse) Status() string
Status returns HTTPResponse.Status
func (GetExecutionResponse) StatusCode ¶
func (r GetExecutionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLifecycleParams ¶ added in v0.37.0
type GetLifecycleParams struct {
Pr int `form:"pr" json:"pr"`
}
GetLifecycleParams defines parameters for GetLifecycle.
type GetLifecycleResponse ¶ added in v0.37.0
type GetLifecycleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]LifecyclePhase
}
func ParseGetLifecycleResponse ¶ added in v0.37.0
func ParseGetLifecycleResponse(rsp *http.Response) (*GetLifecycleResponse, error)
ParseGetLifecycleResponse parses an HTTP response from a GetLifecycleWithResponse call
func (GetLifecycleResponse) ContentType ¶ added in v0.37.0
func (r GetLifecycleResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetLifecycleResponse) Status ¶ added in v0.37.0
func (r GetLifecycleResponse) Status() string
Status returns HTTPResponse.Status
func (GetLifecycleResponse) StatusCode ¶ added in v0.37.0
func (r GetLifecycleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPRResponse ¶ added in v0.27.0
func ParseGetPRResponse ¶ added in v0.27.0
func ParseGetPRResponse(rsp *http.Response) (*GetPRResponse, error)
ParseGetPRResponse parses an HTTP response from a GetPRWithResponse call
func (GetPRResponse) ContentType ¶ added in v0.27.0
func (r GetPRResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetPRResponse) Status ¶ added in v0.27.0
func (r GetPRResponse) Status() string
Status returns HTTPResponse.Status
func (GetPRResponse) StatusCode ¶ added in v0.27.0
func (r GetPRResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InitExecutionJSONRequestBody ¶
type InitExecutionJSONRequestBody = Init
InitExecutionJSONRequestBody defines body for InitExecution for application/json ContentType.
type InitExecutionResponse ¶
func ParseInitExecutionResponse ¶
func ParseInitExecutionResponse(rsp *http.Response) (*InitExecutionResponse, error)
ParseInitExecutionResponse parses an HTTP response from a InitExecutionWithResponse call
func (InitExecutionResponse) ContentType ¶
func (r InitExecutionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (InitExecutionResponse) Status ¶
func (r InitExecutionResponse) Status() string
Status returns HTTPResponse.Status
func (InitExecutionResponse) StatusCode ¶
func (r InitExecutionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InspectClaim ¶ added in v0.28.0
type InspectClaim struct {
ExpiresAt time.Time `json:"expires_at"`
Pr int `json:"pr"`
Stack string `json:"stack"`
}
InspectClaim defines model for InspectClaim.
type InspectClaimsResponse ¶ added in v0.28.0
type InspectClaimsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InspectClaimsSet
}
func ParseInspectClaimsResponse ¶ added in v0.28.0
func ParseInspectClaimsResponse(rsp *http.Response) (*InspectClaimsResponse, error)
ParseInspectClaimsResponse parses an HTTP response from a InspectClaimsWithResponse call
func (InspectClaimsResponse) ContentType ¶ added in v0.28.0
func (r InspectClaimsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (InspectClaimsResponse) Status ¶ added in v0.28.0
func (r InspectClaimsResponse) Status() string
Status returns HTTPResponse.Status
func (InspectClaimsResponse) StatusCode ¶ added in v0.28.0
func (r InspectClaimsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InspectClaimsSet ¶ added in v0.28.0
type InspectClaimsSet struct {
Claims []InspectClaim `json:"claims"`
Environment string `json:"environment"`
}
InspectClaimsSet defines model for InspectClaimsSet.
type InspectEvent ¶ added in v0.28.0
type InspectEvent struct {
Data json.RawMessage `json:"data"`
OccurredAt time.Time `json:"occurred_at"`
Type string `json:"type"`
Version int `json:"version"`
}
InspectEvent defines model for InspectEvent.
type InspectEventsParams ¶ added in v0.28.0
type InspectEventsParams struct {
After *int `form:"after,omitempty" json:"after,omitempty"`
}
InspectEventsParams defines parameters for InspectEvents.
type InspectEventsResponse ¶ added in v0.28.0
type InspectEventsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]InspectEvent
}
func ParseInspectEventsResponse ¶ added in v0.28.0
func ParseInspectEventsResponse(rsp *http.Response) (*InspectEventsResponse, error)
ParseInspectEventsResponse parses an HTTP response from a InspectEventsWithResponse call
func (InspectEventsResponse) ContentType ¶ added in v0.28.0
func (r InspectEventsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (InspectEventsResponse) Status ¶ added in v0.28.0
func (r InspectEventsResponse) Status() string
Status returns HTTPResponse.Status
func (InspectEventsResponse) StatusCode ¶ added in v0.28.0
func (r InspectEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InspectGateDetail ¶ added in v0.28.0
type InspectGateDetail struct {
Environment string `json:"environment"`
GateState string `json:"gate_state"`
Pr int `json:"pr"`
Reasons []InspectGateReason `json:"reasons"`
Targets []InspectGateTarget `json:"targets"`
}
InspectGateDetail defines model for InspectGateDetail.
type InspectGateReason ¶ added in v0.28.0
type InspectGateReason struct {
Description string `json:"description"`
EventType string `json:"event_type"`
OccurredAt time.Time `json:"occurred_at"`
}
InspectGateReason defines model for InspectGateReason.
type InspectGateResponse ¶ added in v0.28.0
type InspectGateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InspectGateDetail
}
func ParseInspectGateResponse ¶ added in v0.28.0
func ParseInspectGateResponse(rsp *http.Response) (*InspectGateResponse, error)
ParseInspectGateResponse parses an HTTP response from a InspectGateWithResponse call
func (InspectGateResponse) ContentType ¶ added in v0.28.0
func (r InspectGateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (InspectGateResponse) Status ¶ added in v0.28.0
func (r InspectGateResponse) Status() string
Status returns HTTPResponse.Status
func (InspectGateResponse) StatusCode ¶ added in v0.28.0
func (r InspectGateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InspectGateTarget ¶ added in v0.28.0
type InspectGateTarget struct {
Class string `json:"class"`
GrantName string `json:"grant_name"`
Requester string `json:"requester"`
State string `json:"state"`
Target string `json:"target"`
}
InspectGateTarget defines model for InspectGateTarget.
type InspectGrant ¶ added in v0.28.0
type InspectGrant struct {
ActualState *string `json:"actual_state,omitempty"`
Class string `json:"class"`
DriftDetected *bool `json:"drift_detected,omitempty"`
Environment string `json:"environment"`
GrantName string `json:"grant_name"`
Pr int `json:"pr"`
Requester string `json:"requester"`
State string `json:"state"`
Target string `json:"target"`
}
InspectGrant defines model for InspectGrant.
type InspectGrantsParams ¶ added in v0.28.0
type InspectGrantsParams struct {
State *string `form:"state,omitempty" json:"state,omitempty"`
Live *int `form:"live,omitempty" json:"live,omitempty"`
}
InspectGrantsParams defines parameters for InspectGrants.
type InspectGrantsResponse ¶ added in v0.28.0
type InspectGrantsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]InspectGrant
}
func ParseInspectGrantsResponse ¶ added in v0.28.0
func ParseInspectGrantsResponse(rsp *http.Response) (*InspectGrantsResponse, error)
ParseInspectGrantsResponse parses an HTTP response from a InspectGrantsWithResponse call
func (InspectGrantsResponse) ContentType ¶ added in v0.28.0
func (r InspectGrantsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (InspectGrantsResponse) Status ¶ added in v0.28.0
func (r InspectGrantsResponse) Status() string
Status returns HTTPResponse.Status
func (InspectGrantsResponse) StatusCode ¶ added in v0.28.0
func (r InspectGrantsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InspectOverviewResponse ¶ added in v0.28.0
type InspectOverviewResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]InspectPRSummary
}
func ParseInspectOverviewResponse ¶ added in v0.28.0
func ParseInspectOverviewResponse(rsp *http.Response) (*InspectOverviewResponse, error)
ParseInspectOverviewResponse parses an HTTP response from a InspectOverviewWithResponse call
func (InspectOverviewResponse) ContentType ¶ added in v0.28.0
func (r InspectOverviewResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (InspectOverviewResponse) Status ¶ added in v0.28.0
func (r InspectOverviewResponse) Status() string
Status returns HTTPResponse.Status
func (InspectOverviewResponse) StatusCode ¶ added in v0.28.0
func (r InspectOverviewResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InspectPRSummary ¶ added in v0.28.0
type InspectPRSummary struct {
Claims []InspectClaim `json:"claims"`
Executions []ExecutionSummary `json:"executions"`
GateState string `json:"gate_state"`
// Meta PR-level identity as last reported by the GitHub webhook (title, author, branch, automerge).
Meta *PRMeta `json:"meta,omitempty"`
OpenGrants []InspectGrant `json:"open_grants"`
Pr int `json:"pr"`
Repo string `json:"repo"`
}
InspectPRSummary defines model for InspectPRSummary.
type InspectPoolResponse ¶ added in v0.28.0
type InspectPoolResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InspectPoolSet
}
func ParseInspectPoolResponse ¶ added in v0.28.0
func ParseInspectPoolResponse(rsp *http.Response) (*InspectPoolResponse, error)
ParseInspectPoolResponse parses an HTTP response from a InspectPoolWithResponse call
func (InspectPoolResponse) ContentType ¶ added in v0.28.0
func (r InspectPoolResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (InspectPoolResponse) Status ¶ added in v0.28.0
func (r InspectPoolResponse) Status() string
Status returns HTTPResponse.Status
func (InspectPoolResponse) StatusCode ¶ added in v0.28.0
func (r InspectPoolResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type InspectPoolSet ¶ added in v0.28.0
type InspectPoolSet struct {
Environment string `json:"environment"`
Slots []InspectPoolSlot `json:"slots"`
Waiting []InspectPoolWaitingPR `json:"waiting"`
}
InspectPoolSet defines model for InspectPoolSet.
type InspectPoolSlot ¶ added in v0.28.0
type InspectPoolSlot struct {
ElapsedSeconds *int `json:"elapsed_seconds,omitempty"`
Environment *string `json:"environment,omitempty"`
GrantName *string `json:"grant_name,omitempty"`
Occupied bool `json:"occupied"`
Pr *int `json:"pr,omitempty"`
Requester string `json:"requester"`
State *string `json:"state,omitempty"`
}
InspectPoolSlot defines model for InspectPoolSlot.
type InspectPoolWaitingPR ¶ added in v0.28.0
type InspectPoolWaitingPR struct {
BlockerEnv string `json:"blocker_env"`
BlockerPr int `json:"blocker_pr"`
Environment string `json:"environment"`
Pr int `json:"pr"`
Reason string `json:"reason"`
}
InspectPoolWaitingPR defines model for InspectPoolWaitingPR.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type LifecyclePhase ¶ added in v0.37.0
type LifecyclePhase struct {
// Context plan | apply | verify | gate
Context *string `json:"context,omitempty"`
// Detail Human sub-phase currently running inside this segment (e.g. "warming caches" while the apply segment prepares). Only set on the "now" segment when the raw phase is finer than the segment.
Detail *string `json:"detail,omitempty"`
EndedAt *time.Time `json:"ended_at,omitempty"`
// Key Canonical template key (prepare/init/moves/plan/classify/report/approve/apply/verify) or a raw dynamic phase name.
Key string `json:"key"`
// Label Human caption for the phase.
Label string `json:"label"`
// ProgressPct Within-segment completion percentage, derived from per-stack terminal statuses (k of N stacks). Only set on the "now" segment when real per-stack progress is known.
ProgressPct *int `json:"progress_pct,omitempty"`
// Result Derived summary (rollup counts / gate count / wait reason).
Result *string `json:"result,omitempty"`
StartedAt *time.Time `json:"started_at,omitempty"`
// State done | now | pending | failed
State string `json:"state"`
}
LifecyclePhase One phase of a PR/tier's folded lifecycle timeline. key is a canonical template key or a raw dynamic phase name; result is derived server-side (never stored).
type ListApprovalsResponse ¶
type ListApprovalsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]PendingApproval
}
func ParseListApprovalsResponse ¶
func ParseListApprovalsResponse(rsp *http.Response) (*ListApprovalsResponse, error)
ParseListApprovalsResponse parses an HTTP response from a ListApprovalsWithResponse call
func (ListApprovalsResponse) ContentType ¶
func (r ListApprovalsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListApprovalsResponse) Status ¶
func (r ListApprovalsResponse) Status() string
Status returns HTTPResponse.Status
func (ListApprovalsResponse) StatusCode ¶
func (r ListApprovalsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListClaimsJSONRequestBody ¶
type ListClaimsJSONRequestBody = ClaimsListRequest
ListClaimsJSONRequestBody defines body for ListClaims for application/json ContentType.
type ListClaimsResponse ¶
func ParseListClaimsResponse ¶
func ParseListClaimsResponse(rsp *http.Response) (*ListClaimsResponse, error)
ParseListClaimsResponse parses an HTTP response from a ListClaimsWithResponse call
func (ListClaimsResponse) ContentType ¶
func (r ListClaimsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListClaimsResponse) Status ¶
func (r ListClaimsResponse) Status() string
Status returns HTTPResponse.Status
func (ListClaimsResponse) StatusCode ¶
func (r ListClaimsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListExecutionsParams ¶
type ListExecutionsParams struct {
// Pr Only executions for this pull request.
Pr *int `form:"pr,omitempty" json:"pr,omitempty"`
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
ListExecutionsParams defines parameters for ListExecutions.
type ListExecutionsResponse ¶
type ListExecutionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]ExecutionSummary
}
func ParseListExecutionsResponse ¶
func ParseListExecutionsResponse(rsp *http.Response) (*ListExecutionsResponse, error)
ParseListExecutionsResponse parses an HTTP response from a ListExecutionsWithResponse call
func (ListExecutionsResponse) ContentType ¶
func (r ListExecutionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListExecutionsResponse) Status ¶
func (r ListExecutionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListExecutionsResponse) StatusCode ¶
func (r ListExecutionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MergeQueue ¶ added in v0.37.0
type MergeQueue struct {
// Branch The queued branch (default branch); "" when unknown.
Branch string `json:"branch"`
Entries []MergeQueueEntry `json:"entries"`
}
MergeQueue A repository's GitHub merge queue for its default branch.
type MergeQueueEntry ¶ added in v0.37.0
type MergeQueueEntry struct {
Position int `json:"position"`
Pr int `json:"pr"`
// State GitHub MergeQueueEntryState (QUEUED, MERGEABLE, AWAITING_CHECKS, LOCKED, UNMERGEABLE).
State string `json:"state"`
}
MergeQueueEntry One PR queued on the merge queue.
type MergeQueueResponse ¶ added in v0.37.0
type MergeQueueResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MergeQueue
}
func ParseMergeQueueResponse ¶ added in v0.37.0
func ParseMergeQueueResponse(rsp *http.Response) (*MergeQueueResponse, error)
ParseMergeQueueResponse parses an HTTP response from a MergeQueueWithResponse call
func (MergeQueueResponse) ContentType ¶ added in v0.37.0
func (r MergeQueueResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MergeQueueResponse) Status ¶ added in v0.37.0
func (r MergeQueueResponse) Status() string
Status returns HTTPResponse.Status
func (MergeQueueResponse) StatusCode ¶ added in v0.37.0
func (r MergeQueueResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type NullInt64 ¶
NullInt64 A database nullable int64, serialized raw (historical accident, preserved for wire compatibility).
type PRMergeState ¶ added in v0.27.0
type PRMergeState struct {
// Blocker Short human-readable blocker reason ("" when not blocked).
Blocker string `json:"blocker"`
// CheckConclusion GitHub check conclusion vocabulary; "" means still in progress.
CheckConclusion string `json:"check_conclusion"`
// Environment This serve's tier (empty when the tier has none configured).
Environment string `json:"environment"`
MergeBlocked bool `json:"merge_blocked"`
// RequiredCheck The check name that gates merge (e.g. apply-lock/<env> or terraform/<env>).
RequiredCheck string `json:"required_check"`
}
PRMergeState A PR's merge-readiness on this serve's tier.
type PRMeta ¶ added in v0.27.0
type PRMeta struct {
AuthorLogin string `json:"author_login"`
AutoMerge bool `json:"auto_merge"`
Body string `json:"body"`
HeadRef string `json:"head_ref"`
Title string `json:"title"`
Url string `json:"url"`
}
PRMeta PR-level identity as last reported by the GitHub webhook (title, author, branch, automerge).
type PRView ¶ added in v0.27.0
type PRView struct {
// Merge A PR's merge-readiness on this serve's tier.
Merge PRMergeState `json:"merge"`
// Meta PR-level identity as last reported by the GitHub webhook (title, author, branch, automerge).
Meta *PRMeta `json:"meta,omitempty"`
Pr int `json:"pr"`
// Repo Repo of the PR's latest execution ("" when none).
Repo string `json:"repo"`
}
PRView A PR's identity and per-tier merge state.
type PendingApproval ¶
type PendingApproval struct {
Class string `json:"class"`
Environment string `json:"environment"`
// GrantName The approval-backend grant resource name ("" until a grant exists).
GrantName string `json:"grant_name"`
Pr int `json:"pr"`
// Repo Repo of the PR's latest execution in this environment ("" when none).
Repo string `json:"repo"`
// Requester Leased requester SA for this grant.
Requester string `json:"requester"`
// State Backend grant state (e.g. AWAITING, ACTIVATING, DENIED, REVOKED).
State string `json:"state"`
Target string `json:"target"`
}
PendingApproval One gate target awaiting human action, with its PR context.
type PhaseEvent ¶
type PhaseEvent = events.PhaseEvent
PhaseEvent Narrates a lifecycle phase transition (may arrive before Init).
type ReconcileGatesResponse ¶ added in v0.40.0
func ParseReconcileGatesResponse ¶ added in v0.40.0
func ParseReconcileGatesResponse(rsp *http.Response) (*ReconcileGatesResponse, error)
ParseReconcileGatesResponse parses an HTTP response from a ReconcileGatesWithResponse call
func (ReconcileGatesResponse) ContentType ¶ added in v0.40.0
func (r ReconcileGatesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReconcileGatesResponse) Status ¶ added in v0.40.0
func (r ReconcileGatesResponse) Status() string
Status returns HTTPResponse.Status
func (ReconcileGatesResponse) StatusCode ¶ added in v0.40.0
func (r ReconcileGatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReleaseClaimsJSONRequestBody ¶
type ReleaseClaimsJSONRequestBody = ClaimsReleaseRequest
ReleaseClaimsJSONRequestBody defines body for ReleaseClaims for application/json ContentType.
type ReleaseClaimsResponse ¶
func ParseReleaseClaimsResponse ¶
func ParseReleaseClaimsResponse(rsp *http.Response) (*ReleaseClaimsResponse, error)
ParseReleaseClaimsResponse parses an HTTP response from a ReleaseClaimsWithResponse call
func (ReleaseClaimsResponse) ContentType ¶
func (r ReleaseClaimsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReleaseClaimsResponse) Status ¶
func (r ReleaseClaimsResponse) Status() string
Status returns HTTPResponse.Status
func (ReleaseClaimsResponse) StatusCode ¶
func (r ReleaseClaimsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReportPhaseJSONRequestBody ¶
type ReportPhaseJSONRequestBody = PhaseEvent
ReportPhaseJSONRequestBody defines body for ReportPhase for application/json ContentType.
type ReportPhaseResponse ¶
func ParseReportPhaseResponse ¶
func ParseReportPhaseResponse(rsp *http.Response) (*ReportPhaseResponse, error)
ParseReportPhaseResponse parses an HTTP response from a ReportPhaseWithResponse call
func (ReportPhaseResponse) ContentType ¶
func (r ReportPhaseResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReportPhaseResponse) Status ¶
func (r ReportPhaseResponse) Status() string
Status returns HTTPResponse.Status
func (ReportPhaseResponse) StatusCode ¶
func (r ReportPhaseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type RevokeGateJSONRequestBody ¶
type RevokeGateJSONRequestBody = GateRevoke
RevokeGateJSONRequestBody defines body for RevokeGate for application/json ContentType.
type RevokeGateResponse ¶
func ParseRevokeGateResponse ¶
func ParseRevokeGateResponse(rsp *http.Response) (*RevokeGateResponse, error)
ParseRevokeGateResponse parses an HTTP response from a RevokeGateWithResponse call
func (RevokeGateResponse) ContentType ¶
func (r RevokeGateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RevokeGateResponse) Status ¶
func (r RevokeGateResponse) Status() string
Status returns HTTPResponse.Status
func (RevokeGateResponse) StatusCode ¶
func (r RevokeGateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type ServerInterface ¶
type ServerInterface interface {
// Admin override a check conclusion
// (POST /api/admin/checks/override)
AdminChecksOverride(w http.ResponseWriter, r *http.Request)
// Admin cancel a running execution
// (POST /api/admin/executions/cancel)
AdminExecutionsCancel(w http.ResponseWriter, r *http.Request)
// Admin satisfy a gate target manually
// (POST /api/admin/gates/satisfy)
AdminGatesSatisfy(w http.ResponseWriter, r *http.Request)
// Admin release a gate grant
// (POST /api/admin/grants/release)
AdminGrantsRelease(w http.ResponseWriter, r *http.Request)
// List gate targets awaiting human action, across all PRs
// (GET /api/approvals)
ListApprovals(w http.ResponseWriter, r *http.Request)
// Retrieve the compiled component catalog of the main branch
// (GET /api/catalog)
GetCatalog(w http.ResponseWriter, r *http.Request)
// List the apply-lock claims for an environment
// (POST /api/claims/list)
ListClaims(w http.ResponseWriter, r *http.Request)
// Admin-release one stack's claim or all of a PR's claims
// (POST /api/claims/release)
ReleaseClaims(w http.ResponseWriter, r *http.Request)
// Read one execution's full state
// (GET /api/execution/{id})
GetExecution(w http.ResponseWriter, r *http.Request, id string)
// List executions, newest first
// (GET /api/executions)
ListExecutions(w http.ResponseWriter, r *http.Request, params ListExecutionsParams)
// Record the terminal plan state
// (POST /api/finalize)
FinalizeExecution(w http.ResponseWriter, r *http.Request)
// Apply-time, fail-closed gate pre-check
// (POST /api/gate/check)
CheckGate(w http.ResponseWriter, r *http.Request)
// Nudge an immediate reconcile of every pending gate
// (POST /api/gate/reconcile)
ReconcileGates(w http.ResponseWriter, r *http.Request)
// Revoke the grants requested for (pr, environment)
// (POST /api/gate/revoke)
RevokeGate(w http.ResponseWriter, r *http.Request)
// Register an execution and its changed subgraph
// (POST /api/init)
InitExecution(w http.ResponseWriter, r *http.Request)
// Get folded claim set for an environment
// (GET /api/inspect/claims/{env})
InspectClaims(w http.ResponseWriter, r *http.Request, env string)
// Get ordered events for a stream
// (GET /api/inspect/events/{stream})
InspectEvents(w http.ResponseWriter, r *http.Request, stream string, params InspectEventsParams)
// Get gate state explainer and reason trail
// (GET /api/inspect/gate/{pr}/{env})
InspectGate(w http.ResponseWriter, r *http.Request, pr int, env string)
// List all recorded grants
// (GET /api/inspect/grants)
InspectGrants(w http.ResponseWriter, r *http.Request, params InspectGrantsParams)
// System-wide overview of all active PR states
// (GET /api/inspect/overview)
InspectOverview(w http.ResponseWriter, r *http.Request)
// Get applier-pool slot occupancy and waiting lists
// (GET /api/inspect/pool)
InspectPool(w http.ResponseWriter, r *http.Request)
// A PR's folded phase-timeline for this tier
// (GET /api/lifecycle)
GetLifecycle(w http.ResponseWriter, r *http.Request, params GetLifecycleParams)
// Ingest a per-stack output chunk
// (POST /api/logs)
AppendLogs(w http.ResponseWriter, r *http.Request)
// Read the repository's live GitHub merge queue (default branch)
// (GET /api/merge-queue)
MergeQueue(w http.ResponseWriter, r *http.Request)
// Narrate a lifecycle phase transition
// (POST /api/phase)
ReportPhase(w http.ResponseWriter, r *http.Request)
// Read a pull request's identity and per-tier merge state
// (GET /api/pr/{n})
GetPR(w http.ResponseWriter, r *http.Request, n int)
// Tick a single stack's status
// (POST /api/update)
UpdateStack(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AdminChecksOverride ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) AdminChecksOverride(w http.ResponseWriter, r *http.Request)
AdminChecksOverride operation middleware
func (*ServerInterfaceWrapper) AdminExecutionsCancel ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) AdminExecutionsCancel(w http.ResponseWriter, r *http.Request)
AdminExecutionsCancel operation middleware
func (*ServerInterfaceWrapper) AdminGatesSatisfy ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) AdminGatesSatisfy(w http.ResponseWriter, r *http.Request)
AdminGatesSatisfy operation middleware
func (*ServerInterfaceWrapper) AdminGrantsRelease ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) AdminGrantsRelease(w http.ResponseWriter, r *http.Request)
AdminGrantsRelease operation middleware
func (*ServerInterfaceWrapper) AppendLogs ¶
func (siw *ServerInterfaceWrapper) AppendLogs(w http.ResponseWriter, r *http.Request)
AppendLogs operation middleware
func (*ServerInterfaceWrapper) CheckGate ¶
func (siw *ServerInterfaceWrapper) CheckGate(w http.ResponseWriter, r *http.Request)
CheckGate operation middleware
func (*ServerInterfaceWrapper) FinalizeExecution ¶
func (siw *ServerInterfaceWrapper) FinalizeExecution(w http.ResponseWriter, r *http.Request)
FinalizeExecution operation middleware
func (*ServerInterfaceWrapper) GetCatalog ¶ added in v0.31.0
func (siw *ServerInterfaceWrapper) GetCatalog(w http.ResponseWriter, r *http.Request)
GetCatalog operation middleware
func (*ServerInterfaceWrapper) GetExecution ¶
func (siw *ServerInterfaceWrapper) GetExecution(w http.ResponseWriter, r *http.Request)
GetExecution operation middleware
func (*ServerInterfaceWrapper) GetLifecycle ¶ added in v0.37.0
func (siw *ServerInterfaceWrapper) GetLifecycle(w http.ResponseWriter, r *http.Request)
GetLifecycle operation middleware
func (*ServerInterfaceWrapper) GetPR ¶ added in v0.27.0
func (siw *ServerInterfaceWrapper) GetPR(w http.ResponseWriter, r *http.Request)
GetPR operation middleware
func (*ServerInterfaceWrapper) InitExecution ¶
func (siw *ServerInterfaceWrapper) InitExecution(w http.ResponseWriter, r *http.Request)
InitExecution operation middleware
func (*ServerInterfaceWrapper) InspectClaims ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) InspectClaims(w http.ResponseWriter, r *http.Request)
InspectClaims operation middleware
func (*ServerInterfaceWrapper) InspectEvents ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) InspectEvents(w http.ResponseWriter, r *http.Request)
InspectEvents operation middleware
func (*ServerInterfaceWrapper) InspectGate ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) InspectGate(w http.ResponseWriter, r *http.Request)
InspectGate operation middleware
func (*ServerInterfaceWrapper) InspectGrants ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) InspectGrants(w http.ResponseWriter, r *http.Request)
InspectGrants operation middleware
func (*ServerInterfaceWrapper) InspectOverview ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) InspectOverview(w http.ResponseWriter, r *http.Request)
InspectOverview operation middleware
func (*ServerInterfaceWrapper) InspectPool ¶ added in v0.28.0
func (siw *ServerInterfaceWrapper) InspectPool(w http.ResponseWriter, r *http.Request)
InspectPool operation middleware
func (*ServerInterfaceWrapper) ListApprovals ¶
func (siw *ServerInterfaceWrapper) ListApprovals(w http.ResponseWriter, r *http.Request)
ListApprovals operation middleware
func (*ServerInterfaceWrapper) ListClaims ¶
func (siw *ServerInterfaceWrapper) ListClaims(w http.ResponseWriter, r *http.Request)
ListClaims operation middleware
func (*ServerInterfaceWrapper) ListExecutions ¶
func (siw *ServerInterfaceWrapper) ListExecutions(w http.ResponseWriter, r *http.Request)
ListExecutions operation middleware
func (*ServerInterfaceWrapper) MergeQueue ¶ added in v0.37.0
func (siw *ServerInterfaceWrapper) MergeQueue(w http.ResponseWriter, r *http.Request)
MergeQueue operation middleware
func (*ServerInterfaceWrapper) ReconcileGates ¶ added in v0.40.0
func (siw *ServerInterfaceWrapper) ReconcileGates(w http.ResponseWriter, r *http.Request)
ReconcileGates operation middleware
func (*ServerInterfaceWrapper) ReleaseClaims ¶
func (siw *ServerInterfaceWrapper) ReleaseClaims(w http.ResponseWriter, r *http.Request)
ReleaseClaims operation middleware
func (*ServerInterfaceWrapper) ReportPhase ¶
func (siw *ServerInterfaceWrapper) ReportPhase(w http.ResponseWriter, r *http.Request)
ReportPhase operation middleware
func (*ServerInterfaceWrapper) RevokeGate ¶
func (siw *ServerInterfaceWrapper) RevokeGate(w http.ResponseWriter, r *http.Request)
RevokeGate operation middleware
func (*ServerInterfaceWrapper) UpdateStack ¶
func (siw *ServerInterfaceWrapper) UpdateStack(w http.ResponseWriter, r *http.Request)
UpdateStack operation middleware
type Status ¶
Status Per-stack lifecycle status. Decoding rejects unknown non-empty values (WIRE-001); an omitted/empty status is tolerated.
type StdHTTPServerOptions ¶
type StdHTTPServerOptions struct {
BaseURL string
BaseRouter ServeMux
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StoredGateTarget ¶
type StoredGateTarget struct {
Class string `json:"Class"`
// GrantName The approval-backend grant resource name (may be empty).
GrantName string `json:"GrantName"`
// Requester Leased requester SA for this grant.
Requester string `json:"Requester"`
// State Backend grant state (e.g. REQUESTED, ACTIVE, DENIED, REVOKED).
State string `json:"State"`
Target string `json:"Target"`
}
StoredGateTarget A recorded gate target with its grant state (PascalCase keys).
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateStackJSONRequestBody ¶
type UpdateStackJSONRequestBody = Update
UpdateStackJSONRequestBody defines body for UpdateStack for application/json ContentType.
type UpdateStackResponse ¶
func ParseUpdateStackResponse ¶
func ParseUpdateStackResponse(rsp *http.Response) (*UpdateStackResponse, error)
ParseUpdateStackResponse parses an HTTP response from a UpdateStackWithResponse call
func (UpdateStackResponse) ContentType ¶
func (r UpdateStackResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateStackResponse) Status ¶
func (r UpdateStackResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateStackResponse) StatusCode ¶
func (r UpdateStackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode