gen

package
v0.0.0-...-681ab99 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

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

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

Index

Constants

This section is empty.

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 NewApplyConfigurationRequest

func NewApplyConfigurationRequest(server string, params *ApplyConfigurationParams, body ApplyConfigurationJSONRequestBody) (*http.Request, error)

NewApplyConfigurationRequest calls the generic ApplyConfiguration builder with application/json body

func NewApplyConfigurationRequestWithBody

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

NewApplyConfigurationRequestWithBody constructs an http.Request for the ApplyConfiguration method, with any body, and a specified content type

func NewAuthorizeBrowserHandoffRequest

func NewAuthorizeBrowserHandoffRequest(server string, params *AuthorizeBrowserHandoffParams, body AuthorizeBrowserHandoffJSONRequestBody) (*http.Request, error)

NewAuthorizeBrowserHandoffRequest calls the generic AuthorizeBrowserHandoff builder with application/json body

func NewAuthorizeBrowserHandoffRequestWithBody

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

NewAuthorizeBrowserHandoffRequestWithBody constructs an http.Request for the AuthorizeBrowserHandoff method, with any body, and a specified content type

func NewCancelJoinCodeRequest

func NewCancelJoinCodeRequest(server string, tokenId string, params *CancelJoinCodeParams) (*http.Request, error)

NewCancelJoinCodeRequest constructs an http.Request for the CancelJoinCode method

func NewClaimBrowserHandoffRequest

func NewClaimBrowserHandoffRequest(server string, body ClaimBrowserHandoffJSONRequestBody) (*http.Request, error)

NewClaimBrowserHandoffRequest calls the generic ClaimBrowserHandoff builder with application/json body

func NewClaimBrowserHandoffRequestWithBody

func NewClaimBrowserHandoffRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewClaimBrowserHandoffRequestWithBody constructs an http.Request for the ClaimBrowserHandoff method, with any body, and a specified content type

func NewCompleteGitHubAppManifestRequest

func NewCompleteGitHubAppManifestRequest(server string, params *CompleteGitHubAppManifestParams) (*http.Request, error)

NewCompleteGitHubAppManifestRequest constructs an http.Request for the CompleteGitHubAppManifest method

func NewCreateBrowserHandoffRequest

func NewCreateBrowserHandoffRequest(server string, body CreateBrowserHandoffJSONRequestBody) (*http.Request, error)

NewCreateBrowserHandoffRequest calls the generic CreateBrowserHandoff builder with application/json body

func NewCreateBrowserHandoffRequestWithBody

func NewCreateBrowserHandoffRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateBrowserHandoffRequestWithBody constructs an http.Request for the CreateBrowserHandoff method, with any body, and a specified content type

func NewCreateGitHubTargetRequest

func NewCreateGitHubTargetRequest(server string, params *CreateGitHubTargetParams, body CreateGitHubTargetJSONRequestBody) (*http.Request, error)

NewCreateGitHubTargetRequest calls the generic CreateGitHubTarget builder with application/json body

func NewCreateGitHubTargetRequestWithBody

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

NewCreateGitHubTargetRequestWithBody constructs an http.Request for the CreateGitHubTarget method, with any body, and a specified content type

func NewCreateJoinCodeRequest

func NewCreateJoinCodeRequest(server string, params *CreateJoinCodeParams, body CreateJoinCodeJSONRequestBody) (*http.Request, error)

NewCreateJoinCodeRequest calls the generic CreateJoinCode builder with application/json body

func NewCreateJoinCodeRequestWithBody

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

NewCreateJoinCodeRequestWithBody constructs an http.Request for the CreateJoinCode method, with any body, and a specified content type

func NewCreateSessionRequest

func NewCreateSessionRequest(server string, params *CreateSessionParams) (*http.Request, error)

NewCreateSessionRequest constructs an http.Request for the CreateSession method

func NewDeleteSessionRequest

func NewDeleteSessionRequest(server string, params *DeleteSessionParams) (*http.Request, error)

NewDeleteSessionRequest constructs an http.Request for the DeleteSession method

func NewDrainNodeRequest

func NewDrainNodeRequest(server string, nodeId NodeID, params *DrainNodeParams) (*http.Request, error)

NewDrainNodeRequest constructs an http.Request for the DrainNode method

func NewExportConfigurationRequest

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

NewExportConfigurationRequest constructs an http.Request for the ExportConfiguration method

func NewGetConfigurationRequest

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

NewGetConfigurationRequest constructs an http.Request for the GetConfiguration method

func NewGetOverviewRequest

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

NewGetOverviewRequest constructs an http.Request for the GetOverview method

func NewGetSessionRequest

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

NewGetSessionRequest constructs an http.Request for the GetSession method

func NewGetSetupRequest

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

NewGetSetupRequest constructs an http.Request for the GetSetup method

func NewListAuditEventsRequest

func NewListAuditEventsRequest(server string, params *ListAuditEventsParams) (*http.Request, error)

NewListAuditEventsRequest constructs an http.Request for the ListAuditEvents method

func NewListGitHubInstallationsRequest

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

NewListGitHubInstallationsRequest constructs an http.Request for the ListGitHubInstallations method

func NewListNodesRequest

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

NewListNodesRequest constructs an http.Request for the ListNodes method

func NewListRunsRequest

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

NewListRunsRequest constructs an http.Request for the ListRuns method

func NewListTargetsRequest

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

NewListTargetsRequest constructs an http.Request for the ListTargets method

func NewResumeNodeRequest

func NewResumeNodeRequest(server string, nodeId NodeID, params *ResumeNodeParams) (*http.Request, error)

NewResumeNodeRequest constructs an http.Request for the ResumeNode method

func NewRevokeNodeRequest

func NewRevokeNodeRequest(server string, nodeId NodeID, params *RevokeNodeParams) (*http.Request, error)

NewRevokeNodeRequest constructs an http.Request for the RevokeNode method

func NewStartGitHubAppManifestRequest

func NewStartGitHubAppManifestRequest(server string, params *StartGitHubAppManifestParams, body StartGitHubAppManifestJSONRequestBody) (*http.Request, error)

NewStartGitHubAppManifestRequest calls the generic StartGitHubAppManifest builder with application/json body

func NewStartGitHubAppManifestRequestWithBody

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

NewStartGitHubAppManifestRequestWithBody constructs an http.Request for the StartGitHubAppManifest method, with any body, and a specified content type

func NewStreamEventsRequest

func NewStreamEventsRequest(server string, params *StreamEventsParams) (*http.Request, error)

NewStreamEventsRequest constructs an http.Request for the StreamEvents method

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 AdminBootstrap

type AdminBootstrap = string

AdminBootstrap defines model for AdminBootstrap.

type ApplyConfigurationJSONRequestBody

type ApplyConfigurationJSONRequestBody = Configuration

ApplyConfigurationJSONRequestBody defines body for ApplyConfiguration for application/json ContentType.

type ApplyConfigurationParams

type ApplyConfigurationParams struct {
	IfMatch          IfMatch   `json:"If-Match"`
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

ApplyConfigurationParams defines parameters for ApplyConfiguration.

type ApplyConfigurationResponse

type ApplyConfigurationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Configuration
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *PayloadTooLarge
	// ApplicationproblemJSON415 the response for an HTTP 415 `application/problem+json` response
	ApplicationproblemJSON415 *UnsupportedMedia
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ApplyConfigurationResponse200Headers
}

func ParseApplyConfigurationResponse

func ParseApplyConfigurationResponse(rsp *http.Response) (*ApplyConfigurationResponse, error)

ParseApplyConfigurationResponse parses an HTTP response from a ApplyConfigurationWithResponse call

func (ApplyConfigurationResponse) ContentType

func (r ApplyConfigurationResponse) ContentType() string

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

func (ApplyConfigurationResponse) GetApplicationproblemJSON400

func (r ApplyConfigurationResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ApplyConfigurationResponse) GetApplicationproblemJSON401

func (r ApplyConfigurationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ApplyConfigurationResponse) GetApplicationproblemJSON403

func (r ApplyConfigurationResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ApplyConfigurationResponse) GetApplicationproblemJSON409

func (r ApplyConfigurationResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ApplyConfigurationResponse) GetApplicationproblemJSON413

func (r ApplyConfigurationResponse) GetApplicationproblemJSON413() *PayloadTooLarge

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (ApplyConfigurationResponse) GetApplicationproblemJSON415

func (r ApplyConfigurationResponse) GetApplicationproblemJSON415() *UnsupportedMedia

GetApplicationproblemJSON415 returns the response for an HTTP 415 `application/problem+json` response

func (ApplyConfigurationResponse) GetApplicationproblemJSON421

