openapi

package
v0.0.0-...-24aa938 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package openapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.

Index

Constants

View Source
const (
	OidcScopes oidcContextKey = "oidc.Scopes"
)

Variables

This section is empty.

Functions

func GetSpec

func GetSpec() (swagger *openapi3.T, err error)

GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.

func GetSpecJSON

func GetSpecJSON() ([]byte, error)

GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.

func GetSwagger deprecated

func GetSwagger() (*openapi3.T, error)

GetSwagger returns the OpenAPI specification corresponding to the generated code in this file.

Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger to openapi3.T. Use GetSpec instead. This wrapper is retained for backwards compatibility.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func NewGetApplicationsNameMatrixRequest

func NewGetApplicationsNameMatrixRequest(server string, name string) (*http.Request, error)

NewGetApplicationsNameMatrixRequest generates requests for GetApplicationsNameMatrix

func NewGetApplicationsNamePromotionsRequest

func NewGetApplicationsNamePromotionsRequest(server string, name Name) (*http.Request, error)

NewGetApplicationsNamePromotionsRequest generates requests for GetApplicationsNamePromotions

func NewGetApplicationsNameReleasesRequest

func NewGetApplicationsNameReleasesRequest(server string, name Name) (*http.Request, error)

NewGetApplicationsNameReleasesRequest generates requests for GetApplicationsNameReleases

func NewGetApplicationsNameRequest

func NewGetApplicationsNameRequest(server string, name Name) (*http.Request, error)

NewGetApplicationsNameRequest generates requests for GetApplicationsName

func NewGetApplicationsRequest

func NewGetApplicationsRequest(server string, params *GetApplicationsParams) (*http.Request, error)

NewGetApplicationsRequest generates requests for GetApplications

func NewGetAuditRequest

func NewGetAuditRequest(server string, params *GetAuditParams) (*http.Request, error)

NewGetAuditRequest generates requests for GetAudit

func NewGetDiffRequest

func NewGetDiffRequest(server string, params *GetDiffParams) (*http.Request, error)

NewGetDiffRequest generates requests for GetDiff

func NewGetEnvironmentsRequest

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

NewGetEnvironmentsRequest generates requests for GetEnvironments

func NewGetPromotionsIDRequest

func NewGetPromotionsIDRequest(server string, id ID) (*http.Request, error)

NewGetPromotionsIDRequest generates requests for GetPromotionsID

func NewGetPromotionsRequest

func NewGetPromotionsRequest(server string, params *GetPromotionsParams) (*http.Request, error)

NewGetPromotionsRequest generates requests for GetPromotions

func NewGetReleasesRequest

func NewGetReleasesRequest(server string, params *GetReleasesParams) (*http.Request, error)

NewGetReleasesRequest generates requests for GetReleases

func NewGetTargetsNameDriftRequest

func NewGetTargetsNameDriftRequest(server string, name Name) (*http.Request, error)

NewGetTargetsNameDriftRequest generates requests for GetTargetsNameDrift

func NewGetTargetsNameHealthRequest

func NewGetTargetsNameHealthRequest(server string, name Name) (*http.Request, error)

NewGetTargetsNameHealthRequest generates requests for GetTargetsNameHealth

func NewGetTargetsRequest

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

NewGetTargetsRequest generates requests for GetTargets

func NewPostPromotionsIDApproveRequest

func NewPostPromotionsIDApproveRequest(server string, id ID, params *PostPromotionsIDApproveParams, body PostPromotionsIDApproveJSONRequestBody) (*http.Request, error)

NewPostPromotionsIDApproveRequest calls the generic PostPromotionsIDApprove builder with application/json body

func NewPostPromotionsIDApproveRequestWithBody

func NewPostPromotionsIDApproveRequestWithBody(server string, id ID, params *PostPromotionsIDApproveParams, contentType string, body io.Reader) (*http.Request, error)

NewPostPromotionsIDApproveRequestWithBody generates requests for PostPromotionsIDApprove with any type of body

func NewPostPromotionsIDCancelRequest

func NewPostPromotionsIDCancelRequest(server string, id ID, params *PostPromotionsIDCancelParams) (*http.Request, error)

NewPostPromotionsIDCancelRequest generates requests for PostPromotionsIDCancel

func NewPostPromotionsIDRetryRequest

func NewPostPromotionsIDRetryRequest(server string, id ID, params *PostPromotionsIDRetryParams) (*http.Request, error)

NewPostPromotionsIDRetryRequest generates requests for PostPromotionsIDRetry

func NewPostPromotionsRequest

func NewPostPromotionsRequest(server string, params *PostPromotionsParams, body PostPromotionsJSONRequestBody) (*http.Request, error)

NewPostPromotionsRequest calls the generic PostPromotions builder with application/json body

func NewPostPromotionsRequestWithBody

func NewPostPromotionsRequestWithBody(server string, params *PostPromotionsParams, contentType string, body io.Reader) (*http.Request, error)

NewPostPromotionsRequestWithBody generates requests for PostPromotions with any type of body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type Application

type Application struct {
	AddonRefs *[]string  `json:"addonRefs,omitempty"`
	Name      string     `json:"name"`
	Owner     *string    `json:"owner,omitempty"`
	Project   *string    `json:"project,omitempty"`
	Source    *SourceRef `json:"source,omitempty"`

	// Status Canonical status vocabulary (see ui-design-spec §3.1).
	Status Status `json:"status"`
	Ulid   string `json:"ulid"`
}

Application defines model for Application.

type Approval

type Approval struct {
	Approver *string           `json:"approver,omitempty"`
	At       *time.Time        `json:"at,omitempty"`
	Comment  *string           `json:"comment,omitempty"`
	Decision *ApprovalDecision `json:"decision,omitempty"`
}

Approval defines model for Approval.

type ApprovalDecision

type ApprovalDecision string

ApprovalDecision defines model for Approval.Decision.

const (
	ApprovalDecisionApprove ApprovalDecision = "approve"
	ApprovalDecisionPending ApprovalDecision = "pending"
	ApprovalDecisionReject  ApprovalDecision = "reject"
)

Defines values for ApprovalDecision.

func (ApprovalDecision) Valid

func (e ApprovalDecision) Valid() bool

Valid indicates whether the value is a known member of the ApprovalDecision enum.

type AuditEvent

type AuditEvent struct {
	Actor    string    `json:"actor"`
	At       time.Time `json:"at"`
	Evidence *[]string `json:"evidence,omitempty"`
	Result   *struct {
		After  interface{} `json:"after,omitempty"`
		Before interface{} `json:"before,omitempty"`
	} `json:"result,omitempty"`
	Target string `json:"target"`
	Ulid   string `json:"ulid"`

	// Verb e.g. approve, promote, sync, break-glass
	Verb string `json:"verb"`
}

AuditEvent defines model for AuditEvent.

type BadRequest

type BadRequest = Problem

BadRequest RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type BadRequestApplicationProblemPlusJSONResponse

type BadRequestApplicationProblemPlusJSONResponse Problem

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

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

func (*Client) GetApplicationsName

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

func (*Client) GetApplicationsNameMatrix

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

func (*Client) GetApplicationsNamePromotions

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

func (*Client) GetApplicationsNameReleases

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

func (*Client) GetAudit

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

func (*Client) GetDiff

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

func (*Client) GetEnvironments

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

func (*Client) GetPromotions

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

func (*Client) GetPromotionsID

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

func (*Client) GetReleases

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

func (*Client) GetTargets

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

func (*Client) GetTargetsNameDrift

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

func (*Client) GetTargetsNameHealth

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

func (*Client) PostPromotions

