v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDeleteHostedImageRunnersIdRequest

func NewDeleteHostedImageRunnersIdRequest(server string, id string, params *DeleteHostedImageRunnersIdParams) (*http.Request, error)

NewDeleteHostedImageRunnersIdRequest generates requests for DeleteHostedImageRunnersId

func NewGetHostedImageRunnersIdArtifactsUrlRequest

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

NewGetHostedImageRunnersIdArtifactsUrlRequest generates requests for GetHostedImageRunnersIdArtifactsUrl

func NewGetHostedImageRunnersIdLogsUrlRequest

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

NewGetHostedImageRunnersIdLogsUrlRequest generates requests for GetHostedImageRunnersIdLogsUrl

func NewGetHostedImageRunnersIdRequest

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

NewGetHostedImageRunnersIdRequest generates requests for GetHostedImageRunnersId

func NewGetHostedImageRunnersIdSpecRequest

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

NewGetHostedImageRunnersIdSpecRequest generates requests for GetHostedImageRunnersIdSpec

func NewGetHostedImageRunnersIdStatusRequest

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

NewGetHostedImageRunnersIdStatusRequest generates requests for GetHostedImageRunnersIdStatus

func NewGetHostedImageRunnersRequest

func NewGetHostedImageRunnersRequest(server string, params *GetHostedImageRunnersParams) (*http.Request, error)

NewGetHostedImageRunnersRequest generates requests for GetHostedImageRunners

func NewPostHostedContainerRegistryAuthorizationTokenRequest

func NewPostHostedContainerRegistryAuthorizationTokenRequest(server string, body PostHostedContainerRegistryAuthorizationTokenJSONRequestBody) (*http.Request, error)

NewPostHostedContainerRegistryAuthorizationTokenRequest calls the generic PostHostedContainerRegistryAuthorizationToken builder with application/json body

func NewPostHostedContainerRegistryAuthorizationTokenRequestWithBody

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

NewPostHostedContainerRegistryAuthorizationTokenRequestWithBody generates requests for PostHostedContainerRegistryAuthorizationToken with any type of body

func NewPostHostedContainerRegistryNameAuthorizationTokenRequest

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

NewPostHostedContainerRegistryNameAuthorizationTokenRequest generates requests for PostHostedContainerRegistryNameAuthorizationToken

func NewPostHostedImageRunnersRequest

func NewPostHostedImageRunnersRequest(server string, body PostHostedImageRunnersJSONRequestBody) (*http.Request, error)

NewPostHostedImageRunnersRequest calls the generic PostHostedImageRunners builder with application/json body

func NewPostHostedImageRunnersRequestWithBody

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

NewPostHostedImageRunnersRequestWithBody generates requests for PostHostedImageRunners with any type of body

Types

type AssetsStatus

type AssetsStatus struct {
	Reason *string `json:"reason,omitempty"`
	Status string  `json:"status"`
}

AssetsStatus defines model for AssetsStatus.

type Auth

type Auth struct {
	Token string `json:"token"`
	User  string `json:"user"`
}

Auth defines model for Auth.

type ClientInterface

type ClientInterface interface {
	// PostHostedContainerRegistryAuthorizationTokenWithBody request with any body
	PostHostedContainerRegistryAuthorizationTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostHostedContainerRegistryAuthorizationToken(ctx context.Context, body PostHostedContainerRegistryAuthorizationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	PostHostedImageRunners(ctx context.Context, body PostHostedImageRunnersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteHostedImageRunnersId request
	DeleteHostedImageRunnersId(ctx context.Context, id string, params *DeleteHostedImageRunnersIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

	// GetHostedImageRunnersIdStatus request
	GetHostedImageRunnersIdStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*HostedAPIClient) 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) DeleteHostedImageRunnersIdWithResponse

func (c *ClientWithResponses) DeleteHostedImageRunnersIdWithResponse(ctx context.Context, id string, params *DeleteHostedImageRunnersIdParams, reqEditors ...RequestEditorFn) (*DeleteHostedImageRunnersIdResponse, error)

DeleteHostedImageRunnersIdWithResponse request returning *DeleteHostedImageRunnersIdResponse

func (*ClientWithResponses) GetHostedImageRunnersIdArtifactsUrlWithResponse

func (c *ClientWithResponses) GetHostedImageRunnersIdArtifactsUrlWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdArtifactsUrlResponse, error)

GetHostedImageRunnersIdArtifactsUrlWithResponse request returning *GetHostedImageRunnersIdArtifactsUrlResponse

func (*ClientWithResponses) GetHostedImageRunnersIdLogsUrlWithResponse

func (c *ClientWithResponses) GetHostedImageRunnersIdLogsUrlWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdLogsUrlResponse, error)

