slippyclient

package module
v1.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

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

View Source
const (
	ApiKeyScopes      = "apiKey.Scopes"
	WriteApiKeyScopes = "writeApiKey.Scopes"
)

Variables

This section is empty.

Functions

func ContextWithCorrelationID added in v1.4.1

func ContextWithCorrelationID(ctx context.Context, id string) context.Context

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

func CorrelationIDFromContext(ctx context.Context) string

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 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

func NewGetImageTagsRequest(server string, correlationID string) (*http.Request, error)

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

func NewGetPipelineConfigRequest(server string) (*http.Request, error)

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

func NewGetSlipRequest(server string, correlationID string) (*http.Request, error)

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

func NewHealthCheckRequest(server string) (*http.Request, error)

NewHealthCheckRequest generates requests for HealthCheck

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 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

func NewStartStepRequestWithBody

func NewStartStepRequestWithBody(server string, correlationID string, stepName string, contentType string, body io.Reader) (*http.Request, error)

NewStartStepRequestWithBody generates requests for StartStep with any type of 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 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 (c *Client) AbandonSlipWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) CompleteStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSlip

func (c *Client) CreateSlip(ctx context.Context, body CreateSlipJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateSlipWithBody

func (c *Client) CreateSlipWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) FailStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindAllByCommits

func (c *Client) FindAllByCommits(ctx context.Context, body FindAllByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindAllByCommitsWithBody

func (c *Client) FindAllByCommitsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindByCommits

func (c *Client) FindByCommits(ctx context.Context, body FindByCommitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FindByCommitsWithBody

func (c *Client) FindByCommitsWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetAutomationTestResultByIdCorrelation

func (c *Client) GetAutomationTestResultByIdCorrelation(ctx context.Context, correlationID string, testId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) GetImageTags(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) GetPipelineConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSlip

func (c *Client) GetSlip(ctx context.Context, correlationID string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetSlipByCommit

func (c *Client) GetSlipByCommit(ctx context.Context, owner string, repo string, commitSHA string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetStepPrerequisites added in v1.4.0

func (c *Client) GetStepPrerequisites(ctx context.Context, correlationID string, stepName string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) HealthCheck

func (c *Client) HealthCheck(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) PromoteSlipWithBody(ctx context.Context, correlationID string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) SetImageTagWithBody(ctx context.Context, correlationID string, componentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SkipStep

func (c *Client) SkipStep(ctx context.Context, correlationID string, stepName string, body SkipStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SkipStepWithBody

func (c *Client) SkipStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartStep

func (c *Client) StartStep(ctx context.Context, correlationID string, stepName string, body StartStepJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StartStepWithBody

func (c *Client) StartStepWithBody(ctx context.Context, correlationID string, stepName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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)

	// 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)

	// 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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) 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) 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) 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)

	// 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)

	// 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 Full 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"`

	// Repository Full repository name (owner/repo)
	Repository string `json:"repository"`
}

CreateSlipInputBody defines model for CreateSlipInputBody.

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

Status returns HTTPResponse.Status

func (GetAutomationTestResultByIdCorrelationResponse) StatusCode

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

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

Status returns HTTPResponse.Status

func (GetAutomationTestResultsTestsResponse) StatusCode

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 (
	Asc  GetLogsParamsSort = "asc"
	Desc 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

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

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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 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 RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

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"`
	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"`
	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"`
	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"`

	// 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL