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 ¶
- func NewDeleteHostedImageRunnersIdRequest(server string, id string, params *DeleteHostedImageRunnersIdParams) (*http.Request, error)
- func NewGetHostedImageRunnersIdArtifactsUrlRequest(server string, id string) (*http.Request, error)
- func NewGetHostedImageRunnersIdLogsUrlRequest(server string, id string) (*http.Request, error)
- func NewGetHostedImageRunnersIdRequest(server string, id string) (*http.Request, error)
- func NewGetHostedImageRunnersIdSpecRequest(server string, id string) (*http.Request, error)
- func NewGetHostedImageRunnersIdStatusRequest(server string, id string) (*http.Request, error)
- func NewGetHostedImageRunnersRequest(server string, params *GetHostedImageRunnersParams) (*http.Request, error)
- func NewPostHostedContainerRegistryAuthorizationTokenRequest(server string, ...) (*http.Request, error)
- func NewPostHostedContainerRegistryAuthorizationTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostHostedContainerRegistryNameAuthorizationTokenRequest(server string, name string) (*http.Request, error)
- func NewPostHostedImageRunnersRequest(server string, body PostHostedImageRunnersJSONRequestBody) (*http.Request, error)
- func NewPostHostedImageRunnersRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- type AssetsStatus
- type Auth
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteHostedImageRunnersIdWithResponse(ctx context.Context, id string, params *DeleteHostedImageRunnersIdParams, ...) (*DeleteHostedImageRunnersIdResponse, error)
- func (c *ClientWithResponses) GetHostedImageRunnersIdArtifactsUrlWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdArtifactsUrlResponse, error)
- func (c *ClientWithResponses) GetHostedImageRunnersIdLogsUrlWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdLogsUrlResponse, error)
- func (c *ClientWithResponses) GetHostedImageRunnersIdSpecWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdSpecResponse, error)
- func (c *ClientWithResponses) GetHostedImageRunnersIdStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdStatusResponse, error)
- func (c *ClientWithResponses) GetHostedImageRunnersIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetHostedImageRunnersIdResponse, error)
- func (c *ClientWithResponses) GetHostedImageRunnersWithResponse(ctx context.Context, params *GetHostedImageRunnersParams, ...) (*GetHostedImageRunnersResponse, error)
- func (c *ClientWithResponses) PostHostedContainerRegistryAuthorizationTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostHostedContainerRegistryAuthorizationTokenResponse, error)
- func (c *ClientWithResponses) PostHostedContainerRegistryAuthorizationTokenWithResponse(ctx context.Context, ...) (*PostHostedContainerRegistryAuthorizationTokenResponse, error)
- func (c *ClientWithResponses) PostHostedContainerRegistryNameAuthorizationTokenWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*PostHostedContainerRegistryNameAuthorizationTokenResponse, error)
- func (c *ClientWithResponses) PostHostedImageRunnersWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PostHostedImageRunnersResponse, error)
- func (c *ClientWithResponses) PostHostedImageRunnersWithResponse(ctx context.Context, body PostHostedImageRunnersJSONRequestBody, ...) (*PostHostedImageRunnersResponse, error)
- type ClientWithResponsesInterface
- type ContainerRegistryAuthorizationToken
- type ContainerSpec
- type DeleteHostedImageRunnersIdParams
- type DeleteHostedImageRunnersIdResponse
- type EnvVar
- type Error
- type File
- type GetHostedImageRunnersIdArtifactsUrlResponse
- type GetHostedImageRunnersIdLogsUrlResponse
- type GetHostedImageRunnersIdResponse
- type GetHostedImageRunnersIdSpecResponse
- type GetHostedImageRunnersIdStatusResponse
- type GetHostedImageRunnersParams
- type GetHostedImageRunnersResponse
- type HostedAPIClient
- func (c *HostedAPIClient) DeleteHostedImageRunnersId(ctx context.Context, id string, params *DeleteHostedImageRunnersIdParams, ...) (*http.Response, error)
- func (c *HostedAPIClient) GetHostedImageRunners(ctx context.Context, params *GetHostedImageRunnersParams, ...) (*http.Response, error)
- func (c *HostedAPIClient) GetHostedImageRunnersId(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *HostedAPIClient) GetHostedImageRunnersIdArtifactsUrl(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *HostedAPIClient) GetHostedImageRunnersIdLogsUrl(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *HostedAPIClient) GetHostedImageRunnersIdSpec(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *HostedAPIClient) GetHostedImageRunnersIdStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *HostedAPIClient) PostHostedContainerRegistryAuthorizationToken(ctx context.Context, ...) (*http.Response, error)
- func (c *HostedAPIClient) PostHostedContainerRegistryAuthorizationTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *HostedAPIClient) PostHostedContainerRegistryNameAuthorizationToken(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *HostedAPIClient) PostHostedImageRunners(ctx context.Context, body PostHostedImageRunnersJSONRequestBody, ...) (*http.Response, error)
- func (c *HostedAPIClient) PostHostedImageRunnersWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- type HttpRequestDoer
- type PostHostedContainerRegistryAuthorizationTokenJSONBody
- type PostHostedContainerRegistryAuthorizationTokenJSONRequestBody
- type PostHostedContainerRegistryAuthorizationTokenResponse
- type PostHostedContainerRegistryNameAuthorizationTokenResponse
- type PostHostedImageRunnersJSONRequestBody
- type PostHostedImageRunnersResponse
- type RequestEditorFn
- type Runner
- type RunnerArtifactsUrl
- type RunnerDetails
- type RunnerList
- type RunnerLogsUrl
- type RunnerMetadata
- type RunnerSpec
- type RunnerSpecWorkloadType
- type RunnerStatus
- type Service
- type Tunnel
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 ¶
NewGetHostedImageRunnersIdArtifactsUrlRequest generates requests for GetHostedImageRunnersIdArtifactsUrl
func NewGetHostedImageRunnersIdLogsUrlRequest ¶
NewGetHostedImageRunnersIdLogsUrlRequest generates requests for GetHostedImageRunnersIdLogsUrl
func NewGetHostedImageRunnersIdRequest ¶
NewGetHostedImageRunnersIdRequest generates requests for GetHostedImageRunnersId
func NewGetHostedImageRunnersIdSpecRequest ¶
NewGetHostedImageRunnersIdSpecRequest generates requests for GetHostedImageRunnersIdSpec
func NewGetHostedImageRunnersIdStatusRequest ¶
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
Types ¶
type AssetsStatus ¶
AssetsStatus defines model for AssetsStatus.
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 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) PostHostedContainerRegistryAuthorizationTokenWithResponse ¶
func (c *ClientWithResponses) PostHostedContainerRegistryAuthorizationTokenWithResponse(ctx context.Context, body PostHostedContainerRegistryAuthorizationTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*PostHostedContainerRegistryAuthorizationTokenResponse, error)
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 ¶
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 ¶
func ParseDeleteHostedImageRunnersIdResponse ¶
func ParseDeleteHostedImageRunnersIdResponse(rsp *http.Response) (*DeleteHostedImageRunnersIdResponse, error)
ParseDeleteHostedImageRunnersIdResponse parses an HTTP response from a DeleteHostedImageRunnersIdWithResponse call
func (DeleteHostedImageRunnersIdResponse) Status ¶
func (r DeleteHostedImageRunnersIdResponse) Status() string
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 ¶
func (r GetHostedImageRunnersIdArtifactsUrlResponse) Status() string
Status returns HTTPResponse.Status
func (GetHostedImageRunnersIdArtifactsUrlResponse) StatusCode ¶
func (r GetHostedImageRunnersIdArtifactsUrlResponse) StatusCode() int
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 ¶
func (r GetHostedImageRunnersIdLogsUrlResponse) Status() string
Status returns HTTPResponse.Status
func (GetHostedImageRunnersIdLogsUrlResponse) StatusCode ¶
func (r GetHostedImageRunnersIdLogsUrlResponse) StatusCode() int
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 ¶
func (r GetHostedImageRunnersIdResponse) Status() string
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 ¶
func (r GetHostedImageRunnersIdSpecResponse) Status() string
Status returns HTTPResponse.Status
func (GetHostedImageRunnersIdSpecResponse) StatusCode ¶
func (r GetHostedImageRunnersIdSpecResponse) StatusCode() int
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 ¶
func (r GetHostedImageRunnersIdStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetHostedImageRunnersIdStatusResponse) StatusCode ¶
func (r GetHostedImageRunnersIdStatusResponse) StatusCode() int
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 ¶
func (r GetHostedImageRunnersResponse) Status() string
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 ¶
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 ¶
func (r PostHostedContainerRegistryAuthorizationTokenResponse) Status() string
Status returns HTTPResponse.Status
func (PostHostedContainerRegistryAuthorizationTokenResponse) StatusCode ¶
func (r PostHostedContainerRegistryAuthorizationTokenResponse) StatusCode() int
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 ¶
func (r PostHostedContainerRegistryNameAuthorizationTokenResponse) Status() string
Status returns HTTPResponse.Status
func (PostHostedContainerRegistryNameAuthorizationTokenResponse) StatusCode ¶
func (r PostHostedContainerRegistryNameAuthorizationTokenResponse) StatusCode() int
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 ¶
func (r PostHostedImageRunnersResponse) Status() string
Status returns HTTPResponse.Status
func (PostHostedImageRunnersResponse) StatusCode ¶
func (r PostHostedImageRunnersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
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.