GetHostedImageRunnersIdLogsUrlWithResponse request returning *GetHostedImageRunnersIdLogsUrlResponse

func (*ClientWithResponses) GetHostedImageRunnersIdSpecWithResponse

func (c *ClientWithResponses) GetHostedImageRunnersIdSpecWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdSpecResponse, error)

GetHostedImageRunnersIdSpecWithResponse request returning *GetHostedImageRunnersIdSpecResponse

func (*ClientWithResponses) GetHostedImageRunnersIdStatusWithResponse

func (c *ClientWithResponses) GetHostedImageRunnersIdStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdStatusResponse, error)

GetHostedImageRunnersIdStatusWithResponse request returning *GetHostedImageRunnersIdStatusResponse

func (*ClientWithResponses) GetHostedImageRunnersIdWithResponse

func (c *ClientWithResponses) GetHostedImageRunnersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdResponse, error)

GetHostedImageRunnersIdWithResponse request returning *GetHostedImageRunnersIdResponse

func (*ClientWithResponses) GetHostedImageRunnersWithResponse

func (c *ClientWithResponses) GetHostedImageRunnersWithResponse(ctx context.Context, params *GetHostedImageRunnersParams, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersResponse, error)

GetHostedImageRunnersWithResponse request returning *GetHostedImageRunnersResponse

func (*ClientWithResponses) PostHostedContainerRegistryAuthorizationTokenWithBodyWithResponse

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

PostHostedContainerRegistryAuthorizationTokenWithBodyWithResponse request with arbitrary body returning *PostHostedContainerRegistryAuthorizationTokenResponse

func (*ClientWithResponses) PostHostedContainerRegistryNameAuthorizationTokenWithResponse

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

PostHostedContainerRegistryNameAuthorizationTokenWithResponse request returning *PostHostedContainerRegistryNameAuthorizationTokenResponse

func (*ClientWithResponses) PostHostedImageRunnersWithBodyWithResponse

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

PostHostedImageRunnersWithBodyWithResponse request with arbitrary body returning *PostHostedImageRunnersResponse

func (*ClientWithResponses) PostHostedImageRunnersWithResponse

func (c *ClientWithResponses) PostHostedImageRunnersWithResponse(ctx context.Context, body PostHostedImageRunnersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostedImageRunnersResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// PostHostedContainerRegistryAuthorizationTokenWithBodyWithResponse request with any body
	PostHostedContainerRegistryAuthorizationTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostedContainerRegistryAuthorizationTokenResponse, error)

	PostHostedContainerRegistryAuthorizationTokenWithResponse(ctx context.Context, body PostHostedContainerRegistryAuthorizationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostedContainerRegistryAuthorizationTokenResponse, error)

	// PostHostedContainerRegistryNameAuthorizationTokenWithResponse request
	PostHostedContainerRegistryNameAuthorizationTokenWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PostHostedContainerRegistryNameAuthorizationTokenResponse, error)

	// GetHostedImageRunnersWithResponse request
	GetHostedImageRunnersWithResponse(ctx context.Context, params *GetHostedImageRunnersParams, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersResponse, error)

	// PostHostedImageRunnersWithBodyWithResponse request with any body
	PostHostedImageRunnersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHostedImageRunnersResponse, error)

	PostHostedImageRunnersWithResponse(ctx context.Context, body PostHostedImageRunnersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostedImageRunnersResponse, error)

	// DeleteHostedImageRunnersIdWithResponse request
	DeleteHostedImageRunnersIdWithResponse(ctx context.Context, id string, params *DeleteHostedImageRunnersIdParams, reqEditors ...RequestEditorFn) (*DeleteHostedImageRunnersIdResponse, error)

	// GetHostedImageRunnersIdWithResponse request
	GetHostedImageRunnersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdResponse, error)

	// GetHostedImageRunnersIdArtifactsUrlWithResponse request
	GetHostedImageRunnersIdArtifactsUrlWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdArtifactsUrlResponse, error)

	// GetHostedImageRunnersIdLogsUrlWithResponse request
	GetHostedImageRunnersIdLogsUrlWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdLogsUrlResponse, error)

	// GetHostedImageRunnersIdSpecWithResponse request
	GetHostedImageRunnersIdSpecWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdSpecResponse, error)

	// GetHostedImageRunnersIdStatusWithResponse request
	GetHostedImageRunnersIdStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdStatusResponse, error)
}

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