func (c *Client) PostPromotions(ctx context.Context, params *PostPromotionsParams, body PostPromotionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPromotionsIDApprove

func (c *Client) PostPromotionsIDApprove(ctx context.Context, id ID, params *PostPromotionsIDApproveParams, body PostPromotionsIDApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPromotionsIDApproveWithBody

func (c *Client) PostPromotionsIDApproveWithBody(ctx context.Context, id ID, params *PostPromotionsIDApproveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPromotionsIDCancel

func (c *Client) PostPromotionsIDCancel(ctx context.Context, id ID, params *PostPromotionsIDCancelParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPromotionsIDRetry

func (c *Client) PostPromotionsIDRetry(ctx context.Context, id ID, params *PostPromotionsIDRetryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPromotionsWithBody

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

type ClientInterface

type ClientInterface interface {
	// GetApplications request
	GetApplications(ctx context.Context, params *GetApplicationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApplicationsName request
	GetApplicationsName(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApplicationsNameMatrix request
	GetApplicationsNameMatrix(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApplicationsNamePromotions request
	GetApplicationsNamePromotions(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetApplicationsNameReleases request
	GetApplicationsNameReleases(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetAudit request
	GetAudit(ctx context.Context, params *GetAuditParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDiff request
	GetDiff(ctx context.Context, params *GetDiffParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEnvironments request
	GetEnvironments(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPromotions request
	GetPromotions(ctx context.Context, params *GetPromotionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostPromotionsWithBody request with any body
	PostPromotionsWithBody(ctx context.Context, params *PostPromotionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostPromotions(ctx context.Context, params *PostPromotionsParams, body PostPromotionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPromotionsID request
	GetPromotionsID(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostPromotionsIDApproveWithBody request with any body
	PostPromotionsIDApproveWithBody(ctx context.Context, id ID, params *PostPromotionsIDApproveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostPromotionsIDApprove(ctx context.Context, id ID, params *PostPromotionsIDApproveParams, body PostPromotionsIDApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostPromotionsIDCancel request
	PostPromotionsIDCancel(ctx context.Context, id ID, params *PostPromotionsIDCancelParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostPromotionsIDRetry request
	PostPromotionsIDRetry(ctx context.Context, id ID, params *PostPromotionsIDRetryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReleases request
	GetReleases(ctx context.Context, params *GetReleasesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTargets request
	GetTargets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTargetsNameDrift request
	GetTargetsNameDrift(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTargetsNameHealth request
	GetTargetsNameHealth(ctx context.Context, name Name, 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) GetApplicationsNameMatrixWithResponse

func (c *ClientWithResponses) GetApplicationsNameMatrixWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApplicationsNameMatrixResponse, error)

GetApplicationsNameMatrixWithResponse request returning *GetApplicationsNameMatrixResponse

func (*ClientWithResponses) GetApplicationsNamePromotionsWithResponse

func (c *ClientWithResponses) GetApplicationsNamePromotionsWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetApplicationsNamePromotionsResponse, error)

GetApplicationsNamePromotionsWithResponse request returning *GetApplicationsNamePromotionsResponse

func (*ClientWithResponses) GetApplicationsNameReleasesWithResponse

func (c *ClientWithResponses) GetApplicationsNameReleasesWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetApplicationsNameReleasesResponse, error)

GetApplicationsNameReleasesWithResponse request returning *GetApplicationsNameReleasesResponse

func (*ClientWithResponses) GetApplicationsNameWithResponse

func (c *ClientWithResponses) GetApplicationsNameWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetApplicationsNameResponse, error)

GetApplicationsNameWithResponse request returning *GetApplicationsNameResponse

func (*ClientWithResponses) GetApplicationsWithResponse

func (c *ClientWithResponses) GetApplicationsWithResponse(ctx context.Context, params *GetApplicationsParams, reqEditors ...RequestEditorFn) (*GetApplicationsResponse, error)

GetApplicationsWithResponse request returning *GetApplicationsResponse

func (*ClientWithResponses) GetAuditWithResponse

func (c *ClientWithResponses) GetAuditWithResponse(ctx context.Context, params *GetAuditParams, reqEditors ...RequestEditorFn) (*GetAuditResponse, error)

GetAuditWithResponse request returning *GetAuditResponse

func (*ClientWithResponses) GetDiffWithResponse

func (c *ClientWithResponses) GetDiffWithResponse(ctx context.Context, params *GetDiffParams, reqEditors ...RequestEditorFn) (*GetDiffResponse, error)

GetDiffWithResponse request returning *GetDiffResponse

func (*ClientWithResponses) GetEnvironmentsWithResponse

func (c *ClientWithResponses) GetEnvironmentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEnvironmentsResponse, error)

GetEnvironmentsWithResponse request returning *GetEnvironmentsResponse

func (*ClientWithResponses) GetPromotionsIDWithResponse

func (c *ClientWithResponses) GetPromotionsIDWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*GetPromotionsIDResponse, error)

GetPromotionsIDWithResponse request returning *GetPromotionsIDResponse

func (*ClientWithResponses) GetPromotionsWithResponse

func (c *ClientWithResponses) GetPromotionsWithResponse(ctx context.Context, params *GetPromotionsParams, reqEditors ...RequestEditorFn) (*GetPromotionsResponse, error)

GetPromotionsWithResponse request returning *GetPromotionsResponse

func (*ClientWithResponses) GetReleasesWithResponse

func (c *ClientWithResponses) GetReleasesWithResponse(ctx context.Context, params *GetReleasesParams, reqEditors ...RequestEditorFn) (*GetReleasesResponse, error)

GetReleasesWithResponse request returning *GetReleasesResponse

func (*ClientWithResponses) GetTargetsNameDriftWithResponse

func (c *ClientWithResponses) GetTargetsNameDriftWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetTargetsNameDriftResponse, error)

GetTargetsNameDriftWithResponse request returning *GetTargetsNameDriftResponse

func (*ClientWithResponses) GetTargetsNameHealthWithResponse

func (c *ClientWithResponses) GetTargetsNameHealthWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetTargetsNameHealthResponse, error)

GetTargetsNameHealthWithResponse request returning *GetTargetsNameHealthResponse

func (*ClientWithResponses) GetTargetsWithResponse

func (c *ClientWithResponses) GetTargetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTargetsResponse, error)

GetTargetsWithResponse request returning *GetTargetsResponse

func (*ClientWithResponses) PostPromotionsIDApproveWithBodyWithResponse

func (c *ClientWithResponses) PostPromotionsIDApproveWithBodyWithResponse(ctx context.Context, id ID, params *PostPromotionsIDApproveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPromotionsIDApproveResponse, error)

PostPromotionsIDApproveWithBodyWithResponse request with arbitrary body returning *PostPromotionsIDApproveResponse

func (*ClientWithResponses) PostPromotionsIDApproveWithResponse

func (*ClientWithResponses) PostPromotionsIDCancelWithResponse

func (c *ClientWithResponses) PostPromotionsIDCancelWithResponse(ctx context.Context, id ID, params *PostPromotionsIDCancelParams, reqEditors ...RequestEditorFn) (*PostPromotionsIDCancelResponse, error)

PostPromotionsIDCancelWithResponse request returning *PostPromotionsIDCancelResponse

func (*ClientWithResponses) PostPromotionsIDRetryWithResponse

func (c *ClientWithResponses) PostPromotionsIDRetryWithResponse(ctx context.Context, id ID, params *PostPromotionsIDRetryParams, reqEditors ...RequestEditorFn) (*PostPromotionsIDRetryResponse, error)

PostPromotionsIDRetryWithResponse request returning *PostPromotionsIDRetryResponse

func (*ClientWithResponses) PostPromotionsWithBodyWithResponse

func (c *ClientWithResponses) PostPromotionsWithBodyWithResponse(ctx context.Context, params *PostPromotionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPromotionsResponse, error)

PostPromotionsWithBodyWithResponse request with arbitrary body returning *PostPromotionsResponse

func (*ClientWithResponses) PostPromotionsWithResponse

func (c *ClientWithResponses) PostPromotionsWithResponse(ctx context.Context, params *PostPromotionsParams, body PostPromotionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPromotionsResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetApplicationsWithResponse request
	GetApplicationsWithResponse(ctx context.Context, params *GetApplicationsParams, reqEditors ...RequestEditorFn) (*GetApplicationsResponse, error)

	// GetApplicationsNameWithResponse request
	GetApplicationsNameWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetApplicationsNameResponse, error)

	// GetApplicationsNameMatrixWithResponse request
	GetApplicationsNameMatrixWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetApplicationsNameMatrixResponse, error)

	// GetApplicationsNamePromotionsWithResponse request
	GetApplicationsNamePromotionsWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetApplicationsNamePromotionsResponse, error)

	// GetApplicationsNameReleasesWithResponse request
	GetApplicationsNameReleasesWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetApplicationsNameReleasesResponse, error)

	// GetAuditWithResponse request
	GetAuditWithResponse(ctx context.Context, params *GetAuditParams, reqEditors ...RequestEditorFn) (*GetAuditResponse, error)

	// GetDiffWithResponse request
	GetDiffWithResponse(ctx context.Context, params *GetDiffParams, reqEditors ...RequestEditorFn) (*GetDiffResponse, error)

	// GetEnvironmentsWithResponse request
	GetEnvironmentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetEnvironmentsResponse, error)

	// GetPromotionsWithResponse request
	GetPromotionsWithResponse(ctx context.Context, params *GetPromotionsParams, reqEditors ...RequestEditorFn) (*GetPromotionsResponse, error)

	// PostPromotionsWithBodyWithResponse request with any body
	PostPromotionsWithBodyWithResponse(ctx context.Context, params *PostPromotionsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPromotionsResponse, error)

	PostPromotionsWithResponse(ctx context.Context, params *PostPromotionsParams, body PostPromotionsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPromotionsResponse, error)

	// GetPromotionsIDWithResponse request
	GetPromotionsIDWithResponse(ctx context.Context, id ID, reqEditors ...RequestEditorFn) (*GetPromotionsIDResponse, error)

	// PostPromotionsIDApproveWithBodyWithResponse request with any body
	PostPromotionsIDApproveWithBodyWithResponse(ctx context.Context, id ID, params *PostPromotionsIDApproveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPromotionsIDApproveResponse, error)

	PostPromotionsIDApproveWithResponse(ctx context.Context, id ID, params *PostPromotionsIDApproveParams, body PostPromotionsIDApproveJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPromotionsIDApproveResponse, error)

	// PostPromotionsIDCancelWithResponse request
	PostPromotionsIDCancelWithResponse(ctx context.Context, id ID, params *PostPromotionsIDCancelParams, reqEditors ...RequestEditorFn) (*PostPromotionsIDCancelResponse, error)

	// PostPromotionsIDRetryWithResponse request
	PostPromotionsIDRetryWithResponse(ctx context.Context, id ID, params *PostPromotionsIDRetryParams, reqEditors ...RequestEditorFn) (*PostPromotionsIDRetryResponse, error)

	// GetReleasesWithResponse request
	GetReleasesWithResponse(ctx context.Context, params *GetReleasesParams, reqEditors ...RequestEditorFn) (*GetReleasesResponse, error)

	// GetTargetsWithResponse request
	GetTargetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTargetsResponse, error)

	// GetTargetsNameDriftWithResponse request
	GetTargetsNameDriftWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetTargetsNameDriftResponse, error)

	// GetTargetsNameHealthWithResponse request
	GetTargetsNameHealthWithResponse(ctx context.Context, name Name, reqEditors ...RequestEditorFn) (*GetTargetsNameHealthResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Conflict

type Conflict = Problem

Conflict RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type ConflictApplicationProblemPlusJSONResponse

type ConflictApplicationProblemPlusJSONResponse Problem

type Degraded

type Degraded = Problem

Degraded RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type DegradedApplicationProblemPlusJSONResponse

type DegradedApplicationProblemPlusJSONResponse Problem

type DeploymentTarget

type DeploymentTarget struct {
	Cell     *string    `json:"cell,omitempty"`
	Cluster  *string    `json:"cluster,omitempty"`
	Drift    *bool      `json:"drift,omitempty"`
	Env      *string    `json:"env,omitempty"`
	Frozen   *bool      `json:"frozen,omitempty"`
	LastSync *time.Time `json:"lastSync,omitempty"`

	// Name Natural key (name) — used for addressing.
	Name   string  `json:"name"`
	Region *string `json:"region,omitempty"`

	// Status Canonical status vocabulary (see ui-design-spec §3.1).
	Status Status `json:"status"`

	// Ulid Durable identity; survives rename. Not used for addressing.
	Ulid    *string `json:"ulid,omitempty"`
	Version *string `json:"version,omitempty"`
}

DeploymentTarget defines model for DeploymentTarget.

type Diff

type Diff struct {
	Entries []DiffEntry `json:"entries"`
	Left    *string     `json:"left,omitempty"`
	Mode    string      `json:"mode"`
	Right   *string     `json:"right,omitempty"`
	Summary *struct {
		Added   *int `json:"added,omitempty"`
		Changed *int `json:"changed,omitempty"`
		Removed *int `json:"removed,omitempty"`
	} `json:"summary,omitempty"`
}

Diff defines model for Diff.

type DiffEntry

type DiffEntry struct {
	Change DiffEntryChange `json:"change"`
	Drift  *bool           `json:"drift,omitempty"`

	// Object e.g. Deployment/api
	Object string `json:"object"`

	// Patch Unified diff hunk.
	Patch *string `json:"patch,omitempty"`
}

DiffEntry defines model for DiffEntry.

type DiffEntryChange

type DiffEntryChange string

DiffEntryChange defines model for DiffEntry.Change.

const (
	Added     DiffEntryChange = "added"
	Changed   DiffEntryChange = "changed"
	Removed   DiffEntryChange = "removed"
	Unchanged DiffEntryChange = "unchanged"
)

Defines values for DiffEntryChange.

func (DiffEntryChange) Valid

func (e DiffEntryChange) Valid() bool

Valid indicates whether the value is a known member of the DiffEntryChange enum.

type Env

type Env = string

Env defines model for env.

type Environment

type Environment struct {
	Cells *[]struct {
		Name   *string `json:"name,omitempty"`
		Region *string `json:"region,omitempty"`

		// Status Canonical status vocabulary (see ui-design-spec §3.1).
		Status  *Status             `json:"status,omitempty"`
		Targets *[]DeploymentTarget `json:"targets,omitempty"`
	} `json:"cells,omitempty"`
	Freeze  *FreezeWindow `json:"freeze,omitempty"`
	Name    string        `json:"name"`
	Regions *[]string     `json:"regions,omitempty"`
}

Environment defines model for Environment.

type Forbidden

type Forbidden = Problem

Forbidden RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type ForbiddenApplicationProblemPlusJSONResponse

type ForbiddenApplicationProblemPlusJSONResponse Problem

type FreezeWindow

type FreezeWindow struct {
	Active *bool      `json:"active,omitempty"`
	End    *time.Time `json:"end,omitempty"`
	Reason *string    `json:"reason,omitempty"`
	Scope  *string    `json:"scope,omitempty"`
	Start  *time.Time `json:"start,omitempty"`
}

FreezeWindow defines model for FreezeWindow.

type Gate

type Gate struct {
	Detail *string `json:"detail,omitempty"`

	// Name e.g. image-signed, vuln-scan, approvals
	Name   string `json:"name"`
	Passed bool   `json:"passed"`
}

Gate defines model for Gate.

type GetApplications200JSONResponse

type GetApplications200JSONResponse struct {
	// AsOf Snapshot freshness (matrix is eventually consistent).
	AsOf  time.Time     `json:"asOf"`
	Items []Application `json:"items"`
}

func (GetApplications200JSONResponse) VisitGetApplicationsResponse

func (response GetApplications200JSONResponse) VisitGetApplicationsResponse(w http.ResponseWriter) error

type GetApplications400ApplicationProblemPlusJSONResponse

type GetApplications400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetApplications400ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse

func (response GetApplications400ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse(w http.ResponseWriter) error

type GetApplications401ApplicationProblemPlusJSONResponse

type GetApplications401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetApplications401ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse

func (response GetApplications401ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse(w http.ResponseWriter) error

type GetApplications403ApplicationProblemPlusJSONResponse

type GetApplications403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetApplications403ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse

func (response GetApplications403ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse(w http.ResponseWriter) error

type GetApplications500ApplicationProblemPlusJSONResponse

type GetApplications500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetApplications500ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse

func (response GetApplications500ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse(w http.ResponseWriter) error

type GetApplications503ApplicationProblemPlusJSONResponse

type GetApplications503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetApplications503ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse

func (response GetApplications503ApplicationProblemPlusJSONResponse) VisitGetApplicationsResponse(w http.ResponseWriter) error

type GetApplicationsName200JSONResponse

type GetApplicationsName200JSONResponse Application

func (GetApplicationsName200JSONResponse) VisitGetApplicationsNameResponse

func (response GetApplicationsName200JSONResponse) VisitGetApplicationsNameResponse(w http.ResponseWriter) error

type GetApplicationsName400ApplicationProblemPlusJSONResponse

type GetApplicationsName400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetApplicationsName400ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse

func (response GetApplicationsName400ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse(w http.ResponseWriter) error

type GetApplicationsName401ApplicationProblemPlusJSONResponse

type GetApplicationsName401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetApplicationsName401ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse

func (response GetApplicationsName401ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse(w http.ResponseWriter) error

type GetApplicationsName403ApplicationProblemPlusJSONResponse

type GetApplicationsName403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetApplicationsName403ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse

func (response GetApplicationsName403ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse(w http.ResponseWriter) error

type GetApplicationsName404ApplicationProblemPlusJSONResponse

type GetApplicationsName404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetApplicationsName404ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse

func (response GetApplicationsName404ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse(w http.ResponseWriter) error

type GetApplicationsName500ApplicationProblemPlusJSONResponse

type GetApplicationsName500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetApplicationsName500ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse

func (response GetApplicationsName500ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse(w http.ResponseWriter) error

type GetApplicationsName503ApplicationProblemPlusJSONResponse

type GetApplicationsName503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetApplicationsName503ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse

func (response GetApplicationsName503ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameResponse(w http.ResponseWriter) error

type GetApplicationsNameMatrix200JSONResponse

type GetApplicationsNameMatrix200JSONResponse Matrix

func (GetApplicationsNameMatrix200JSONResponse) VisitGetApplicationsNameMatrixResponse

func (response GetApplicationsNameMatrix200JSONResponse) VisitGetApplicationsNameMatrixResponse(w http.ResponseWriter) error

type GetApplicationsNameMatrix400ApplicationProblemPlusJSONResponse

type GetApplicationsNameMatrix400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameMatrix400ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse

func (response GetApplicationsNameMatrix400ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse(w http.ResponseWriter) error

type GetApplicationsNameMatrix401ApplicationProblemPlusJSONResponse

type GetApplicationsNameMatrix401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameMatrix401ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse

func (response GetApplicationsNameMatrix401ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse(w http.ResponseWriter) error

type GetApplicationsNameMatrix403ApplicationProblemPlusJSONResponse

type GetApplicationsNameMatrix403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameMatrix403ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse

func (response GetApplicationsNameMatrix403ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse(w http.ResponseWriter) error

type GetApplicationsNameMatrix404ApplicationProblemPlusJSONResponse

type GetApplicationsNameMatrix404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameMatrix404ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse

func (response GetApplicationsNameMatrix404ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse(w http.ResponseWriter) error

type GetApplicationsNameMatrix500ApplicationProblemPlusJSONResponse

type GetApplicationsNameMatrix500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameMatrix500ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse

func (response GetApplicationsNameMatrix500ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse(w http.ResponseWriter) error

type GetApplicationsNameMatrix503ApplicationProblemPlusJSONResponse

type GetApplicationsNameMatrix503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameMatrix503ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse

func (response GetApplicationsNameMatrix503ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameMatrixResponse(w http.ResponseWriter) error

type GetApplicationsNameMatrixRequestObject

type GetApplicationsNameMatrixRequestObject struct {
	Name string `json:"name"`
}

type GetApplicationsNameMatrixResponse

type GetApplicationsNameMatrixResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *Matrix
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON404 *NotFound
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetApplicationsNameMatrixResponse

func ParseGetApplicationsNameMatrixResponse(rsp *http.Response) (*GetApplicationsNameMatrixResponse, error)

ParseGetApplicationsNameMatrixResponse parses an HTTP response from a GetApplicationsNameMatrixWithResponse call

func (GetApplicationsNameMatrixResponse) ContentType

func (r GetApplicationsNameMatrixResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetApplicationsNameMatrixResponse) Status

Status returns HTTPResponse.Status

func (GetApplicationsNameMatrixResponse) StatusCode

func (r GetApplicationsNameMatrixResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetApplicationsNameMatrixResponseObject

type GetApplicationsNameMatrixResponseObject interface {
	VisitGetApplicationsNameMatrixResponse(w http.ResponseWriter) error
}

type GetApplicationsNamePromotions200JSONResponse

type GetApplicationsNamePromotions200JSONResponse []Promotion

func (GetApplicationsNamePromotions200JSONResponse) VisitGetApplicationsNamePromotionsResponse

func (response GetApplicationsNamePromotions200JSONResponse) VisitGetApplicationsNamePromotionsResponse(w http.ResponseWriter) error

type GetApplicationsNamePromotions400ApplicationProblemPlusJSONResponse

type GetApplicationsNamePromotions400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetApplicationsNamePromotions400ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse

func (response GetApplicationsNamePromotions400ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse(w http.ResponseWriter) error

type GetApplicationsNamePromotions401ApplicationProblemPlusJSONResponse

type GetApplicationsNamePromotions401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetApplicationsNamePromotions401ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse

func (response GetApplicationsNamePromotions401ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse(w http.ResponseWriter) error

type GetApplicationsNamePromotions403ApplicationProblemPlusJSONResponse

type GetApplicationsNamePromotions403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetApplicationsNamePromotions403ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse

func (response GetApplicationsNamePromotions403ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse(w http.ResponseWriter) error

type GetApplicationsNamePromotions500ApplicationProblemPlusJSONResponse

type GetApplicationsNamePromotions500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetApplicationsNamePromotions500ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse

func (response GetApplicationsNamePromotions500ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse(w http.ResponseWriter) error

type GetApplicationsNamePromotions503ApplicationProblemPlusJSONResponse

type GetApplicationsNamePromotions503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetApplicationsNamePromotions503ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse

func (response GetApplicationsNamePromotions503ApplicationProblemPlusJSONResponse) VisitGetApplicationsNamePromotionsResponse(w http.ResponseWriter) error

type GetApplicationsNamePromotionsRequestObject

type GetApplicationsNamePromotionsRequestObject struct {
	Name Name `json:"name"`
}

type GetApplicationsNamePromotionsResponse

type GetApplicationsNamePromotionsResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *[]Promotion
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetApplicationsNamePromotionsResponse

func ParseGetApplicationsNamePromotionsResponse(rsp *http.Response) (*GetApplicationsNamePromotionsResponse, error)

ParseGetApplicationsNamePromotionsResponse parses an HTTP response from a GetApplicationsNamePromotionsWithResponse call

func (GetApplicationsNamePromotionsResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetApplicationsNamePromotionsResponse) Status

Status returns HTTPResponse.Status

func (GetApplicationsNamePromotionsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetApplicationsNamePromotionsResponseObject

type GetApplicationsNamePromotionsResponseObject interface {
	VisitGetApplicationsNamePromotionsResponse(w http.ResponseWriter) error
}

type GetApplicationsNameReleases200JSONResponse

type GetApplicationsNameReleases200JSONResponse []Release

func (GetApplicationsNameReleases200JSONResponse) VisitGetApplicationsNameReleasesResponse

func (response GetApplicationsNameReleases200JSONResponse) VisitGetApplicationsNameReleasesResponse(w http.ResponseWriter) error

type GetApplicationsNameReleases400ApplicationProblemPlusJSONResponse

type GetApplicationsNameReleases400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameReleases400ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse

func (response GetApplicationsNameReleases400ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse(w http.ResponseWriter) error

type GetApplicationsNameReleases401ApplicationProblemPlusJSONResponse

type GetApplicationsNameReleases401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameReleases401ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse

func (response GetApplicationsNameReleases401ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse(w http.ResponseWriter) error

type GetApplicationsNameReleases403ApplicationProblemPlusJSONResponse

type GetApplicationsNameReleases403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameReleases403ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse

func (response GetApplicationsNameReleases403ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse(w http.ResponseWriter) error

type GetApplicationsNameReleases500ApplicationProblemPlusJSONResponse

type GetApplicationsNameReleases500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameReleases500ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse

func (response GetApplicationsNameReleases500ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse(w http.ResponseWriter) error

type GetApplicationsNameReleases503ApplicationProblemPlusJSONResponse

type GetApplicationsNameReleases503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetApplicationsNameReleases503ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse

func (response GetApplicationsNameReleases503ApplicationProblemPlusJSONResponse) VisitGetApplicationsNameReleasesResponse(w http.ResponseWriter) error

type GetApplicationsNameReleasesRequestObject

type GetApplicationsNameReleasesRequestObject struct {
	Name Name `json:"name"`
}

type GetApplicationsNameReleasesResponse

type GetApplicationsNameReleasesResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *[]Release
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetApplicationsNameReleasesResponse

func ParseGetApplicationsNameReleasesResponse(rsp *http.Response) (*GetApplicationsNameReleasesResponse, error)

ParseGetApplicationsNameReleasesResponse parses an HTTP response from a GetApplicationsNameReleasesWithResponse call

func (GetApplicationsNameReleasesResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetApplicationsNameReleasesResponse) Status

Status returns HTTPResponse.Status

func (GetApplicationsNameReleasesResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetApplicationsNameReleasesResponseObject

type GetApplicationsNameReleasesResponseObject interface {
	VisitGetApplicationsNameReleasesResponse(w http.ResponseWriter) error
}

type GetApplicationsNameRequestObject

type GetApplicationsNameRequestObject struct {
	Name Name `json:"name"`
}

type GetApplicationsNameResponse

type GetApplicationsNameResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *Application
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON404 *NotFound
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetApplicationsNameResponse

func ParseGetApplicationsNameResponse(rsp *http.Response) (*GetApplicationsNameResponse, error)

ParseGetApplicationsNameResponse parses an HTTP response from a GetApplicationsNameWithResponse call

func (GetApplicationsNameResponse) ContentType

func (r GetApplicationsNameResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetApplicationsNameResponse) Status

Status returns HTTPResponse.Status

func (GetApplicationsNameResponse) StatusCode

func (r GetApplicationsNameResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetApplicationsNameResponseObject

type GetApplicationsNameResponseObject interface {
	VisitGetApplicationsNameResponse(w http.ResponseWriter) error
}

type GetApplicationsParams

type GetApplicationsParams struct {
	Project *Project `form:"project,omitempty" json:"project,omitempty"`
	Env     *Env     `form:"env,omitempty" json:"env,omitempty"`
	Region  *Region  `form:"region,omitempty" json:"region,omitempty"`

	// Q Free-text search.
	Q *Q `form:"q,omitempty" json:"q,omitempty"`
}

GetApplicationsParams defines parameters for GetApplications.

type GetApplicationsRequestObject

type GetApplicationsRequestObject struct {
	Params GetApplicationsParams
}

type GetApplicationsResponse

type GetApplicationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		// AsOf Snapshot freshness (matrix is eventually consistent).
		AsOf  time.Time     `json:"asOf"`
		Items []Application `json:"items"`
	}
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetApplicationsResponse

func ParseGetApplicationsResponse(rsp *http.Response) (*GetApplicationsResponse, error)

ParseGetApplicationsResponse parses an HTTP response from a GetApplicationsWithResponse call

func (GetApplicationsResponse) ContentType

func (r GetApplicationsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetApplicationsResponse) Status

func (r GetApplicationsResponse) Status() string

Status returns HTTPResponse.Status

func (GetApplicationsResponse) StatusCode

func (r GetApplicationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetApplicationsResponseObject

type GetApplicationsResponseObject interface {
	VisitGetApplicationsResponse(w http.ResponseWriter) error
}

type GetAudit200JSONResponse

type GetAudit200JSONResponse struct {
	Items      []AuditEvent `json:"items"`
	NextCursor *string      `json:"nextCursor,omitempty"`
}

func (GetAudit200JSONResponse) VisitGetAuditResponse

func (response GetAudit200JSONResponse) VisitGetAuditResponse(w http.ResponseWriter) error

type GetAudit400ApplicationProblemPlusJSONResponse

type GetAudit400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetAudit400ApplicationProblemPlusJSONResponse) VisitGetAuditResponse

func (response GetAudit400ApplicationProblemPlusJSONResponse) VisitGetAuditResponse(w http.ResponseWriter) error

type GetAudit401ApplicationProblemPlusJSONResponse

type GetAudit401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetAudit401ApplicationProblemPlusJSONResponse) VisitGetAuditResponse

func (response GetAudit401ApplicationProblemPlusJSONResponse) VisitGetAuditResponse(w http.ResponseWriter) error

type GetAudit403ApplicationProblemPlusJSONResponse

type GetAudit403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetAudit403ApplicationProblemPlusJSONResponse) VisitGetAuditResponse

func (response GetAudit403ApplicationProblemPlusJSONResponse) VisitGetAuditResponse(w http.ResponseWriter) error

type GetAudit500ApplicationProblemPlusJSONResponse

type GetAudit500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetAudit500ApplicationProblemPlusJSONResponse) VisitGetAuditResponse

func (response GetAudit500ApplicationProblemPlusJSONResponse) VisitGetAuditResponse(w http.ResponseWriter) error

type GetAudit503ApplicationProblemPlusJSONResponse

type GetAudit503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetAudit503ApplicationProblemPlusJSONResponse) VisitGetAuditResponse

func (response GetAudit503ApplicationProblemPlusJSONResponse) VisitGetAuditResponse(w http.ResponseWriter) error

type GetAuditParams

type GetAuditParams struct {
	Resource *string    `form:"resource,omitempty" json:"resource,omitempty"`
	Actor    *string    `form:"actor,omitempty" json:"actor,omitempty"`
	Verb     *string    `form:"verb,omitempty" json:"verb,omitempty"`
	From     *time.Time `form:"from,omitempty" json:"from,omitempty"`
	To       *time.Time `form:"to,omitempty" json:"to,omitempty"`
	Limit    *Limit     `form:"limit,omitempty" json:"limit,omitempty"`
}

GetAuditParams defines parameters for GetAudit.

type GetAuditRequestObject

type GetAuditRequestObject struct {
	Params GetAuditParams
}

type GetAuditResponse

type GetAuditResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Items      []AuditEvent `json:"items"`
		NextCursor *string      `json:"nextCursor,omitempty"`
	}
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetAuditResponse

func ParseGetAuditResponse(rsp *http.Response) (*GetAuditResponse, error)

ParseGetAuditResponse parses an HTTP response from a GetAuditWithResponse call

func (GetAuditResponse) ContentType

func (r GetAuditResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetAuditResponse) Status

func (r GetAuditResponse) Status() string

Status returns HTTPResponse.Status

func (GetAuditResponse) StatusCode

func (r GetAuditResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetAuditResponseObject

type GetAuditResponseObject interface {
	VisitGetAuditResponse(w http.ResponseWriter) error
}

type GetDiff200JSONResponse

type GetDiff200JSONResponse Diff

func (GetDiff200JSONResponse) VisitGetDiffResponse

func (response GetDiff200JSONResponse) VisitGetDiffResponse(w http.ResponseWriter) error

type GetDiff400ApplicationProblemPlusJSONResponse

type GetDiff400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetDiff400ApplicationProblemPlusJSONResponse) VisitGetDiffResponse

func (response GetDiff400ApplicationProblemPlusJSONResponse) VisitGetDiffResponse(w http.ResponseWriter) error

type GetDiff401ApplicationProblemPlusJSONResponse

type GetDiff401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetDiff401ApplicationProblemPlusJSONResponse) VisitGetDiffResponse

func (response GetDiff401ApplicationProblemPlusJSONResponse) VisitGetDiffResponse(w http.ResponseWriter) error

type GetDiff403ApplicationProblemPlusJSONResponse

type GetDiff403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetDiff403ApplicationProblemPlusJSONResponse) VisitGetDiffResponse

func (response GetDiff403ApplicationProblemPlusJSONResponse) VisitGetDiffResponse(w http.ResponseWriter) error

type GetDiff500ApplicationProblemPlusJSONResponse

type GetDiff500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetDiff500ApplicationProblemPlusJSONResponse) VisitGetDiffResponse

func (response GetDiff500ApplicationProblemPlusJSONResponse) VisitGetDiffResponse(w http.ResponseWriter) error

type GetDiff503ApplicationProblemPlusJSONResponse

type GetDiff503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetDiff503ApplicationProblemPlusJSONResponse) VisitGetDiffResponse

func (response GetDiff503ApplicationProblemPlusJSONResponse) VisitGetDiffResponse(w http.ResponseWriter) error

type GetDiffParams

type GetDiffParams struct {
	Mode  GetDiffParamsMode `form:"mode" json:"mode"`
	Left  *string           `form:"left,omitempty" json:"left,omitempty"`
	Right *string           `form:"right,omitempty" json:"right,omitempty"`
}

GetDiffParams defines parameters for GetDiff.

type GetDiffParamsMode

type GetDiffParamsMode string

GetDiffParamsMode defines parameters for GetDiff.

const (
	EnvEnv         GetDiffParamsMode = "env-env"
	GitLive        GetDiffParamsMode = "git-live"
	Policy         GetDiffParamsMode = "policy"
	ReleaseRelease GetDiffParamsMode = "release-release"
	Rendered       GetDiffParamsMode = "rendered"
)

Defines values for GetDiffParamsMode.

func (GetDiffParamsMode) Valid

func (e GetDiffParamsMode) Valid() bool

Valid indicates whether the value is a known member of the GetDiffParamsMode enum.

type GetDiffRequestObject

type GetDiffRequestObject struct {
	Params GetDiffParams
}

type GetDiffResponse

type GetDiffResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *Diff
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetDiffResponse

func ParseGetDiffResponse(rsp *http.Response) (*GetDiffResponse, error)

ParseGetDiffResponse parses an HTTP response from a GetDiffWithResponse call

func (GetDiffResponse) ContentType

func (r GetDiffResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDiffResponse) Status

func (r GetDiffResponse) Status() string

Status returns HTTPResponse.Status

func (GetDiffResponse) StatusCode

func (r GetDiffResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDiffResponseObject

type GetDiffResponseObject interface {
	VisitGetDiffResponse(w http.ResponseWriter) error
}

type GetEnvironments200JSONResponse

type GetEnvironments200JSONResponse []Environment

func (GetEnvironments200JSONResponse) VisitGetEnvironmentsResponse

func (response GetEnvironments200JSONResponse) VisitGetEnvironmentsResponse(w http.ResponseWriter) error

type GetEnvironments400ApplicationProblemPlusJSONResponse

type GetEnvironments400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetEnvironments400ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse

func (response GetEnvironments400ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse(w http.ResponseWriter) error

type GetEnvironments401ApplicationProblemPlusJSONResponse

type GetEnvironments401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetEnvironments401ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse

func (response GetEnvironments401ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse(w http.ResponseWriter) error

type GetEnvironments403ApplicationProblemPlusJSONResponse

type GetEnvironments403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetEnvironments403ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse

func (response GetEnvironments403ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse(w http.ResponseWriter) error

type GetEnvironments500ApplicationProblemPlusJSONResponse

type GetEnvironments500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetEnvironments500ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse

func (response GetEnvironments500ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse(w http.ResponseWriter) error

type GetEnvironments503ApplicationProblemPlusJSONResponse

type GetEnvironments503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetEnvironments503ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse

func (response GetEnvironments503ApplicationProblemPlusJSONResponse) VisitGetEnvironmentsResponse(w http.ResponseWriter) error

type GetEnvironmentsRequestObject

type GetEnvironmentsRequestObject struct {
}

type GetEnvironmentsResponse

type GetEnvironmentsResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *[]Environment
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetEnvironmentsResponse

func ParseGetEnvironmentsResponse(rsp *http.Response) (*GetEnvironmentsResponse, error)

ParseGetEnvironmentsResponse parses an HTTP response from a GetEnvironmentsWithResponse call

func (GetEnvironmentsResponse) ContentType

func (r GetEnvironmentsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetEnvironmentsResponse) Status

func (r GetEnvironmentsResponse) Status() string

Status returns HTTPResponse.Status

func (GetEnvironmentsResponse) StatusCode

func (r GetEnvironmentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetEnvironmentsResponseObject

type GetEnvironmentsResponseObject interface {
	VisitGetEnvironmentsResponse(w http.ResponseWriter) error
}

type GetPromotions200JSONResponse

type GetPromotions200JSONResponse []Promotion

func (GetPromotions200JSONResponse) VisitGetPromotionsResponse

func (response GetPromotions200JSONResponse) VisitGetPromotionsResponse(w http.ResponseWriter) error

type GetPromotions400ApplicationProblemPlusJSONResponse

type GetPromotions400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetPromotions400ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse

func (response GetPromotions400ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse(w http.ResponseWriter) error

type GetPromotions401ApplicationProblemPlusJSONResponse

type GetPromotions401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetPromotions401ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse

func (response GetPromotions401ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse(w http.ResponseWriter) error

type GetPromotions403ApplicationProblemPlusJSONResponse

type GetPromotions403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetPromotions403ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse

func (response GetPromotions403ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse(w http.ResponseWriter) error

type GetPromotions500ApplicationProblemPlusJSONResponse

type GetPromotions500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetPromotions500ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse

func (response GetPromotions500ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse(w http.ResponseWriter) error

type GetPromotions503ApplicationProblemPlusJSONResponse

type GetPromotions503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetPromotions503ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse

func (response GetPromotions503ApplicationProblemPlusJSONResponse) VisitGetPromotionsResponse(w http.ResponseWriter) error

type GetPromotionsID200JSONResponse

type GetPromotionsID200JSONResponse Promotion

func (GetPromotionsID200JSONResponse) VisitGetPromotionsIDResponse

func (response GetPromotionsID200JSONResponse) VisitGetPromotionsIDResponse(w http.ResponseWriter) error

type GetPromotionsID400ApplicationProblemPlusJSONResponse

type GetPromotionsID400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetPromotionsID400ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse

func (response GetPromotionsID400ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse(w http.ResponseWriter) error

type GetPromotionsID401ApplicationProblemPlusJSONResponse

type GetPromotionsID401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetPromotionsID401ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse

func (response GetPromotionsID401ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse(w http.ResponseWriter) error

type GetPromotionsID403ApplicationProblemPlusJSONResponse

type GetPromotionsID403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetPromotionsID403ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse

func (response GetPromotionsID403ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse(w http.ResponseWriter) error

type GetPromotionsID404ApplicationProblemPlusJSONResponse

type GetPromotionsID404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetPromotionsID404ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse

func (response GetPromotionsID404ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse(w http.ResponseWriter) error

type GetPromotionsID500ApplicationProblemPlusJSONResponse

type GetPromotionsID500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetPromotionsID500ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse

func (response GetPromotionsID500ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse(w http.ResponseWriter) error

type GetPromotionsID503ApplicationProblemPlusJSONResponse

type GetPromotionsID503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetPromotionsID503ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse

func (response GetPromotionsID503ApplicationProblemPlusJSONResponse) VisitGetPromotionsIDResponse(w http.ResponseWriter) error

type GetPromotionsIDRequestObject

type GetPromotionsIDRequestObject struct {
	ID ID `json:"id"`
}

type GetPromotionsIDResponse

type GetPromotionsIDResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *Promotion
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON404 *NotFound
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetPromotionsIDResponse

func ParseGetPromotionsIDResponse(rsp *http.Response) (*GetPromotionsIDResponse, error)

ParseGetPromotionsIDResponse parses an HTTP response from a GetPromotionsIDWithResponse call

func (GetPromotionsIDResponse) ContentType

func (r GetPromotionsIDResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPromotionsIDResponse) Status

func (r GetPromotionsIDResponse) Status() string

Status returns HTTPResponse.Status

func (GetPromotionsIDResponse) StatusCode

func (r GetPromotionsIDResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPromotionsIDResponseObject

type GetPromotionsIDResponseObject interface {
	VisitGetPromotionsIDResponse(w http.ResponseWriter) error
}

type GetPromotionsParams

type GetPromotionsParams struct {
	State *GetPromotionsParamsState `form:"state,omitempty" json:"state,omitempty"`
}

GetPromotionsParams defines parameters for GetPromotions.

type GetPromotionsParamsState

type GetPromotionsParamsState string

GetPromotionsParamsState defines parameters for GetPromotions.

const (
	GetPromotionsParamsStateActive  GetPromotionsParamsState = "active"
	GetPromotionsParamsStateBlocked GetPromotionsParamsState = "blocked"
	GetPromotionsParamsStateHistory GetPromotionsParamsState = "history"
	GetPromotionsParamsStateMine    GetPromotionsParamsState = "mine"
)

Defines values for GetPromotionsParamsState.

func (GetPromotionsParamsState) Valid

func (e GetPromotionsParamsState) Valid() bool

Valid indicates whether the value is a known member of the GetPromotionsParamsState enum.

type GetPromotionsRequestObject

type GetPromotionsRequestObject struct {
	Params GetPromotionsParams
}

type GetPromotionsResponse

type GetPromotionsResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *[]Promotion
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetPromotionsResponse

func ParseGetPromotionsResponse(rsp *http.Response) (*GetPromotionsResponse, error)

ParseGetPromotionsResponse parses an HTTP response from a GetPromotionsWithResponse call

func (GetPromotionsResponse) ContentType

func (r GetPromotionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetPromotionsResponse) Status

func (r GetPromotionsResponse) Status() string

Status returns HTTPResponse.Status

func (GetPromotionsResponse) StatusCode

func (r GetPromotionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPromotionsResponseObject

type GetPromotionsResponseObject interface {
	VisitGetPromotionsResponse(w http.ResponseWriter) error
}

type GetReleases200JSONResponse

type GetReleases200JSONResponse []Release

func (GetReleases200JSONResponse) VisitGetReleasesResponse

func (response GetReleases200JSONResponse) VisitGetReleasesResponse(w http.ResponseWriter) error

type GetReleases400ApplicationProblemPlusJSONResponse

type GetReleases400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetReleases400ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse

func (response GetReleases400ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse(w http.ResponseWriter) error

type GetReleases401ApplicationProblemPlusJSONResponse

type GetReleases401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetReleases401ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse

func (response GetReleases401ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse(w http.ResponseWriter) error

type GetReleases403ApplicationProblemPlusJSONResponse

type GetReleases403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetReleases403ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse

func (response GetReleases403ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse(w http.ResponseWriter) error

type GetReleases500ApplicationProblemPlusJSONResponse

type GetReleases500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetReleases500ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse

func (response GetReleases500ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse(w http.ResponseWriter) error

type GetReleases503ApplicationProblemPlusJSONResponse

type GetReleases503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetReleases503ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse

func (response GetReleases503ApplicationProblemPlusJSONResponse) VisitGetReleasesResponse(w http.ResponseWriter) error

type GetReleasesParams

type GetReleasesParams struct {
	Project *Project `form:"project,omitempty" json:"project,omitempty"`
}

GetReleasesParams defines parameters for GetReleases.

type GetReleasesRequestObject

type GetReleasesRequestObject struct {
	Params GetReleasesParams
}

type GetReleasesResponse

type GetReleasesResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *[]Release
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetReleasesResponse

func ParseGetReleasesResponse(rsp *http.Response) (*GetReleasesResponse, error)

ParseGetReleasesResponse parses an HTTP response from a GetReleasesWithResponse call

func (GetReleasesResponse) ContentType

func (r GetReleasesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetReleasesResponse) Status

func (r GetReleasesResponse) Status() string

Status returns HTTPResponse.Status

func (GetReleasesResponse) StatusCode

func (r GetReleasesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetReleasesResponseObject

type GetReleasesResponseObject interface {
	VisitGetReleasesResponse(w http.ResponseWriter) error
}

type GetTargets200JSONResponse

type GetTargets200JSONResponse []DeploymentTarget

func (GetTargets200JSONResponse) VisitGetTargetsResponse

func (response GetTargets200JSONResponse) VisitGetTargetsResponse(w http.ResponseWriter) error

type GetTargets400ApplicationProblemPlusJSONResponse

type GetTargets400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetTargets400ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse

func (response GetTargets400ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse(w http.ResponseWriter) error

type GetTargets401ApplicationProblemPlusJSONResponse

type GetTargets401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetTargets401ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse

func (response GetTargets401ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse(w http.ResponseWriter) error

type GetTargets403ApplicationProblemPlusJSONResponse

type GetTargets403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetTargets403ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse

func (response GetTargets403ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse(w http.ResponseWriter) error

type GetTargets500ApplicationProblemPlusJSONResponse

type GetTargets500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetTargets500ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse

func (response GetTargets500ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse(w http.ResponseWriter) error

type GetTargets503ApplicationProblemPlusJSONResponse

type GetTargets503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetTargets503ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse

func (response GetTargets503ApplicationProblemPlusJSONResponse) VisitGetTargetsResponse(w http.ResponseWriter) error

type GetTargetsNameDrift200JSONResponse

type GetTargetsNameDrift200JSONResponse Diff

func (GetTargetsNameDrift200JSONResponse) VisitGetTargetsNameDriftResponse

func (response GetTargetsNameDrift200JSONResponse) VisitGetTargetsNameDriftResponse(w http.ResponseWriter) error

type GetTargetsNameDrift400ApplicationProblemPlusJSONResponse

type GetTargetsNameDrift400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetTargetsNameDrift400ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse

func (response GetTargetsNameDrift400ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse(w http.ResponseWriter) error

type GetTargetsNameDrift401ApplicationProblemPlusJSONResponse

type GetTargetsNameDrift401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetTargetsNameDrift401ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse

func (response GetTargetsNameDrift401ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse(w http.ResponseWriter) error

type GetTargetsNameDrift403ApplicationProblemPlusJSONResponse

type GetTargetsNameDrift403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetTargetsNameDrift403ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse

func (response GetTargetsNameDrift403ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse(w http.ResponseWriter) error

type GetTargetsNameDrift404ApplicationProblemPlusJSONResponse

type GetTargetsNameDrift404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetTargetsNameDrift404ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse

func (response GetTargetsNameDrift404ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse(w http.ResponseWriter) error

type GetTargetsNameDrift500ApplicationProblemPlusJSONResponse

type GetTargetsNameDrift500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetTargetsNameDrift500ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse

func (response GetTargetsNameDrift500ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse(w http.ResponseWriter) error

type GetTargetsNameDrift503ApplicationProblemPlusJSONResponse

type GetTargetsNameDrift503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetTargetsNameDrift503ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse

func (response GetTargetsNameDrift503ApplicationProblemPlusJSONResponse) VisitGetTargetsNameDriftResponse(w http.ResponseWriter) error

type GetTargetsNameDriftRequestObject

type GetTargetsNameDriftRequestObject struct {
	Name Name `json:"name"`
}

type GetTargetsNameDriftResponse

type GetTargetsNameDriftResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *Diff
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON404 *NotFound
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetTargetsNameDriftResponse

func ParseGetTargetsNameDriftResponse(rsp *http.Response) (*GetTargetsNameDriftResponse, error)

ParseGetTargetsNameDriftResponse parses an HTTP response from a GetTargetsNameDriftWithResponse call

func (GetTargetsNameDriftResponse) ContentType

func (r GetTargetsNameDriftResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTargetsNameDriftResponse) Status

Status returns HTTPResponse.Status

func (GetTargetsNameDriftResponse) StatusCode

func (r GetTargetsNameDriftResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTargetsNameDriftResponseObject

type GetTargetsNameDriftResponseObject interface {
	VisitGetTargetsNameDriftResponse(w http.ResponseWriter) error
}

type GetTargetsNameHealth200JSONResponse

type GetTargetsNameHealth200JSONResponse []HealthCheck

func (GetTargetsNameHealth200JSONResponse) VisitGetTargetsNameHealthResponse

func (response GetTargetsNameHealth200JSONResponse) VisitGetTargetsNameHealthResponse(w http.ResponseWriter) error

type GetTargetsNameHealth400ApplicationProblemPlusJSONResponse

type GetTargetsNameHealth400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetTargetsNameHealth400ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse

func (response GetTargetsNameHealth400ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse(w http.ResponseWriter) error

type GetTargetsNameHealth401ApplicationProblemPlusJSONResponse

type GetTargetsNameHealth401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (GetTargetsNameHealth401ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse

func (response GetTargetsNameHealth401ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse(w http.ResponseWriter) error

type GetTargetsNameHealth403ApplicationProblemPlusJSONResponse

type GetTargetsNameHealth403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (GetTargetsNameHealth403ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse

func (response GetTargetsNameHealth403ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse(w http.ResponseWriter) error

type GetTargetsNameHealth404ApplicationProblemPlusJSONResponse

type GetTargetsNameHealth404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetTargetsNameHealth404ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse

func (response GetTargetsNameHealth404ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse(w http.ResponseWriter) error

type GetTargetsNameHealth500ApplicationProblemPlusJSONResponse

type GetTargetsNameHealth500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (GetTargetsNameHealth500ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse

func (response GetTargetsNameHealth500ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse(w http.ResponseWriter) error

type GetTargetsNameHealth503ApplicationProblemPlusJSONResponse

type GetTargetsNameHealth503ApplicationProblemPlusJSONResponse struct {
	UnavailableApplicationProblemPlusJSONResponse
}

func (GetTargetsNameHealth503ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse

func (response GetTargetsNameHealth503ApplicationProblemPlusJSONResponse) VisitGetTargetsNameHealthResponse(w http.ResponseWriter) error

type GetTargetsNameHealthRequestObject

type GetTargetsNameHealthRequestObject struct {
	Name Name `json:"name"`
}

type GetTargetsNameHealthResponse

type GetTargetsNameHealthResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *[]HealthCheck
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON404 *NotFound
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetTargetsNameHealthResponse

func ParseGetTargetsNameHealthResponse(rsp *http.Response) (*GetTargetsNameHealthResponse, error)

ParseGetTargetsNameHealthResponse parses an HTTP response from a GetTargetsNameHealthWithResponse call

func (GetTargetsNameHealthResponse) ContentType

func (r GetTargetsNameHealthResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTargetsNameHealthResponse) Status

Status returns HTTPResponse.Status

func (GetTargetsNameHealthResponse) StatusCode

func (r GetTargetsNameHealthResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTargetsNameHealthResponseObject

type GetTargetsNameHealthResponseObject interface {
	VisitGetTargetsNameHealthResponse(w http.ResponseWriter) error
}

type GetTargetsRequestObject

type GetTargetsRequestObject struct {
}

type GetTargetsResponse

type GetTargetsResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *[]DeploymentTarget
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON503 *Unavailable
}

func ParseGetTargetsResponse

func ParseGetTargetsResponse(rsp *http.Response) (*GetTargetsResponse, error)

ParseGetTargetsResponse parses an HTTP response from a GetTargetsWithResponse call

func (GetTargetsResponse) ContentType

func (r GetTargetsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTargetsResponse) Status

func (r GetTargetsResponse) Status() string

Status returns HTTPResponse.Status

func (GetTargetsResponse) StatusCode

func (r GetTargetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetTargetsResponseObject

type GetTargetsResponseObject interface {
	VisitGetTargetsResponse(w http.ResponseWriter) error
}

type HealthCheck

type HealthCheck struct {
	LastProbe *time.Time `json:"lastProbe,omitempty"`
	Message   *string    `json:"message,omitempty"`
	Resource  string     `json:"resource"`

	// Status Canonical status vocabulary (see ui-design-spec §3.1).
	Status Status `json:"status"`
}

HealthCheck defines model for HealthCheck.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ID

type ID = string

ID defines model for id.

type IdempotencyKey

type IdempotencyKey = string

IdempotencyKey defines model for idempotencyKey.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type Limit

type Limit = int

Limit defines model for limit.

type Matrix

type Matrix struct {
	// AsOf Snapshot freshness; matrix is eventually consistent (ADR 0005).
	AsOf time.Time `json:"asOf"`

	// Columns Ordered env×region column headers.
	Columns []struct {
		Env     *string `json:"env,omitempty"`
		Lagging *bool   `json:"lagging,omitempty"`
		Region  *string `json:"region,omitempty"`
	} `json:"columns"`
	Rows []MatrixRow `json:"rows"`
}

Matrix defines model for Matrix.

type MatrixCell

type MatrixCell struct {
	Drift    *bool      `json:"drift,omitempty"`
	Env      *string    `json:"env,omitempty"`
	LastSync *time.Time `json:"lastSync,omitempty"`
	Region   *string    `json:"region,omitempty"`

	// Status Canonical status vocabulary (see ui-design-spec §3.1).
	Status    Status  `json:"status"`
	TargetRef *string `json:"targetRef,omitempty"`
	Version   *string `json:"version,omitempty"`
}

MatrixCell defines model for MatrixCell.

type MatrixRow

type MatrixRow struct {
	// Application Natural key (name) — used for display and addressing.
	Application string       `json:"application"`
	Cells       []MatrixCell `json:"cells"`

	// Ulid Durable identity for history-linking; survives rename. Not used for addressing.
	Ulid *string `json:"ulid,omitempty"`
}

MatrixRow defines model for MatrixRow.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type Name

type Name = string

Name defines model for name.

type NotFound

type NotFound = Problem

NotFound RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type NotFoundApplicationProblemPlusJSONResponse

type NotFoundApplicationProblemPlusJSONResponse Problem

type NotImplemented

type NotImplemented = Problem

NotImplemented RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type NotImplementedApplicationProblemPlusJSONResponse

type NotImplementedApplicationProblemPlusJSONResponse Problem

type PostPromotions202JSONResponse

type PostPromotions202JSONResponse Promotion

func (PostPromotions202JSONResponse) VisitPostPromotionsResponse

func (response PostPromotions202JSONResponse) VisitPostPromotionsResponse(w http.ResponseWriter) error

type PostPromotions400ApplicationProblemPlusJSONResponse

type PostPromotions400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (PostPromotions400ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse

func (response PostPromotions400ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse(w http.ResponseWriter) error

type PostPromotions401ApplicationProblemPlusJSONResponse

type PostPromotions401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (PostPromotions401ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse

func (response PostPromotions401ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse(w http.ResponseWriter) error

type PostPromotions403ApplicationProblemPlusJSONResponse

type PostPromotions403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (PostPromotions403ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse

func (response PostPromotions403ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse(w http.ResponseWriter) error

type PostPromotions404ApplicationProblemPlusJSONResponse

type PostPromotions404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (PostPromotions404ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse

func (response PostPromotions404ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse(w http.ResponseWriter) error

type PostPromotions409ApplicationProblemPlusJSONResponse

type PostPromotions409ApplicationProblemPlusJSONResponse struct {
	ConflictApplicationProblemPlusJSONResponse
}

func (PostPromotions409ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse

func (response PostPromotions409ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse(w http.ResponseWriter) error

type PostPromotions429ApplicationProblemPlusJSONResponse

type PostPromotions429ApplicationProblemPlusJSONResponse struct {
	TooManyRequestsApplicationProblemPlusJSONResponse
}

func (PostPromotions429ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse

func (response PostPromotions429ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse(w http.ResponseWriter) error

type PostPromotions500ApplicationProblemPlusJSONResponse

type PostPromotions500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (PostPromotions500ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse

func (response PostPromotions500ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse(w http.ResponseWriter) error

type PostPromotions501ApplicationProblemPlusJSONResponse

type PostPromotions501ApplicationProblemPlusJSONResponse struct {
	NotImplementedApplicationProblemPlusJSONResponse
}

func (PostPromotions501ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse

func (response PostPromotions501ApplicationProblemPlusJSONResponse) VisitPostPromotionsResponse(w http.ResponseWriter) error

type PostPromotionsIDApprove200JSONResponse

type PostPromotionsIDApprove200JSONResponse Promotion

func (PostPromotionsIDApprove200JSONResponse) VisitPostPromotionsIDApproveResponse

func (response PostPromotionsIDApprove200JSONResponse) VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error

type PostPromotionsIDApprove400ApplicationProblemPlusJSONResponse

type PostPromotionsIDApprove400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDApprove400ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse

func (response PostPromotionsIDApprove400ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error

type PostPromotionsIDApprove401ApplicationProblemPlusJSONResponse

type PostPromotionsIDApprove401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDApprove401ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse

func (response PostPromotionsIDApprove401ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error

type PostPromotionsIDApprove403ApplicationProblemPlusJSONResponse

type PostPromotionsIDApprove403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDApprove403ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse

func (response PostPromotionsIDApprove403ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error

type PostPromotionsIDApprove404ApplicationProblemPlusJSONResponse

type PostPromotionsIDApprove404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDApprove404ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse

func (response PostPromotionsIDApprove404ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error

type PostPromotionsIDApprove409ApplicationProblemPlusJSONResponse

type PostPromotionsIDApprove409ApplicationProblemPlusJSONResponse struct {
	ConflictApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDApprove409ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse

func (response PostPromotionsIDApprove409ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error

type PostPromotionsIDApprove429ApplicationProblemPlusJSONResponse

type PostPromotionsIDApprove429ApplicationProblemPlusJSONResponse struct {
	TooManyRequestsApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDApprove429ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse

func (response PostPromotionsIDApprove429ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error

type PostPromotionsIDApprove500ApplicationProblemPlusJSONResponse

type PostPromotionsIDApprove500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDApprove500ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse

func (response PostPromotionsIDApprove500ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error

type PostPromotionsIDApprove501ApplicationProblemPlusJSONResponse

type PostPromotionsIDApprove501ApplicationProblemPlusJSONResponse struct {
	NotImplementedApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDApprove501ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse

func (response PostPromotionsIDApprove501ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error

type PostPromotionsIDApproveJSONBody

type PostPromotionsIDApproveJSONBody struct {
	Comment  *string                                 `json:"comment,omitempty"`
	Decision PostPromotionsIDApproveJSONBodyDecision `json:"decision"`
}

PostPromotionsIDApproveJSONBody defines parameters for PostPromotionsIDApprove.

type PostPromotionsIDApproveJSONBodyDecision

type PostPromotionsIDApproveJSONBodyDecision string

PostPromotionsIDApproveJSONBodyDecision defines parameters for PostPromotionsIDApprove.

Defines values for PostPromotionsIDApproveJSONBodyDecision.

func (PostPromotionsIDApproveJSONBodyDecision) Valid

Valid indicates whether the value is a known member of the PostPromotionsIDApproveJSONBodyDecision enum.

type PostPromotionsIDApproveJSONRequestBody

type PostPromotionsIDApproveJSONRequestBody PostPromotionsIDApproveJSONBody

PostPromotionsIDApproveJSONRequestBody defines body for PostPromotionsIDApprove for application/json ContentType.

type PostPromotionsIDApproveParams

type PostPromotionsIDApproveParams struct {
	// IdempotencyKey Client-chosen idempotency key (ADR 0009 §3). Replaying a key returns the original response without repeating the effect; reuse with a different body yields 409.
	IdempotencyKey *IdempotencyKey `json:"Idempotency-Key,omitempty"`
}

PostPromotionsIDApproveParams defines parameters for PostPromotionsIDApprove.

type PostPromotionsIDApproveRequestObject

type PostPromotionsIDApproveRequestObject struct {
	ID     ID `json:"id"`
	Params PostPromotionsIDApproveParams
	Body   *PostPromotionsIDApproveJSONRequestBody
}

type PostPromotionsIDApproveResponse

type PostPromotionsIDApproveResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON200                   *Promotion
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON404 *NotFound
	ApplicationProblemJSON409 *Conflict
	ApplicationProblemJSON429 *TooManyRequests
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON501 *NotImplemented
}

func ParsePostPromotionsIDApproveResponse

func ParsePostPromotionsIDApproveResponse(rsp *http.Response) (*PostPromotionsIDApproveResponse, error)

ParsePostPromotionsIDApproveResponse parses an HTTP response from a PostPromotionsIDApproveWithResponse call

func (PostPromotionsIDApproveResponse) ContentType

func (r PostPromotionsIDApproveResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostPromotionsIDApproveResponse) Status

Status returns HTTPResponse.Status

func (PostPromotionsIDApproveResponse) StatusCode

func (r PostPromotionsIDApproveResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostPromotionsIDApproveResponseObject

type PostPromotionsIDApproveResponseObject interface {
	VisitPostPromotionsIDApproveResponse(w http.ResponseWriter) error
}

type PostPromotionsIDCancel202JSONResponse

type PostPromotionsIDCancel202JSONResponse Promotion

func (PostPromotionsIDCancel202JSONResponse) VisitPostPromotionsIDCancelResponse

func (response PostPromotionsIDCancel202JSONResponse) VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error

type PostPromotionsIDCancel400ApplicationProblemPlusJSONResponse

type PostPromotionsIDCancel400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDCancel400ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse

func (response PostPromotionsIDCancel400ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error

type PostPromotionsIDCancel401ApplicationProblemPlusJSONResponse

type PostPromotionsIDCancel401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDCancel401ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse

func (response PostPromotionsIDCancel401ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error

type PostPromotionsIDCancel403ApplicationProblemPlusJSONResponse

type PostPromotionsIDCancel403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDCancel403ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse

func (response PostPromotionsIDCancel403ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error

type PostPromotionsIDCancel404ApplicationProblemPlusJSONResponse

type PostPromotionsIDCancel404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDCancel404ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse

func (response PostPromotionsIDCancel404ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error

type PostPromotionsIDCancel409ApplicationProblemPlusJSONResponse

type PostPromotionsIDCancel409ApplicationProblemPlusJSONResponse struct {
	ConflictApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDCancel409ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse

func (response PostPromotionsIDCancel409ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error

type PostPromotionsIDCancel429ApplicationProblemPlusJSONResponse

type PostPromotionsIDCancel429ApplicationProblemPlusJSONResponse struct {
	TooManyRequestsApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDCancel429ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse

func (response PostPromotionsIDCancel429ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error

type PostPromotionsIDCancel500ApplicationProblemPlusJSONResponse

type PostPromotionsIDCancel500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDCancel500ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse

func (response PostPromotionsIDCancel500ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error

type PostPromotionsIDCancel501ApplicationProblemPlusJSONResponse

type PostPromotionsIDCancel501ApplicationProblemPlusJSONResponse struct {
	NotImplementedApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDCancel501ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse

func (response PostPromotionsIDCancel501ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error

type PostPromotionsIDCancelParams

type PostPromotionsIDCancelParams struct {
	// IdempotencyKey Client-chosen idempotency key (ADR 0009 §3). Replaying a key returns the original response without repeating the effect; reuse with a different body yields 409.
	IdempotencyKey *IdempotencyKey `json:"Idempotency-Key,omitempty"`
}

PostPromotionsIDCancelParams defines parameters for PostPromotionsIDCancel.

type PostPromotionsIDCancelRequestObject

type PostPromotionsIDCancelRequestObject struct {
	ID     ID `json:"id"`
	Params PostPromotionsIDCancelParams
}

type PostPromotionsIDCancelResponse

type PostPromotionsIDCancelResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON202                   *Promotion
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON404 *NotFound
	ApplicationProblemJSON409 *Conflict
	ApplicationProblemJSON429 *TooManyRequests
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON501 *NotImplemented
}

func ParsePostPromotionsIDCancelResponse

func ParsePostPromotionsIDCancelResponse(rsp *http.Response) (*PostPromotionsIDCancelResponse, error)

ParsePostPromotionsIDCancelResponse parses an HTTP response from a PostPromotionsIDCancelWithResponse call

func (PostPromotionsIDCancelResponse) ContentType

func (r PostPromotionsIDCancelResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostPromotionsIDCancelResponse) Status

Status returns HTTPResponse.Status

func (PostPromotionsIDCancelResponse) StatusCode

func (r PostPromotionsIDCancelResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostPromotionsIDCancelResponseObject

type PostPromotionsIDCancelResponseObject interface {
	VisitPostPromotionsIDCancelResponse(w http.ResponseWriter) error
}

type PostPromotionsIDRetry202JSONResponse

type PostPromotionsIDRetry202JSONResponse Promotion

func (PostPromotionsIDRetry202JSONResponse) VisitPostPromotionsIDRetryResponse

func (response PostPromotionsIDRetry202JSONResponse) VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error

type PostPromotionsIDRetry400ApplicationProblemPlusJSONResponse

type PostPromotionsIDRetry400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDRetry400ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse

func (response PostPromotionsIDRetry400ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error

type PostPromotionsIDRetry401ApplicationProblemPlusJSONResponse

type PostPromotionsIDRetry401ApplicationProblemPlusJSONResponse struct {
	UnauthenticatedApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDRetry401ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse

func (response PostPromotionsIDRetry401ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error

type PostPromotionsIDRetry403ApplicationProblemPlusJSONResponse

type PostPromotionsIDRetry403ApplicationProblemPlusJSONResponse struct {
	ForbiddenApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDRetry403ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse

func (response PostPromotionsIDRetry403ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error

type PostPromotionsIDRetry404ApplicationProblemPlusJSONResponse

type PostPromotionsIDRetry404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDRetry404ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse

func (response PostPromotionsIDRetry404ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error

type PostPromotionsIDRetry409ApplicationProblemPlusJSONResponse

type PostPromotionsIDRetry409ApplicationProblemPlusJSONResponse struct {
	ConflictApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDRetry409ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse

func (response PostPromotionsIDRetry409ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error

type PostPromotionsIDRetry429ApplicationProblemPlusJSONResponse

type PostPromotionsIDRetry429ApplicationProblemPlusJSONResponse struct {
	TooManyRequestsApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDRetry429ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse

func (response PostPromotionsIDRetry429ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error

type PostPromotionsIDRetry500ApplicationProblemPlusJSONResponse

type PostPromotionsIDRetry500ApplicationProblemPlusJSONResponse struct {
	DegradedApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDRetry500ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse

func (response PostPromotionsIDRetry500ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error

type PostPromotionsIDRetry501ApplicationProblemPlusJSONResponse

type PostPromotionsIDRetry501ApplicationProblemPlusJSONResponse struct {
	NotImplementedApplicationProblemPlusJSONResponse
}

func (PostPromotionsIDRetry501ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse

func (response PostPromotionsIDRetry501ApplicationProblemPlusJSONResponse) VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error

type PostPromotionsIDRetryParams

type PostPromotionsIDRetryParams struct {
	// IdempotencyKey Client-chosen idempotency key (ADR 0009 §3). Replaying a key returns the original response without repeating the effect; reuse with a different body yields 409.
	IdempotencyKey *IdempotencyKey `json:"Idempotency-Key,omitempty"`
}

PostPromotionsIDRetryParams defines parameters for PostPromotionsIDRetry.

type PostPromotionsIDRetryRequestObject

type PostPromotionsIDRetryRequestObject struct {
	ID     ID `json:"id"`
	Params PostPromotionsIDRetryParams
}

type PostPromotionsIDRetryResponse

type PostPromotionsIDRetryResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON202                   *Promotion
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON404 *NotFound
	ApplicationProblemJSON409 *Conflict
	ApplicationProblemJSON429 *TooManyRequests
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON501 *NotImplemented
}

func ParsePostPromotionsIDRetryResponse

func ParsePostPromotionsIDRetryResponse(rsp *http.Response) (*PostPromotionsIDRetryResponse, error)

ParsePostPromotionsIDRetryResponse parses an HTTP response from a PostPromotionsIDRetryWithResponse call

func (PostPromotionsIDRetryResponse) ContentType

func (r PostPromotionsIDRetryResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostPromotionsIDRetryResponse) Status

Status returns HTTPResponse.Status

func (PostPromotionsIDRetryResponse) StatusCode

func (r PostPromotionsIDRetryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostPromotionsIDRetryResponseObject

type PostPromotionsIDRetryResponseObject interface {
	VisitPostPromotionsIDRetryResponse(w http.ResponseWriter) error
}

type PostPromotionsJSONRequestBody

type PostPromotionsJSONRequestBody = PromotionRequest

PostPromotionsJSONRequestBody defines body for PostPromotions for application/json ContentType.

type PostPromotionsParams

type PostPromotionsParams struct {
	// IdempotencyKey Client-chosen idempotency key (ADR 0009 §3). Replaying a key returns the original response without repeating the effect; reuse with a different body yields 409.
	IdempotencyKey *IdempotencyKey `json:"Idempotency-Key,omitempty"`
}

PostPromotionsParams defines parameters for PostPromotions.

type PostPromotionsRequestObject

type PostPromotionsRequestObject struct {
	Params PostPromotionsParams
	Body   *PostPromotionsJSONRequestBody
}

type PostPromotionsResponse

type PostPromotionsResponse struct {
	Body                      []byte
	HTTPResponse              *http.Response
	JSON202                   *Promotion
	ApplicationProblemJSON400 *BadRequest
	ApplicationProblemJSON401 *Unauthenticated
	ApplicationProblemJSON403 *Forbidden
	ApplicationProblemJSON404 *NotFound
	ApplicationProblemJSON409 *Conflict
	ApplicationProblemJSON429 *TooManyRequests
	ApplicationProblemJSON500 *Degraded
	ApplicationProblemJSON501 *NotImplemented
}

func ParsePostPromotionsResponse

func ParsePostPromotionsResponse(rsp *http.Response) (*PostPromotionsResponse, error)

ParsePostPromotionsResponse parses an HTTP response from a PostPromotionsWithResponse call

func (PostPromotionsResponse) ContentType

func (r PostPromotionsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PostPromotionsResponse) Status

func (r PostPromotionsResponse) Status() string

Status returns HTTPResponse.Status

func (PostPromotionsResponse) StatusCode

func (r PostPromotionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PostPromotionsResponseObject

type PostPromotionsResponseObject interface {
	VisitPostPromotionsResponse(w http.ResponseWriter) error
}

type Problem

type Problem struct {
	// AsOf On 503: freshness of the last good snapshot.
	AsOf *time.Time `json:"asOf,omitempty"`

	// Detail Human-readable explanation specific to this occurrence.
	Detail *string `json:"detail,omitempty"`

	// Errors On 400 (invalid): per-field validation problems.
	Errors *[]ProblemError `json:"errors,omitempty"`

	// Instance URI reference (the request path) for this occurrence.
	Instance *string `json:"instance,omitempty"`

	// Region On 503: the lagging/unreachable region, when known.
	Region *string `json:"region,omitempty"`

	// Resource On 403 (forbidden): the resource the verb was checked against.
	Resource *string `json:"resource,omitempty"`

	// Status HTTP status code, duplicated per RFC 9457.
	Status int `json:"status"`

	// Title Short, stable, human-readable summary of the error class.
	Title string `json:"title"`

	// Type Stable error-class URI under https://keleustes.skaphos.io/errors/<slug>, where <slug> is one of not_found, forbidden, unauthenticated, invalid, conflict, degraded, not_implemented, too_many_requests, step_up_required.
	Type string `json:"type"`

	// Verb On 403 (forbidden): the action verb the caller lacks (ADR 0004).
	Verb *string `json:"verb,omitempty"`
}

Problem RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type ProblemError

type ProblemError struct {
	// Detail What is wrong with this field.
	Detail string `json:"detail"`

	// Pointer JSON Pointer to the offending field.
	Pointer *string `json:"pointer,omitempty"`
}

ProblemError defines model for ProblemError.

type Project

type Project = string

Project defines model for project.

type Promotion

type Promotion struct {
	Application string      `json:"application"`
	Approvals   *[]Approval `json:"approvals,omitempty"`

	// From Source environment.
	From  string  `json:"from"`
	Gates *[]Gate `json:"gates,omitempty"`
	Mode  *string `json:"mode,omitempty"`

	// PrURL Git PR opened on approval (ADR 0003).
	PrURL       *string    `json:"prUrl,omitempty"`
	Release     *string    `json:"release,omitempty"`
	RequestedAt *time.Time `json:"requestedAt,omitempty"`
	RequestedBy *string    `json:"requestedBy,omitempty"`

	// Status Canonical status vocabulary (see ui-design-spec §3.1).
	Status Status     `json:"status"`
	Sync   *SyncPhase `json:"sync,omitempty"`

	// To Target environment.
	To   string `json:"to"`
	Ulid string `json:"ulid"`
}

Promotion defines model for Promotion.

type PromotionRequest

type PromotionRequest struct {
	Application string  `json:"application"`
	From        string  `json:"from"`
	Release     *string `json:"release,omitempty"`
	To          string  `json:"to"`
}

PromotionRequest defines model for PromotionRequest.

type Q

type Q = string

Q defines model for q.

type Region

type Region = string

Region defines model for region.

type Release

type Release struct {
	App        string     `json:"app"`
	Created    *time.Time `json:"created,omitempty"`
	DeployedOn *[]string  `json:"deployedOn,omitempty"`
	Provenance *struct {
		Attestation *bool `json:"attestation,omitempty"`
		Sbom        *bool `json:"sbom,omitempty"`
		Signed      *bool `json:"signed,omitempty"`
	} `json:"provenance,omitempty"`
	Source  *SourceRef `json:"source,omitempty"`
	Ulid    *string    `json:"ulid,omitempty"`
	Version string     `json:"version"`
}

Release defines model for Release.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ServeMux

type ServeMux interface {
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
	http.Handler
}

ServeMux is an abstraction of http.ServeMux.

type ServerInterface

type ServerInterface interface {
	// List applications (fleet summary)
	// (GET /applications)
	GetApplications(w http.ResponseWriter, r *http.Request, params GetApplicationsParams)
	// Get one application
	// (GET /applications/{name})
	GetApplicationsName(w http.ResponseWriter, r *http.Request, name Name)
	// Application deployment matrix (env × region cells)
	// (GET /applications/{name}/matrix)
	GetApplicationsNameMatrix(w http.ResponseWriter, r *http.Request, name string)
	// Promotions for an application
	// (GET /applications/{name}/promotions)
	GetApplicationsNamePromotions(w http.ResponseWriter, r *http.Request, name Name)
	// Releases for an application
	// (GET /applications/{name}/releases)
	GetApplicationsNameReleases(w http.ResponseWriter, r *http.Request, name Name)
	// Audit / activity event search (append-only event log)
	// (GET /audit)
	GetAudit(w http.ResponseWriter, r *http.Request, params GetAuditParams)
	// Diff between two refs
	// (GET /diff)
	GetDiff(w http.ResponseWriter, r *http.Request, params GetDiffParams)
	// Environment topology (env → cell → target)
	// (GET /environments)
	GetEnvironments(w http.ResponseWriter, r *http.Request)
	// List promotions
	// (GET /promotions)
	GetPromotions(w http.ResponseWriter, r *http.Request, params GetPromotionsParams)
	// Request a promotion (opens a Git PR on approval — ADR 0003)
	// (POST /promotions)
	PostPromotions(w http.ResponseWriter, r *http.Request, params PostPromotionsParams)
	// Get a promotion (by ULID)
	// (GET /promotions/{id})
	GetPromotionsID(w http.ResponseWriter, r *http.Request, id ID)
	// Approve or reject a promotion (state transition — ADR 0003)
	// (POST /promotions/{id}/approve)
	PostPromotionsIDApprove(w http.ResponseWriter, r *http.Request, id ID, params PostPromotionsIDApproveParams)
	// Cancel a promotion
	// (POST /promotions/{id}/cancel)
	PostPromotionsIDCancel(w http.ResponseWriter, r *http.Request, id ID, params PostPromotionsIDCancelParams)
	// Retry a failed promotion
	// (POST /promotions/{id}/retry)
	PostPromotionsIDRetry(w http.ResponseWriter, r *http.Request, id ID, params PostPromotionsIDRetryParams)
	// Release inventory
	// (GET /releases)
	GetReleases(w http.ResponseWriter, r *http.Request, params GetReleasesParams)
	// List deployment targets
	// (GET /targets)
	GetTargets(w http.ResponseWriter, r *http.Request)
	// Target drift (Git vs live)
	// (GET /targets/{name}/drift)
	GetTargetsNameDrift(w http.ResponseWriter, r *http.Request, name Name)
	// Target health
	// (GET /targets/{name}/health)
	GetTargetsNameHealth(w http.ResponseWriter, r *http.Request, name Name)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) GetApplications

func (siw *ServerInterfaceWrapper) GetApplications(w http.ResponseWriter, r *http.Request)

GetApplications operation middleware

func (*ServerInterfaceWrapper) GetApplicationsName

func (siw *ServerInterfaceWrapper) GetApplicationsName(w http.ResponseWriter, r *http.Request)

GetApplicationsName operation middleware

func (*ServerInterfaceWrapper) GetApplicationsNameMatrix

func (siw *ServerInterfaceWrapper) GetApplicationsNameMatrix(w http.ResponseWriter, r *http.Request)

GetApplicationsNameMatrix operation middleware

func (*ServerInterfaceWrapper) GetApplicationsNamePromotions

func (siw *ServerInterfaceWrapper) GetApplicationsNamePromotions(w http.ResponseWriter, r *http.Request)

GetApplicationsNamePromotions operation middleware

func (*ServerInterfaceWrapper) GetApplicationsNameReleases

func (siw *ServerInterfaceWrapper) GetApplicationsNameReleases(w http.ResponseWriter, r *http.Request)

GetApplicationsNameReleases operation middleware

func (*ServerInterfaceWrapper) GetAudit

func (siw *ServerInterfaceWrapper) GetAudit(w http.ResponseWriter, r *http.Request)

GetAudit operation middleware

func (*ServerInterfaceWrapper) GetDiff

GetDiff operation middleware

func (*ServerInterfaceWrapper) GetEnvironments

func (siw *ServerInterfaceWrapper) GetEnvironments(w http.ResponseWriter, r *http.Request)

GetEnvironments operation middleware

func (*ServerInterfaceWrapper) GetPromotions

func (siw *ServerInterfaceWrapper) GetPromotions(w http.ResponseWriter, r *http.Request)

GetPromotions operation middleware

func (*ServerInterfaceWrapper) GetPromotionsID

func (siw *ServerInterfaceWrapper) GetPromotionsID(w http.ResponseWriter, r *http.Request)

GetPromotionsID operation middleware

func (*ServerInterfaceWrapper) GetReleases

func (siw *ServerInterfaceWrapper) GetReleases(w http.ResponseWriter, r *http.Request)

GetReleases operation middleware

func (*ServerInterfaceWrapper) GetTargets

func (siw *ServerInterfaceWrapper) GetTargets(w http.ResponseWriter, r *http.Request)

GetTargets operation middleware

func (*ServerInterfaceWrapper) GetTargetsNameDrift

func (siw *ServerInterfaceWrapper) GetTargetsNameDrift(w http.ResponseWriter, r *http.Request)

GetTargetsNameDrift operation middleware

func (*ServerInterfaceWrapper) GetTargetsNameHealth

func (siw *ServerInterfaceWrapper) GetTargetsNameHealth(w http.ResponseWriter, r *http.Request)

GetTargetsNameHealth operation middleware

func (*ServerInterfaceWrapper) PostPromotions

func (siw *ServerInterfaceWrapper) PostPromotions(w http.ResponseWriter, r *http.Request)

PostPromotions operation middleware

func (*ServerInterfaceWrapper) PostPromotionsIDApprove

func (siw *ServerInterfaceWrapper) PostPromotionsIDApprove(w http.ResponseWriter, r *http.Request)

PostPromotionsIDApprove operation middleware

func (*ServerInterfaceWrapper) PostPromotionsIDCancel

func (siw *ServerInterfaceWrapper) PostPromotionsIDCancel(w http.ResponseWriter, r *http.Request)

PostPromotionsIDCancel operation middleware

func (*ServerInterfaceWrapper) PostPromotionsIDRetry

func (siw *ServerInterfaceWrapper) PostPromotionsIDRetry(w http.ResponseWriter, r *http.Request)

PostPromotionsIDRetry operation middleware

type SourceRef

type SourceRef struct {
	// Commit Last-resolved commit SHA.
	Commit *string `json:"commit,omitempty"`
	Path   *string `json:"path,omitempty"`
	Ref    *string `json:"ref,omitempty"`
	Repo   *string `json:"repo,omitempty"`
}

SourceRef defines model for SourceRef.

type Status

type Status string

Status Canonical status vocabulary (see ui-design-spec §3.1).

const (
	StatusBlocked     Status = "Blocked"
	StatusDegraded    Status = "Degraded"
	StatusDrifted     Status = "Drifted"
	StatusFailed      Status = "Failed"
	StatusFrozen      Status = "Frozen"
	StatusHealthy     Status = "Healthy"
	StatusMissing     Status = "Missing"
	StatusProgressing Status = "Progressing"
)

Defines values for Status.

func (Status) Valid

func (e Status) Valid() bool

Valid indicates whether the value is a known member of the Status enum.

type StdHTTPServerOptions

type StdHTTPServerOptions struct {
	BaseURL          string
	BaseRouter       ServeMux
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHandlerFunc

type StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// List applications (fleet summary)
	// (GET /applications)
	GetApplications(ctx context.Context, request GetApplicationsRequestObject) (GetApplicationsResponseObject, error)
	// Get one application
	// (GET /applications/{name})
	GetApplicationsName(ctx context.Context, request GetApplicationsNameRequestObject) (GetApplicationsNameResponseObject, error)
	// Application deployment matrix (env × region cells)
	// (GET /applications/{name}/matrix)
	GetApplicationsNameMatrix(ctx context.Context, request GetApplicationsNameMatrixRequestObject) (GetApplicationsNameMatrixResponseObject, error)
	// Promotions for an application
	// (GET /applications/{name}/promotions)
	GetApplicationsNamePromotions(ctx context.Context, request GetApplicationsNamePromotionsRequestObject) (GetApplicationsNamePromotionsResponseObject, error)
	// Releases for an application
	// (GET /applications/{name}/releases)
	GetApplicationsNameReleases(ctx context.Context, request GetApplicationsNameReleasesRequestObject) (GetApplicationsNameReleasesResponseObject, error)
	// Audit / activity event search (append-only event log)
	// (GET /audit)
	GetAudit(ctx context.Context, request GetAuditRequestObject) (GetAuditResponseObject, error)
	// Diff between two refs
	// (GET /diff)
	GetDiff(ctx context.Context, request GetDiffRequestObject) (GetDiffResponseObject, error)
	// Environment topology (env → cell → target)
	// (GET /environments)
	GetEnvironments(ctx context.Context, request GetEnvironmentsRequestObject) (GetEnvironmentsResponseObject, error)
	// List promotions
	// (GET /promotions)
	GetPromotions(ctx context.Context, request GetPromotionsRequestObject) (GetPromotionsResponseObject, error)
	// Request a promotion (opens a Git PR on approval — ADR 0003)
	// (POST /promotions)
	PostPromotions(ctx context.Context, request PostPromotionsRequestObject) (PostPromotionsResponseObject, error)
	// Get a promotion (by ULID)
	// (GET /promotions/{id})
	GetPromotionsID(ctx context.Context, request GetPromotionsIDRequestObject) (GetPromotionsIDResponseObject, error)
	// Approve or reject a promotion (state transition — ADR 0003)
	// (POST /promotions/{id}/approve)
	PostPromotionsIDApprove(ctx context.Context, request PostPromotionsIDApproveRequestObject) (PostPromotionsIDApproveResponseObject, error)
	// Cancel a promotion
	// (POST /promotions/{id}/cancel)
	PostPromotionsIDCancel(ctx context.Context, request PostPromotionsIDCancelRequestObject) (PostPromotionsIDCancelResponseObject, error)
	// Retry a failed promotion
	// (POST /promotions/{id}/retry)
	PostPromotionsIDRetry(ctx context.Context, request PostPromotionsIDRetryRequestObject) (PostPromotionsIDRetryResponseObject, error)
	// Release inventory
	// (GET /releases)
	GetReleases(ctx context.Context, request GetReleasesRequestObject) (GetReleasesResponseObject, error)
	// List deployment targets
	// (GET /targets)
	GetTargets(ctx context.Context, request GetTargetsRequestObject) (GetTargetsResponseObject, error)
	// Target drift (Git vs live)
	// (GET /targets/{name}/drift)
	GetTargetsNameDrift(ctx context.Context, request GetTargetsNameDriftRequestObject) (GetTargetsNameDriftResponseObject, error)
	// Target health
	// (GET /targets/{name}/health)
	GetTargetsNameHealth(ctx context.Context, request GetTargetsNameHealthRequestObject) (GetTargetsNameHealthResponseObject, error)
}

StrictServerInterface represents all server handlers.

type SyncPhase

type SyncPhase string

SyncPhase defines model for SyncPhase.

const (
	SyncPhaseError     SyncPhase = "Error"
	SyncPhaseFailed    SyncPhase = "Failed"
	SyncPhasePending   SyncPhase = "Pending"
	SyncPhaseRunning   SyncPhase = "Running"
	SyncPhaseSucceeded SyncPhase = "Succeeded"
)

Defines values for SyncPhase.

func (SyncPhase) Valid

func (e SyncPhase) Valid() bool

Valid indicates whether the value is a known member of the SyncPhase enum.

type TooManyRequests

type TooManyRequests = Problem

TooManyRequests RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type TooManyRequestsApplicationProblemPlusJSONResponse

type TooManyRequestsApplicationProblemPlusJSONResponse Problem

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type Unauthenticated

type Unauthenticated = Problem

Unauthenticated RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type UnauthenticatedApplicationProblemPlusJSONResponse

type UnauthenticatedApplicationProblemPlusJSONResponse Problem

type Unavailable

type Unavailable = Problem

Unavailable RFC 9457 Problem Details (application/problem+json). `type` is the stable machine discriminator (ADR 0009 §1); clients branch on it, never on the human-readable `detail`.

type UnavailableApplicationProblemPlusJSONResponse

type UnavailableApplicationProblemPlusJSONResponse Problem

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

Jump to

Keyboard shortcuts

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