func (r ApplyConfigurationResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (ApplyConfigurationResponse) GetApplicationproblemJSON422

func (r ApplyConfigurationResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ApplyConfigurationResponse) GetApplicationproblemJSON428

func (r ApplyConfigurationResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (ApplyConfigurationResponse) GetApplicationproblemJSON503

func (r ApplyConfigurationResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ApplyConfigurationResponse) GetBody

func (r ApplyConfigurationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ApplyConfigurationResponse) GetJSON200

func (r ApplyConfigurationResponse) GetJSON200() *Configuration

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ApplyConfigurationResponse) Status

Status returns HTTPResponse.Status

func (ApplyConfigurationResponse) StatusCode

func (r ApplyConfigurationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApplyConfigurationResponse200Headers

type ApplyConfigurationResponse200Headers struct {
	ETag *string
}

ApplyConfigurationResponse200Headers the declared response headers of an HTTP 200 response for ApplyConfiguration

type AuditEvent

type AuditEvent struct {
	Action       string            `json:"action"`
	Actor        AuditEventActor   `json:"actor"`
	ErrorCode    *string           `json:"errorCode,omitempty"`
	Id           string            `json:"id"`
	OccurredAt   time.Time         `json:"occurredAt"`
	Outcome      AuditEventOutcome `json:"outcome"`
	RequestId    string            `json:"requestId"`
	ResourceId   string            `json:"resourceId"`
	ResourceType string            `json:"resourceType"`
}

AuditEvent defines model for AuditEvent.

type AuditEventActor

type AuditEventActor string

AuditEventActor defines model for AuditEvent.Actor.

const (
	AuditEventActorAnonymous   AuditEventActor = "anonymous"
	AuditEventActorJoinCode    AuditEventActor = "join_code"
	AuditEventActorNode        AuditEventActor = "node"
	AuditEventActorSingleAdmin AuditEventActor = "single_admin"
)

Defines values for AuditEventActor.

func (AuditEventActor) Valid

func (e AuditEventActor) Valid() bool

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

type AuditEventOutcome

type AuditEventOutcome string

AuditEventOutcome defines model for AuditEvent.Outcome.

const (
	AuditEventOutcomeFailed    AuditEventOutcome = "failed"
	AuditEventOutcomeRejected  AuditEventOutcome = "rejected"
	AuditEventOutcomeSucceeded AuditEventOutcome = "succeeded"
)

Defines values for AuditEventOutcome.

func (AuditEventOutcome) Valid

func (e AuditEventOutcome) Valid() bool

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

type AuditEventPage

type AuditEventPage struct {
	Events     []AuditEvent `json:"events"`
	NextCursor *string      `json:"nextCursor,omitempty"`

	// ResumeCursor Opaque exclusive cursor for the last event represented by this
	// response. Unlike nextCursor, it remains present on the final page
	// so append-only consumers can request only later events.
	ResumeCursor *string `json:"resumeCursor,omitempty"`
}

AuditEventPage defines model for AuditEventPage.

type AuthorizeBrowserHandoffJSONRequestBody

type AuthorizeBrowserHandoffJSONRequestBody = AuthorizeBrowserHandoffRequest

AuthorizeBrowserHandoffJSONRequestBody defines body for AuthorizeBrowserHandoff for application/json ContentType.

type AuthorizeBrowserHandoffParams

type AuthorizeBrowserHandoffParams struct {
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

AuthorizeBrowserHandoffParams defines parameters for AuthorizeBrowserHandoff.

type AuthorizeBrowserHandoffRequest

type AuthorizeBrowserHandoffRequest struct {
	// Code Signed correlation code that carries no session authority without the browser claim secret.
	Code BrowserHandoffCode `json:"code"`
}

AuthorizeBrowserHandoffRequest defines model for AuthorizeBrowserHandoffRequest.

type AuthorizeBrowserHandoffResponse

type AuthorizeBrowserHandoffResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON410 the response for an HTTP 410 `application/problem+json` response
	ApplicationproblemJSON410 *Gone
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *PayloadTooLarge
	// ApplicationproblemJSON415 the response for an HTTP 415 `application/problem+json` response
	ApplicationproblemJSON415 *UnsupportedMedia
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseAuthorizeBrowserHandoffResponse

func ParseAuthorizeBrowserHandoffResponse(rsp *http.Response) (*AuthorizeBrowserHandoffResponse, error)

ParseAuthorizeBrowserHandoffResponse parses an HTTP response from a AuthorizeBrowserHandoffWithResponse call

func (AuthorizeBrowserHandoffResponse) ContentType

func (r AuthorizeBrowserHandoffResponse) ContentType() string

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

func (AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON400

func (r AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON401

func (r AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON403

func (r AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON410

func (r AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON410() *Gone

GetApplicationproblemJSON410 returns the response for an HTTP 410 `application/problem+json` response

func (AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON413

func (r AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON413() *PayloadTooLarge

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON415

func (r AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON415() *UnsupportedMedia

GetApplicationproblemJSON415 returns the response for an HTTP 415 `application/problem+json` response

func (AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON421

func (r AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON422

func (r AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON503

func (r AuthorizeBrowserHandoffResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (AuthorizeBrowserHandoffResponse) GetBody

func (r AuthorizeBrowserHandoffResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (AuthorizeBrowserHandoffResponse) Status

Status returns HTTPResponse.Status

func (AuthorizeBrowserHandoffResponse) StatusCode

func (r AuthorizeBrowserHandoffResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type BadRequest

type BadRequest = Problem

BadRequest defines model for BadRequest.

type BrowserHandoff

type BrowserHandoff struct {
	// Code Signed correlation code that carries no session authority without the browser claim secret.
	Code      BrowserHandoffCode  `json:"code"`
	ExpiresAt time.Time           `json:"expiresAt"`
	State     BrowserHandoffState `json:"state"`
}

BrowserHandoff defines model for BrowserHandoff.

type BrowserHandoffCode

type BrowserHandoffCode = string

BrowserHandoffCode Signed correlation code that carries no session authority without the browser claim secret.

type BrowserHandoffPending

type BrowserHandoffPending struct {
	ExpiresAt time.Time                  `json:"expiresAt"`
	State     BrowserHandoffPendingState `json:"state"`
}

BrowserHandoffPending defines model for BrowserHandoffPending.

type BrowserHandoffPendingState

type BrowserHandoffPendingState string

BrowserHandoffPendingState defines model for BrowserHandoffPending.State.

const (
	BrowserHandoffPendingStatePending BrowserHandoffPendingState = "pending"
)

Defines values for BrowserHandoffPendingState.

func (BrowserHandoffPendingState) Valid

func (e BrowserHandoffPendingState) Valid() bool

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

type BrowserHandoffState

type BrowserHandoffState string

BrowserHandoffState defines model for BrowserHandoff.State.

const (
	BrowserHandoffStatePending BrowserHandoffState = "pending"
)

Defines values for BrowserHandoffState.

func (BrowserHandoffState) Valid

func (e BrowserHandoffState) Valid() bool

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

type CSRFToken

type CSRFToken = string

CSRFToken defines model for CSRFToken.

type CancelJoinCodeParams

type CancelJoinCodeParams struct {
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

CancelJoinCodeParams defines parameters for CancelJoinCode.

type CancelJoinCodeResponse

type CancelJoinCodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseCancelJoinCodeResponse

func ParseCancelJoinCodeResponse(rsp *http.Response) (*CancelJoinCodeResponse, error)

ParseCancelJoinCodeResponse parses an HTTP response from a CancelJoinCodeWithResponse call

func (CancelJoinCodeResponse) ContentType

func (r CancelJoinCodeResponse) ContentType() string

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

func (CancelJoinCodeResponse) GetApplicationproblemJSON401

func (r CancelJoinCodeResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CancelJoinCodeResponse) GetApplicationproblemJSON403

func (r CancelJoinCodeResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CancelJoinCodeResponse) GetApplicationproblemJSON404

func (r CancelJoinCodeResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (CancelJoinCodeResponse) GetApplicationproblemJSON421

func (r CancelJoinCodeResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (CancelJoinCodeResponse) GetApplicationproblemJSON503

func (r CancelJoinCodeResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CancelJoinCodeResponse) GetBody

func (r CancelJoinCodeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CancelJoinCodeResponse) Status

func (r CancelJoinCodeResponse) Status() string

Status returns HTTPResponse.Status

func (CancelJoinCodeResponse) StatusCode

func (r CancelJoinCodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClaimBrowserHandoffJSONRequestBody

type ClaimBrowserHandoffJSONRequestBody = ClaimBrowserHandoffRequest

ClaimBrowserHandoffJSONRequestBody defines body for ClaimBrowserHandoff for application/json ContentType.

type ClaimBrowserHandoffRequest

type ClaimBrowserHandoffRequest struct {
	// ClaimSecret Canonical raw-base64url 256-bit secret retained only by the requesting browser tab.
	ClaimSecret *string `json:"claimSecret,omitempty"`

	// Code Signed correlation code that carries no session authority without the browser claim secret.
	Code BrowserHandoffCode `json:"code"`
}

ClaimBrowserHandoffRequest defines model for ClaimBrowserHandoffRequest.

type ClaimBrowserHandoffResponse

type ClaimBrowserHandoffResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Session
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *BrowserHandoffPending
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON410 the response for an HTTP 410 `application/problem+json` response
	ApplicationproblemJSON410 *Gone
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *PayloadTooLarge
	// ApplicationproblemJSON415 the response for an HTTP 415 `application/problem+json` response
	ApplicationproblemJSON415 *UnsupportedMedia
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *ClaimBrowserHandoffResponse201Headers
}

func ParseClaimBrowserHandoffResponse

func ParseClaimBrowserHandoffResponse(rsp *http.Response) (*ClaimBrowserHandoffResponse, error)

ParseClaimBrowserHandoffResponse parses an HTTP response from a ClaimBrowserHandoffWithResponse call

func (ClaimBrowserHandoffResponse) ContentType

func (r ClaimBrowserHandoffResponse) ContentType() string

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

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON400

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON401

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON403

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON409

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON410

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON410() *Gone

GetApplicationproblemJSON410 returns the response for an HTTP 410 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON413

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON413() *PayloadTooLarge

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON415

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON415() *UnsupportedMedia

GetApplicationproblemJSON415 returns the response for an HTTP 415 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON421

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON422

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetApplicationproblemJSON503

func (r ClaimBrowserHandoffResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ClaimBrowserHandoffResponse) GetBody

func (r ClaimBrowserHandoffResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ClaimBrowserHandoffResponse) GetJSON201

func (r ClaimBrowserHandoffResponse) GetJSON201() *Session

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (ClaimBrowserHandoffResponse) GetJSON202

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (ClaimBrowserHandoffResponse) Status

Status returns HTTPResponse.Status

func (ClaimBrowserHandoffResponse) StatusCode

func (r ClaimBrowserHandoffResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ClaimBrowserHandoffResponse201Headers

type ClaimBrowserHandoffResponse201Headers struct {
	SetCookie *string
}

ClaimBrowserHandoffResponse201Headers the declared response headers of an HTTP 201 response for ClaimBrowserHandoff

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

func (c *Client) ApplyConfiguration(ctx context.Context, params *ApplyConfigurationParams, body ApplyConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

ApplyConfiguration Atomically replace desired configuration and append its audit event

Takes a body of the `application/json` content type.

Corresponds with PUT /configuration (the `ApplyConfiguration` operationId).

func (*Client) ApplyConfigurationWithBody

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

ApplyConfigurationWithBody Atomically replace desired configuration and append its audit event

Takes any type of body and a specified content type.

Corresponds with PUT /configuration (the `ApplyConfiguration` operationId).

func (*Client) AuthorizeBrowserHandoff

func (c *Client) AuthorizeBrowserHandoff(ctx context.Context, params *AuthorizeBrowserHandoffParams, body AuthorizeBrowserHandoffJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

AuthorizeBrowserHandoff Authorize one browser handoff as the Controller owner

Takes a body of the `application/json` content type.

Corresponds with POST /browser-handoff-authorizations (the `AuthorizeBrowserHandoff` operationId).

func (*Client) AuthorizeBrowserHandoffWithBody

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

AuthorizeBrowserHandoffWithBody Authorize one browser handoff as the Controller owner

Takes any type of body and a specified content type.

Corresponds with POST /browser-handoff-authorizations (the `AuthorizeBrowserHandoff` operationId).

func (*Client) CancelJoinCode

func (c *Client) CancelJoinCode(ctx context.Context, tokenId string, params *CancelJoinCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

CancelJoinCode Cancel an unconsumed join code by its non-secret identifier

Corresponds with DELETE /join-codes/{tokenId} (the `CancelJoinCode` operationId).

func (*Client) ClaimBrowserHandoff

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

ClaimBrowserHandoff Claim an owner-approved browser handoff

Takes a body of the `application/json` content type.

Corresponds with POST /browser-handoffs/claim (the `ClaimBrowserHandoff` operationId).

func (*Client) ClaimBrowserHandoffWithBody

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

ClaimBrowserHandoffWithBody Claim an owner-approved browser handoff

Takes any type of body and a specified content type.

Corresponds with POST /browser-handoffs/claim (the `ClaimBrowserHandoff` operationId).

func (*Client) CompleteGitHubAppManifest

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

CompleteGitHubAppManifest Complete a one-time GitHub App Manifest callback

Corresponds with GET /github/app/callback (the `CompleteGitHubAppManifest` operationId).

func (*Client) CreateBrowserHandoff

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

CreateBrowserHandoff Create a non-authorizing browser handoff code

Takes a body of the `application/json` content type.

Corresponds with POST /browser-handoffs (the `CreateBrowserHandoff` operationId).

func (*Client) CreateBrowserHandoffWithBody

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

CreateBrowserHandoffWithBody Create a non-authorizing browser handoff code

Takes any type of body and a specified content type.

Corresponds with POST /browser-handoffs (the `CreateBrowserHandoff` operationId).

func (*Client) CreateGitHubTarget

func (c *Client) CreateGitHubTarget(ctx context.Context, params *CreateGitHubTargetParams, body CreateGitHubTargetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateGitHubTarget Verify and persist one private GitHub Target

Takes a body of the `application/json` content type.

Corresponds with POST /github/targets (the `CreateGitHubTarget` operationId).

func (*Client) CreateGitHubTargetWithBody

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

CreateGitHubTargetWithBody Verify and persist one private GitHub Target

Takes any type of body and a specified content type.

Corresponds with POST /github/targets (the `CreateGitHubTarget` operationId).

func (*Client) CreateJoinCode

func (c *Client) CreateJoinCode(ctx context.Context, params *CreateJoinCodeParams, body CreateJoinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateJoinCode Create and deliver a one-time join code

The credential-bearing code appears only in this response. It is not retained in audit, logs, UI state, diagnostics, or an idempotency replay.

Takes a body of the `application/json` content type.

Corresponds with POST /join-codes (the `CreateJoinCode` operationId).

func (*Client) CreateJoinCodeWithBody

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

CreateJoinCodeWithBody Create and deliver a one-time join code

The credential-bearing code appears only in this response. It is not retained in audit, logs, UI state, diagnostics, or an idempotency replay.

Takes any type of body and a specified content type.

Corresponds with POST /join-codes (the `CreateJoinCode` operationId).

func (*Client) CreateSession

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

CreateSession Start an owner-authorized loopback administrator session

Corresponds with POST /session (the `CreateSession` operationId).

func (*Client) DeleteSession

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

DeleteSession End the current administrator session

Corresponds with DELETE /session (the `DeleteSession` operationId).

func (*Client) DrainNode

func (c *Client) DrainNode(ctx context.Context, nodeId NodeID, params *DrainNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DrainNode Stop assigning new work to a node

Corresponds with POST /nodes/{nodeId}/drain (the `DrainNode` operationId).

func (*Client) ExportConfiguration

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

ExportConfiguration Export versioned non-secret YAML

Corresponds with GET /configuration/export (the `ExportConfiguration` operationId).

func (*Client) GetConfiguration

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

GetConfiguration Read the non-secret desired configuration

Corresponds with GET /configuration (the `GetConfiguration` operationId).

func (*Client) GetOverview

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

GetOverview Read the safe fleet overview

Corresponds with GET /overview (the `GetOverview` operationId).

func (*Client) GetSession

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

GetSession Read the current session and in-memory CSRF token

Corresponds with GET /session (the `GetSession` operationId).

func (*Client) GetSetup

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

GetSetup Read setup readiness without returning credentials

Corresponds with GET /setup (the `GetSetup` operationId).

func (*Client) ListAuditEvents

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

ListAuditEvents List append-only safe audit events

Corresponds with GET /audit-events (the `ListAuditEvents` operationId).

func (*Client) ListGitHubInstallations

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

ListGitHubInstallations List GitHub App installations without credentials

Corresponds with GET /github/installations (the `ListGitHubInstallations` operationId).

func (*Client) ListNodes

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

ListNodes List enrolled nodes and last-known state

Corresponds with GET /nodes (the `ListNodes` operationId).

func (*Client) ListRuns

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

ListRuns List safe execution history

Corresponds with GET /runs (the `ListRuns` operationId).

func (*Client) ListTargets

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

ListTargets List configured targets and last-known GitHub freshness

Corresponds with GET /targets (the `ListTargets` operationId).

func (*Client) ResumeNode

func (c *Client) ResumeNode(ctx context.Context, nodeId NodeID, params *ResumeNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ResumeNode Reconcile a drained node before it can advertise capacity

Corresponds with POST /nodes/{nodeId}/resume (the `ResumeNode` operationId).

func (*Client) RevokeNode

func (c *Client) RevokeNode(ctx context.Context, nodeId NodeID, params *RevokeNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

RevokeNode Revoke a node credential

Corresponds with POST /nodes/{nodeId}/revoke (the `RevokeNode` operationId).

func (*Client) StartGitHubAppManifest

func (c *Client) StartGitHubAppManifest(ctx context.Context, params *StartGitHubAppManifestParams, body StartGitHubAppManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

StartGitHubAppManifest Start a signed one-time GitHub App Manifest registration

Takes a body of the `application/json` content type.

Corresponds with POST /github/app/manifest (the `StartGitHubAppManifest` operationId).

func (*Client) StartGitHubAppManifestWithBody

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

StartGitHubAppManifestWithBody Start a signed one-time GitHub App Manifest registration

Takes any type of body and a specified content type.

Corresponds with POST /github/app/manifest (the `StartGitHubAppManifest` operationId).

func (*Client) StreamEvents

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

StreamEvents Stream level-triggered management invalidations

Corresponds with GET /events (the `StreamEvents` operationId).

type ClientInterface

type ClientInterface interface {

	// ListAuditEvents List append-only safe audit events
	//
	// Corresponds with GET /audit-events (the `ListAuditEvents` operationId).
	ListAuditEvents(ctx context.Context, params *ListAuditEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AuthorizeBrowserHandoffWithBody Authorize one browser handoff as the Controller owner
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /browser-handoff-authorizations (the `AuthorizeBrowserHandoff` operationId).
	AuthorizeBrowserHandoffWithBody(ctx context.Context, params *AuthorizeBrowserHandoffParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// AuthorizeBrowserHandoff Authorize one browser handoff as the Controller owner
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /browser-handoff-authorizations (the `AuthorizeBrowserHandoff` operationId).
	AuthorizeBrowserHandoff(ctx context.Context, params *AuthorizeBrowserHandoffParams, body AuthorizeBrowserHandoffJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBrowserHandoffWithBody Create a non-authorizing browser handoff code
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /browser-handoffs (the `CreateBrowserHandoff` operationId).
	CreateBrowserHandoffWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateBrowserHandoff Create a non-authorizing browser handoff code
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /browser-handoffs (the `CreateBrowserHandoff` operationId).
	CreateBrowserHandoff(ctx context.Context, body CreateBrowserHandoffJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClaimBrowserHandoffWithBody Claim an owner-approved browser handoff
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /browser-handoffs/claim (the `ClaimBrowserHandoff` operationId).
	ClaimBrowserHandoffWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ClaimBrowserHandoff Claim an owner-approved browser handoff
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /browser-handoffs/claim (the `ClaimBrowserHandoff` operationId).
	ClaimBrowserHandoff(ctx context.Context, body ClaimBrowserHandoffJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConfiguration Read the non-secret desired configuration
	//
	// Corresponds with GET /configuration (the `GetConfiguration` operationId).
	GetConfiguration(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplyConfigurationWithBody Atomically replace desired configuration and append its audit event
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /configuration (the `ApplyConfiguration` operationId).
	ApplyConfigurationWithBody(ctx context.Context, params *ApplyConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ApplyConfiguration Atomically replace desired configuration and append its audit event
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /configuration (the `ApplyConfiguration` operationId).
	ApplyConfiguration(ctx context.Context, params *ApplyConfigurationParams, body ApplyConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ExportConfiguration Export versioned non-secret YAML
	//
	// Corresponds with GET /configuration/export (the `ExportConfiguration` operationId).
	ExportConfiguration(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StreamEvents Stream level-triggered management invalidations
	//
	// Corresponds with GET /events (the `StreamEvents` operationId).
	StreamEvents(ctx context.Context, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CompleteGitHubAppManifest Complete a one-time GitHub App Manifest callback
	//
	// Corresponds with GET /github/app/callback (the `CompleteGitHubAppManifest` operationId).
	CompleteGitHubAppManifest(ctx context.Context, params *CompleteGitHubAppManifestParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartGitHubAppManifestWithBody Start a signed one-time GitHub App Manifest registration
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /github/app/manifest (the `StartGitHubAppManifest` operationId).
	StartGitHubAppManifestWithBody(ctx context.Context, params *StartGitHubAppManifestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// StartGitHubAppManifest Start a signed one-time GitHub App Manifest registration
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /github/app/manifest (the `StartGitHubAppManifest` operationId).
	StartGitHubAppManifest(ctx context.Context, params *StartGitHubAppManifestParams, body StartGitHubAppManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListGitHubInstallations List GitHub App installations without credentials
	//
	// Corresponds with GET /github/installations (the `ListGitHubInstallations` operationId).
	ListGitHubInstallations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateGitHubTargetWithBody Verify and persist one private GitHub Target
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /github/targets (the `CreateGitHubTarget` operationId).
	CreateGitHubTargetWithBody(ctx context.Context, params *CreateGitHubTargetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateGitHubTarget Verify and persist one private GitHub Target
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /github/targets (the `CreateGitHubTarget` operationId).
	CreateGitHubTarget(ctx context.Context, params *CreateGitHubTargetParams, body CreateGitHubTargetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateJoinCodeWithBody Create and deliver a one-time join code
	//
	// The credential-bearing code appears only in this response. It is not
	// retained in audit, logs, UI state, diagnostics, or an idempotency replay.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /join-codes (the `CreateJoinCode` operationId).
	CreateJoinCodeWithBody(ctx context.Context, params *CreateJoinCodeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateJoinCode Create and deliver a one-time join code
	//
	// The credential-bearing code appears only in this response. It is not
	// retained in audit, logs, UI state, diagnostics, or an idempotency replay.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /join-codes (the `CreateJoinCode` operationId).
	CreateJoinCode(ctx context.Context, params *CreateJoinCodeParams, body CreateJoinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CancelJoinCode Cancel an unconsumed join code by its non-secret identifier
	//
	// Corresponds with DELETE /join-codes/{tokenId} (the `CancelJoinCode` operationId).
	CancelJoinCode(ctx context.Context, tokenId string, params *CancelJoinCodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListNodes List enrolled nodes and last-known state
	//
	// Corresponds with GET /nodes (the `ListNodes` operationId).
	ListNodes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DrainNode Stop assigning new work to a node
	//
	// Corresponds with POST /nodes/{nodeId}/drain (the `DrainNode` operationId).
	DrainNode(ctx context.Context, nodeId NodeID, params *DrainNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ResumeNode Reconcile a drained node before it can advertise capacity
	//
	// Corresponds with POST /nodes/{nodeId}/resume (the `ResumeNode` operationId).
	ResumeNode(ctx context.Context, nodeId NodeID, params *ResumeNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RevokeNode Revoke a node credential
	//
	// Corresponds with POST /nodes/{nodeId}/revoke (the `RevokeNode` operationId).
	RevokeNode(ctx context.Context, nodeId NodeID, params *RevokeNodeParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetOverview Read the safe fleet overview
	//
	// Corresponds with GET /overview (the `GetOverview` operationId).
	GetOverview(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListRuns List safe execution history
	//
	// Corresponds with GET /runs (the `ListRuns` operationId).
	ListRuns(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSession End the current administrator session
	//
	// Corresponds with DELETE /session (the `DeleteSession` operationId).
	DeleteSession(ctx context.Context, params *DeleteSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSession Read the current session and in-memory CSRF token
	//
	// Corresponds with GET /session (the `GetSession` operationId).
	GetSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSession Start an owner-authorized loopback administrator session
	//
	// Corresponds with POST /session (the `CreateSession` operationId).
	CreateSession(ctx context.Context, params *CreateSessionParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSetup Read setup readiness without returning credentials
	//
	// Corresponds with GET /setup (the `GetSetup` operationId).
	GetSetup(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListTargets List configured targets and last-known GitHub freshness
	//
	// Corresponds with GET /targets (the `ListTargets` operationId).
	ListTargets(ctx context.Context, 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) ApplyConfigurationWithBodyWithResponse

func (c *ClientWithResponses) ApplyConfigurationWithBodyWithResponse(ctx context.Context, params *ApplyConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyConfigurationResponse, error)

ApplyConfigurationWithBodyWithResponse Atomically replace desired configuration and append its audit event

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /configuration (the `ApplyConfiguration` operationId).

func (*ClientWithResponses) ApplyConfigurationWithResponse

ApplyConfigurationWithResponse Atomically replace desired configuration and append its audit event

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /configuration (the `ApplyConfiguration` operationId).

func (*ClientWithResponses) AuthorizeBrowserHandoffWithBodyWithResponse

func (c *ClientWithResponses) AuthorizeBrowserHandoffWithBodyWithResponse(ctx context.Context, params *AuthorizeBrowserHandoffParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthorizeBrowserHandoffResponse, error)

AuthorizeBrowserHandoffWithBodyWithResponse Authorize one browser handoff as the Controller owner

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /browser-handoff-authorizations (the `AuthorizeBrowserHandoff` operationId).

func (*ClientWithResponses) AuthorizeBrowserHandoffWithResponse

AuthorizeBrowserHandoffWithResponse Authorize one browser handoff as the Controller owner

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /browser-handoff-authorizations (the `AuthorizeBrowserHandoff` operationId).

func (*ClientWithResponses) CancelJoinCodeWithResponse

func (c *ClientWithResponses) CancelJoinCodeWithResponse(ctx context.Context, tokenId string, params *CancelJoinCodeParams, reqEditors ...RequestEditorFn) (*CancelJoinCodeResponse, error)

CancelJoinCodeWithResponse Cancel an unconsumed join code by its non-secret identifier

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /join-codes/{tokenId} (the `CancelJoinCode` operationId).

func (*ClientWithResponses) ClaimBrowserHandoffWithBodyWithResponse

func (c *ClientWithResponses) ClaimBrowserHandoffWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimBrowserHandoffResponse, error)

ClaimBrowserHandoffWithBodyWithResponse Claim an owner-approved browser handoff

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /browser-handoffs/claim (the `ClaimBrowserHandoff` operationId).

func (*ClientWithResponses) ClaimBrowserHandoffWithResponse

func (c *ClientWithResponses) ClaimBrowserHandoffWithResponse(ctx context.Context, body ClaimBrowserHandoffJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimBrowserHandoffResponse, error)

ClaimBrowserHandoffWithResponse Claim an owner-approved browser handoff

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /browser-handoffs/claim (the `ClaimBrowserHandoff` operationId).

func (*ClientWithResponses) CompleteGitHubAppManifestWithResponse

func (c *ClientWithResponses) CompleteGitHubAppManifestWithResponse(ctx context.Context, params *CompleteGitHubAppManifestParams, reqEditors ...RequestEditorFn) (*CompleteGitHubAppManifestResponse, error)

CompleteGitHubAppManifestWithResponse Complete a one-time GitHub App Manifest callback

Returns a wrapper object for the known response body format(s).

Corresponds with GET /github/app/callback (the `CompleteGitHubAppManifest` operationId).

func (*ClientWithResponses) CreateBrowserHandoffWithBodyWithResponse

func (c *ClientWithResponses) CreateBrowserHandoffWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBrowserHandoffResponse, error)

CreateBrowserHandoffWithBodyWithResponse Create a non-authorizing browser handoff code

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /browser-handoffs (the `CreateBrowserHandoff` operationId).

func (*ClientWithResponses) CreateBrowserHandoffWithResponse

func (c *ClientWithResponses) CreateBrowserHandoffWithResponse(ctx context.Context, body CreateBrowserHandoffJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBrowserHandoffResponse, error)

CreateBrowserHandoffWithResponse Create a non-authorizing browser handoff code

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /browser-handoffs (the `CreateBrowserHandoff` operationId).

func (*ClientWithResponses) CreateGitHubTargetWithBodyWithResponse

func (c *ClientWithResponses) CreateGitHubTargetWithBodyWithResponse(ctx context.Context, params *CreateGitHubTargetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubTargetResponse, error)

CreateGitHubTargetWithBodyWithResponse Verify and persist one private GitHub Target

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /github/targets (the `CreateGitHubTarget` operationId).

func (*ClientWithResponses) CreateGitHubTargetWithResponse

CreateGitHubTargetWithResponse Verify and persist one private GitHub Target

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /github/targets (the `CreateGitHubTarget` operationId).

func (*ClientWithResponses) CreateJoinCodeWithBodyWithResponse

func (c *ClientWithResponses) CreateJoinCodeWithBodyWithResponse(ctx context.Context, params *CreateJoinCodeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJoinCodeResponse, error)

CreateJoinCodeWithBodyWithResponse Create and deliver a one-time join code

The credential-bearing code appears only in this response. It is not retained in audit, logs, UI state, diagnostics, or an idempotency replay.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /join-codes (the `CreateJoinCode` operationId).

func (*ClientWithResponses) CreateJoinCodeWithResponse

func (c *ClientWithResponses) CreateJoinCodeWithResponse(ctx context.Context, params *CreateJoinCodeParams, body CreateJoinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJoinCodeResponse, error)

CreateJoinCodeWithResponse Create and deliver a one-time join code

The credential-bearing code appears only in this response. It is not retained in audit, logs, UI state, diagnostics, or an idempotency replay.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /join-codes (the `CreateJoinCode` operationId).

func (*ClientWithResponses) CreateSessionWithResponse

func (c *ClientWithResponses) CreateSessionWithResponse(ctx context.Context, params *CreateSessionParams, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

CreateSessionWithResponse Start an owner-authorized loopback administrator session

Returns a wrapper object for the known response body format(s).

Corresponds with POST /session (the `CreateSession` operationId).

func (*ClientWithResponses) DeleteSessionWithResponse

func (c *ClientWithResponses) DeleteSessionWithResponse(ctx context.Context, params *DeleteSessionParams, reqEditors ...RequestEditorFn) (*DeleteSessionResponse, error)

DeleteSessionWithResponse End the current administrator session

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /session (the `DeleteSession` operationId).

func (*ClientWithResponses) DrainNodeWithResponse

func (c *ClientWithResponses) DrainNodeWithResponse(ctx context.Context, nodeId NodeID, params *DrainNodeParams, reqEditors ...RequestEditorFn) (*DrainNodeResponse, error)

DrainNodeWithResponse Stop assigning new work to a node

Returns a wrapper object for the known response body format(s).

Corresponds with POST /nodes/{nodeId}/drain (the `DrainNode` operationId).

func (*ClientWithResponses) ExportConfigurationWithResponse

func (c *ClientWithResponses) ExportConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExportConfigurationResponse, error)

ExportConfigurationWithResponse Export versioned non-secret YAML

Returns a wrapper object for the known response body format(s).

Corresponds with GET /configuration/export (the `ExportConfiguration` operationId).

func (*ClientWithResponses) GetConfigurationWithResponse

func (c *ClientWithResponses) GetConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigurationResponse, error)

GetConfigurationWithResponse Read the non-secret desired configuration

Returns a wrapper object for the known response body format(s).

Corresponds with GET /configuration (the `GetConfiguration` operationId).

func (*ClientWithResponses) GetOverviewWithResponse

func (c *ClientWithResponses) GetOverviewWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOverviewResponse, error)

GetOverviewWithResponse Read the safe fleet overview

Returns a wrapper object for the known response body format(s).

Corresponds with GET /overview (the `GetOverview` operationId).

func (*ClientWithResponses) GetSessionWithResponse

func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)

GetSessionWithResponse Read the current session and in-memory CSRF token

Returns a wrapper object for the known response body format(s).

Corresponds with GET /session (the `GetSession` operationId).

func (*ClientWithResponses) GetSetupWithResponse

func (c *ClientWithResponses) GetSetupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSetupResponse, error)

GetSetupWithResponse Read setup readiness without returning credentials

Returns a wrapper object for the known response body format(s).

Corresponds with GET /setup (the `GetSetup` operationId).

func (*ClientWithResponses) ListAuditEventsWithResponse

func (c *ClientWithResponses) ListAuditEventsWithResponse(ctx context.Context, params *ListAuditEventsParams, reqEditors ...RequestEditorFn) (*ListAuditEventsResponse, error)

ListAuditEventsWithResponse List append-only safe audit events

Returns a wrapper object for the known response body format(s).

Corresponds with GET /audit-events (the `ListAuditEvents` operationId).

func (*ClientWithResponses) ListGitHubInstallationsWithResponse

func (c *ClientWithResponses) ListGitHubInstallationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitHubInstallationsResponse, error)

ListGitHubInstallationsWithResponse List GitHub App installations without credentials

Returns a wrapper object for the known response body format(s).

Corresponds with GET /github/installations (the `ListGitHubInstallations` operationId).

func (*ClientWithResponses) ListNodesWithResponse

func (c *ClientWithResponses) ListNodesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)

ListNodesWithResponse List enrolled nodes and last-known state

Returns a wrapper object for the known response body format(s).

Corresponds with GET /nodes (the `ListNodes` operationId).

func (*ClientWithResponses) ListRunsWithResponse

func (c *ClientWithResponses) ListRunsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRunsResponse, error)

ListRunsWithResponse List safe execution history

Returns a wrapper object for the known response body format(s).

Corresponds with GET /runs (the `ListRuns` operationId).

func (*ClientWithResponses) ListTargetsWithResponse

func (c *ClientWithResponses) ListTargetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTargetsResponse, error)

ListTargetsWithResponse List configured targets and last-known GitHub freshness

Returns a wrapper object for the known response body format(s).

Corresponds with GET /targets (the `ListTargets` operationId).

func (*ClientWithResponses) ResumeNodeWithResponse

func (c *ClientWithResponses) ResumeNodeWithResponse(ctx context.Context, nodeId NodeID, params *ResumeNodeParams, reqEditors ...RequestEditorFn) (*ResumeNodeResponse, error)

ResumeNodeWithResponse Reconcile a drained node before it can advertise capacity

Returns a wrapper object for the known response body format(s).

Corresponds with POST /nodes/{nodeId}/resume (the `ResumeNode` operationId).

func (*ClientWithResponses) RevokeNodeWithResponse

func (c *ClientWithResponses) RevokeNodeWithResponse(ctx context.Context, nodeId NodeID, params *RevokeNodeParams, reqEditors ...RequestEditorFn) (*RevokeNodeResponse, error)

RevokeNodeWithResponse Revoke a node credential

Returns a wrapper object for the known response body format(s).

Corresponds with POST /nodes/{nodeId}/revoke (the `RevokeNode` operationId).

func (*ClientWithResponses) StartGitHubAppManifestWithBodyWithResponse

func (c *ClientWithResponses) StartGitHubAppManifestWithBodyWithResponse(ctx context.Context, params *StartGitHubAppManifestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartGitHubAppManifestResponse, error)

StartGitHubAppManifestWithBodyWithResponse Start a signed one-time GitHub App Manifest registration

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /github/app/manifest (the `StartGitHubAppManifest` operationId).

func (*ClientWithResponses) StartGitHubAppManifestWithResponse

StartGitHubAppManifestWithResponse Start a signed one-time GitHub App Manifest registration

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /github/app/manifest (the `StartGitHubAppManifest` operationId).

func (*ClientWithResponses) StreamEventsWithResponse

func (c *ClientWithResponses) StreamEventsWithResponse(ctx context.Context, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*StreamEventsResponse, error)

StreamEventsWithResponse Stream level-triggered management invalidations

Returns a wrapper object for the known response body format(s).

Corresponds with GET /events (the `StreamEvents` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListAuditEventsWithResponse List append-only safe audit events
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /audit-events (the `ListAuditEvents` operationId).
	ListAuditEventsWithResponse(ctx context.Context, params *ListAuditEventsParams, reqEditors ...RequestEditorFn) (*ListAuditEventsResponse, error)

	// AuthorizeBrowserHandoffWithBodyWithResponse Authorize one browser handoff as the Controller owner
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /browser-handoff-authorizations (the `AuthorizeBrowserHandoff` operationId).
	AuthorizeBrowserHandoffWithBodyWithResponse(ctx context.Context, params *AuthorizeBrowserHandoffParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthorizeBrowserHandoffResponse, error)

	// AuthorizeBrowserHandoffWithResponse Authorize one browser handoff as the Controller owner
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /browser-handoff-authorizations (the `AuthorizeBrowserHandoff` operationId).
	AuthorizeBrowserHandoffWithResponse(ctx context.Context, params *AuthorizeBrowserHandoffParams, body AuthorizeBrowserHandoffJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthorizeBrowserHandoffResponse, error)

	// CreateBrowserHandoffWithBodyWithResponse Create a non-authorizing browser handoff code
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /browser-handoffs (the `CreateBrowserHandoff` operationId).
	CreateBrowserHandoffWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBrowserHandoffResponse, error)

	// CreateBrowserHandoffWithResponse Create a non-authorizing browser handoff code
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /browser-handoffs (the `CreateBrowserHandoff` operationId).
	CreateBrowserHandoffWithResponse(ctx context.Context, body CreateBrowserHandoffJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBrowserHandoffResponse, error)

	// ClaimBrowserHandoffWithBodyWithResponse Claim an owner-approved browser handoff
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /browser-handoffs/claim (the `ClaimBrowserHandoff` operationId).
	ClaimBrowserHandoffWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ClaimBrowserHandoffResponse, error)

	// ClaimBrowserHandoffWithResponse Claim an owner-approved browser handoff
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /browser-handoffs/claim (the `ClaimBrowserHandoff` operationId).
	ClaimBrowserHandoffWithResponse(ctx context.Context, body ClaimBrowserHandoffJSONRequestBody, reqEditors ...RequestEditorFn) (*ClaimBrowserHandoffResponse, error)

	// GetConfigurationWithResponse Read the non-secret desired configuration
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /configuration (the `GetConfiguration` operationId).
	GetConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetConfigurationResponse, error)

	// ApplyConfigurationWithBodyWithResponse Atomically replace desired configuration and append its audit event
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /configuration (the `ApplyConfiguration` operationId).
	ApplyConfigurationWithBodyWithResponse(ctx context.Context, params *ApplyConfigurationParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyConfigurationResponse, error)

	// ApplyConfigurationWithResponse Atomically replace desired configuration and append its audit event
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /configuration (the `ApplyConfiguration` operationId).
	ApplyConfigurationWithResponse(ctx context.Context, params *ApplyConfigurationParams, body ApplyConfigurationJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyConfigurationResponse, error)

	// ExportConfigurationWithResponse Export versioned non-secret YAML
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /configuration/export (the `ExportConfiguration` operationId).
	ExportConfigurationWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ExportConfigurationResponse, error)

	// StreamEventsWithResponse Stream level-triggered management invalidations
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /events (the `StreamEvents` operationId).
	StreamEventsWithResponse(ctx context.Context, params *StreamEventsParams, reqEditors ...RequestEditorFn) (*StreamEventsResponse, error)

	// CompleteGitHubAppManifestWithResponse Complete a one-time GitHub App Manifest callback
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /github/app/callback (the `CompleteGitHubAppManifest` operationId).
	CompleteGitHubAppManifestWithResponse(ctx context.Context, params *CompleteGitHubAppManifestParams, reqEditors ...RequestEditorFn) (*CompleteGitHubAppManifestResponse, error)

	// StartGitHubAppManifestWithBodyWithResponse Start a signed one-time GitHub App Manifest registration
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /github/app/manifest (the `StartGitHubAppManifest` operationId).
	StartGitHubAppManifestWithBodyWithResponse(ctx context.Context, params *StartGitHubAppManifestParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartGitHubAppManifestResponse, error)

	// StartGitHubAppManifestWithResponse Start a signed one-time GitHub App Manifest registration
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /github/app/manifest (the `StartGitHubAppManifest` operationId).
	StartGitHubAppManifestWithResponse(ctx context.Context, params *StartGitHubAppManifestParams, body StartGitHubAppManifestJSONRequestBody, reqEditors ...RequestEditorFn) (*StartGitHubAppManifestResponse, error)

	// ListGitHubInstallationsWithResponse List GitHub App installations without credentials
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /github/installations (the `ListGitHubInstallations` operationId).
	ListGitHubInstallationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListGitHubInstallationsResponse, error)

	// CreateGitHubTargetWithBodyWithResponse Verify and persist one private GitHub Target
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /github/targets (the `CreateGitHubTarget` operationId).
	CreateGitHubTargetWithBodyWithResponse(ctx context.Context, params *CreateGitHubTargetParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGitHubTargetResponse, error)

	// CreateGitHubTargetWithResponse Verify and persist one private GitHub Target
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /github/targets (the `CreateGitHubTarget` operationId).
	CreateGitHubTargetWithResponse(ctx context.Context, params *CreateGitHubTargetParams, body CreateGitHubTargetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGitHubTargetResponse, error)

	// CreateJoinCodeWithBodyWithResponse Create and deliver a one-time join code
	//
	// The credential-bearing code appears only in this response. It is not
	// retained in audit, logs, UI state, diagnostics, or an idempotency replay.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /join-codes (the `CreateJoinCode` operationId).
	CreateJoinCodeWithBodyWithResponse(ctx context.Context, params *CreateJoinCodeParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJoinCodeResponse, error)

	// CreateJoinCodeWithResponse Create and deliver a one-time join code
	//
	// The credential-bearing code appears only in this response. It is not
	// retained in audit, logs, UI state, diagnostics, or an idempotency replay.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /join-codes (the `CreateJoinCode` operationId).
	CreateJoinCodeWithResponse(ctx context.Context, params *CreateJoinCodeParams, body CreateJoinCodeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJoinCodeResponse, error)

	// CancelJoinCodeWithResponse Cancel an unconsumed join code by its non-secret identifier
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /join-codes/{tokenId} (the `CancelJoinCode` operationId).
	CancelJoinCodeWithResponse(ctx context.Context, tokenId string, params *CancelJoinCodeParams, reqEditors ...RequestEditorFn) (*CancelJoinCodeResponse, error)

	// ListNodesWithResponse List enrolled nodes and last-known state
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /nodes (the `ListNodes` operationId).
	ListNodesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)

	// DrainNodeWithResponse Stop assigning new work to a node
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /nodes/{nodeId}/drain (the `DrainNode` operationId).
	DrainNodeWithResponse(ctx context.Context, nodeId NodeID, params *DrainNodeParams, reqEditors ...RequestEditorFn) (*DrainNodeResponse, error)

	// ResumeNodeWithResponse Reconcile a drained node before it can advertise capacity
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /nodes/{nodeId}/resume (the `ResumeNode` operationId).
	ResumeNodeWithResponse(ctx context.Context, nodeId NodeID, params *ResumeNodeParams, reqEditors ...RequestEditorFn) (*ResumeNodeResponse, error)

	// RevokeNodeWithResponse Revoke a node credential
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /nodes/{nodeId}/revoke (the `RevokeNode` operationId).
	RevokeNodeWithResponse(ctx context.Context, nodeId NodeID, params *RevokeNodeParams, reqEditors ...RequestEditorFn) (*RevokeNodeResponse, error)

	// GetOverviewWithResponse Read the safe fleet overview
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /overview (the `GetOverview` operationId).
	GetOverviewWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetOverviewResponse, error)

	// ListRunsWithResponse List safe execution history
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /runs (the `ListRuns` operationId).
	ListRunsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRunsResponse, error)

	// DeleteSessionWithResponse End the current administrator session
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /session (the `DeleteSession` operationId).
	DeleteSessionWithResponse(ctx context.Context, params *DeleteSessionParams, reqEditors ...RequestEditorFn) (*DeleteSessionResponse, error)

	// GetSessionWithResponse Read the current session and in-memory CSRF token
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /session (the `GetSession` operationId).
	GetSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSessionResponse, error)

	// CreateSessionWithResponse Start an owner-authorized loopback administrator session
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /session (the `CreateSession` operationId).
	CreateSessionWithResponse(ctx context.Context, params *CreateSessionParams, reqEditors ...RequestEditorFn) (*CreateSessionResponse, error)

	// GetSetupWithResponse Read setup readiness without returning credentials
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /setup (the `GetSetup` operationId).
	GetSetupWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSetupResponse, error)

	// ListTargetsWithResponse List configured targets and last-known GitHub freshness
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /targets (the `ListTargets` operationId).
	ListTargetsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListTargetsResponse, error)
}

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

type CompleteGitHubAppManifestParams

type CompleteGitHubAppManifestParams struct {
	Code  string `form:"code" json:"code"`
	State string `form:"state" json:"state"`
}

CompleteGitHubAppManifestParams defines parameters for CompleteGitHubAppManifest.

type CompleteGitHubAppManifestResponse

type CompleteGitHubAppManifestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseCompleteGitHubAppManifestResponse

func ParseCompleteGitHubAppManifestResponse(rsp *http.Response) (*CompleteGitHubAppManifestResponse, error)

ParseCompleteGitHubAppManifestResponse parses an HTTP response from a CompleteGitHubAppManifestWithResponse call

func (CompleteGitHubAppManifestResponse) ContentType

func (r CompleteGitHubAppManifestResponse) ContentType() string

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

func (CompleteGitHubAppManifestResponse) GetApplicationproblemJSON400

func (r CompleteGitHubAppManifestResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CompleteGitHubAppManifestResponse) GetApplicationproblemJSON409

func (r CompleteGitHubAppManifestResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CompleteGitHubAppManifestResponse) GetApplicationproblemJSON421

func (r CompleteGitHubAppManifestResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (CompleteGitHubAppManifestResponse) GetApplicationproblemJSON503

func (r CompleteGitHubAppManifestResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CompleteGitHubAppManifestResponse) GetBody

GetBody returns the raw response body bytes

func (CompleteGitHubAppManifestResponse) Status

Status returns HTTPResponse.Status

func (CompleteGitHubAppManifestResponse) StatusCode

func (r CompleteGitHubAppManifestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Condition

type Condition struct {
	Code   string          `json:"code"`
	Status ConditionStatus `json:"status"`
}

Condition defines model for Condition.

type ConditionStatus

type ConditionStatus string

ConditionStatus defines model for Condition.Status.

const (
	ConditionStatusDegraded    ConditionStatus = "degraded"
	ConditionStatusHealthy     ConditionStatus = "healthy"
	ConditionStatusUnavailable ConditionStatus = "unavailable"
)

Defines values for ConditionStatus.

func (ConditionStatus) Valid

func (e ConditionStatus) Valid() bool

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

type Configuration

type Configuration struct {
	Nodes []NodeConfiguration `json:"nodes"`

	// Revision Example: 18
	Revision       Revision                   `json:"revision"`
	RunnerProfiles []RunnerProfile            `json:"runnerProfiles"`
	Scheduler      SchedulerConfiguration     `json:"scheduler"`
	SchemaVersion  ConfigurationSchemaVersion `json:"schemaVersion"`
	Targets        []TargetConfiguration      `json:"targets"`
}

Configuration defines model for Configuration.

type ConfigurationSchemaVersion

type ConfigurationSchemaVersion int

ConfigurationSchemaVersion defines model for Configuration.SchemaVersion.

const (
	ConfigurationSchemaVersionN1 ConfigurationSchemaVersion = 1
)

Defines values for ConfigurationSchemaVersion.

func (ConfigurationSchemaVersion) Valid

func (e ConfigurationSchemaVersion) Valid() bool

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

type Conflict

type Conflict = Problem

Conflict defines model for Conflict.

type CreateBrowserHandoffJSONRequestBody

type CreateBrowserHandoffJSONRequestBody = CreateBrowserHandoffRequest

CreateBrowserHandoffJSONRequestBody defines body for CreateBrowserHandoff for application/json ContentType.

type CreateBrowserHandoffRequest

type CreateBrowserHandoffRequest struct {
	// ClaimDigest Canonical raw-base64url SHA-256 of the browser-held claim secret.
	ClaimDigest string `json:"claimDigest"`
}

CreateBrowserHandoffRequest defines model for CreateBrowserHandoffRequest.

type CreateBrowserHandoffResponse

type CreateBrowserHandoffResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *BrowserHandoff
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *PayloadTooLarge
	// ApplicationproblemJSON415 the response for an HTTP 415 `application/problem+json` response
	ApplicationproblemJSON415 *UnsupportedMedia
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseCreateBrowserHandoffResponse

func ParseCreateBrowserHandoffResponse(rsp *http.Response) (*CreateBrowserHandoffResponse, error)

ParseCreateBrowserHandoffResponse parses an HTTP response from a CreateBrowserHandoffWithResponse call

func (CreateBrowserHandoffResponse) ContentType

func (r CreateBrowserHandoffResponse) ContentType() string

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

func (CreateBrowserHandoffResponse) GetApplicationproblemJSON400

func (r CreateBrowserHandoffResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateBrowserHandoffResponse) GetApplicationproblemJSON403

func (r CreateBrowserHandoffResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateBrowserHandoffResponse) GetApplicationproblemJSON413

func (r CreateBrowserHandoffResponse) GetApplicationproblemJSON413() *PayloadTooLarge

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (CreateBrowserHandoffResponse) GetApplicationproblemJSON415

func (r CreateBrowserHandoffResponse) GetApplicationproblemJSON415() *UnsupportedMedia

GetApplicationproblemJSON415 returns the response for an HTTP 415 `application/problem+json` response

func (CreateBrowserHandoffResponse) GetApplicationproblemJSON421

func (r CreateBrowserHandoffResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (CreateBrowserHandoffResponse) GetApplicationproblemJSON422

func (r CreateBrowserHandoffResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateBrowserHandoffResponse) GetApplicationproblemJSON503

func (r CreateBrowserHandoffResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CreateBrowserHandoffResponse) GetBody

func (r CreateBrowserHandoffResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateBrowserHandoffResponse) GetJSON201

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateBrowserHandoffResponse) Status

Status returns HTTPResponse.Status

func (CreateBrowserHandoffResponse) StatusCode

func (r CreateBrowserHandoffResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateGitHubTargetJSONRequestBody

type CreateGitHubTargetJSONRequestBody = CreateGitHubTargetRequest

CreateGitHubTargetJSONRequestBody defines body for CreateGitHubTarget for application/json ContentType.

type CreateGitHubTargetParams

type CreateGitHubTargetParams struct {
	IfMatch          IfMatch   `json:"If-Match"`
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

CreateGitHubTargetParams defines parameters for CreateGitHubTarget.

type CreateGitHubTargetRequest

type CreateGitHubTargetRequest struct {
	InstallationId  string                             `json:"installationId"`
	RunnerProfileId string                             `json:"runnerProfileId"`
	ScaleSetName    string                             `json:"scaleSetName"`
	Scope           string                             `json:"scope"`
	ScopeKind       CreateGitHubTargetRequestScopeKind `json:"scopeKind"`
}

CreateGitHubTargetRequest defines model for CreateGitHubTargetRequest.

type CreateGitHubTargetRequestScopeKind

type CreateGitHubTargetRequestScopeKind string

CreateGitHubTargetRequestScopeKind defines model for CreateGitHubTargetRequest.ScopeKind.

const (
	CreateGitHubTargetRequestScopeKindOrganization CreateGitHubTargetRequestScopeKind = "organization"
	CreateGitHubTargetRequestScopeKindRepository   CreateGitHubTargetRequestScopeKind = "repository"
)

Defines values for CreateGitHubTargetRequestScopeKind.

func (CreateGitHubTargetRequestScopeKind) Valid

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

type CreateGitHubTargetResponse

type CreateGitHubTargetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GitHubTargetMutation
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseCreateGitHubTargetResponse

func ParseCreateGitHubTargetResponse(rsp *http.Response) (*CreateGitHubTargetResponse, error)

ParseCreateGitHubTargetResponse parses an HTTP response from a CreateGitHubTargetWithResponse call

func (CreateGitHubTargetResponse) ContentType

func (r CreateGitHubTargetResponse) ContentType() string

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

func (CreateGitHubTargetResponse) GetApplicationproblemJSON400

func (r CreateGitHubTargetResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateGitHubTargetResponse) GetApplicationproblemJSON401

func (r CreateGitHubTargetResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateGitHubTargetResponse) GetApplicationproblemJSON403

func (r CreateGitHubTargetResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateGitHubTargetResponse) GetApplicationproblemJSON409

func (r CreateGitHubTargetResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (CreateGitHubTargetResponse) GetApplicationproblemJSON421

func (r CreateGitHubTargetResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (CreateGitHubTargetResponse) GetApplicationproblemJSON422

func (r CreateGitHubTargetResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateGitHubTargetResponse) GetApplicationproblemJSON428

func (r CreateGitHubTargetResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (CreateGitHubTargetResponse) GetApplicationproblemJSON503

func (r CreateGitHubTargetResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CreateGitHubTargetResponse) GetBody

func (r CreateGitHubTargetResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateGitHubTargetResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateGitHubTargetResponse) Status

Status returns HTTPResponse.Status

func (CreateGitHubTargetResponse) StatusCode

func (r CreateGitHubTargetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateJoinCodeJSONRequestBody

type CreateJoinCodeJSONRequestBody = CreateJoinCodeRequest

CreateJoinCodeJSONRequestBody defines body for CreateJoinCode for application/json ContentType.

type CreateJoinCodeParams

type CreateJoinCodeParams struct {
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

CreateJoinCodeParams defines parameters for CreateJoinCode.

type CreateJoinCodeRequest

type CreateJoinCodeRequest struct {
	EndpointHints []string `json:"endpointHints"`
}

CreateJoinCodeRequest defines model for CreateJoinCodeRequest.

type CreateJoinCodeResponse

type CreateJoinCodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *JoinCodeDelivery
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON413 the response for an HTTP 413 `application/problem+json` response
	ApplicationproblemJSON413 *PayloadTooLarge
	// ApplicationproblemJSON415 the response for an HTTP 415 `application/problem+json` response
	ApplicationproblemJSON415 *UnsupportedMedia
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateJoinCodeResponse201Headers
}

func ParseCreateJoinCodeResponse

func ParseCreateJoinCodeResponse(rsp *http.Response) (*CreateJoinCodeResponse, error)

ParseCreateJoinCodeResponse parses an HTTP response from a CreateJoinCodeWithResponse call

func (CreateJoinCodeResponse) ContentType

func (r CreateJoinCodeResponse) ContentType() string

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

func (CreateJoinCodeResponse) GetApplicationproblemJSON400

func (r CreateJoinCodeResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateJoinCodeResponse) GetApplicationproblemJSON401

func (r CreateJoinCodeResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateJoinCodeResponse) GetApplicationproblemJSON403

func (r CreateJoinCodeResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateJoinCodeResponse) GetApplicationproblemJSON413

func (r CreateJoinCodeResponse) GetApplicationproblemJSON413() *PayloadTooLarge

GetApplicationproblemJSON413 returns the response for an HTTP 413 `application/problem+json` response

func (CreateJoinCodeResponse) GetApplicationproblemJSON415

func (r CreateJoinCodeResponse) GetApplicationproblemJSON415() *UnsupportedMedia

GetApplicationproblemJSON415 returns the response for an HTTP 415 `application/problem+json` response

func (CreateJoinCodeResponse) GetApplicationproblemJSON421

func (r CreateJoinCodeResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (CreateJoinCodeResponse) GetApplicationproblemJSON422

func (r CreateJoinCodeResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (CreateJoinCodeResponse) GetApplicationproblemJSON503

func (r CreateJoinCodeResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CreateJoinCodeResponse) GetBody

func (r CreateJoinCodeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateJoinCodeResponse) GetJSON201

func (r CreateJoinCodeResponse) GetJSON201() *JoinCodeDelivery

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateJoinCodeResponse) Status

func (r CreateJoinCodeResponse) Status() string

Status returns HTTPResponse.Status

func (CreateJoinCodeResponse) StatusCode

func (r CreateJoinCodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateJoinCodeResponse201Headers

type CreateJoinCodeResponse201Headers struct {
	CacheControl *string
}

CreateJoinCodeResponse201Headers the declared response headers of an HTTP 201 response for CreateJoinCode

type CreateSessionParams

type CreateSessionParams struct {
	// XSpareRunnerAdminBootstrap Short-lived, one-use owner proof derived from the Controller credential boundary.
	XSpareRunnerAdminBootstrap AdminBootstrap `json:"X-SpareRunner-Admin-Bootstrap"`
}

CreateSessionParams defines parameters for CreateSession.

type CreateSessionResponse

type CreateSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON201 the response for an HTTP 201 `application/json` response
	JSON201 *Session
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
	// Headers201 the parsed response headers for an HTTP 201 response
	Headers201 *CreateSessionResponse201Headers
}

func ParseCreateSessionResponse

func ParseCreateSessionResponse(rsp *http.Response) (*CreateSessionResponse, error)

ParseCreateSessionResponse parses an HTTP response from a CreateSessionWithResponse call

func (CreateSessionResponse) ContentType

func (r CreateSessionResponse) ContentType() string

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

func (CreateSessionResponse) GetApplicationproblemJSON400

func (r CreateSessionResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (CreateSessionResponse) GetApplicationproblemJSON401

func (r CreateSessionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (CreateSessionResponse) GetApplicationproblemJSON403

func (r CreateSessionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (CreateSessionResponse) GetApplicationproblemJSON421

func (r CreateSessionResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (CreateSessionResponse) GetApplicationproblemJSON503

func (r CreateSessionResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (CreateSessionResponse) GetBody

func (r CreateSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateSessionResponse) GetJSON201

func (r CreateSessionResponse) GetJSON201() *Session

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateSessionResponse) Status

func (r CreateSessionResponse) Status() string

Status returns HTTPResponse.Status

func (CreateSessionResponse) StatusCode

func (r CreateSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSessionResponse201Headers

type CreateSessionResponse201Headers struct {
	SetCookie *string
}

CreateSessionResponse201Headers the declared response headers of an HTTP 201 response for CreateSession

type DeleteSessionParams

type DeleteSessionParams struct {
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

DeleteSessionParams defines parameters for DeleteSession.

type DeleteSessionResponse

type DeleteSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseDeleteSessionResponse

func ParseDeleteSessionResponse(rsp *http.Response) (*DeleteSessionResponse, error)

ParseDeleteSessionResponse parses an HTTP response from a DeleteSessionWithResponse call

func (DeleteSessionResponse) ContentType

func (r DeleteSessionResponse) ContentType() string

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

func (DeleteSessionResponse) GetApplicationproblemJSON401

func (r DeleteSessionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DeleteSessionResponse) GetApplicationproblemJSON403

func (r DeleteSessionResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DeleteSessionResponse) GetApplicationproblemJSON421

func (r DeleteSessionResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (DeleteSessionResponse) GetApplicationproblemJSON503

func (r DeleteSessionResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (DeleteSessionResponse) GetBody

func (r DeleteSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteSessionResponse) Status

func (r DeleteSessionResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteSessionResponse) StatusCode

func (r DeleteSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DrainNodeParams

type DrainNodeParams struct {
	IfMatch          IfMatch   `json:"If-Match"`
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

DrainNodeParams defines parameters for DrainNode.

type DrainNodeResponse

type DrainNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NodeMutation
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *DrainNodeResponse200Headers
}

func ParseDrainNodeResponse

func ParseDrainNodeResponse(rsp *http.Response) (*DrainNodeResponse, error)

ParseDrainNodeResponse parses an HTTP response from a DrainNodeWithResponse call

func (DrainNodeResponse) ContentType

func (r DrainNodeResponse) ContentType() string

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

func (DrainNodeResponse) GetApplicationproblemJSON400

func (r DrainNodeResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (DrainNodeResponse) GetApplicationproblemJSON401

func (r DrainNodeResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (DrainNodeResponse) GetApplicationproblemJSON403

func (r DrainNodeResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (DrainNodeResponse) GetApplicationproblemJSON404

func (r DrainNodeResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (DrainNodeResponse) GetApplicationproblemJSON409

func (r DrainNodeResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (DrainNodeResponse) GetApplicationproblemJSON421

func (r DrainNodeResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (DrainNodeResponse) GetApplicationproblemJSON422

func (r DrainNodeResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (DrainNodeResponse) GetApplicationproblemJSON428

func (r DrainNodeResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (DrainNodeResponse) GetApplicationproblemJSON503

func (r DrainNodeResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (DrainNodeResponse) GetBody

func (r DrainNodeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DrainNodeResponse) GetJSON200

func (r DrainNodeResponse) GetJSON200() *NodeMutation

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (DrainNodeResponse) Status

func (r DrainNodeResponse) Status() string

Status returns HTTPResponse.Status

func (DrainNodeResponse) StatusCode

func (r DrainNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DrainNodeResponse200Headers

type DrainNodeResponse200Headers struct {
	ETag *string
}

DrainNodeResponse200Headers the declared response headers of an HTTP 200 response for DrainNode

type ExportConfigurationResponse

type ExportConfigurationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// YAML200 the response for an HTTP 200 `application/yaml` response
	YAML200 *string
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ExportConfigurationResponse200Headers
}

func ParseExportConfigurationResponse

func ParseExportConfigurationResponse(rsp *http.Response) (*ExportConfigurationResponse, error)

ParseExportConfigurationResponse parses an HTTP response from a ExportConfigurationWithResponse call

func (ExportConfigurationResponse) ContentType

func (r ExportConfigurationResponse) ContentType() string

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

func (ExportConfigurationResponse) GetApplicationproblemJSON401

func (r ExportConfigurationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ExportConfigurationResponse) GetApplicationproblemJSON421

func (r ExportConfigurationResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (ExportConfigurationResponse) GetApplicationproblemJSON503

func (r ExportConfigurationResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ExportConfigurationResponse) GetBody

func (r ExportConfigurationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ExportConfigurationResponse) GetYAML200

func (r ExportConfigurationResponse) GetYAML200() *string

GetYAML200 returns the response for an HTTP 200 `application/yaml` response

func (ExportConfigurationResponse) Status

Status returns HTTPResponse.Status

func (ExportConfigurationResponse) StatusCode

func (r ExportConfigurationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ExportConfigurationResponse200Headers

type ExportConfigurationResponse200Headers struct {
	ETag *string
}

ExportConfigurationResponse200Headers the declared response headers of an HTTP 200 response for ExportConfiguration

type FieldError

type FieldError struct {
	Code    string `json:"code"`
	Field   string `json:"field"`
	Message string `json:"message"`
}

FieldError defines model for FieldError.

type Forbidden

type Forbidden = Problem

Forbidden defines model for Forbidden.

type Freshness

type Freshness struct {
	FailedAt    *time.Time     `json:"failedAt,omitempty"`
	FailureCode *string        `json:"failureCode,omitempty"`
	ObservedAt  *time.Time     `json:"observedAt,omitempty"`
	State       FreshnessState `json:"state"`
}

Freshness defines model for Freshness.

type FreshnessState

type FreshnessState string

FreshnessState defines model for Freshness.State.

const (
	FreshnessStateFresh   FreshnessState = "fresh"
	FreshnessStateStale   FreshnessState = "stale"
	FreshnessStateUnknown FreshnessState = "unknown"
)

Defines values for FreshnessState.

func (FreshnessState) Valid

func (e FreshnessState) Valid() bool

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

type GetConfigurationResponse

type GetConfigurationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Configuration
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetConfigurationResponse200Headers
}

func ParseGetConfigurationResponse

func ParseGetConfigurationResponse(rsp *http.Response) (*GetConfigurationResponse, error)

ParseGetConfigurationResponse parses an HTTP response from a GetConfigurationWithResponse call

func (GetConfigurationResponse) ContentType

func (r GetConfigurationResponse) ContentType() string

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

func (GetConfigurationResponse) GetApplicationproblemJSON401

func (r GetConfigurationResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetConfigurationResponse) GetApplicationproblemJSON421

func (r GetConfigurationResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (GetConfigurationResponse) GetApplicationproblemJSON503

func (r GetConfigurationResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (GetConfigurationResponse) GetBody

func (r GetConfigurationResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetConfigurationResponse) GetJSON200

func (r GetConfigurationResponse) GetJSON200() *Configuration

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetConfigurationResponse) Status

func (r GetConfigurationResponse) Status() string

Status returns HTTPResponse.Status

func (GetConfigurationResponse) StatusCode

func (r GetConfigurationResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetConfigurationResponse200Headers

type GetConfigurationResponse200Headers struct {
	ETag *string
}

GetConfigurationResponse200Headers the declared response headers of an HTTP 200 response for GetConfiguration

type GetOverviewResponse

type GetOverviewResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Overview
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseGetOverviewResponse

func ParseGetOverviewResponse(rsp *http.Response) (*GetOverviewResponse, error)

ParseGetOverviewResponse parses an HTTP response from a GetOverviewWithResponse call

func (GetOverviewResponse) ContentType

func (r GetOverviewResponse) ContentType() string

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

func (GetOverviewResponse) GetApplicationproblemJSON401

func (r GetOverviewResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetOverviewResponse) GetApplicationproblemJSON421

func (r GetOverviewResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (GetOverviewResponse) GetApplicationproblemJSON503

func (r GetOverviewResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (GetOverviewResponse) GetBody

func (r GetOverviewResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetOverviewResponse) GetJSON200

func (r GetOverviewResponse) GetJSON200() *Overview

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetOverviewResponse) Status

func (r GetOverviewResponse) Status() string

Status returns HTTPResponse.Status

func (GetOverviewResponse) StatusCode

func (r GetOverviewResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSessionResponse

type GetSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Session
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseGetSessionResponse

func ParseGetSessionResponse(rsp *http.Response) (*GetSessionResponse, error)

ParseGetSessionResponse parses an HTTP response from a GetSessionWithResponse call

func (GetSessionResponse) ContentType

func (r GetSessionResponse) ContentType() string

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

func (GetSessionResponse) GetApplicationproblemJSON401

func (r GetSessionResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetSessionResponse) GetApplicationproblemJSON421

func (r GetSessionResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (GetSessionResponse) GetApplicationproblemJSON503

func (r GetSessionResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (GetSessionResponse) GetBody

func (r GetSessionResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSessionResponse) GetJSON200

func (r GetSessionResponse) GetJSON200() *Session

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSessionResponse) Status

func (r GetSessionResponse) Status() string

Status returns HTTPResponse.Status

func (GetSessionResponse) StatusCode

func (r GetSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSetupResponse

type GetSetupResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Setup
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseGetSetupResponse

func ParseGetSetupResponse(rsp *http.Response) (*GetSetupResponse, error)

ParseGetSetupResponse parses an HTTP response from a GetSetupWithResponse call

func (GetSetupResponse) ContentType

func (r GetSetupResponse) ContentType() string

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

func (GetSetupResponse) GetApplicationproblemJSON401

func (r GetSetupResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (GetSetupResponse) GetApplicationproblemJSON421

func (r GetSetupResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (GetSetupResponse) GetApplicationproblemJSON503

func (r GetSetupResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (GetSetupResponse) GetBody

func (r GetSetupResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSetupResponse) GetJSON200

func (r GetSetupResponse) GetJSON200() *Setup

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSetupResponse) Status

func (r GetSetupResponse) Status() string

Status returns HTTPResponse.Status

func (GetSetupResponse) StatusCode

func (r GetSetupResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GitHubInstallation

type GitHubInstallation struct {
	AccountLogin        string                        `json:"accountLogin"`
	AccountType         GitHubInstallationAccountType `json:"accountType"`
	Id                  string                        `json:"id"`
	RepositorySelection string                        `json:"repositorySelection"`
}

GitHubInstallation defines model for GitHubInstallation.

type GitHubInstallationAccountType

type GitHubInstallationAccountType string

GitHubInstallationAccountType defines model for GitHubInstallation.AccountType.

const (
	GitHubInstallationAccountTypeOrganization GitHubInstallationAccountType = "Organization"
	GitHubInstallationAccountTypeUser         GitHubInstallationAccountType = "User"
)

Defines values for GitHubInstallationAccountType.

func (GitHubInstallationAccountType) Valid

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

type GitHubInstallationList

type GitHubInstallationList struct {
	Installations []GitHubInstallation `json:"installations"`
}

GitHubInstallationList defines model for GitHubInstallationList.

type GitHubManifestStart

type GitHubManifestStart struct {
	ActionUrl string    `json:"actionUrl"`
	ExpiresAt time.Time `json:"expiresAt"`

	// Manifest Unsigned public App Manifest JSON; it contains no credential.
	Manifest string `json:"manifest"`

	// State Signed, one-use callback state.
	State string `json:"state"`
}

GitHubManifestStart defines model for GitHubManifestStart.

type GitHubManifestStartRequest

type GitHubManifestStartRequest struct {
	RegistrationAccount *string `json:"registrationAccount,omitempty"`
}

GitHubManifestStartRequest defines model for GitHubManifestStartRequest.

type GitHubTargetMutation

type GitHubTargetMutation struct {
	// ConfigurationRevision Example: 18
	ConfigurationRevision Revision `json:"configurationRevision"`
	Target                Target   `json:"target"`
}

GitHubTargetMutation defines model for GitHubTargetMutation.

type Gone

type Gone = Problem

Gone defines model for Gone.

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type IfMatch

type IfMatch = string

IfMatch defines model for IfMatch.

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 JoinCodeDelivery

type JoinCodeDelivery struct {
	Code    string `json:"code"`
	TokenId string `json:"tokenId"`
}

JoinCodeDelivery defines model for JoinCodeDelivery.

type ListAuditEventsParams

type ListAuditEventsParams struct {
	// Cursor Opaque exclusive cursor returned by the preceding page.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Limit Maximum number of audit events returned in one bounded page.
	Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}

ListAuditEventsParams defines parameters for ListAuditEvents.

type ListAuditEventsResponse

type ListAuditEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *AuditEventPage
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseListAuditEventsResponse

func ParseListAuditEventsResponse(rsp *http.Response) (*ListAuditEventsResponse, error)

ParseListAuditEventsResponse parses an HTTP response from a ListAuditEventsWithResponse call

func (ListAuditEventsResponse) ContentType

func (r ListAuditEventsResponse) ContentType() string

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

func (ListAuditEventsResponse) GetApplicationproblemJSON400

func (r ListAuditEventsResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ListAuditEventsResponse) GetApplicationproblemJSON401

func (r ListAuditEventsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListAuditEventsResponse) GetApplicationproblemJSON421

func (r ListAuditEventsResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (ListAuditEventsResponse) GetApplicationproblemJSON503

func (r ListAuditEventsResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ListAuditEventsResponse) GetBody

func (r ListAuditEventsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListAuditEventsResponse) GetJSON200

func (r ListAuditEventsResponse) GetJSON200() *AuditEventPage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListAuditEventsResponse) Status

func (r ListAuditEventsResponse) Status() string

Status returns HTTPResponse.Status

func (ListAuditEventsResponse) StatusCode

func (r ListAuditEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListGitHubInstallationsResponse

type ListGitHubInstallationsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GitHubInstallationList
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseListGitHubInstallationsResponse

func ParseListGitHubInstallationsResponse(rsp *http.Response) (*ListGitHubInstallationsResponse, error)

ParseListGitHubInstallationsResponse parses an HTTP response from a ListGitHubInstallationsWithResponse call

func (ListGitHubInstallationsResponse) ContentType

func (r ListGitHubInstallationsResponse) ContentType() string

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

func (ListGitHubInstallationsResponse) GetApplicationproblemJSON401

func (r ListGitHubInstallationsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListGitHubInstallationsResponse) GetApplicationproblemJSON421

func (r ListGitHubInstallationsResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (ListGitHubInstallationsResponse) GetApplicationproblemJSON503

func (r ListGitHubInstallationsResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ListGitHubInstallationsResponse) GetBody

func (r ListGitHubInstallationsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListGitHubInstallationsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListGitHubInstallationsResponse) Status

Status returns HTTPResponse.Status

func (ListGitHubInstallationsResponse) StatusCode

func (r ListGitHubInstallationsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListNodesResponse

type ListNodesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		// ConfigurationRevision Example: 18
		ConfigurationRevision Revision `json:"configurationRevision"`
		Nodes                 []Node   `json:"nodes"`
	}
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseListNodesResponse

func ParseListNodesResponse(rsp *http.Response) (*ListNodesResponse, error)

ParseListNodesResponse parses an HTTP response from a ListNodesWithResponse call

func (ListNodesResponse) ContentType

func (r ListNodesResponse) ContentType() string

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

func (ListNodesResponse) GetApplicationproblemJSON401

func (r ListNodesResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListNodesResponse) GetApplicationproblemJSON421

func (r ListNodesResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (ListNodesResponse) GetApplicationproblemJSON503

func (r ListNodesResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ListNodesResponse) GetBody

func (r ListNodesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListNodesResponse) GetJSON200

func (r ListNodesResponse) GetJSON200() *struct {
	// ConfigurationRevision Example: 18
	ConfigurationRevision Revision `json:"configurationRevision"`
	Nodes                 []Node   `json:"nodes"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListNodesResponse) Status

func (r ListNodesResponse) Status() string

Status returns HTTPResponse.Status

func (ListNodesResponse) StatusCode

func (r ListNodesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListRunsResponse

type ListRunsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		Runs []Run `json:"runs"`
	}
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseListRunsResponse

func ParseListRunsResponse(rsp *http.Response) (*ListRunsResponse, error)

ParseListRunsResponse parses an HTTP response from a ListRunsWithResponse call

func (ListRunsResponse) ContentType

func (r ListRunsResponse) ContentType() string

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

func (ListRunsResponse) GetApplicationproblemJSON401

func (r ListRunsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListRunsResponse) GetApplicationproblemJSON421

func (r ListRunsResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (ListRunsResponse) GetApplicationproblemJSON503

func (r ListRunsResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ListRunsResponse) GetBody

func (r ListRunsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListRunsResponse) GetJSON200

func (r ListRunsResponse) GetJSON200() *struct {
	Runs []Run `json:"runs"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListRunsResponse) Status

func (r ListRunsResponse) Status() string

Status returns HTTPResponse.Status

func (ListRunsResponse) StatusCode

func (r ListRunsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListTargetsResponse

type ListTargetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		// ConfigurationRevision Example: 18
		ConfigurationRevision Revision `json:"configurationRevision"`
		Targets               []Target `json:"targets"`
	}
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseListTargetsResponse

func ParseListTargetsResponse(rsp *http.Response) (*ListTargetsResponse, error)

ParseListTargetsResponse parses an HTTP response from a ListTargetsWithResponse call

func (ListTargetsResponse) ContentType

func (r ListTargetsResponse) ContentType() string

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

func (ListTargetsResponse) GetApplicationproblemJSON401

func (r ListTargetsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ListTargetsResponse) GetApplicationproblemJSON421

func (r ListTargetsResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (ListTargetsResponse) GetApplicationproblemJSON503

func (r ListTargetsResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ListTargetsResponse) GetBody

func (r ListTargetsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListTargetsResponse) GetJSON200

func (r ListTargetsResponse) GetJSON200() *struct {
	// ConfigurationRevision Example: 18
	ConfigurationRevision Revision `json:"configurationRevision"`
	Targets               []Target `json:"targets"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListTargetsResponse) Status

func (r ListTargetsResponse) Status() string

Status returns HTTPResponse.Status

func (ListTargetsResponse) StatusCode

func (r ListTargetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type Misdirected

type Misdirected = Problem

Misdirected defines model for Misdirected.

type Node

type Node struct {
	ActiveRunnerCount   int                     `json:"activeRunnerCount"`
	AdministrativeState NodeAdministrativeState `json:"administrativeState"`
	Architecture        *NodeArchitecture       `json:"architecture,omitempty"`

	// AvailabilityIntent The node owner's adopted global availability intent. Absent means the node has never reported one; this is display provenance only and never a controller-invented default.
	AvailabilityIntent   *NodeAvailabilityIntent `json:"availabilityIntent,omitempty"`
	AvailableMemoryBytes *string                 `json:"availableMemoryBytes,omitempty"`
	DisplayName          string                  `json:"displayName"`

	// ExcludedTargets The controller-adopted set of Target IDs this node owner has excluded. Omitted when the node has never adopted any exclusion; the store cannot distinguish that from an explicit empty set, so an empty adopted set is represented the same way as never reported.
	ExcludedTargets   *[]string            `json:"excludedTargets,omitempty"`
	Id                string               `json:"id"`
	LastSeenAt        *time.Time           `json:"lastSeenAt,omitempty"`
	MaxRunners        int                  `json:"maxRunners"`
	NativeRunnerReady bool                 `json:"nativeRunnerReady"`
	ObservedState     NodeObservedState    `json:"observedState"`
	OperatingSystem   *NodeOperatingSystem `json:"operatingSystem,omitempty"`
	Reconciled        bool                 `json:"reconciled"`
	RunnerVersion     *string              `json:"runnerVersion,omitempty"`

	// SharedRunnerIdentity True when this node's native runner executes jobs under the agent's own uid instead of a dedicated per-runner uid, so uid isolation between the agent and the job it runs is absent. Absent means the node has never reported the property; absent is not "isolated" and must not be rendered as the stronger mode. Observation only: it never affects whether the node is admitted work.
	SharedRunnerIdentity *bool   `json:"sharedRunnerIdentity,omitempty"`
	StatusReason         *string `json:"statusReason,omitempty"`
}

Node defines model for Node.

type NodeAdministrativeState

type NodeAdministrativeState string

NodeAdministrativeState defines model for Node.AdministrativeState.

const (
	NodeAdministrativeStateActive      NodeAdministrativeState = "active"
	NodeAdministrativeStateDraining    NodeAdministrativeState = "draining"
	NodeAdministrativeStateQuarantined NodeAdministrativeState = "quarantined"
	NodeAdministrativeStateRevoked     NodeAdministrativeState = "revoked"
)

Defines values for NodeAdministrativeState.

func (NodeAdministrativeState) Valid

func (e NodeAdministrativeState) Valid() bool

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

type NodeArchitecture

type NodeArchitecture string

NodeArchitecture defines model for Node.Architecture.

const (
	NodeArchitectureAmd64 NodeArchitecture = "amd64"
	NodeArchitectureArm64 NodeArchitecture = "arm64"
)

Defines values for NodeArchitecture.

func (NodeArchitecture) Valid

func (e NodeArchitecture) Valid() bool

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

type NodeAvailabilityIntent

type NodeAvailabilityIntent string

NodeAvailabilityIntent The node owner's adopted global availability intent. Absent means the node has never reported one; this is display provenance only and never a controller-invented default.

const (
	Accepting NodeAvailabilityIntent = "accepting"
	Stopped   NodeAvailabilityIntent = "stopped"
)

Defines values for NodeAvailabilityIntent.

func (NodeAvailabilityIntent) Valid

func (e NodeAvailabilityIntent) Valid() bool

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

type NodeConfiguration

type NodeConfiguration struct {
	DisplayName string `json:"displayName"`
	Id          string `json:"id"`
	MaxRunners  int    `json:"maxRunners"`
}

NodeConfiguration defines model for NodeConfiguration.

type NodeID

type NodeID = string

NodeID defines model for NodeID.

type NodeMutation

type NodeMutation struct {
	// ConfigurationRevision Example: 18
	ConfigurationRevision Revision `json:"configurationRevision"`
	Node                  Node     `json:"node"`
}

NodeMutation defines model for NodeMutation.

type NodeObservedState

type NodeObservedState string

NodeObservedState defines model for Node.ObservedState.

const (
	NodeObservedStateOffline     NodeObservedState = "offline"
	NodeObservedStateOnline      NodeObservedState = "online"
	NodeObservedStateReconciling NodeObservedState = "reconciling"
	NodeObservedStateStale       NodeObservedState = "stale"
)

Defines values for NodeObservedState.

func (NodeObservedState) Valid

func (e NodeObservedState) Valid() bool

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

type NodeOperatingSystem

type NodeOperatingSystem string

NodeOperatingSystem defines model for Node.OperatingSystem.

const (
	NodeOperatingSystemLinux   NodeOperatingSystem = "linux"
	NodeOperatingSystemMacos   NodeOperatingSystem = "macos"
	NodeOperatingSystemWindows NodeOperatingSystem = "windows"
)

Defines values for NodeOperatingSystem.

func (NodeOperatingSystem) Valid

func (e NodeOperatingSystem) Valid() bool

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

type NotFound

type NotFound = Problem

NotFound defines model for NotFound.

type Overview

type Overview struct {
	ActiveRuns         int         `json:"activeRuns"`
	Conditions         []Condition `json:"conditions"`
	ConfiguredCapacity int         `json:"configuredCapacity"`
	ControllerEpoch    string      `json:"controllerEpoch"`
	NodeCount          int         `json:"nodeCount"`
	TargetCount        int         `json:"targetCount"`
	Version            string      `json:"version"`
}

Overview defines model for Overview.

type PayloadTooLarge

type PayloadTooLarge = Problem

PayloadTooLarge defines model for PayloadTooLarge.

type PreconditionRequired

type PreconditionRequired = Problem

PreconditionRequired defines model for PreconditionRequired.

type Problem

type Problem struct {
	Code string `json:"code"`

	// CurrentRevision Example: 18
	CurrentRevision *Revision     `json:"currentRevision,omitempty"`
	Detail          string        `json:"detail"`
	Errors          *[]FieldError `json:"errors,omitempty"`
	Instance        string        `json:"instance"`
	RequestId       string        `json:"requestId"`
	Status          int           `json:"status"`
	Title           string        `json:"title"`
	Type            string        `json:"type"`
}

Problem defines model for Problem.

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 ResumeNodeParams

type ResumeNodeParams struct {
	IfMatch          IfMatch   `json:"If-Match"`
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

ResumeNodeParams defines parameters for ResumeNode.

type ResumeNodeResponse

type ResumeNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NodeMutation
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ResumeNodeResponse200Headers
}

func ParseResumeNodeResponse

func ParseResumeNodeResponse(rsp *http.Response) (*ResumeNodeResponse, error)

ParseResumeNodeResponse parses an HTTP response from a ResumeNodeWithResponse call

func (ResumeNodeResponse) ContentType

func (r ResumeNodeResponse) ContentType() string

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

func (ResumeNodeResponse) GetApplicationproblemJSON400

func (r ResumeNodeResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (ResumeNodeResponse) GetApplicationproblemJSON401

func (r ResumeNodeResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (ResumeNodeResponse) GetApplicationproblemJSON403

func (r ResumeNodeResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (ResumeNodeResponse) GetApplicationproblemJSON404

func (r ResumeNodeResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (ResumeNodeResponse) GetApplicationproblemJSON409

func (r ResumeNodeResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (ResumeNodeResponse) GetApplicationproblemJSON421

func (r ResumeNodeResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (ResumeNodeResponse) GetApplicationproblemJSON422

func (r ResumeNodeResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (ResumeNodeResponse) GetApplicationproblemJSON428

func (r ResumeNodeResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (ResumeNodeResponse) GetApplicationproblemJSON503

func (r ResumeNodeResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (ResumeNodeResponse) GetBody

func (r ResumeNodeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ResumeNodeResponse) GetJSON200

func (r ResumeNodeResponse) GetJSON200() *NodeMutation

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ResumeNodeResponse) Status

func (r ResumeNodeResponse) Status() string

Status returns HTTPResponse.Status

func (ResumeNodeResponse) StatusCode

func (r ResumeNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ResumeNodeResponse200Headers

type ResumeNodeResponse200Headers struct {
	ETag *string
}

ResumeNodeResponse200Headers the declared response headers of an HTTP 200 response for ResumeNode

type Revision

type Revision = string

Revision Example: 18

type RevokeNodeParams

type RevokeNodeParams struct {
	IfMatch          IfMatch   `json:"If-Match"`
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

RevokeNodeParams defines parameters for RevokeNode.

type RevokeNodeResponse

type RevokeNodeResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *NodeMutation
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON404 the response for an HTTP 404 `application/problem+json` response
	ApplicationproblemJSON404 *NotFound
	// ApplicationproblemJSON409 the response for an HTTP 409 `application/problem+json` response
	ApplicationproblemJSON409 *Conflict
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON428 the response for an HTTP 428 `application/problem+json` response
	ApplicationproblemJSON428 *PreconditionRequired
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *RevokeNodeResponse200Headers
}

func ParseRevokeNodeResponse

func ParseRevokeNodeResponse(rsp *http.Response) (*RevokeNodeResponse, error)

ParseRevokeNodeResponse parses an HTTP response from a RevokeNodeWithResponse call

func (RevokeNodeResponse) ContentType

func (r RevokeNodeResponse) ContentType() string

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

func (RevokeNodeResponse) GetApplicationproblemJSON400

func (r RevokeNodeResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (RevokeNodeResponse) GetApplicationproblemJSON401

func (r RevokeNodeResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (RevokeNodeResponse) GetApplicationproblemJSON403

func (r RevokeNodeResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (RevokeNodeResponse) GetApplicationproblemJSON404

func (r RevokeNodeResponse) GetApplicationproblemJSON404() *NotFound

GetApplicationproblemJSON404 returns the response for an HTTP 404 `application/problem+json` response

func (RevokeNodeResponse) GetApplicationproblemJSON409

func (r RevokeNodeResponse) GetApplicationproblemJSON409() *Conflict

GetApplicationproblemJSON409 returns the response for an HTTP 409 `application/problem+json` response

func (RevokeNodeResponse) GetApplicationproblemJSON421

func (r RevokeNodeResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (RevokeNodeResponse) GetApplicationproblemJSON422

func (r RevokeNodeResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (RevokeNodeResponse) GetApplicationproblemJSON428

func (r RevokeNodeResponse) GetApplicationproblemJSON428() *PreconditionRequired

GetApplicationproblemJSON428 returns the response for an HTTP 428 `application/problem+json` response

func (RevokeNodeResponse) GetApplicationproblemJSON503

func (r RevokeNodeResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (RevokeNodeResponse) GetBody

func (r RevokeNodeResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (RevokeNodeResponse) GetJSON200

func (r RevokeNodeResponse) GetJSON200() *NodeMutation

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (RevokeNodeResponse) Status

func (r RevokeNodeResponse) Status() string

Status returns HTTPResponse.Status

func (RevokeNodeResponse) StatusCode

func (r RevokeNodeResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RevokeNodeResponse200Headers

type RevokeNodeResponse200Headers struct {
	ETag *string
}

RevokeNodeResponse200Headers the declared response headers of an HTTP 200 response for RevokeNode

type Run

type Run struct {
	ErrorCode *RunErrorCode `json:"errorCode,omitempty"`
	Id        string        `json:"id"`
	NodeId    string        `json:"nodeId"`
	SlotIndex int           `json:"slotIndex"`
	State     RunState      `json:"state"`
	TargetId  string        `json:"targetId"`
}

Run defines model for Run.

type RunErrorCode

type RunErrorCode string

RunErrorCode defines model for Run.ErrorCode.

const (
	RunErrorCodeCleanupFailed          RunErrorCode = "cleanup_failed"
	RunErrorCodeCommandRejected        RunErrorCode = "command_rejected"
	RunErrorCodeExecutionConflict      RunErrorCode = "execution_conflict"
	RunErrorCodeJournalFailed          RunErrorCode = "journal_failed"
	RunErrorCodePlatformUnavailable    RunErrorCode = "platform_unavailable"
	RunErrorCodeQuarantined            RunErrorCode = "quarantined"
	RunErrorCodeReconciliationRequired RunErrorCode = "reconciliation_required"
	RunErrorCodeStartFailed            RunErrorCode = "start_failed"
)

Defines values for RunErrorCode.

func (RunErrorCode) Valid

func (e RunErrorCode) Valid() bool

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

type RunState

type RunState string

RunState defines model for Run.State.

const (
	RunStateCleaning      RunState = "cleaning"
	RunStateCleanupFailed RunState = "cleanup_failed"
	RunStateFailed        RunState = "failed"
	RunStatePending       RunState = "pending"
	RunStatePreparing     RunState = "preparing"
	RunStateQuarantined   RunState = "quarantined"
	RunStateReleased      RunState = "released"
	RunStateReserved      RunState = "reserved"
	RunStateRunning       RunState = "running"
)

Defines values for RunState.

func (RunState) Valid

func (e RunState) Valid() bool

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

type RunnerProfile

type RunnerProfile struct {
	Architecture            *RunnerProfileArchitecture    `json:"architecture,omitempty"`
	Id                      string                        `json:"id"`
	Label                   string                        `json:"label"`
	MinAvailableMemoryBytes string                        `json:"minAvailableMemoryBytes"`
	OperatingSystem         *RunnerProfileOperatingSystem `json:"operatingSystem,omitempty"`
	Runtime                 RunnerProfileRuntime          `json:"runtime"`
	VersionPolicy           RunnerProfileVersionPolicy    `json:"versionPolicy"`
}

RunnerProfile defines model for RunnerProfile.

type RunnerProfileArchitecture

type RunnerProfileArchitecture string

RunnerProfileArchitecture defines model for RunnerProfile.Architecture.

const (
	RunnerProfileArchitectureAmd64 RunnerProfileArchitecture = "amd64"
	RunnerProfileArchitectureArm64 RunnerProfileArchitecture = "arm64"
)

Defines values for RunnerProfileArchitecture.

func (RunnerProfileArchitecture) Valid

func (e RunnerProfileArchitecture) Valid() bool

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

type RunnerProfileOperatingSystem

type RunnerProfileOperatingSystem string

RunnerProfileOperatingSystem defines model for RunnerProfile.OperatingSystem.

const (
	RunnerProfileOperatingSystemLinux   RunnerProfileOperatingSystem = "linux"
	RunnerProfileOperatingSystemMacos   RunnerProfileOperatingSystem = "macos"
	RunnerProfileOperatingSystemWindows RunnerProfileOperatingSystem = "windows"
)

Defines values for RunnerProfileOperatingSystem.

func (RunnerProfileOperatingSystem) Valid

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

type RunnerProfileRuntime

type RunnerProfileRuntime string

RunnerProfileRuntime defines model for RunnerProfile.Runtime.

const (
	Native RunnerProfileRuntime = "native"
)

Defines values for RunnerProfileRuntime.

func (RunnerProfileRuntime) Valid

func (e RunnerProfileRuntime) Valid() bool

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

type RunnerProfileVersionPolicy

type RunnerProfileVersionPolicy string

RunnerProfileVersionPolicy defines model for RunnerProfile.VersionPolicy.

const (
	AutoUpdate RunnerProfileVersionPolicy = "auto_update"
	Pinned     RunnerProfileVersionPolicy = "pinned"
)

Defines values for RunnerProfileVersionPolicy.

func (RunnerProfileVersionPolicy) Valid

func (e RunnerProfileVersionPolicy) Valid() bool

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

type SSEEventData

type SSEEventData struct {
	Cursor        string                    `json:"cursor"`
	Resources     []SSEEventDataResources   `json:"resources"`
	SchemaVersion SSEEventDataSchemaVersion `json:"schemaVersion"`
}

SSEEventData defines model for SSEEventData.

type SSEEventDataResources

type SSEEventDataResources string

SSEEventDataResources defines model for SSEEventData.Resources.

const (
	SSEEventDataResourcesAuditEvents   SSEEventDataResources = "audit_events"
	SSEEventDataResourcesConfiguration SSEEventDataResources = "configuration"
	SSEEventDataResourcesNodes         SSEEventDataResources = "nodes"
	SSEEventDataResourcesOverview      SSEEventDataResources = "overview"
	SSEEventDataResourcesRuns          SSEEventDataResources = "runs"
	SSEEventDataResourcesSetup         SSEEventDataResources = "setup"
	SSEEventDataResourcesTargets       SSEEventDataResources = "targets"
)

Defines values for SSEEventDataResources.

func (SSEEventDataResources) Valid

func (e SSEEventDataResources) Valid() bool

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

type SSEEventDataSchemaVersion

type SSEEventDataSchemaVersion int

SSEEventDataSchemaVersion defines model for SSEEventData.SchemaVersion.

const (
	SSEEventDataSchemaVersionN1 SSEEventDataSchemaVersion = 1
)

Defines values for SSEEventDataSchemaVersion.

func (SSEEventDataSchemaVersion) Valid

func (e SSEEventDataSchemaVersion) Valid() bool

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

type SchedulerConfiguration

type SchedulerConfiguration struct {
	MaxRunners *int `json:"maxRunners,omitempty"`
}

SchedulerConfiguration defines model for SchedulerConfiguration.

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 {
	// ListAuditEvents List append-only safe audit events
	// (GET /audit-events)
	ListAuditEvents(w http.ResponseWriter, r *http.Request, params ListAuditEventsParams)
	// AuthorizeBrowserHandoff Authorize one browser handoff as the Controller owner
	// (POST /browser-handoff-authorizations)
	AuthorizeBrowserHandoff(w http.ResponseWriter, r *http.Request, params AuthorizeBrowserHandoffParams)
	// CreateBrowserHandoff Create a non-authorizing browser handoff code
	// (POST /browser-handoffs)
	CreateBrowserHandoff(w http.ResponseWriter, r *http.Request)
	// ClaimBrowserHandoff Claim an owner-approved browser handoff
	// (POST /browser-handoffs/claim)
	ClaimBrowserHandoff(w http.ResponseWriter, r *http.Request)
	// GetConfiguration Read the non-secret desired configuration
	// (GET /configuration)
	GetConfiguration(w http.ResponseWriter, r *http.Request)
	// ApplyConfiguration Atomically replace desired configuration and append its audit event
	// (PUT /configuration)
	ApplyConfiguration(w http.ResponseWriter, r *http.Request, params ApplyConfigurationParams)
	// ExportConfiguration Export versioned non-secret YAML
	// (GET /configuration/export)
	ExportConfiguration(w http.ResponseWriter, r *http.Request)
	// StreamEvents Stream level-triggered management invalidations
	// (GET /events)
	StreamEvents(w http.ResponseWriter, r *http.Request, params StreamEventsParams)
	// CompleteGitHubAppManifest Complete a one-time GitHub App Manifest callback
	// (GET /github/app/callback)
	CompleteGitHubAppManifest(w http.ResponseWriter, r *http.Request, params CompleteGitHubAppManifestParams)
	// StartGitHubAppManifest Start a signed one-time GitHub App Manifest registration
	// (POST /github/app/manifest)
	StartGitHubAppManifest(w http.ResponseWriter, r *http.Request, params StartGitHubAppManifestParams)
	// ListGitHubInstallations List GitHub App installations without credentials
	// (GET /github/installations)
	ListGitHubInstallations(w http.ResponseWriter, r *http.Request)
	// CreateGitHubTarget Verify and persist one private GitHub Target
	// (POST /github/targets)
	CreateGitHubTarget(w http.ResponseWriter, r *http.Request, params CreateGitHubTargetParams)
	// CreateJoinCode Create and deliver a one-time join code
	// (POST /join-codes)
	CreateJoinCode(w http.ResponseWriter, r *http.Request, params CreateJoinCodeParams)
	// CancelJoinCode Cancel an unconsumed join code by its non-secret identifier
	// (DELETE /join-codes/{tokenId})
	CancelJoinCode(w http.ResponseWriter, r *http.Request, tokenId string, params CancelJoinCodeParams)
	// ListNodes List enrolled nodes and last-known state
	// (GET /nodes)
	ListNodes(w http.ResponseWriter, r *http.Request)
	// DrainNode Stop assigning new work to a node
	// (POST /nodes/{nodeId}/drain)
	DrainNode(w http.ResponseWriter, r *http.Request, nodeId NodeID, params DrainNodeParams)
	// ResumeNode Reconcile a drained node before it can advertise capacity
	// (POST /nodes/{nodeId}/resume)
	ResumeNode(w http.ResponseWriter, r *http.Request, nodeId NodeID, params ResumeNodeParams)
	// RevokeNode Revoke a node credential
	// (POST /nodes/{nodeId}/revoke)
	RevokeNode(w http.ResponseWriter, r *http.Request, nodeId NodeID, params RevokeNodeParams)
	// GetOverview Read the safe fleet overview
	// (GET /overview)
	GetOverview(w http.ResponseWriter, r *http.Request)
	// ListRuns List safe execution history
	// (GET /runs)
	ListRuns(w http.ResponseWriter, r *http.Request)
	// DeleteSession End the current administrator session
	// (DELETE /session)
	DeleteSession(w http.ResponseWriter, r *http.Request, params DeleteSessionParams)
	// GetSession Read the current session and in-memory CSRF token
	// (GET /session)
	GetSession(w http.ResponseWriter, r *http.Request)
	// CreateSession Start an owner-authorized loopback administrator session
	// (POST /session)
	CreateSession(w http.ResponseWriter, r *http.Request, params CreateSessionParams)
	// GetSetup Read setup readiness without returning credentials
	// (GET /setup)
	GetSetup(w http.ResponseWriter, r *http.Request)
	// ListTargets List configured targets and last-known GitHub freshness
	// (GET /targets)
	ListTargets(w http.ResponseWriter, r *http.Request)
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

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

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) ApplyConfiguration

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

ApplyConfiguration operation middleware

func (*ServerInterfaceWrapper) AuthorizeBrowserHandoff

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

AuthorizeBrowserHandoff operation middleware

func (*ServerInterfaceWrapper) CancelJoinCode

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

CancelJoinCode operation middleware

func (*ServerInterfaceWrapper) ClaimBrowserHandoff

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

ClaimBrowserHandoff operation middleware

func (*ServerInterfaceWrapper) CompleteGitHubAppManifest

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

CompleteGitHubAppManifest operation middleware

func (*ServerInterfaceWrapper) CreateBrowserHandoff

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

CreateBrowserHandoff operation middleware

func (*ServerInterfaceWrapper) CreateGitHubTarget

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

CreateGitHubTarget operation middleware

func (*ServerInterfaceWrapper) CreateJoinCode

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

CreateJoinCode operation middleware

func (*ServerInterfaceWrapper) CreateSession

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

CreateSession operation middleware

func (*ServerInterfaceWrapper) DeleteSession

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

DeleteSession operation middleware

func (*ServerInterfaceWrapper) DrainNode

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

DrainNode operation middleware

func (*ServerInterfaceWrapper) ExportConfiguration

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

ExportConfiguration operation middleware

func (*ServerInterfaceWrapper) GetConfiguration

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

GetConfiguration operation middleware

func (*ServerInterfaceWrapper) GetOverview

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

GetOverview operation middleware

func (*ServerInterfaceWrapper) GetSession

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

GetSession operation middleware

func (*ServerInterfaceWrapper) GetSetup

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

GetSetup operation middleware

func (*ServerInterfaceWrapper) ListAuditEvents

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

ListAuditEvents operation middleware

func (*ServerInterfaceWrapper) ListGitHubInstallations

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

ListGitHubInstallations operation middleware

func (*ServerInterfaceWrapper) ListNodes

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

ListNodes operation middleware

func (*ServerInterfaceWrapper) ListRuns

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

ListRuns operation middleware

func (*ServerInterfaceWrapper) ListTargets

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

ListTargets operation middleware

func (*ServerInterfaceWrapper) ResumeNode

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

ResumeNode operation middleware

func (*ServerInterfaceWrapper) RevokeNode

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

RevokeNode operation middleware

func (*ServerInterfaceWrapper) StartGitHubAppManifest

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

StartGitHubAppManifest operation middleware

func (*ServerInterfaceWrapper) StreamEvents

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

StreamEvents operation middleware

type Session

type Session struct {
	Authenticated SessionAuthenticated `json:"authenticated"`
	CsrfToken     string               `json:"csrfToken"`
}

Session defines model for Session.

type SessionAuthenticated

type SessionAuthenticated bool

SessionAuthenticated defines model for Session.Authenticated.

const (
	True SessionAuthenticated = true
)

Defines values for SessionAuthenticated.

func (SessionAuthenticated) Valid

func (e SessionAuthenticated) Valid() bool

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

type Setup

type Setup struct {
	Conditions            []Condition         `json:"conditions"`
	ControllerInitialized bool                `json:"controllerInitialized"`
	GithubAppState        SetupGithubAppState `json:"githubAppState"`

	// ManifestFlowSupported Controller exposes the signed one-time GitHub App Manifest callback.
	ManifestFlowSupported bool `json:"manifestFlowSupported"`
	NodeCount             int  `json:"nodeCount"`
	TargetCount           int  `json:"targetCount"`
}

Setup defines model for Setup.

type SetupGithubAppState

type SetupGithubAppState string

SetupGithubAppState defines model for Setup.GithubAppState.

const (
	SetupGithubAppStateConnected    SetupGithubAppState = "connected"
	SetupGithubAppStateDegraded     SetupGithubAppState = "degraded"
	SetupGithubAppStateDisconnected SetupGithubAppState = "disconnected"
)

Defines values for SetupGithubAppState.

func (SetupGithubAppState) Valid

func (e SetupGithubAppState) Valid() bool

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

type StartGitHubAppManifestJSONRequestBody

type StartGitHubAppManifestJSONRequestBody = GitHubManifestStartRequest

StartGitHubAppManifestJSONRequestBody defines body for StartGitHubAppManifest for application/json ContentType.

type StartGitHubAppManifestParams

type StartGitHubAppManifestParams struct {
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

StartGitHubAppManifestParams defines parameters for StartGitHubAppManifest.

type StartGitHubAppManifestResponse

type StartGitHubAppManifestResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *GitHubManifestStart
	// ApplicationproblemJSON400 the response for an HTTP 400 `application/problem+json` response
	ApplicationproblemJSON400 *BadRequest
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON422 the response for an HTTP 422 `application/problem+json` response
	ApplicationproblemJSON422 *ValidationFailed
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseStartGitHubAppManifestResponse

func ParseStartGitHubAppManifestResponse(rsp *http.Response) (*StartGitHubAppManifestResponse, error)

ParseStartGitHubAppManifestResponse parses an HTTP response from a StartGitHubAppManifestWithResponse call

func (StartGitHubAppManifestResponse) ContentType

func (r StartGitHubAppManifestResponse) ContentType() string

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

func (StartGitHubAppManifestResponse) GetApplicationproblemJSON400

func (r StartGitHubAppManifestResponse) GetApplicationproblemJSON400() *BadRequest

GetApplicationproblemJSON400 returns the response for an HTTP 400 `application/problem+json` response

func (StartGitHubAppManifestResponse) GetApplicationproblemJSON401

func (r StartGitHubAppManifestResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (StartGitHubAppManifestResponse) GetApplicationproblemJSON403

func (r StartGitHubAppManifestResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (StartGitHubAppManifestResponse) GetApplicationproblemJSON421

func (r StartGitHubAppManifestResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (StartGitHubAppManifestResponse) GetApplicationproblemJSON422

func (r StartGitHubAppManifestResponse) GetApplicationproblemJSON422() *ValidationFailed

GetApplicationproblemJSON422 returns the response for an HTTP 422 `application/problem+json` response

func (StartGitHubAppManifestResponse) GetApplicationproblemJSON503

func (r StartGitHubAppManifestResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (StartGitHubAppManifestResponse) GetBody

func (r StartGitHubAppManifestResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StartGitHubAppManifestResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (StartGitHubAppManifestResponse) Status

Status returns HTTPResponse.Status

func (StartGitHubAppManifestResponse) StatusCode

func (r StartGitHubAppManifestResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type StdHTTPServerOptions

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

type StreamEventsParams

type StreamEventsParams struct {
	Cursor           *string   `form:"cursor,omitempty" json:"cursor,omitempty"`
	LastEventID      *string   `json:"Last-Event-ID,omitempty"`
	XSpareRunnerCSRF CSRFToken `json:"X-SpareRunner-CSRF"`
}

StreamEventsParams defines parameters for StreamEvents.

type StreamEventsResponse

type StreamEventsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// ApplicationproblemJSON401 the response for an HTTP 401 `application/problem+json` response
	ApplicationproblemJSON401 *Unauthorized
	// ApplicationproblemJSON403 the response for an HTTP 403 `application/problem+json` response
	ApplicationproblemJSON403 *Forbidden
	// ApplicationproblemJSON421 the response for an HTTP 421 `application/problem+json` response
	ApplicationproblemJSON421 *Misdirected
	// ApplicationproblemJSON503 the response for an HTTP 503 `application/problem+json` response
	ApplicationproblemJSON503 *Unavailable
}

func ParseStreamEventsResponse

func ParseStreamEventsResponse(rsp *http.Response) (*StreamEventsResponse, error)

ParseStreamEventsResponse parses an HTTP response from a StreamEventsWithResponse call

func (StreamEventsResponse) ContentType

func (r StreamEventsResponse) ContentType() string

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

func (StreamEventsResponse) GetApplicationproblemJSON401

func (r StreamEventsResponse) GetApplicationproblemJSON401() *Unauthorized

GetApplicationproblemJSON401 returns the response for an HTTP 401 `application/problem+json` response

func (StreamEventsResponse) GetApplicationproblemJSON403

func (r StreamEventsResponse) GetApplicationproblemJSON403() *Forbidden

GetApplicationproblemJSON403 returns the response for an HTTP 403 `application/problem+json` response

func (StreamEventsResponse) GetApplicationproblemJSON421

func (r StreamEventsResponse) GetApplicationproblemJSON421() *Misdirected

GetApplicationproblemJSON421 returns the response for an HTTP 421 `application/problem+json` response

func (StreamEventsResponse) GetApplicationproblemJSON503

func (r StreamEventsResponse) GetApplicationproblemJSON503() *Unavailable

GetApplicationproblemJSON503 returns the response for an HTTP 503 `application/problem+json` response

func (StreamEventsResponse) GetBody

func (r StreamEventsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (StreamEventsResponse) Status

func (r StreamEventsResponse) Status() string

Status returns HTTPResponse.Status

func (StreamEventsResponse) StatusCode

func (r StreamEventsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Target

type Target struct {
	Freshness       Freshness       `json:"freshness"`
	Id              string          `json:"id"`
	InstallationId  string          `json:"installationId"`
	RunnerProfileId string          `json:"runnerProfileId"`
	ScaleSetName    string          `json:"scaleSetName"`
	Scope           string          `json:"scope"`
	ScopeKind       TargetScopeKind `json:"scopeKind"`
	Status          TargetStatus    `json:"status"`
}

Target defines model for Target.

type TargetConfiguration

type TargetConfiguration struct {
	Id              string                       `json:"id"`
	InstallationId  string                       `json:"installationId"`
	RunnerProfileId string                       `json:"runnerProfileId"`
	ScaleSetName    string                       `json:"scaleSetName"`
	Scope           string                       `json:"scope"`
	ScopeKind       TargetConfigurationScopeKind `json:"scopeKind"`
}

TargetConfiguration defines model for TargetConfiguration.

type TargetConfigurationScopeKind

type TargetConfigurationScopeKind string

TargetConfigurationScopeKind defines model for TargetConfiguration.ScopeKind.

const (
	TargetConfigurationScopeKindOrganization TargetConfigurationScopeKind = "organization"
	TargetConfigurationScopeKindRepository   TargetConfigurationScopeKind = "repository"
)

Defines values for TargetConfigurationScopeKind.

func (TargetConfigurationScopeKind) Valid

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

type TargetScopeKind

type TargetScopeKind string

TargetScopeKind defines model for Target.ScopeKind.

const (
	TargetScopeKindOrganization TargetScopeKind = "organization"
	TargetScopeKindRepository   TargetScopeKind = "repository"
)

Defines values for TargetScopeKind.

func (TargetScopeKind) Valid

func (e TargetScopeKind) Valid() bool

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

type TargetStatus

type TargetStatus string

TargetStatus defines model for Target.Status.

const (
	TargetStatusDegraded    TargetStatus = "degraded"
	TargetStatusDeleting    TargetStatus = "deleting"
	TargetStatusReady       TargetStatus = "ready"
	TargetStatusReconciling TargetStatus = "reconciling"
)

Defines values for TargetStatus.

func (TargetStatus) Valid

func (e TargetStatus) Valid() bool

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

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type Unauthorized

type Unauthorized = Problem

Unauthorized defines model for Unauthorized.

type Unavailable

type Unavailable = Problem

Unavailable defines model for Unavailable.

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

type UnsupportedMedia

type UnsupportedMedia = Problem

UnsupportedMedia defines model for UnsupportedMedia.

type ValidationFailed

type ValidationFailed = Problem

ValidationFailed defines model for ValidationFailed.

Jump to

Keyboard shortcuts

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