type ContainerRegistryAuthorizationToken

type ContainerRegistryAuthorizationToken struct {
	ExpiresAt *string `json:"expires_at,omitempty"`
	Password  *string `json:"password,omitempty"`
	Username  *string `json:"username,omitempty"`
}

ContainerRegistryAuthorizationToken defines model for ContainerRegistryAuthorizationToken.

type ContainerSpec

type ContainerSpec struct {
	Auth *Auth  `json:"auth,omitempty"`
	Name string `json:"name"`
}

ContainerSpec Test-runner container specification.

type DeleteHostedImageRunnersIdParams

type DeleteHostedImageRunnersIdParams struct {
	// Force forces deletion
	Force *bool `form:"force,omitempty" json:"force,omitempty"`
}

DeleteHostedImageRunnersIdParams defines parameters for DeleteHostedImageRunnersId.

type DeleteHostedImageRunnersIdResponse

type DeleteHostedImageRunnersIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteHostedImageRunnersIdResponse

func ParseDeleteHostedImageRunnersIdResponse(rsp *http.Response) (*DeleteHostedImageRunnersIdResponse, error)

ParseDeleteHostedImageRunnersIdResponse parses an HTTP response from a DeleteHostedImageRunnersIdWithResponse call

func (DeleteHostedImageRunnersIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteHostedImageRunnersIdResponse) StatusCode

func (r DeleteHostedImageRunnersIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type EnvVar

type EnvVar struct {
	// Name Environment variable name.
	Name string `json:"name"`

	// Value Environment variable value.
	Value string `json:"value"`
}

EnvVar Environment variable.

type Error

type Error struct {
	// Code Error code.
	Code string `json:"code"`

	// Message Error message.
	Message string `json:"message"`
}

Error Generic error

type File

type File struct {
	// Data Base64-encoded configuration file.
	Data string `json:"data"`

	// Path Test Runner configuration file mount path inside a container.
	Path string `json:"path"`
}

File Test Runner internal file.

type GetHostedImageRunnersIdArtifactsUrlResponse

type GetHostedImageRunnersIdArtifactsUrlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RunnerArtifactsUrl
}

func ParseGetHostedImageRunnersIdArtifactsUrlResponse

func ParseGetHostedImageRunnersIdArtifactsUrlResponse(rsp *http.Response) (*GetHostedImageRunnersIdArtifactsUrlResponse, error)

ParseGetHostedImageRunnersIdArtifactsUrlResponse parses an HTTP response from a GetHostedImageRunnersIdArtifactsUrlWithResponse call

func (GetHostedImageRunnersIdArtifactsUrlResponse) Status

Status returns HTTPResponse.Status

func (GetHostedImageRunnersIdArtifactsUrlResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetHostedImageRunnersIdLogsUrlResponse

type GetHostedImageRunnersIdLogsUrlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RunnerLogsUrl
}

func ParseGetHostedImageRunnersIdLogsUrlResponse

func ParseGetHostedImageRunnersIdLogsUrlResponse(rsp *http.Response) (*GetHostedImageRunnersIdLogsUrlResponse, error)

ParseGetHostedImageRunnersIdLogsUrlResponse parses an HTTP response from a GetHostedImageRunnersIdLogsUrlWithResponse call

func (GetHostedImageRunnersIdLogsUrlResponse) Status

