Documentation
¶
Overview ¶
Package slippyclient provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.
Index ¶
- Constants
- func ContextWithCorrelationID(ctx context.Context, id string) context.Context
- func CorrelationIDFromContext(ctx context.Context) string
- func NewAbandonSlipRequest(server string, correlationID string, body AbandonSlipJSONRequestBody) (*http.Request, error)
- func NewAbandonSlipRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
- func NewClaimSlipRequest(server string, correlationID string, body ClaimSlipJSONRequestBody) (*http.Request, error)
- func NewClaimSlipRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
- func NewCompleteStepRequest(server string, correlationID string, stepName string, ...) (*http.Request, error)
- func NewCompleteStepRequestWithBody(server string, correlationID string, stepName string, contentType string, ...) (*http.Request, error)
- func NewCreateSlipRequest(server string, body CreateSlipJSONRequestBody) (*http.Request, error)
- func NewCreateSlipRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewFailStepRequest(server string, correlationID string, stepName string, ...) (*http.Request, error)
- func NewFailStepRequestWithBody(server string, correlationID string, stepName string, contentType string, ...) (*http.Request, error)
- func NewFindAllByCommitsRequest(server string, body FindAllByCommitsJSONRequestBody) (*http.Request, error)
- func NewFindAllByCommitsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewFindByCommitsRequest(server string, body FindByCommitsJSONRequestBody) (*http.Request, error)
- func NewFindByCommitsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAutomationTestResultByIdCorrelationRequest(server string, correlationID string, testId string) (*http.Request, error)
- func NewGetAutomationTestResultsRequest(server string, correlationID string, params *GetAutomationTestResultsParams) (*http.Request, error)
- func NewGetAutomationTestResultsTestsRequest(server string, correlationID string, ...) (*http.Request, error)
- func NewGetImageTagsRequest(server string, correlationID string) (*http.Request, error)
- func NewGetLogsRequest(server string, correlationID string, params *GetLogsParams) (*http.Request, error)
- func NewGetPipelineConfigRequest(server string) (*http.Request, error)
- func NewGetSlipByCommitRequest(server string, owner string, repo string, commitSHA string) (*http.Request, error)
- func NewGetSlipRequest(server string, correlationID string) (*http.Request, error)
- func NewGetStepPrerequisitesRequest(server string, correlationID string, stepName string) (*http.Request, error)
- func NewHealthCheckRequest(server string) (*http.Request, error)
- func NewListRollbacksRequest(server string, correlationID string) (*http.Request, error)
- func NewPromoteSlipRequest(server string, correlationID string, body PromoteSlipJSONRequestBody) (*http.Request, error)
- func NewPromoteSlipRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
- func NewRecordRollbackRequest(server string, correlationID string, body RecordRollbackJSONRequestBody) (*http.Request, error)
- func NewRecordRollbackRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
- func NewReleaseClaimRequest(server string, correlationID string, body ReleaseClaimJSONRequestBody) (*http.Request, error)
- func NewReleaseClaimRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
- func NewSetImageTagRequest(server string, correlationID string, componentName string, ...) (*http.Request, error)
- func NewSetImageTagRequestWithBody(server string, correlationID string, componentName string, contentType string, ...) (*http.Request, error)
- func NewSkipStepRequest(server string, correlationID string, stepName string, ...) (*http.Request, error)
- func NewSkipStepRequestWithBody(server string, correlationID string, stepName string, contentType string, ...) (*http.Request, error)
- func NewStartStepRequest(server string, correlationID string, stepName string, ...) (*http.Request, error)
- func NewStartStepRequestWithBody(server string, correlationID string, stepName string, contentType string, ...) (*http.Request, error)
- type AbandonSlipInputBody
- type AbandonSlipJSONRequestBody
- type AbandonSlipResponse
- type AncestryEntry
- type AutomationTestResult
- type AutomationTestRunResult
- type CIJobLog
- type ClaimSlipInputBody
- type ClaimSlipInputBodyIfStatus
- type ClaimSlipJSONRequestBody
- type ClaimSlipOutputBody
- type ClaimSlipResponse
- type Client
- func (c *Client) AbandonSlip(ctx context.Context, correlationID string, body AbandonSlipJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AbandonSlipWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ClaimSlip(ctx context.Context, correlationID string, body ClaimSlipJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ClaimSlipWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CompleteStep(ctx context.Context, correlationID string, stepName string, ...) (*http.Response, error)
- func (c *Client) CompleteStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateSlip(ctx context.Context, body CreateSlipJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateSlipWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) FailStep(ctx context.Context, correlationID string, stepName string, ...) (*http.Response, error)
- func (c *Client) FailStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, ...) (*http.Response, error)
- func (c *Client) FindAllByCommits(ctx context.Context, body FindAllByCommitsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) FindAllByCommitsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) FindByCommits(ctx context.Context, body FindByCommitsJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) FindByCommitsWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAutomationTestResultByIdCorrelation(ctx context.Context, correlationID string, testId string, ...) (*http.Response, error)
- func (c *Client) GetAutomationTestResults(ctx context.Context, correlationID string, ...) (*http.Response, error)
- func (c *Client) GetAutomationTestResultsTests(ctx context.Context, correlationID string, ...) (*http.Response, error)
- func (c *Client) GetImageTags(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetLogs(ctx context.Context, correlationID string, params *GetLogsParams, ...) (*http.Response, error)
- func (c *Client) GetPipelineConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSlip(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSlipByCommit(ctx context.Context, owner string, repo string, commitSHA string, ...) (*http.Response, error)
- func (c *Client) GetStepPrerequisites(ctx context.Context, correlationID string, stepName string, ...) (*http.Response, error)
- func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRollbacks(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PromoteSlip(ctx context.Context, correlationID string, body PromoteSlipJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PromoteSlipWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RecordRollback(ctx context.Context, correlationID string, body RecordRollbackJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) RecordRollbackWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ReleaseClaim(ctx context.Context, correlationID string, body ReleaseClaimJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReleaseClaimWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SetImageTag(ctx context.Context, correlationID string, componentName string, ...) (*http.Response, error)
- func (c *Client) SetImageTagWithBody(ctx context.Context, correlationID string, componentName string, ...) (*http.Response, error)
- func (c *Client) SkipStep(ctx context.Context, correlationID string, stepName string, ...) (*http.Response, error)
- func (c *Client) SkipStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, ...) (*http.Response, error)
- func (c *Client) StartStep(ctx context.Context, correlationID string, stepName string, ...) (*http.Response, error)
- func (c *Client) StartStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AbandonSlipWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*AbandonSlipResponse, error)
- func (c *ClientWithResponses) AbandonSlipWithResponse(ctx context.Context, correlationID string, body AbandonSlipJSONRequestBody, ...) (*AbandonSlipResponse, error)
- func (c *ClientWithResponses) ClaimSlipWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*ClaimSlipResponse, error)
- func (c *ClientWithResponses) ClaimSlipWithResponse(ctx context.Context, correlationID string, body ClaimSlipJSONRequestBody, ...) (*ClaimSlipResponse, error)
- func (c *ClientWithResponses) CompleteStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, ...) (*CompleteStepResponse, error)
- func (c *ClientWithResponses) CompleteStepWithResponse(ctx context.Context, correlationID string, stepName string, ...) (*CompleteStepResponse, error)
- func (c *ClientWithResponses) CreateSlipWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateSlipResponse, error)
- func (c *ClientWithResponses) CreateSlipWithResponse(ctx context.Context, body CreateSlipJSONRequestBody, ...) (*CreateSlipResponse, error)
- func (c *ClientWithResponses) FailStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, ...) (*FailStepResponse, error)
- func (c *ClientWithResponses) FailStepWithResponse(ctx context.Context, correlationID string, stepName string, ...) (*FailStepResponse, error)
- func (c *ClientWithResponses) FindAllByCommitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*FindAllByCommitsResponse, error)
- func (c *ClientWithResponses) FindAllByCommitsWithResponse(ctx context.Context, body FindAllByCommitsJSONRequestBody, ...) (*FindAllByCommitsResponse, error)
- func (c *ClientWithResponses) FindByCommitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*FindByCommitsResponse, error)
- func (c *ClientWithResponses) FindByCommitsWithResponse(ctx context.Context, body FindByCommitsJSONRequestBody, ...) (*FindByCommitsResponse, error)
- func (c *ClientWithResponses) GetAutomationTestResultByIdCorrelationWithResponse(ctx context.Context, correlationID string, testId string, ...) (*GetAutomationTestResultByIdCorrelationResponse, error)
- func (c *ClientWithResponses) GetAutomationTestResultsTestsWithResponse(ctx context.Context, correlationID string, ...) (*GetAutomationTestResultsTestsResponse, error)
- func (c *ClientWithResponses) GetAutomationTestResultsWithResponse(ctx context.Context, correlationID string, ...) (*GetAutomationTestResultsResponse, error)
- func (c *ClientWithResponses) GetImageTagsWithResponse(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*GetImageTagsResponse, error)
- func (c *ClientWithResponses) GetLogsWithResponse(ctx context.Context, correlationID string, params *GetLogsParams, ...) (*GetLogsResponse, error)
- func (c *ClientWithResponses) GetPipelineConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPipelineConfigResponse, error)
- func (c *ClientWithResponses) GetSlipByCommitWithResponse(ctx context.Context, owner string, repo string, commitSHA string, ...) (*GetSlipByCommitResponse, error)
- func (c *ClientWithResponses) GetSlipWithResponse(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*GetSlipResponse, error)
- func (c *ClientWithResponses) GetStepPrerequisitesWithResponse(ctx context.Context, correlationID string, stepName string, ...) (*GetStepPrerequisitesResponse, error)
- func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
- func (c *ClientWithResponses) ListRollbacksWithResponse(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*ListRollbacksResponse, error)
- func (c *ClientWithResponses) PromoteSlipWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*PromoteSlipResponse, error)
- func (c *ClientWithResponses) PromoteSlipWithResponse(ctx context.Context, correlationID string, body PromoteSlipJSONRequestBody, ...) (*PromoteSlipResponse, error)
- func (c *ClientWithResponses) RecordRollbackWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*RecordRollbackResponse, error)
- func (c *ClientWithResponses) RecordRollbackWithResponse(ctx context.Context, correlationID string, body RecordRollbackJSONRequestBody, ...) (*RecordRollbackResponse, error)
- func (c *ClientWithResponses) ReleaseClaimWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, ...) (*ReleaseClaimResponse, error)
- func (c *ClientWithResponses) ReleaseClaimWithResponse(ctx context.Context, correlationID string, body ReleaseClaimJSONRequestBody, ...) (*ReleaseClaimResponse, error)
- func (c *ClientWithResponses) SetImageTagWithBodyWithResponse(ctx context.Context, correlationID string, componentName string, ...) (*SetImageTagResponse, error)
- func (c *ClientWithResponses) SetImageTagWithResponse(ctx context.Context, correlationID string, componentName string, ...) (*SetImageTagResponse, error)
- func (c *ClientWithResponses) SkipStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, ...) (*SkipStepResponse, error)
- func (c *ClientWithResponses) SkipStepWithResponse(ctx context.Context, correlationID string, stepName string, ...) (*SkipStepResponse, error)
- func (c *ClientWithResponses) StartStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, ...) (*StartStepResponse, error)
- func (c *ClientWithResponses) StartStepWithResponse(ctx context.Context, correlationID string, stepName string, ...) (*StartStepResponse, error)
- type ClientWithResponsesInterface
- type CompleteStepJSONRequestBody
- type CompleteStepResponse
- type ComponentDefinitionInput
- type ComponentStepData
- type CreateSlipInputBody
- type CreateSlipInputBodyDispatch
- type CreateSlipJSONRequestBody
- type CreateSlipOutputBody
- type CreateSlipResponse
- type ErrorDetail
- type ErrorModel
- type FailStepInputBody
- type FailStepJSONRequestBody
- type FailStepResponse
- type FailedPrereq
- type FindAllByCommitsItem
- type FindAllByCommitsJSONRequestBody
- type FindAllByCommitsResponse
- type FindByCommitsInputBody
- type FindByCommitsJSONRequestBody
- type FindByCommitsOutputBody
- type FindByCommitsResponse
- type GetAutomationTestResultByIdCorrelationResponse
- type GetAutomationTestResultsOutputBody
- type GetAutomationTestResultsParams
- type GetAutomationTestResultsResponse
- type GetAutomationTestResultsTestsParams
- type GetAutomationTestResultsTestsResponse
- type GetImageTagsResponse
- type GetLogsOutputBody
- type GetLogsParams
- type GetLogsParamsSort
- type GetLogsResponse
- type GetPipelineConfigResponse
- type GetSlipByCommitResponse
- type GetSlipResponse
- type GetStepPrerequisitesResponse
- type GetTestsOutputBody
- type HealthCheckResponse
- type HealthOutputBody
- type HttpRequestDoer
- type ImageTagResult
- type ListRollbacksOutputBody
- type ListRollbacksResponse
- type PipelineConfigResponseBody
- type PipelineConfigStep
- type PromoteSlipInputBody
- type PromoteSlipJSONRequestBody
- type PromoteSlipResponse
- type RecordRollbackInputBody
- type RecordRollbackJSONRequestBody
- type RecordRollbackOutputBody
- type RecordRollbackResponse
- type ReleaseClaimInputBody
- type ReleaseClaimJSONRequestBody
- type ReleaseClaimOutputBody
- type ReleaseClaimResponse
- type RequestEditorFn
- type RollbackRecord
- type SetImageTagInputBody
- type SetImageTagJSONRequestBody
- type SetImageTagResponse
- type SkipStepInputBody
- type SkipStepJSONRequestBody
- type SkipStepResponse
- type Slip
- type StartStepJSONRequestBody
- type StartStepResponse
- type StateHistoryEntry
- type Step
- type StepBody
- type StepPrerequisitesResponseBody
- type WrappedClient
- type WrapperOption
- func WithBearerToken(token string) WrapperOption
- func WithCustomHTTPClient(c HttpRequestDoer) WrapperOption
- func WithLogger(l *slog.Logger) WrapperOption
- func WithServiceName(name string) WrapperOption
- func WithTracerProvider(tp trace.TracerProvider) WrapperOption
- func WithUserAgent(ua string) WrapperOption
Constants ¶
const ( ApiKeyScopes = "apiKey.Scopes" WriteApiKeyScopes = "writeApiKey.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func ContextWithCorrelationID ¶ added in v1.4.1
ContextWithCorrelationID returns a copy of ctx carrying the given correlation ID. Request editors (the logger, future tracing middleware) read this value when present. If id is empty, ctx is returned unchanged.
func CorrelationIDFromContext ¶ added in v1.4.1
CorrelationIDFromContext returns the correlation ID stored in ctx by ContextWithCorrelationID, or "" if none was set.
func NewAbandonSlipRequest ¶ added in v1.4.3
func NewAbandonSlipRequest(server string, correlationID string, body AbandonSlipJSONRequestBody) (*http.Request, error)
NewAbandonSlipRequest calls the generic AbandonSlip builder with application/json body
func NewAbandonSlipRequestWithBody ¶ added in v1.4.3
func NewAbandonSlipRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
NewAbandonSlipRequestWithBody generates requests for AbandonSlip with any type of body
func NewClaimSlipRequest ¶ added in v1.4.5
func NewClaimSlipRequest(server string, correlationID string, body ClaimSlipJSONRequestBody) (*http.Request, error)
NewClaimSlipRequest calls the generic ClaimSlip builder with application/json body
func NewClaimSlipRequestWithBody ¶ added in v1.4.5
func NewClaimSlipRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
NewClaimSlipRequestWithBody generates requests for ClaimSlip with any type of body
func NewCompleteStepRequest ¶
func NewCompleteStepRequest(server string, correlationID string, stepName string, body CompleteStepJSONRequestBody) (*http.Request, error)
NewCompleteStepRequest calls the generic CompleteStep builder with application/json body
func NewCompleteStepRequestWithBody ¶
func NewCompleteStepRequestWithBody(server string, correlationID string, stepName string, contentType string, body io.Reader) (*http.Request, error)
NewCompleteStepRequestWithBody generates requests for CompleteStep with any type of body
func NewCreateSlipRequest ¶
func NewCreateSlipRequest(server string, body CreateSlipJSONRequestBody) (*http.Request, error)
NewCreateSlipRequest calls the generic CreateSlip builder with application/json body
func NewCreateSlipRequestWithBody ¶
func NewCreateSlipRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateSlipRequestWithBody generates requests for CreateSlip with any type of body
func NewFailStepRequest ¶
func NewFailStepRequest(server string, correlationID string, stepName string, body FailStepJSONRequestBody) (*http.Request, error)
NewFailStepRequest calls the generic FailStep builder with application/json body
func NewFailStepRequestWithBody ¶
func NewFailStepRequestWithBody(server string, correlationID string, stepName string, contentType string, body io.Reader) (*http.Request, error)
NewFailStepRequestWithBody generates requests for FailStep with any type of body
func NewFindAllByCommitsRequest ¶
func NewFindAllByCommitsRequest(server string, body FindAllByCommitsJSONRequestBody) (*http.Request, error)
NewFindAllByCommitsRequest calls the generic FindAllByCommits builder with application/json body
func NewFindAllByCommitsRequestWithBody ¶
func NewFindAllByCommitsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewFindAllByCommitsRequestWithBody generates requests for FindAllByCommits with any type of body
func NewFindByCommitsRequest ¶
func NewFindByCommitsRequest(server string, body FindByCommitsJSONRequestBody) (*http.Request, error)
NewFindByCommitsRequest calls the generic FindByCommits builder with application/json body
func NewFindByCommitsRequestWithBody ¶
func NewFindByCommitsRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewFindByCommitsRequestWithBody generates requests for FindByCommits with any type of body
func NewGetAutomationTestResultByIdCorrelationRequest ¶
func NewGetAutomationTestResultByIdCorrelationRequest(server string, correlationID string, testId string) (*http.Request, error)
NewGetAutomationTestResultByIdCorrelationRequest generates requests for GetAutomationTestResultByIdCorrelation
func NewGetAutomationTestResultsRequest ¶
func NewGetAutomationTestResultsRequest(server string, correlationID string, params *GetAutomationTestResultsParams) (*http.Request, error)
NewGetAutomationTestResultsRequest generates requests for GetAutomationTestResults
func NewGetAutomationTestResultsTestsRequest ¶
func NewGetAutomationTestResultsTestsRequest(server string, correlationID string, params *GetAutomationTestResultsTestsParams) (*http.Request, error)
NewGetAutomationTestResultsTestsRequest generates requests for GetAutomationTestResultsTests
func NewGetImageTagsRequest ¶
NewGetImageTagsRequest generates requests for GetImageTags
func NewGetLogsRequest ¶
func NewGetLogsRequest(server string, correlationID string, params *GetLogsParams) (*http.Request, error)
NewGetLogsRequest generates requests for GetLogs
func NewGetPipelineConfigRequest ¶ added in v1.4.0
NewGetPipelineConfigRequest generates requests for GetPipelineConfig
func NewGetSlipByCommitRequest ¶
func NewGetSlipByCommitRequest(server string, owner string, repo string, commitSHA string) (*http.Request, error)
NewGetSlipByCommitRequest generates requests for GetSlipByCommit
func NewGetSlipRequest ¶
NewGetSlipRequest generates requests for GetSlip
func NewGetStepPrerequisitesRequest ¶ added in v1.4.0
func NewGetStepPrerequisitesRequest(server string, correlationID string, stepName string) (*http.Request, error)
NewGetStepPrerequisitesRequest generates requests for GetStepPrerequisites
func NewHealthCheckRequest ¶
NewHealthCheckRequest generates requests for HealthCheck
func NewListRollbacksRequest ¶ added in v1.4.8
NewListRollbacksRequest generates requests for ListRollbacks
func NewPromoteSlipRequest ¶ added in v1.4.3
func NewPromoteSlipRequest(server string, correlationID string, body PromoteSlipJSONRequestBody) (*http.Request, error)
NewPromoteSlipRequest calls the generic PromoteSlip builder with application/json body
func NewPromoteSlipRequestWithBody ¶ added in v1.4.3
func NewPromoteSlipRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
NewPromoteSlipRequestWithBody generates requests for PromoteSlip with any type of body
func NewRecordRollbackRequest ¶ added in v1.4.8
func NewRecordRollbackRequest(server string, correlationID string, body RecordRollbackJSONRequestBody) (*http.Request, error)
NewRecordRollbackRequest calls the generic RecordRollback builder with application/json body
func NewRecordRollbackRequestWithBody ¶ added in v1.4.8
func NewRecordRollbackRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
NewRecordRollbackRequestWithBody generates requests for RecordRollback with any type of body
func NewReleaseClaimRequest ¶ added in v1.4.6
func NewReleaseClaimRequest(server string, correlationID string, body ReleaseClaimJSONRequestBody) (*http.Request, error)
NewReleaseClaimRequest calls the generic ReleaseClaim builder with application/json body
func NewReleaseClaimRequestWithBody ¶ added in v1.4.6
func NewReleaseClaimRequestWithBody(server string, correlationID string, contentType string, body io.Reader) (*http.Request, error)
NewReleaseClaimRequestWithBody generates requests for ReleaseClaim with any type of body
func NewSetImageTagRequest ¶
func NewSetImageTagRequest(server string, correlationID string, componentName string, body SetImageTagJSONRequestBody) (*http.Request, error)
NewSetImageTagRequest calls the generic SetImageTag builder with application/json body
func NewSetImageTagRequestWithBody ¶
func NewSetImageTagRequestWithBody(server string, correlationID string, componentName string, contentType string, body io.Reader) (*http.Request, error)
NewSetImageTagRequestWithBody generates requests for SetImageTag with any type of body
func NewSkipStepRequest ¶
func NewSkipStepRequest(server string, correlationID string, stepName string, body SkipStepJSONRequestBody) (*http.Request, error)
NewSkipStepRequest calls the generic SkipStep builder with application/json body
func NewSkipStepRequestWithBody ¶
func NewSkipStepRequestWithBody(server string, correlationID string, stepName string, contentType string, body io.Reader) (*http.Request, error)
NewSkipStepRequestWithBody generates requests for SkipStep with any type of body
func NewStartStepRequest ¶
func NewStartStepRequest(server string, correlationID string, stepName string, body StartStepJSONRequestBody) (*http.Request, error)
NewStartStepRequest calls the generic StartStep builder with application/json body
Types ¶
type AbandonSlipInputBody ¶ added in v1.4.3
type AbandonSlipInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// SupersededBy Correlation ID of the newer slip that supersedes this one
SupersededBy string `json:"superseded_by"`
}
AbandonSlipInputBody defines model for AbandonSlipInputBody.
type AbandonSlipJSONRequestBody ¶ added in v1.4.3
type AbandonSlipJSONRequestBody = AbandonSlipInputBody
AbandonSlipJSONRequestBody defines body for AbandonSlip for application/json ContentType.
type AbandonSlipResponse ¶ added in v1.4.3
type AbandonSlipResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseAbandonSlipResponse ¶ added in v1.4.3
func ParseAbandonSlipResponse(rsp *http.Response) (*AbandonSlipResponse, error)
ParseAbandonSlipResponse parses an HTTP response from a AbandonSlipWithResponse call
func (AbandonSlipResponse) Status ¶ added in v1.4.3
func (r AbandonSlipResponse) Status() string
Status returns HTTPResponse.Status
func (AbandonSlipResponse) StatusCode ¶ added in v1.4.3
func (r AbandonSlipResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AncestryEntry ¶
type AncestryEntry struct {
Branch *string `json:"branch,omitempty"`
CommitSha string `json:"commit_sha"`
CorrelationId string `json:"correlation_id"`
CreatedAt time.Time `json:"created_at"`
FailedStep *string `json:"failed_step,omitempty"`
Repository *string `json:"repository,omitempty"`
Status string `json:"status"`
}
AncestryEntry defines model for AncestryEntry.
type AutomationTestResult ¶
type AutomationTestResult struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Attempt int32 `json:"attempt"`
BranchName *string `json:"branch_name,omitempty"`
CorrelationId *string `json:"correlation_id,omitempty"`
Description *string `json:"description,omitempty"`
Duration float64 `json:"duration"`
EnvironmentName string `json:"environment_name"`
Feature string `json:"feature"`
ReleaseId string `json:"release_id"`
ResultMessage *string `json:"result_message,omitempty"`
ResultStatus string `json:"result_status"`
ScenarioExecutionStatus *string `json:"scenario_execution_status,omitempty"`
ScenarioInfoDescription *string `json:"scenario_info_description,omitempty"`
ScenarioInfoTags *[]string `json:"scenario_info_tags,omitempty"`
ScenarioInfoTitle *string `json:"scenario_info_title,omitempty"`
StackName string `json:"stack_name"`
StackTrace *string `json:"stack_trace,omitempty"`
Stage string `json:"stage"`
StartTime time.Time `json:"start_time"`
TestId string `json:"test_id"`
TestName string `json:"test_name"`
}
AutomationTestResult defines model for AutomationTestResult.
type AutomationTestRunResult ¶
type AutomationTestRunResult struct {
Attempt int32 `json:"attempt"`
AttemptId *string `json:"attempt_id,omitempty"`
BatchId *string `json:"batch_id,omitempty"`
BranchName *string `json:"branch_name,omitempty"`
CorrelationId *string `json:"correlation_id,omitempty"`
EnvironmentName string `json:"environment_name"`
ErrorMessage *string `json:"error_message,omitempty"`
Failed int32 `json:"failed"`
FinishTime time.Time `json:"finish_time"`
JobNumber *string `json:"job_number,omitempty"`
Outcome string `json:"outcome"`
Passed int32 `json:"passed"`
ReleaseId string `json:"release_id"`
StackName string `json:"stack_name"`
Stage string `json:"stage"`
StartTime time.Time `json:"start_time"`
TestRunId *string `json:"test_run_id,omitempty"`
TotalTestJobCount int32 `json:"total_test_job_count"`
}
AutomationTestRunResult defines model for AutomationTestRunResult.
type CIJobLog ¶
type CIJobLog struct {
BuildBranch string `json:"build_branch"`
BuildImage string `json:"build_image"`
BuildRepository string `json:"build_repository"`
CiJobInstance string `json:"ci_job_instance"`
CiJobType string `json:"ci_job_type"`
Cloud string `json:"cloud"`
Cluster string `json:"cluster"`
Component string `json:"component"`
Environment string `json:"environment"`
Level string `json:"level"`
Message string `json:"message"`
Namespace string `json:"namespace"`
Service string `json:"service"`
Timestamp time.Time `json:"timestamp"`
}
CIJobLog defines model for CIJobLog.
type ClaimSlipInputBody ¶ added in v1.4.5
type ClaimSlipInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// ClaimedBy Adopter that is taking over this slip (e.g. "rerunner"); recorded as the history entry's actor
ClaimedBy string `json:"claimed_by"`
// IfStatus Claim only if the slip's CURRENT status is one of these, whether or not a claim is already held; omit to claim out of any status except one whose run has a step or component in flight — name the status here to adopt a running run deliberately
IfStatus *[]ClaimSlipInputBodyIfStatus `json:"if_status,omitempty"`
// Reason Optional scope of the adopted work (e.g. "retrigger builds and unit tests")
Reason *string `json:"reason,omitempty"`
}
ClaimSlipInputBody defines model for ClaimSlipInputBody.
type ClaimSlipInputBodyIfStatus ¶ added in v1.4.6
type ClaimSlipInputBodyIfStatus string
ClaimSlipInputBodyIfStatus defines model for ClaimSlipInputBody.IfStatus.
const ( ClaimSlipInputBodyIfStatusAbandoned ClaimSlipInputBodyIfStatus = "abandoned" ClaimSlipInputBodyIfStatusCompensated ClaimSlipInputBodyIfStatus = "compensated" ClaimSlipInputBodyIfStatusCompensating ClaimSlipInputBodyIfStatus = "compensating" ClaimSlipInputBodyIfStatusCompleted ClaimSlipInputBodyIfStatus = "completed" ClaimSlipInputBodyIfStatusFailed ClaimSlipInputBodyIfStatus = "failed" ClaimSlipInputBodyIfStatusInProgress ClaimSlipInputBodyIfStatus = "in_progress" ClaimSlipInputBodyIfStatusPending ClaimSlipInputBodyIfStatus = "pending" ClaimSlipInputBodyIfStatusPromoted ClaimSlipInputBodyIfStatus = "promoted" )
Defines values for ClaimSlipInputBodyIfStatus.
func (ClaimSlipInputBodyIfStatus) Valid ¶ added in v1.4.6
func (e ClaimSlipInputBodyIfStatus) Valid() bool
Valid indicates whether the value is a known member of the ClaimSlipInputBodyIfStatus enum.
type ClaimSlipJSONRequestBody ¶ added in v1.4.5
type ClaimSlipJSONRequestBody = ClaimSlipInputBody
ClaimSlipJSONRequestBody defines body for ClaimSlip for application/json ContentType.
type ClaimSlipOutputBody ¶ added in v1.4.6
type ClaimSlipOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Claimed true when this call recorded the claim; false when a claim was already held and nothing was written — the slip is claimed either way
Claimed bool `json:"claimed"`
// InFlight true when a step or component of the run was running or held at decision time, read under the same row lock as the claim; with claimed=false it means another run is executing against this slip and the caller must not dispatch
InFlight bool `json:"in_flight"`
// Prior the status the claim was taken out of: the current status when this call claimed, the recorded one when a claim was already held
Prior *string `json:"prior,omitempty"`
}
ClaimSlipOutputBody defines model for ClaimSlipOutputBody.
type ClaimSlipResponse ¶ added in v1.4.5
type ClaimSlipResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ClaimSlipOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseClaimSlipResponse ¶ added in v1.4.5
func ParseClaimSlipResponse(rsp *http.Response) (*ClaimSlipResponse, error)
ParseClaimSlipResponse parses an HTTP response from a ClaimSlipWithResponse call
func (ClaimSlipResponse) Status ¶ added in v1.4.5
func (r ClaimSlipResponse) Status() string
Status returns HTTPResponse.Status
func (ClaimSlipResponse) StatusCode ¶ added in v1.4.5
func (r ClaimSlipResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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) AbandonSlip ¶ added in v1.4.3
func (c *Client) AbandonSlip(ctx context.Context, correlationID string, body AbandonSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AbandonSlipWithBody ¶ added in v1.4.3
func (*Client) ClaimSlip ¶ added in v1.4.5
func (c *Client) ClaimSlip(ctx context.Context, correlationID string, body ClaimSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ClaimSlipWithBody ¶ added in v1.4.5
func (*Client) CompleteStep ¶
func (c *Client) CompleteStep(ctx context.Context, correlationID string, stepName string, body CompleteStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CompleteStepWithBody ¶
func (*Client) CreateSlip ¶
func (c *Client) CreateSlip(ctx context.Context, body CreateSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSlipWithBody ¶
func (*Client) FailStep ¶
func (c *Client) FailStep(ctx context.Context, correlationID string, stepName string, body FailStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FailStepWithBody ¶
func (*Client) FindAllByCommits ¶
func (c *Client) FindAllByCommits(ctx context.Context, body FindAllByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FindAllByCommitsWithBody ¶
func (*Client) FindByCommits ¶
func (c *Client) FindByCommits(ctx context.Context, body FindByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) FindByCommitsWithBody ¶
func (*Client) GetAutomationTestResultByIdCorrelation ¶
func (*Client) GetAutomationTestResults ¶
func (c *Client) GetAutomationTestResults(ctx context.Context, correlationID string, params *GetAutomationTestResultsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetAutomationTestResultsTests ¶
func (c *Client) GetAutomationTestResultsTests(ctx context.Context, correlationID string, params *GetAutomationTestResultsTestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetImageTags ¶
func (*Client) GetLogs ¶
func (c *Client) GetLogs(ctx context.Context, correlationID string, params *GetLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPipelineConfig ¶ added in v1.4.0
func (*Client) GetSlipByCommit ¶
func (*Client) GetStepPrerequisites ¶ added in v1.4.0
func (*Client) HealthCheck ¶
func (*Client) ListRollbacks ¶ added in v1.4.8
func (*Client) PromoteSlip ¶ added in v1.4.3
func (c *Client) PromoteSlip(ctx context.Context, correlationID string, body PromoteSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PromoteSlipWithBody ¶ added in v1.4.3
func (*Client) RecordRollback ¶ added in v1.4.8
func (c *Client) RecordRollback(ctx context.Context, correlationID string, body RecordRollbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RecordRollbackWithBody ¶ added in v1.4.8
func (*Client) ReleaseClaim ¶ added in v1.4.6
func (c *Client) ReleaseClaim(ctx context.Context, correlationID string, body ReleaseClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReleaseClaimWithBody ¶ added in v1.4.6
func (*Client) SetImageTag ¶
func (c *Client) SetImageTag(ctx context.Context, correlationID string, componentName string, body SetImageTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetImageTagWithBody ¶
func (*Client) SkipStep ¶
func (c *Client) SkipStep(ctx context.Context, correlationID string, stepName string, body SkipStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SkipStepWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// GetAutomationTestResults request
GetAutomationTestResults(ctx context.Context, correlationID string, params *GetAutomationTestResultsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAutomationTestResultsTests request
GetAutomationTestResultsTests(ctx context.Context, correlationID string, params *GetAutomationTestResultsTestsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAutomationTestResultByIdCorrelation request
GetAutomationTestResultByIdCorrelation(ctx context.Context, correlationID string, testId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// HealthCheck request
HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLogs request
GetLogs(ctx context.Context, correlationID string, params *GetLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPipelineConfig request
GetPipelineConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSlipWithBody request with any body
CreateSlipWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSlip(ctx context.Context, body CreateSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSlipByCommit request
GetSlipByCommit(ctx context.Context, owner string, repo string, commitSHA string, reqEditors ...RequestEditorFn) (*http.Response, error)
// FindAllByCommitsWithBody request with any body
FindAllByCommitsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FindAllByCommits(ctx context.Context, body FindAllByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// FindByCommitsWithBody request with any body
FindByCommitsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FindByCommits(ctx context.Context, body FindByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSlip request
GetSlip(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AbandonSlipWithBody request with any body
AbandonSlipWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AbandonSlip(ctx context.Context, correlationID string, body AbandonSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ClaimSlipWithBody request with any body
ClaimSlipWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ClaimSlip(ctx context.Context, correlationID string, body ClaimSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetImageTagWithBody request with any body
SetImageTagWithBody(ctx context.Context, correlationID string, componentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetImageTag(ctx context.Context, correlationID string, componentName string, body SetImageTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetImageTags request
GetImageTags(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*http.Response, error)
// PromoteSlipWithBody request with any body
PromoteSlipWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PromoteSlip(ctx context.Context, correlationID string, body PromoteSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReleaseClaimWithBody request with any body
ReleaseClaimWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReleaseClaim(ctx context.Context, correlationID string, body ReleaseClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRollbacks request
ListRollbacks(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*http.Response, error)
// RecordRollbackWithBody request with any body
RecordRollbackWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RecordRollback(ctx context.Context, correlationID string, body RecordRollbackJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetStepPrerequisites request
GetStepPrerequisites(ctx context.Context, correlationID string, stepName string, reqEditors ...RequestEditorFn) (*http.Response, error)
// CompleteStepWithBody request with any body
CompleteStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CompleteStep(ctx context.Context, correlationID string, stepName string, body CompleteStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// FailStepWithBody request with any body
FailStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
FailStep(ctx context.Context, correlationID string, stepName string, body FailStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SkipStepWithBody request with any body
SkipStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SkipStep(ctx context.Context, correlationID string, stepName string, body SkipStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartStepWithBody request with any body
StartStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartStep(ctx context.Context, correlationID string, stepName string, body StartStepJSONRequestBody, 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) AbandonSlipWithBodyWithResponse ¶ added in v1.4.3
func (c *ClientWithResponses) AbandonSlipWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AbandonSlipResponse, error)
AbandonSlipWithBodyWithResponse request with arbitrary body returning *AbandonSlipResponse
func (*ClientWithResponses) AbandonSlipWithResponse ¶ added in v1.4.3
func (c *ClientWithResponses) AbandonSlipWithResponse(ctx context.Context, correlationID string, body AbandonSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*AbandonSlipResponse, error)
func (*ClientWithResponses) ClaimSlipWithBodyWithResponse ¶ added in v1.4.5
func (c *ClientWithResponses) ClaimSlipWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimSlipResponse, error)
ClaimSlipWithBodyWithResponse request with arbitrary body returning *ClaimSlipResponse
func (*ClientWithResponses) ClaimSlipWithResponse ¶ added in v1.4.5
func (c *ClientWithResponses) ClaimSlipWithResponse(ctx context.Context, correlationID string, body ClaimSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimSlipResponse, error)
func (*ClientWithResponses) CompleteStepWithBodyWithResponse ¶
func (c *ClientWithResponses) CompleteStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteStepResponse, error)
CompleteStepWithBodyWithResponse request with arbitrary body returning *CompleteStepResponse
func (*ClientWithResponses) CompleteStepWithResponse ¶
func (c *ClientWithResponses) CompleteStepWithResponse(ctx context.Context, correlationID string, stepName string, body CompleteStepJSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteStepResponse, error)
func (*ClientWithResponses) CreateSlipWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSlipWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSlipResponse, error)
CreateSlipWithBodyWithResponse request with arbitrary body returning *CreateSlipResponse
func (*ClientWithResponses) CreateSlipWithResponse ¶
func (c *ClientWithResponses) CreateSlipWithResponse(ctx context.Context, body CreateSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSlipResponse, error)
func (*ClientWithResponses) FailStepWithBodyWithResponse ¶
func (c *ClientWithResponses) FailStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FailStepResponse, error)
FailStepWithBodyWithResponse request with arbitrary body returning *FailStepResponse
func (*ClientWithResponses) FailStepWithResponse ¶
func (c *ClientWithResponses) FailStepWithResponse(ctx context.Context, correlationID string, stepName string, body FailStepJSONRequestBody, reqEditors ...RequestEditorFn) (*FailStepResponse, error)
func (*ClientWithResponses) FindAllByCommitsWithBodyWithResponse ¶
func (c *ClientWithResponses) FindAllByCommitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindAllByCommitsResponse, error)
FindAllByCommitsWithBodyWithResponse request with arbitrary body returning *FindAllByCommitsResponse
func (*ClientWithResponses) FindAllByCommitsWithResponse ¶
func (c *ClientWithResponses) FindAllByCommitsWithResponse(ctx context.Context, body FindAllByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*FindAllByCommitsResponse, error)
func (*ClientWithResponses) FindByCommitsWithBodyWithResponse ¶
func (c *ClientWithResponses) FindByCommitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindByCommitsResponse, error)
FindByCommitsWithBodyWithResponse request with arbitrary body returning *FindByCommitsResponse
func (*ClientWithResponses) FindByCommitsWithResponse ¶
func (c *ClientWithResponses) FindByCommitsWithResponse(ctx context.Context, body FindByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*FindByCommitsResponse, error)
func (*ClientWithResponses) GetAutomationTestResultByIdCorrelationWithResponse ¶
func (c *ClientWithResponses) GetAutomationTestResultByIdCorrelationWithResponse(ctx context.Context, correlationID string, testId string, reqEditors ...RequestEditorFn) (*GetAutomationTestResultByIdCorrelationResponse, error)
GetAutomationTestResultByIdCorrelationWithResponse request returning *GetAutomationTestResultByIdCorrelationResponse
func (*ClientWithResponses) GetAutomationTestResultsTestsWithResponse ¶
func (c *ClientWithResponses) GetAutomationTestResultsTestsWithResponse(ctx context.Context, correlationID string, params *GetAutomationTestResultsTestsParams, reqEditors ...RequestEditorFn) (*GetAutomationTestResultsTestsResponse, error)
GetAutomationTestResultsTestsWithResponse request returning *GetAutomationTestResultsTestsResponse
func (*ClientWithResponses) GetAutomationTestResultsWithResponse ¶
func (c *ClientWithResponses) GetAutomationTestResultsWithResponse(ctx context.Context, correlationID string, params *GetAutomationTestResultsParams, reqEditors ...RequestEditorFn) (*GetAutomationTestResultsResponse, error)
GetAutomationTestResultsWithResponse request returning *GetAutomationTestResultsResponse
func (*ClientWithResponses) GetImageTagsWithResponse ¶
func (c *ClientWithResponses) GetImageTagsWithResponse(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*GetImageTagsResponse, error)
GetImageTagsWithResponse request returning *GetImageTagsResponse
func (*ClientWithResponses) GetLogsWithResponse ¶
func (c *ClientWithResponses) GetLogsWithResponse(ctx context.Context, correlationID string, params *GetLogsParams, reqEditors ...RequestEditorFn) (*GetLogsResponse, error)
GetLogsWithResponse request returning *GetLogsResponse
func (*ClientWithResponses) GetPipelineConfigWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) GetPipelineConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPipelineConfigResponse, error)
GetPipelineConfigWithResponse request returning *GetPipelineConfigResponse
func (*ClientWithResponses) GetSlipByCommitWithResponse ¶
func (c *ClientWithResponses) GetSlipByCommitWithResponse(ctx context.Context, owner string, repo string, commitSHA string, reqEditors ...RequestEditorFn) (*GetSlipByCommitResponse, error)
GetSlipByCommitWithResponse request returning *GetSlipByCommitResponse
func (*ClientWithResponses) GetSlipWithResponse ¶
func (c *ClientWithResponses) GetSlipWithResponse(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*GetSlipResponse, error)
GetSlipWithResponse request returning *GetSlipResponse
func (*ClientWithResponses) GetStepPrerequisitesWithResponse ¶ added in v1.4.0
func (c *ClientWithResponses) GetStepPrerequisitesWithResponse(ctx context.Context, correlationID string, stepName string, reqEditors ...RequestEditorFn) (*GetStepPrerequisitesResponse, error)
GetStepPrerequisitesWithResponse request returning *GetStepPrerequisitesResponse
func (*ClientWithResponses) HealthCheckWithResponse ¶
func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
HealthCheckWithResponse request returning *HealthCheckResponse
func (*ClientWithResponses) ListRollbacksWithResponse ¶ added in v1.4.8
func (c *ClientWithResponses) ListRollbacksWithResponse(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*ListRollbacksResponse, error)
ListRollbacksWithResponse request returning *ListRollbacksResponse
func (*ClientWithResponses) PromoteSlipWithBodyWithResponse ¶ added in v1.4.3
func (c *ClientWithResponses) PromoteSlipWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSlipResponse, error)
PromoteSlipWithBodyWithResponse request with arbitrary body returning *PromoteSlipResponse
func (*ClientWithResponses) PromoteSlipWithResponse ¶ added in v1.4.3
func (c *ClientWithResponses) PromoteSlipWithResponse(ctx context.Context, correlationID string, body PromoteSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSlipResponse, error)
func (*ClientWithResponses) RecordRollbackWithBodyWithResponse ¶ added in v1.4.8
func (c *ClientWithResponses) RecordRollbackWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecordRollbackResponse, error)
RecordRollbackWithBodyWithResponse request with arbitrary body returning *RecordRollbackResponse
func (*ClientWithResponses) RecordRollbackWithResponse ¶ added in v1.4.8
func (c *ClientWithResponses) RecordRollbackWithResponse(ctx context.Context, correlationID string, body RecordRollbackJSONRequestBody, reqEditors ...RequestEditorFn) (*RecordRollbackResponse, error)
func (*ClientWithResponses) ReleaseClaimWithBodyWithResponse ¶ added in v1.4.6
func (c *ClientWithResponses) ReleaseClaimWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReleaseClaimResponse, error)
ReleaseClaimWithBodyWithResponse request with arbitrary body returning *ReleaseClaimResponse
func (*ClientWithResponses) ReleaseClaimWithResponse ¶ added in v1.4.6
func (c *ClientWithResponses) ReleaseClaimWithResponse(ctx context.Context, correlationID string, body ReleaseClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*ReleaseClaimResponse, error)
func (*ClientWithResponses) SetImageTagWithBodyWithResponse ¶
func (c *ClientWithResponses) SetImageTagWithBodyWithResponse(ctx context.Context, correlationID string, componentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetImageTagResponse, error)
SetImageTagWithBodyWithResponse request with arbitrary body returning *SetImageTagResponse
func (*ClientWithResponses) SetImageTagWithResponse ¶
func (c *ClientWithResponses) SetImageTagWithResponse(ctx context.Context, correlationID string, componentName string, body SetImageTagJSONRequestBody, reqEditors ...RequestEditorFn) (*SetImageTagResponse, error)
func (*ClientWithResponses) SkipStepWithBodyWithResponse ¶
func (c *ClientWithResponses) SkipStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SkipStepResponse, error)
SkipStepWithBodyWithResponse request with arbitrary body returning *SkipStepResponse
func (*ClientWithResponses) SkipStepWithResponse ¶
func (c *ClientWithResponses) SkipStepWithResponse(ctx context.Context, correlationID string, stepName string, body SkipStepJSONRequestBody, reqEditors ...RequestEditorFn) (*SkipStepResponse, error)
func (*ClientWithResponses) StartStepWithBodyWithResponse ¶
func (c *ClientWithResponses) StartStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartStepResponse, error)
StartStepWithBodyWithResponse request with arbitrary body returning *StartStepResponse
func (*ClientWithResponses) StartStepWithResponse ¶
func (c *ClientWithResponses) StartStepWithResponse(ctx context.Context, correlationID string, stepName string, body StartStepJSONRequestBody, reqEditors ...RequestEditorFn) (*StartStepResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// GetAutomationTestResultsWithResponse request
GetAutomationTestResultsWithResponse(ctx context.Context, correlationID string, params *GetAutomationTestResultsParams, reqEditors ...RequestEditorFn) (*GetAutomationTestResultsResponse, error)
// GetAutomationTestResultsTestsWithResponse request
GetAutomationTestResultsTestsWithResponse(ctx context.Context, correlationID string, params *GetAutomationTestResultsTestsParams, reqEditors ...RequestEditorFn) (*GetAutomationTestResultsTestsResponse, error)
// GetAutomationTestResultByIdCorrelationWithResponse request
GetAutomationTestResultByIdCorrelationWithResponse(ctx context.Context, correlationID string, testId string, reqEditors ...RequestEditorFn) (*GetAutomationTestResultByIdCorrelationResponse, error)
// HealthCheckWithResponse request
HealthCheckWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)
// GetLogsWithResponse request
GetLogsWithResponse(ctx context.Context, correlationID string, params *GetLogsParams, reqEditors ...RequestEditorFn) (*GetLogsResponse, error)
// GetPipelineConfigWithResponse request
GetPipelineConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPipelineConfigResponse, error)
// CreateSlipWithBodyWithResponse request with any body
CreateSlipWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSlipResponse, error)
CreateSlipWithResponse(ctx context.Context, body CreateSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSlipResponse, error)
// GetSlipByCommitWithResponse request
GetSlipByCommitWithResponse(ctx context.Context, owner string, repo string, commitSHA string, reqEditors ...RequestEditorFn) (*GetSlipByCommitResponse, error)
// FindAllByCommitsWithBodyWithResponse request with any body
FindAllByCommitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindAllByCommitsResponse, error)
FindAllByCommitsWithResponse(ctx context.Context, body FindAllByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*FindAllByCommitsResponse, error)
// FindByCommitsWithBodyWithResponse request with any body
FindByCommitsWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FindByCommitsResponse, error)
FindByCommitsWithResponse(ctx context.Context, body FindByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*FindByCommitsResponse, error)
// GetSlipWithResponse request
GetSlipWithResponse(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*GetSlipResponse, error)
// AbandonSlipWithBodyWithResponse request with any body
AbandonSlipWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AbandonSlipResponse, error)
AbandonSlipWithResponse(ctx context.Context, correlationID string, body AbandonSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*AbandonSlipResponse, error)
// ClaimSlipWithBodyWithResponse request with any body
ClaimSlipWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimSlipResponse, error)
ClaimSlipWithResponse(ctx context.Context, correlationID string, body ClaimSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimSlipResponse, error)
// SetImageTagWithBodyWithResponse request with any body
SetImageTagWithBodyWithResponse(ctx context.Context, correlationID string, componentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetImageTagResponse, error)
SetImageTagWithResponse(ctx context.Context, correlationID string, componentName string, body SetImageTagJSONRequestBody, reqEditors ...RequestEditorFn) (*SetImageTagResponse, error)
// GetImageTagsWithResponse request
GetImageTagsWithResponse(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*GetImageTagsResponse, error)
// PromoteSlipWithBodyWithResponse request with any body
PromoteSlipWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteSlipResponse, error)
PromoteSlipWithResponse(ctx context.Context, correlationID string, body PromoteSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteSlipResponse, error)
// ReleaseClaimWithBodyWithResponse request with any body
ReleaseClaimWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReleaseClaimResponse, error)
ReleaseClaimWithResponse(ctx context.Context, correlationID string, body ReleaseClaimJSONRequestBody, reqEditors ...RequestEditorFn) (*ReleaseClaimResponse, error)
// ListRollbacksWithResponse request
ListRollbacksWithResponse(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*ListRollbacksResponse, error)
// RecordRollbackWithBodyWithResponse request with any body
RecordRollbackWithBodyWithResponse(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RecordRollbackResponse, error)
RecordRollbackWithResponse(ctx context.Context, correlationID string, body RecordRollbackJSONRequestBody, reqEditors ...RequestEditorFn) (*RecordRollbackResponse, error)
// GetStepPrerequisitesWithResponse request
GetStepPrerequisitesWithResponse(ctx context.Context, correlationID string, stepName string, reqEditors ...RequestEditorFn) (*GetStepPrerequisitesResponse, error)
// CompleteStepWithBodyWithResponse request with any body
CompleteStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CompleteStepResponse, error)
CompleteStepWithResponse(ctx context.Context, correlationID string, stepName string, body CompleteStepJSONRequestBody, reqEditors ...RequestEditorFn) (*CompleteStepResponse, error)
// FailStepWithBodyWithResponse request with any body
FailStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*FailStepResponse, error)
FailStepWithResponse(ctx context.Context, correlationID string, stepName string, body FailStepJSONRequestBody, reqEditors ...RequestEditorFn) (*FailStepResponse, error)
// SkipStepWithBodyWithResponse request with any body
SkipStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SkipStepResponse, error)
SkipStepWithResponse(ctx context.Context, correlationID string, stepName string, body SkipStepJSONRequestBody, reqEditors ...RequestEditorFn) (*SkipStepResponse, error)
// StartStepWithBodyWithResponse request with any body
StartStepWithBodyWithResponse(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartStepResponse, error)
StartStepWithResponse(ctx context.Context, correlationID string, stepName string, body StartStepJSONRequestBody, reqEditors ...RequestEditorFn) (*StartStepResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CompleteStepJSONRequestBody ¶
type CompleteStepJSONRequestBody = StepBody
CompleteStepJSONRequestBody defines body for CompleteStep for application/json ContentType.
type CompleteStepResponse ¶
type CompleteStepResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseCompleteStepResponse ¶
func ParseCompleteStepResponse(rsp *http.Response) (*CompleteStepResponse, error)
ParseCompleteStepResponse parses an HTTP response from a CompleteStepWithResponse call
func (CompleteStepResponse) Status ¶
func (r CompleteStepResponse) Status() string
Status returns HTTPResponse.Status
func (CompleteStepResponse) StatusCode ¶
func (r CompleteStepResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ComponentDefinitionInput ¶
type ComponentDefinitionInput struct {
// DockerfilePath Path to Dockerfile
DockerfilePath *string `json:"dockerfile_path,omitempty"`
// Name Component identifier
Name string `json:"name"`
}
ComponentDefinitionInput defines model for ComponentDefinitionInput.
type ComponentStepData ¶
type ComponentStepData struct {
Actor *string `json:"actor,omitempty"`
CompletedAt *time.Time `json:"completed_at,omitempty"`
Component string `json:"component"`
DockerfilePath *string `json:"dockerfile_path,omitempty"`
Error *string `json:"error,omitempty"`
ImageTag *string `json:"image_tag,omitempty"`
StartedAt *time.Time `json:"started_at,omitempty"`
Status string `json:"status"`
}
ComponentStepData defines model for ComponentStepData.
type CreateSlipInputBody ¶
type CreateSlipInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Branch Git branch name
Branch string `json:"branch"`
// CommitMessage Commit message (enables squash merge PR-based ancestry)
CommitMessage *string `json:"commit_message,omitempty"`
// CommitSha Git commit SHA
CommitSha string `json:"commit_sha"`
// Components Components to track in aggregate steps
Components *[]ComponentDefinitionInput `json:"components,omitempty"`
// CorrelationId Unique slip identifier (from Kafka event)
CorrelationId string `json:"correlation_id"`
// Dispatch Whether this push dispatches CI work: something or nothing. Omit for unspecified. A stated value is authoritative rather than a hint: it can decide whether an earlier run's history for this commit is preserved or replaced, and can leave the returned slip tracking none of the components you supplied. See slippy.DispatchIntent before choosing a value.
Dispatch *CreateSlipInputBodyDispatch `json:"dispatch,omitempty"`
// Repository Full repository name (owner/repo)
Repository string `json:"repository"`
}
CreateSlipInputBody defines model for CreateSlipInputBody.
type CreateSlipInputBodyDispatch ¶ added in v1.4.5
type CreateSlipInputBodyDispatch string
CreateSlipInputBodyDispatch Whether this push dispatches CI work: something or nothing. Omit for unspecified. A stated value is authoritative rather than a hint: it can decide whether an earlier run's history for this commit is preserved or replaced, and can leave the returned slip tracking none of the components you supplied. See slippy.DispatchIntent before choosing a value.
const ( CreateSlipInputBodyDispatchNothing CreateSlipInputBodyDispatch = "nothing" CreateSlipInputBodyDispatchSomething CreateSlipInputBodyDispatch = "something" )
Defines values for CreateSlipInputBodyDispatch.
func (CreateSlipInputBodyDispatch) Valid ¶ added in v1.4.5
func (e CreateSlipInputBodyDispatch) Valid() bool
Valid indicates whether the value is a known member of the CreateSlipInputBodyDispatch enum.
type CreateSlipJSONRequestBody ¶
type CreateSlipJSONRequestBody = CreateSlipInputBody
CreateSlipJSONRequestBody defines body for CreateSlip for application/json ContentType.
type CreateSlipOutputBody ¶
type CreateSlipOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
AncestryResolved bool `json:"ancestry_resolved"`
Slip Slip `json:"slip"`
Warnings *[]string `json:"warnings,omitempty"`
}
CreateSlipOutputBody defines model for CreateSlipOutputBody.
type CreateSlipResponse ¶
type CreateSlipResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CreateSlipOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseCreateSlipResponse ¶
func ParseCreateSlipResponse(rsp *http.Response) (*CreateSlipResponse, error)
ParseCreateSlipResponse parses an HTTP response from a CreateSlipWithResponse call
func (CreateSlipResponse) Status ¶
func (r CreateSlipResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSlipResponse) StatusCode ¶
func (r CreateSlipResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ErrorDetail ¶
type ErrorDetail struct {
// Location Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id'
Location *string `json:"location,omitempty"`
// Message Error message text
Message *string `json:"message,omitempty"`
// Value The value at the given location
Value interface{} `json:"value,omitempty"`
}
ErrorDetail defines model for ErrorDetail.
type ErrorModel ¶
type ErrorModel struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Detail A human-readable explanation specific to this occurrence of the problem.
Detail *string `json:"detail,omitempty"`
// Errors Optional list of individual error details
Errors *[]ErrorDetail `json:"errors,omitempty"`
// Instance A URI reference that identifies the specific occurrence of the problem.
Instance *string `json:"instance,omitempty"`
// Status HTTP status code
Status *int64 `json:"status,omitempty"`
// Title A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
Title *string `json:"title,omitempty"`
// Type A URI reference to human-readable documentation for the error.
Type *string `json:"type,omitempty"`
}
ErrorModel defines model for ErrorModel.
type FailStepInputBody ¶
type FailStepInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// ComponentName Component name (required for aggregate steps, empty for pipeline steps)
ComponentName *string `json:"component_name,omitempty"`
// Reason Failure reason
Reason string `json:"reason"`
}
FailStepInputBody defines model for FailStepInputBody.
type FailStepJSONRequestBody ¶
type FailStepJSONRequestBody = FailStepInputBody
FailStepJSONRequestBody defines body for FailStep for application/json ContentType.
type FailStepResponse ¶
type FailStepResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseFailStepResponse ¶
func ParseFailStepResponse(rsp *http.Response) (*FailStepResponse, error)
ParseFailStepResponse parses an HTTP response from a FailStepWithResponse call
func (FailStepResponse) Status ¶
func (r FailStepResponse) Status() string
Status returns HTTPResponse.Status
func (FailStepResponse) StatusCode ¶
func (r FailStepResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FailedPrereq ¶ added in v1.4.0
type FailedPrereq struct {
// Reason Failure reason from step state
Reason *string `json:"reason,omitempty"`
// StepName Failed prerequisite step name
StepName string `json:"step_name"`
}
FailedPrereq defines model for FailedPrereq.
type FindAllByCommitsItem ¶
type FindAllByCommitsItem struct {
MatchedCommit string `json:"matched_commit"`
Slip Slip `json:"slip"`
}
FindAllByCommitsItem defines model for FindAllByCommitsItem.
type FindAllByCommitsJSONRequestBody ¶
type FindAllByCommitsJSONRequestBody = FindByCommitsInputBody
FindAllByCommitsJSONRequestBody defines body for FindAllByCommits for application/json ContentType.
type FindAllByCommitsResponse ¶
type FindAllByCommitsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]FindAllByCommitsItem
ApplicationproblemJSONDefault *ErrorModel
}
func ParseFindAllByCommitsResponse ¶
func ParseFindAllByCommitsResponse(rsp *http.Response) (*FindAllByCommitsResponse, error)
ParseFindAllByCommitsResponse parses an HTTP response from a FindAllByCommitsWithResponse call
func (FindAllByCommitsResponse) Status ¶
func (r FindAllByCommitsResponse) Status() string
Status returns HTTPResponse.Status
func (FindAllByCommitsResponse) StatusCode ¶
func (r FindAllByCommitsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type FindByCommitsInputBody ¶
type FindByCommitsInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Commits List of commit SHAs to search
Commits *[]string `json:"commits"`
// Repository Full repository name (owner/repo)
Repository string `json:"repository"`
}
FindByCommitsInputBody defines model for FindByCommitsInputBody.
type FindByCommitsJSONRequestBody ¶
type FindByCommitsJSONRequestBody = FindByCommitsInputBody
FindByCommitsJSONRequestBody defines body for FindByCommits for application/json ContentType.
type FindByCommitsOutputBody ¶
type FindByCommitsOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
MatchedCommit string `json:"matched_commit"`
Slip Slip `json:"slip"`
}
FindByCommitsOutputBody defines model for FindByCommitsOutputBody.
type FindByCommitsResponse ¶
type FindByCommitsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *FindByCommitsOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseFindByCommitsResponse ¶
func ParseFindByCommitsResponse(rsp *http.Response) (*FindByCommitsResponse, error)
ParseFindByCommitsResponse parses an HTTP response from a FindByCommitsWithResponse call
func (FindByCommitsResponse) Status ¶
func (r FindByCommitsResponse) Status() string
Status returns HTTPResponse.Status
func (FindByCommitsResponse) StatusCode ¶
func (r FindByCommitsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAutomationTestResultByIdCorrelationResponse ¶
type GetAutomationTestResultByIdCorrelationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AutomationTestResult
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetAutomationTestResultByIdCorrelationResponse ¶
func ParseGetAutomationTestResultByIdCorrelationResponse(rsp *http.Response) (*GetAutomationTestResultByIdCorrelationResponse, error)
ParseGetAutomationTestResultByIdCorrelationResponse parses an HTTP response from a GetAutomationTestResultByIdCorrelationWithResponse call
func (GetAutomationTestResultByIdCorrelationResponse) Status ¶
func (r GetAutomationTestResultByIdCorrelationResponse) Status() string
Status returns HTTPResponse.Status
func (GetAutomationTestResultByIdCorrelationResponse) StatusCode ¶
func (r GetAutomationTestResultByIdCorrelationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAutomationTestResultsOutputBody ¶
type GetAutomationTestResultsOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Count Number of runs returned
Count int64 `json:"count"`
Runs *[]AutomationTestRunResult `json:"runs"`
}
GetAutomationTestResultsOutputBody defines model for GetAutomationTestResultsOutputBody.
type GetAutomationTestResultsParams ¶
type GetAutomationTestResultsParams struct {
// Environment Filter by EnvironmentName (case-insensitive)
Environment *string `form:"environment,omitempty" json:"environment,omitempty"`
// Stack Filter by StackName (case-insensitive)
Stack *string `form:"stack,omitempty" json:"stack,omitempty"`
// Stage Filter by Stage / test category, e.g. FeatureCoreApi, PreprodCoreApi, FeatureUI (case-insensitive)
Stage *string `form:"stage,omitempty" json:"stage,omitempty"`
// Attempt Specific Attempt to fetch. When omitted, returns the latest attempt per (Environment, Stack, Stage).
Attempt *int32 `form:"attempt,omitempty" json:"attempt,omitempty"`
}
GetAutomationTestResultsParams defines parameters for GetAutomationTestResults.
type GetAutomationTestResultsResponse ¶
type GetAutomationTestResultsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetAutomationTestResultsOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetAutomationTestResultsResponse ¶
func ParseGetAutomationTestResultsResponse(rsp *http.Response) (*GetAutomationTestResultsResponse, error)
ParseGetAutomationTestResultsResponse parses an HTTP response from a GetAutomationTestResultsWithResponse call
func (GetAutomationTestResultsResponse) Status ¶
func (r GetAutomationTestResultsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAutomationTestResultsResponse) StatusCode ¶
func (r GetAutomationTestResultsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAutomationTestResultsTestsParams ¶
type GetAutomationTestResultsTestsParams struct {
// Environment Filter by EnvironmentName (case-insensitive)
Environment *string `form:"environment,omitempty" json:"environment,omitempty"`
// Stack Filter by StackName (case-insensitive)
Stack *string `form:"stack,omitempty" json:"stack,omitempty"`
// Stage Filter by Stage / test category (case-insensitive)
Stage *string `form:"stage,omitempty" json:"stage,omitempty"`
// Attempt Filter by exact Attempt
Attempt *int32 `form:"attempt,omitempty" json:"attempt,omitempty"`
// Status ResultStatus filter (case-insensitive ILIKE). Defaults to 'Failed'; pass '*' or 'all' to disable the filter and return every status.
Status *string `form:"status,omitempty" json:"status,omitempty"`
// Limit Page size
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Pagination cursor from a previous response
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
}
GetAutomationTestResultsTestsParams defines parameters for GetAutomationTestResultsTests.
type GetAutomationTestResultsTestsResponse ¶
type GetAutomationTestResultsTestsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetTestsOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetAutomationTestResultsTestsResponse ¶
func ParseGetAutomationTestResultsTestsResponse(rsp *http.Response) (*GetAutomationTestResultsTestsResponse, error)
ParseGetAutomationTestResultsTestsResponse parses an HTTP response from a GetAutomationTestResultsTestsWithResponse call
func (GetAutomationTestResultsTestsResponse) Status ¶
func (r GetAutomationTestResultsTestsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAutomationTestResultsTestsResponse) StatusCode ¶
func (r GetAutomationTestResultsTestsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetImageTagsResponse ¶
type GetImageTagsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ImageTagResult
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetImageTagsResponse ¶
func ParseGetImageTagsResponse(rsp *http.Response) (*GetImageTagsResponse, error)
ParseGetImageTagsResponse parses an HTTP response from a GetImageTagsWithResponse call
func (GetImageTagsResponse) Status ¶
func (r GetImageTagsResponse) Status() string
Status returns HTTPResponse.Status
func (GetImageTagsResponse) StatusCode ¶
func (r GetImageTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLogsOutputBody ¶
type GetLogsOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Count Number of logs returned in this page
Count int64 `json:"count"`
Logs *[]CIJobLog `json:"logs"`
// NextPage URL path for the next page of results
NextPage *string `json:"next_page,omitempty"`
}
GetLogsOutputBody defines model for GetLogsOutputBody.
type GetLogsParams ¶
type GetLogsParams struct {
// Limit Page size
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Pagination cursor from previous response
Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`
// Sort Sort by timestamp
Sort *GetLogsParamsSort `form:"sort,omitempty" json:"sort,omitempty"`
// Level Filter by log level
Level *string `form:"level,omitempty" json:"level,omitempty"`
// Service Filter by service name
Service *string `form:"service,omitempty" json:"service,omitempty"`
// Component Filter by component name
Component *string `form:"component,omitempty" json:"component,omitempty"`
// Cluster Filter by cluster
Cluster *string `form:"cluster,omitempty" json:"cluster,omitempty"`
// Cloud Filter by cloud provider
Cloud *string `form:"cloud,omitempty" json:"cloud,omitempty"`
// Environment Filter by environment
Environment *string `form:"environment,omitempty" json:"environment,omitempty"`
// Namespace Filter by namespace
Namespace *string `form:"namespace,omitempty" json:"namespace,omitempty"`
// Message Filter by exact message
Message *string `form:"message,omitempty" json:"message,omitempty"`
// CiJobInstance Filter by CI job instance
CiJobInstance *string `form:"ci_job_instance,omitempty" json:"ci_job_instance,omitempty"`
// CiJobType Filter by CI job type
CiJobType *string `form:"ci_job_type,omitempty" json:"ci_job_type,omitempty"`
// BuildRepository Filter by build repository
BuildRepository *string `form:"build_repository,omitempty" json:"build_repository,omitempty"`
// BuildImage Filter by build image
BuildImage *string `form:"build_image,omitempty" json:"build_image,omitempty"`
// BuildBranch Filter by build branch
BuildBranch *string `form:"build_branch,omitempty" json:"build_branch,omitempty"`
}
GetLogsParams defines parameters for GetLogs.
type GetLogsParamsSort ¶
type GetLogsParamsSort string
GetLogsParamsSort defines parameters for GetLogs.
const ( GetLogsParamsSortAsc GetLogsParamsSort = "asc" GetLogsParamsSortDesc GetLogsParamsSort = "desc" )
Defines values for GetLogsParamsSort.
func (GetLogsParamsSort) Valid ¶
func (e GetLogsParamsSort) Valid() bool
Valid indicates whether the value is a known member of the GetLogsParamsSort enum.
type GetLogsResponse ¶
type GetLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GetLogsOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetLogsResponse ¶
func ParseGetLogsResponse(rsp *http.Response) (*GetLogsResponse, error)
ParseGetLogsResponse parses an HTTP response from a GetLogsWithResponse call
func (GetLogsResponse) Status ¶
func (r GetLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetLogsResponse) StatusCode ¶
func (r GetLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPipelineConfigResponse ¶ added in v1.4.0
type GetPipelineConfigResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PipelineConfigResponseBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetPipelineConfigResponse ¶ added in v1.4.0
func ParseGetPipelineConfigResponse(rsp *http.Response) (*GetPipelineConfigResponse, error)
ParseGetPipelineConfigResponse parses an HTTP response from a GetPipelineConfigWithResponse call
func (GetPipelineConfigResponse) Status ¶ added in v1.4.0
func (r GetPipelineConfigResponse) Status() string
Status returns HTTPResponse.Status
func (GetPipelineConfigResponse) StatusCode ¶ added in v1.4.0
func (r GetPipelineConfigResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSlipByCommitResponse ¶
type GetSlipByCommitResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Slip
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetSlipByCommitResponse ¶
func ParseGetSlipByCommitResponse(rsp *http.Response) (*GetSlipByCommitResponse, error)
ParseGetSlipByCommitResponse parses an HTTP response from a GetSlipByCommitWithResponse call
func (GetSlipByCommitResponse) Status ¶
func (r GetSlipByCommitResponse) Status() string
Status returns HTTPResponse.Status
func (GetSlipByCommitResponse) StatusCode ¶
func (r GetSlipByCommitResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSlipResponse ¶
type GetSlipResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Slip
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetSlipResponse ¶
func ParseGetSlipResponse(rsp *http.Response) (*GetSlipResponse, error)
ParseGetSlipResponse parses an HTTP response from a GetSlipWithResponse call
func (GetSlipResponse) Status ¶
func (r GetSlipResponse) Status() string
Status returns HTTPResponse.Status
func (GetSlipResponse) StatusCode ¶
func (r GetSlipResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStepPrerequisitesResponse ¶ added in v1.4.0
type GetStepPrerequisitesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *StepPrerequisitesResponseBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseGetStepPrerequisitesResponse ¶ added in v1.4.0
func ParseGetStepPrerequisitesResponse(rsp *http.Response) (*GetStepPrerequisitesResponse, error)
ParseGetStepPrerequisitesResponse parses an HTTP response from a GetStepPrerequisitesWithResponse call
func (GetStepPrerequisitesResponse) Status ¶ added in v1.4.0
func (r GetStepPrerequisitesResponse) Status() string
Status returns HTTPResponse.Status
func (GetStepPrerequisitesResponse) StatusCode ¶ added in v1.4.0
func (r GetStepPrerequisitesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTestsOutputBody ¶
type GetTestsOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Count Number of tests in this page
Count int64 `json:"count"`
// NextPage URL path for the next page of results
NextPage *string `json:"next_page,omitempty"`
Tests *[]AutomationTestResult `json:"tests"`
}
GetTestsOutputBody defines model for GetTestsOutputBody.
type HealthCheckResponse ¶
type HealthCheckResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HealthOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseHealthCheckResponse ¶
func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)
ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call
func (HealthCheckResponse) Status ¶
func (r HealthCheckResponse) Status() string
Status returns HTTPResponse.Status
func (HealthCheckResponse) StatusCode ¶
func (r HealthCheckResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthOutputBody ¶
type HealthOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Status Service health status
Status string `json:"status"`
}
HealthOutputBody defines model for HealthOutputBody.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ImageTagResult ¶
type ImageTagResult struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
BuildScope string `json:"build_scope"`
SlipTag string `json:"slip_tag"`
Tags map[string]string `json:"tags"`
}
ImageTagResult defines model for ImageTagResult.
type ListRollbacksOutputBody ¶ added in v1.4.8
type ListRollbacksOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Rollbacks Rollback attempts in the order they were recorded
Rollbacks *[]RollbackRecord `json:"rollbacks"`
}
ListRollbacksOutputBody defines model for ListRollbacksOutputBody.
type ListRollbacksResponse ¶ added in v1.4.8
type ListRollbacksResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListRollbacksOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseListRollbacksResponse ¶ added in v1.4.8
func ParseListRollbacksResponse(rsp *http.Response) (*ListRollbacksResponse, error)
ParseListRollbacksResponse parses an HTTP response from a ListRollbacksWithResponse call
func (ListRollbacksResponse) Status ¶ added in v1.4.8
func (r ListRollbacksResponse) Status() string
Status returns HTTPResponse.Status
func (ListRollbacksResponse) StatusCode ¶ added in v1.4.8
func (r ListRollbacksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PipelineConfigResponseBody ¶ added in v1.4.0
type PipelineConfigResponseBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Name Pipeline name
Name string `json:"name"`
// Steps Ordered list of pipeline steps
Steps *[]PipelineConfigStep `json:"steps"`
// Version Pipeline config schema version
Version string `json:"version"`
}
PipelineConfigResponseBody defines model for PipelineConfigResponseBody.
type PipelineConfigStep ¶ added in v1.4.0
type PipelineConfigStep struct {
// AggregateOf Component-level step name this step aggregates
AggregateOf *string `json:"aggregate_of,omitempty"`
// IsAggregate True if this step aggregates component-level data
IsAggregate *bool `json:"is_aggregate,omitempty"`
// IsGate True if this step is a pipeline gate
IsGate *bool `json:"is_gate,omitempty"`
// Name Step name
Name string `json:"name"`
// Prerequisites Step names that must complete before this step
Prerequisites *[]string `json:"prerequisites,omitempty"`
}
PipelineConfigStep defines model for PipelineConfigStep.
type PromoteSlipInputBody ¶ added in v1.4.3
type PromoteSlipInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// PromotedTo Correlation ID of the new slip on the target branch
PromotedTo string `json:"promoted_to"`
}
PromoteSlipInputBody defines model for PromoteSlipInputBody.
type PromoteSlipJSONRequestBody ¶ added in v1.4.3
type PromoteSlipJSONRequestBody = PromoteSlipInputBody
PromoteSlipJSONRequestBody defines body for PromoteSlip for application/json ContentType.
type PromoteSlipResponse ¶ added in v1.4.3
type PromoteSlipResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParsePromoteSlipResponse ¶ added in v1.4.3
func ParsePromoteSlipResponse(rsp *http.Response) (*PromoteSlipResponse, error)
ParsePromoteSlipResponse parses an HTTP response from a PromoteSlipWithResponse call
func (PromoteSlipResponse) Status ¶ added in v1.4.3
func (r PromoteSlipResponse) Status() string
Status returns HTTPResponse.Status
func (PromoteSlipResponse) StatusCode ¶ added in v1.4.3
func (r PromoteSlipResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RecordRollbackInputBody ¶ added in v1.4.8
type RecordRollbackInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Environment dev, preprod or prod
Environment string `json:"environment"`
// Forced Whether --force conflict resolution was used
Forced bool `json:"forced"`
// GitopsCommit Release commit that was reverted
GitopsCommit string `json:"gitops_commit"`
// GitopsRepo GitOps repository the revert targeted
GitopsRepo string `json:"gitops_repo"`
// Message Why the rollback started: the publisher's text
Message string `json:"message"`
// Outcome What the attempt did, or why it did not land
Outcome string `json:"outcome"`
// PodHash Aborted ReplicaSet pod-template hash; may be empty
PodHash string `json:"pod_hash"`
// Reason alert_gate, canary_abort, timeout, manual or unknown; may be empty
Reason string `json:"reason"`
// RevertCommit Revert commit; empty when none was made
RevertCommit string `json:"revert_commit"`
// RolloutPhase dark, canary, promoted or rolling; may be empty
RolloutPhase string `json:"rollout_phase"`
// Source Publisher of the prod.rollback event; may be empty
Source string `json:"source"`
// Status success, noop, skipped, failed or dry_run
Status string `json:"status"`
// Workflow Argo Workflow of the attempt; a repeat for the same slip and workflow is not recorded twice, and replaces the outcome only of a failed record
Workflow string `json:"workflow"`
}
RecordRollbackInputBody defines model for RecordRollbackInputBody.
type RecordRollbackJSONRequestBody ¶ added in v1.4.8
type RecordRollbackJSONRequestBody = RecordRollbackInputBody
RecordRollbackJSONRequestBody defines body for RecordRollback for application/json ContentType.
type RecordRollbackOutputBody ¶ added in v1.4.8
type RecordRollbackOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Inserted True when this call wrote a new record; false when one for this slip and workflow already existed
Inserted bool `json:"inserted"`
}
RecordRollbackOutputBody defines model for RecordRollbackOutputBody.
type RecordRollbackResponse ¶ added in v1.4.8
type RecordRollbackResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *RecordRollbackOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseRecordRollbackResponse ¶ added in v1.4.8
func ParseRecordRollbackResponse(rsp *http.Response) (*RecordRollbackResponse, error)
ParseRecordRollbackResponse parses an HTTP response from a RecordRollbackWithResponse call
func (RecordRollbackResponse) Status ¶ added in v1.4.8
func (r RecordRollbackResponse) Status() string
Status returns HTTPResponse.Status
func (RecordRollbackResponse) StatusCode ¶ added in v1.4.8
func (r RecordRollbackResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReleaseClaimInputBody ¶ added in v1.4.6
type ReleaseClaimInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Reason Why the claimed work will not report (e.g. the terminal write that failed)
Reason *string `json:"reason,omitempty"`
// ReleasedBy Who is releasing the claim (e.g. "slippy-cli/post-job"); recorded as the history entry's actor
ReleasedBy string `json:"released_by"`
}
ReleaseClaimInputBody defines model for ReleaseClaimInputBody.
type ReleaseClaimJSONRequestBody ¶ added in v1.4.6
type ReleaseClaimJSONRequestBody = ReleaseClaimInputBody
ReleaseClaimJSONRequestBody defines body for ReleaseClaim for application/json ContentType.
type ReleaseClaimOutputBody ¶ added in v1.4.6
type ReleaseClaimOutputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Released true when the claim was cleared; false when the run still has a step or component in flight and the claim is kept — release again when that work reports, or let the terminal write end it
Released bool `json:"released"`
// Status the slip's status at decision time; a release never changes it
Status *string `json:"status,omitempty"`
}
ReleaseClaimOutputBody defines model for ReleaseClaimOutputBody.
type ReleaseClaimResponse ¶ added in v1.4.6
type ReleaseClaimResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ReleaseClaimOutputBody
ApplicationproblemJSONDefault *ErrorModel
}
func ParseReleaseClaimResponse ¶ added in v1.4.6
func ParseReleaseClaimResponse(rsp *http.Response) (*ReleaseClaimResponse, error)
ParseReleaseClaimResponse parses an HTTP response from a ReleaseClaimWithResponse call
func (ReleaseClaimResponse) Status ¶ added in v1.4.6
func (r ReleaseClaimResponse) Status() string
Status returns HTTPResponse.Status
func (ReleaseClaimResponse) StatusCode ¶ added in v1.4.6
func (r ReleaseClaimResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RollbackRecord ¶ added in v1.4.8
type RollbackRecord struct {
CorrelationId string `json:"correlation_id"`
Environment string `json:"environment"`
Forced bool `json:"forced"`
GitopsCommit string `json:"gitops_commit"`
GitopsRepo string `json:"gitops_repo"`
Id int64 `json:"id"`
Message string `json:"message"`
Outcome string `json:"outcome"`
PodHash string `json:"pod_hash"`
Reason string `json:"reason"`
RecordedAt time.Time `json:"recorded_at"`
RevertCommit string `json:"revert_commit"`
RolloutPhase string `json:"rollout_phase"`
Source string `json:"source"`
Status string `json:"status"`
Workflow string `json:"workflow"`
}
RollbackRecord defines model for RollbackRecord.
type SetImageTagInputBody ¶
type SetImageTagInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// ImageTag Container image tag (e.g. 26.09.aef1234)
ImageTag string `json:"image_tag"`
}
SetImageTagInputBody defines model for SetImageTagInputBody.
type SetImageTagJSONRequestBody ¶
type SetImageTagJSONRequestBody = SetImageTagInputBody
SetImageTagJSONRequestBody defines body for SetImageTag for application/json ContentType.
type SetImageTagResponse ¶
type SetImageTagResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseSetImageTagResponse ¶
func ParseSetImageTagResponse(rsp *http.Response) (*SetImageTagResponse, error)
ParseSetImageTagResponse parses an HTTP response from a SetImageTagWithResponse call
func (SetImageTagResponse) Status ¶
func (r SetImageTagResponse) Status() string
Status returns HTTPResponse.Status
func (SetImageTagResponse) StatusCode ¶
func (r SetImageTagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SkipStepInputBody ¶
type SkipStepInputBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// ComponentName Component name (required for aggregate steps, empty for pipeline steps)
ComponentName *string `json:"component_name,omitempty"`
// Reason Skip reason
Reason *string `json:"reason,omitempty"`
}
SkipStepInputBody defines model for SkipStepInputBody.
type SkipStepJSONRequestBody ¶
type SkipStepJSONRequestBody = SkipStepInputBody
SkipStepJSONRequestBody defines body for SkipStep for application/json ContentType.
type SkipStepResponse ¶
type SkipStepResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseSkipStepResponse ¶
func ParseSkipStepResponse(rsp *http.Response) (*SkipStepResponse, error)
ParseSkipStepResponse parses an HTTP response from a SkipStepWithResponse call
func (SkipStepResponse) Status ¶
func (r SkipStepResponse) Status() string
Status returns HTTPResponse.Status
func (SkipStepResponse) StatusCode ¶
func (r SkipStepResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Slip ¶
type Slip struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
Aggregates map[string]*[]ComponentStepData `json:"aggregates"`
Ancestry *[]AncestryEntry `json:"ancestry"`
Branch string `json:"branch"`
ClaimedFrom *string `json:"claimed_from,omitempty"`
CommitSha string `json:"commit_sha"`
CorrelationId string `json:"correlation_id"`
CreatedAt time.Time `json:"created_at"`
PromotedTo *string `json:"promoted_to,omitempty"`
Repository string `json:"repository"`
StateHistory *[]StateHistoryEntry `json:"state_history"`
Status string `json:"status"`
Steps map[string]Step `json:"steps"`
UpdatedAt time.Time `json:"updated_at"`
}
Slip defines model for Slip.
type StartStepJSONRequestBody ¶
type StartStepJSONRequestBody = StepBody
StartStepJSONRequestBody defines body for StartStep for application/json ContentType.
type StartStepResponse ¶
type StartStepResponse struct {
Body []byte
HTTPResponse *http.Response
ApplicationproblemJSONDefault *ErrorModel
}
func ParseStartStepResponse ¶
func ParseStartStepResponse(rsp *http.Response) (*StartStepResponse, error)
ParseStartStepResponse parses an HTTP response from a StartStepWithResponse call
func (StartStepResponse) Status ¶
func (r StartStepResponse) Status() string
Status returns HTTPResponse.Status
func (StartStepResponse) StatusCode ¶
func (r StartStepResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StateHistoryEntry ¶
type StateHistoryEntry struct {
Actor string `json:"actor"`
ClaimedBy *string `json:"claimed_by,omitempty"`
Component *string `json:"component,omitempty"`
Message *string `json:"message,omitempty"`
Status string `json:"status"`
Step string `json:"step"`
Timestamp time.Time `json:"timestamp"`
}
StateHistoryEntry defines model for StateHistoryEntry.
type Step ¶
type Step struct {
Actor *string `json:"actor,omitempty"`
ClaimedBy *string `json:"claimed_by,omitempty"`
CompletedAt *time.Time `json:"completed_at,omitempty"`
Error *string `json:"error,omitempty"`
HeldReason *string `json:"held_reason,omitempty"`
StartedAt *time.Time `json:"started_at,omitempty"`
Status string `json:"status"`
}
Step defines model for Step.
type StepBody ¶
type StepBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// ClaimedBy Run that is starting the step (the CLI's workflow name). The slip read shows it as the step's claimed_by while a step started without component_name is running; for a start with component_name, the read shows it only on that start's state_history entry. Used by start only
ClaimedBy *string `json:"claimed_by,omitempty"`
// ComponentName Component name (required for aggregate steps, empty for pipeline steps)
ComponentName *string `json:"component_name,omitempty"`
}
StepBody defines model for StepBody.
type StepPrerequisitesResponseBody ¶ added in v1.4.0
type StepPrerequisitesResponseBody struct {
// Schema A URL to the JSON Schema for this object.
Schema *string `json:"$schema,omitempty"`
// Failed Prerequisite step names that failed, with reasons
Failed *[]FailedPrereq `json:"failed,omitempty"`
// Pending Prerequisite step names not yet in a terminal state
Pending *[]string `json:"pending,omitempty"`
// PrereqStatuses Status of each prerequisite step
PrereqStatuses *map[string]string `json:"prereq_statuses,omitempty"`
// Satisfied True when all prerequisites have reached a terminal success state
Satisfied bool `json:"satisfied"`
}
StepPrerequisitesResponseBody defines model for StepPrerequisitesResponseBody.
type WrappedClient ¶ added in v1.4.0
type WrappedClient struct {
*ClientWithResponses
// contains filtered or unexported fields
}
WrappedClient is a hand-written facade that embeds the oapi-codegen generated ClientWithResponses and adds cross-cutting concerns:
- Bearer token authentication (Authorization header)
- OTel client span per request with W3C traceparent/tracestate injection
- Structured request/response logging (slog)
- Configurable User-Agent header
Use NewWrappedClient to construct; all generated methods are accessible directly through the embedded *ClientWithResponses.
func NewWrappedClient ¶ added in v1.4.0
func NewWrappedClient(server string, opts ...WrapperOption) (*WrappedClient, error)
NewWrappedClient constructs a WrappedClient targeting the given server URL. At least WithBearerToken should be provided for authenticated endpoints.
type WrapperOption ¶ added in v1.4.0
type WrapperOption func(*wrapperConfig)
WrapperOption configures a WrappedClient.
func WithBearerToken ¶ added in v1.4.0
func WithBearerToken(token string) WrapperOption
WithBearerToken sets the Authorization: Bearer token sent on every request.
func WithCustomHTTPClient ¶ added in v1.4.0
func WithCustomHTTPClient(c HttpRequestDoer) WrapperOption
WithCustomHTTPClient replaces the underlying HTTP client (useful for testing). This corresponds to the plan's WithHTTPClient WrapperOption.
func WithLogger ¶ added in v1.4.0
func WithLogger(l *slog.Logger) WrapperOption
WithLogger sets the structured logger used for request/response logging. Accepts *slog.Logger; pass nil to use the default logger.
func WithServiceName ¶ added in v1.4.0
func WithServiceName(name string) WrapperOption
WithServiceName sets the service name embedded in trace span attributes and the default User-Agent string.
func WithTracerProvider ¶ added in v1.4.0
func WithTracerProvider(tp trace.TracerProvider) WrapperOption
WithTracerProvider sets the OTel TracerProvider used for client spans. When not set, the global provider is used.
func WithUserAgent ¶ added in v1.4.0
func WithUserAgent(ua string) WrapperOption
WithUserAgent overrides the User-Agent header sent on every request.