Status returns HTTPResponse.Status

func (GetHostedImageRunnersIdLogsUrlResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetHostedImageRunnersIdResponse

type GetHostedImageRunnersIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RunnerDetails
}

func ParseGetHostedImageRunnersIdResponse

func ParseGetHostedImageRunnersIdResponse(rsp *http.Response) (*GetHostedImageRunnersIdResponse, error)

ParseGetHostedImageRunnersIdResponse parses an HTTP response from a GetHostedImageRunnersIdWithResponse call

func (GetHostedImageRunnersIdResponse) Status

Status returns HTTPResponse.Status

func (GetHostedImageRunnersIdResponse) StatusCode

func (r GetHostedImageRunnersIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetHostedImageRunnersIdSpecResponse

type GetHostedImageRunnersIdSpecResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RunnerDetails
}

func ParseGetHostedImageRunnersIdSpecResponse

func ParseGetHostedImageRunnersIdSpecResponse(rsp *http.Response) (*GetHostedImageRunnersIdSpecResponse, error)

ParseGetHostedImageRunnersIdSpecResponse parses an HTTP response from a GetHostedImageRunnersIdSpecWithResponse call

func (GetHostedImageRunnersIdSpecResponse) Status

Status returns HTTPResponse.Status

func (GetHostedImageRunnersIdSpecResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetHostedImageRunnersIdStatusResponse

type GetHostedImageRunnersIdStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RunnerStatus
}

func ParseGetHostedImageRunnersIdStatusResponse

func ParseGetHostedImageRunnersIdStatusResponse(rsp *http.Response) (*GetHostedImageRunnersIdStatusResponse, error)

ParseGetHostedImageRunnersIdStatusResponse parses an HTTP response from a GetHostedImageRunnersIdStatusWithResponse call

func (GetHostedImageRunnersIdStatusResponse) Status

Status returns HTTPResponse.Status

func (GetHostedImageRunnersIdStatusResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetHostedImageRunnersParams

type GetHostedImageRunnersParams struct {
	Limit  *int `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

GetHostedImageRunnersParams defines parameters for GetHostedImageRunners.

type GetHostedImageRunnersResponse

type GetHostedImageRunnersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RunnerList
}

func ParseGetHostedImageRunnersResponse

func ParseGetHostedImageRunnersResponse(rsp *http.Response) (*GetHostedImageRunnersResponse, error)

ParseGetHostedImageRunnersResponse parses an HTTP response from a GetHostedImageRunnersWithResponse call

func (GetHostedImageRunnersResponse) Status

Status returns HTTPResponse.Status

func (GetHostedImageRunnersResponse) StatusCode

func (r GetHostedImageRunnersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HostedAPIClient

type HostedAPIClient 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
}

HostedAPIClient which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*HostedAPIClient, error)

Creates a new HostedAPIClient, with reasonable defaults

func (*HostedAPIClient) DeleteHostedImageRunnersId

func (c *HostedAPIClient) DeleteHostedImageRunnersId(ctx context.Context, id string, params *DeleteHostedImageRunnersIdParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*HostedAPIClient) GetHostedImageRunners

func (c *HostedAPIClient) GetHostedImageRunners(ctx context.Context, params *GetHostedImageRunnersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*HostedAPIClient) GetHostedImageRunnersId

func (c *HostedAPIClient) GetHostedImageRunnersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*HostedAPIClient) GetHostedImageRunnersIdArtifactsUrl

func (c *HostedAPIClient) GetHostedImageRunnersIdArtifactsUrl(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*HostedAPIClient) GetHostedImageRunnersIdLogsUrl

func (c *HostedAPIClient) GetHostedImageRunnersIdLogsUrl(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*HostedAPIClient) GetHostedImageRunnersIdSpec

func (c *HostedAPIClient) GetHostedImageRunnersIdSpec(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*HostedAPIClient) GetHostedImageRunnersIdStatus

func (c *HostedAPIClient) GetHostedImageRunnersIdStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*HostedAPIClient) PostHostedContainerRegistryAuthorizationToken

func (c *HostedAPIClient) PostHostedContainerRegistryAuthorizationToken(ctx context.Context, body PostHostedContainerRegistryAuthorizationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*HostedAPIClient) PostHostedContainerRegistryAuthorizationTokenWithBody

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

func (*HostedAPIClient) PostHostedContainerRegistryNameAuthorizationToken

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

func (*HostedAPIClient) PostHostedImageRunners

func (c *HostedAPIClient) PostHostedImageRunners(ctx context.Context, body PostHostedImageRunnersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*HostedAPIClient) PostHostedImageRunnersWithBody

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

type HttpRequestDoer

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

Doer performs HTTP requests.

The standard http.Client implements this interface.

type PostHostedContainerRegistryAuthorizationTokenJSONBody

type PostHostedContainerRegistryAuthorizationTokenJSONBody struct {
	// RegistryUrl Registry url
	RegistryUrl string `json:"registry_url"`
}

PostHostedContainerRegistryAuthorizationTokenJSONBody defines parameters for PostHostedContainerRegistryAuthorizationToken.

type PostHostedContainerRegistryAuthorizationTokenJSONRequestBody

type PostHostedContainerRegistryAuthorizationTokenJSONRequestBody PostHostedContainerRegistryAuthorizationTokenJSONBody

PostHostedContainerRegistryAuthorizationTokenJSONRequestBody defines body for PostHostedContainerRegistryAuthorizationToken for application/json ContentType.

type PostHostedContainerRegistryAuthorizationTokenResponse

type PostHostedContainerRegistryAuthorizationTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ContainerRegistryAuthorizationToken
}

func ParsePostHostedContainerRegistryAuthorizationTokenResponse

func ParsePostHostedContainerRegistryAuthorizationTokenResponse(rsp *http.Response) (*PostHostedContainerRegistryAuthorizationTokenResponse, error)

ParsePostHostedContainerRegistryAuthorizationTokenResponse parses an HTTP response from a PostHostedContainerRegistryAuthorizationTokenWithResponse call

func (PostHostedContainerRegistryAuthorizationTokenResponse) Status

Status returns HTTPResponse.Status

func (PostHostedContainerRegistryAuthorizationTokenResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostHostedContainerRegistryNameAuthorizationTokenResponse

type PostHostedContainerRegistryNameAuthorizationTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ContainerRegistryAuthorizationToken
}

func ParsePostHostedContainerRegistryNameAuthorizationTokenResponse

func ParsePostHostedContainerRegistryNameAuthorizationTokenResponse(rsp *http.Response) (*PostHostedContainerRegistryNameAuthorizationTokenResponse, error)

ParsePostHostedContainerRegistryNameAuthorizationTokenResponse parses an HTTP response from a PostHostedContainerRegistryNameAuthorizationTokenWithResponse call

func (PostHostedContainerRegistryNameAuthorizationTokenResponse) Status

Status returns HTTPResponse.Status

func (PostHostedContainerRegistryNameAuthorizationTokenResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostHostedImageRunnersJSONRequestBody

type PostHostedImageRunnersJSONRequestBody = RunnerSpec

PostHostedImageRunnersJSONRequestBody defines body for PostHostedImageRunners for application/json ContentType.

type PostHostedImageRunnersResponse

type PostHostedImageRunnersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Runner
	JSON400      *Error
}

func ParsePostHostedImageRunnersResponse

func ParsePostHostedImageRunnersResponse(rsp *http.Response) (*PostHostedImageRunnersResponse, error)

ParsePostHostedImageRunnersResponse parses an HTTP response from a PostHostedImageRunnersWithResponse call

func (PostHostedImageRunnersResponse) Status

Status returns HTTPResponse.Status

func (PostHostedImageRunnersResponse) StatusCode

func (r PostHostedImageRunnersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type Runner

type Runner struct {
	Assets *AssetsStatus `json:"assets,omitempty"`

	// CreationTime Test-runner creation time.
	CreationTime int64 `json:"creation_time"`

	// Id Runner ID.
	Id string `json:"id"`

	// Image the image
	Image string `json:"image"`

	// Status Test-runner state.
	Status string `json:"status"`

	// TerminationReason a code describing why the test terminated
	TerminationReason *string `json:"termination_reason,omitempty"`

	// TerminationTime Test-runner execution termination time.
	TerminationTime *int64 `json:"termination_time,omitempty"`
}

Runner Test-runner details.

type RunnerArtifactsUrl

type RunnerArtifactsUrl struct {
	Url string `json:"url"`
}

RunnerArtifactsUrl defines model for RunnerArtifactsUrl.

type RunnerDetails

type RunnerDetails struct {
	Assets *AssetsStatus `json:"assets,omitempty"`

	// CreationTime Test-runner creation time.
	CreationTime int64 `json:"creation_time"`

	// Id Runner ID.
	Id string `json:"id"`

	// Image the image
	Image string `json:"image"`

	// Metadata Test-runner metadata, arbitrary key-value pairs.
	Metadata *RunnerMetadata `json:"metadata,omitempty"`

	// Status Test-runner state.
	Status string `json:"status"`

	// TerminationReason a code describing why the test terminated
	TerminationReason *string `json:"termination_reason,omitempty"`

	// TerminationTime Test-runner execution termination time.
	TerminationTime *int64 `json:"termination_time,omitempty"`
}

RunnerDetails defines model for RunnerDetails.

type RunnerList

type RunnerList struct {
	// Content A List of test-runners.
	Content []Runner `json:"content"`
}

RunnerList defines model for RunnerList.

type RunnerLogsUrl

type RunnerLogsUrl struct {
	Url string `json:"url"`
}

RunnerLogsUrl defines model for RunnerLogsUrl.

type RunnerMetadata

type RunnerMetadata map[string]interface{}

RunnerMetadata Test-runner metadata, arbitrary key-value pairs.

type RunnerSpec

type RunnerSpec struct {
	// Artifacts Test output files.
	Artifacts *[]string `json:"artifacts,omitempty"`

	// Container Test-runner container specification.
	Container ContainerSpec `json:"container"`

	// Entrypoint Command used to run tests.
	Entrypoint *string `json:"entrypoint,omitempty"`

	// Env List of environment variables.
	Env *[]EnvVar `json:"env,omitempty"`

	// Files Test Runner container-mounted files.
	Files *[]File `json:"files,omitempty"`

	// Metadata Test-runner metadata, arbitrary key-value pairs.
	Metadata *RunnerMetadata `json:"metadata,omitempty"`

	// Services Test Runner service containers.
	Services *[]Service `json:"services,omitempty"`

	// Tunnel Test-runner tunnel configuration.
	Tunnel *Tunnel `json:"tunnel,omitempty"`

	// WorkloadType Workload type.
	WorkloadType *RunnerSpecWorkloadType `json:"workload_type,omitempty"`
}

RunnerSpec Test-runner specification.

type RunnerSpecWorkloadType

type RunnerSpecWorkloadType string

RunnerSpecWorkloadType Workload type.

const (
	Other     RunnerSpecWorkloadType = "other"
	Webdriver RunnerSpecWorkloadType = "webdriver"
)

Defines values for RunnerSpecWorkloadType.

type RunnerStatus

type RunnerStatus struct {
	Assets            *AssetsStatus `json:"assets,omitempty"`
	CreationTime      int64         `json:"creation_time"`
	Id                string        `json:"id"`
	Status            string        `json:"status"`
	TerminationReason *string       `json:"termination_reason,omitempty"`
	TerminationTime   *int64        `json:"termination_time,omitempty"`
}

RunnerStatus defines model for RunnerStatus.

type Service

type Service struct {
	// Container Test-runner container specification.
	Container ContainerSpec `json:"container"`

	// Entrypoint Command used to run tests.
	Entrypoint *string `json:"entrypoint,omitempty"`

	// Env List of environment variables.
	Env *[]EnvVar `json:"env,omitempty"`

	// Files Test Runner container-mounted files.
	Files *[]File `json:"files,omitempty"`
	Name  string  `json:"name"`
}

Service Test-runner service specification.

type Tunnel

type Tunnel struct {
	Name  *string `json:"name,omitempty"`
	Owner *string `json:"owner,omitempty"`
}

Tunnel Test-runner tunnel configuration.

Jump to

Keyboard shortcuts

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