Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT.
Index ¶
- Constants
- func NewArtifactsRequest(server string, params *ArtifactsParams) (*http.Request, error)
- func NewCreateApplicationRequest(server string, body CreateApplicationJSONRequestBody) (*http.Request, error)
- func NewCreateApplicationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateTokenRequest(server string, body CreateTokenJSONRequestBody) (*http.Request, error)
- func NewCreateTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDescribeSessionRequest(server string, id string) (*http.Request, error)
- func NewEditApplicationRequest(server string, name string, body EditApplicationJSONRequestBody) (*http.Request, error)
- func NewEditApplicationRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- func NewEnableTagRequest(server string, name string, body EnableTagJSONRequestBody) (*http.Request, error)
- func NewEnableTagRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAvailableLocationsRequest(server string, image string) (*http.Request, error)
- func NewJoinSessionRequest(server string, body JoinSessionJSONRequestBody) (*http.Request, error)
- func NewJoinSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewLeaveSessionRequest(server string, body LeaveSessionJSONRequestBody) (*http.Request, error)
- func NewLeaveSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewListApplicationTagsUpstreamRequest(server string, name string, params *ListApplicationTagsUpstreamParams) (*http.Request, error)
- func NewListApplicationsRequest(server string) (*http.Request, error)
- func NewListRegionsRequest(server string) (*http.Request, error)
- func NewSessionListRequest(server string, params *SessionListParams) (*http.Request, error)
- func NewSessionRunRequest(server string, body SessionRunJSONRequestBody) (*http.Request, error)
- func NewSessionRunRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewSessionStopRequest(server string, id string) (*http.Request, error)
- func NewStreamLogsRequest(server string, params *StreamLogsParams) (*http.Request, error)
- func NewTagExistsRequest(server string, region string, image string, version string) (*http.Request, error)
- type ArtifactsParams
- type ArtifactsResponse
- type AvailableLocationsEntry
- type AvailableLocationsOk
- type Client
- func (c *Client) Artifacts(ctx context.Context, params *ArtifactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateApplication(ctx context.Context, body CreateApplicationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateApplicationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateToken(ctx context.Context, body CreateTokenJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateTokenWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DescribeSession(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) EditApplication(ctx context.Context, name string, body EditApplicationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EditApplicationWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) EnableTag(ctx context.Context, name string, body EnableTagJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) EnableTagWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAvailableLocations(ctx context.Context, image string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) JoinSession(ctx context.Context, body JoinSessionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) JoinSessionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) LeaveSession(ctx context.Context, body LeaveSessionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LeaveSessionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListApplicationTagsUpstream(ctx context.Context, name string, params *ListApplicationTagsUpstreamParams, ...) (*http.Response, error)
- func (c *Client) ListApplications(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListRegions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SessionList(ctx context.Context, params *SessionListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SessionRun(ctx context.Context, body SessionRunJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SessionRunWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) SessionStop(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) StreamLogs(ctx context.Context, params *StreamLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) TagExists(ctx context.Context, region string, image string, version string, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) ArtifactsWithResponse(ctx context.Context, params *ArtifactsParams, reqEditors ...RequestEditorFn) (*ArtifactsResponse, error)
- func (c *ClientWithResponses) CreateApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateApplicationResponse, error)
- func (c *ClientWithResponses) CreateApplicationWithResponse(ctx context.Context, body CreateApplicationJSONRequestBody, ...) (*CreateApplicationResponse, error)
- func (c *ClientWithResponses) CreateTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateTokenResponse, error)
- func (c *ClientWithResponses) CreateTokenWithResponse(ctx context.Context, body CreateTokenJSONRequestBody, ...) (*CreateTokenResponse, error)
- func (c *ClientWithResponses) DescribeSessionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DescribeSessionResponse, error)
- func (c *ClientWithResponses) EditApplicationWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*EditApplicationResponse, error)
- func (c *ClientWithResponses) EditApplicationWithResponse(ctx context.Context, name string, body EditApplicationJSONRequestBody, ...) (*EditApplicationResponse, error)
- func (c *ClientWithResponses) EnableTagWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*EnableTagResponse, error)
- func (c *ClientWithResponses) EnableTagWithResponse(ctx context.Context, name string, body EnableTagJSONRequestBody, ...) (*EnableTagResponse, error)
- func (c *ClientWithResponses) GetAvailableLocationsWithResponse(ctx context.Context, image string, reqEditors ...RequestEditorFn) (*GetAvailableLocationsResponse, error)
- func (c *ClientWithResponses) JoinSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*JoinSessionResponse, error)
- func (c *ClientWithResponses) JoinSessionWithResponse(ctx context.Context, body JoinSessionJSONRequestBody, ...) (*JoinSessionResponse, error)
- func (c *ClientWithResponses) LeaveSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*LeaveSessionResponse, error)
- func (c *ClientWithResponses) LeaveSessionWithResponse(ctx context.Context, body LeaveSessionJSONRequestBody, ...) (*LeaveSessionResponse, error)
- func (c *ClientWithResponses) ListApplicationTagsUpstreamWithResponse(ctx context.Context, name string, params *ListApplicationTagsUpstreamParams, ...) (*ListApplicationTagsUpstreamResponse, error)
- func (c *ClientWithResponses) ListApplicationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListApplicationsResponse, error)
- func (c *ClientWithResponses) ListRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegionsResponse, error)
- func (c *ClientWithResponses) SessionListWithResponse(ctx context.Context, params *SessionListParams, reqEditors ...RequestEditorFn) (*SessionListResponse, error)
- func (c *ClientWithResponses) SessionRunWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*SessionRunResponse, error)
- func (c *ClientWithResponses) SessionRunWithResponse(ctx context.Context, body SessionRunJSONRequestBody, ...) (*SessionRunResponse, error)
- func (c *ClientWithResponses) SessionStopWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SessionStopResponse, error)
- func (c *ClientWithResponses) StreamLogsWithResponse(ctx context.Context, params *StreamLogsParams, reqEditors ...RequestEditorFn) (*StreamLogsResponse, error)
- func (c *ClientWithResponses) TagExistsWithResponse(ctx context.Context, region string, image string, version string, ...) (*TagExistsResponse, error)
- type ClientWithResponsesInterface
- type CreateApplicationJSONRequestBody
- type CreateApplicationRequestBody
- type CreateApplicationResponse
- type CreateApplicationResponseBody
- type CreateTokenJSONRequestBody
- type CreateTokenRequestBody
- type CreateTokenResponse
- type DescribeSessionResponse
- type DescribedSession
- type DescribedSessionPlayers
- type EditApplicationJSONRequestBody
- type EditApplicationRequestBody
- type EditApplicationResponse
- type EnableApplicationTagRequestBody
- type EnableTagJSONRequestBody
- type EnableTagResponse
- type ErrorResponse
- type FieldViolation
- type GetAvailableLocationsResponse
- type HttpRequestDoer
- type JoinSession
- type JoinSessionJSONRequestBody
- type JoinSessionOkBody
- type JoinSessionResponse
- type LeaveSession
- type LeaveSessionJSONRequestBody
- type LeaveSessionOkBody
- type LeaveSessionResponse
- type Limits
- type ListApplicationRegistryTagsResponseBody
- type ListApplicationTagsUpstreamParams
- type ListApplicationTagsUpstreamResponse
- type ListApplicationsResponse
- type ListApplicationsResponseBody
- type ListRegionsResponse
- type ListRegionsResponseBody
- type ListedApplication
- type Port
- type PortBinding
- type PortType
- type RegistryTag
- type RequestEditorFn
- type Reservation
- type SessionListEntry
- type SessionListOkBody
- type SessionListParams
- type SessionListResponse
- type SessionRunBody
- type SessionRunJSONRequestBody
- type SessionRunOkBody
- type SessionRunResponse
- type SessionStatus
- type SessionStopResponse
- type StreamLogsParams
- type StreamLogsResponse
- type TagExistsResponse
- type TagOk
- type TokenCreatedResponseBody
Constants ¶
const (
Api_tokenScopes = "api_token.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewArtifactsRequest ¶
func NewArtifactsRequest(server string, params *ArtifactsParams) (*http.Request, error)
NewArtifactsRequest generates requests for Artifacts
func NewCreateApplicationRequest ¶
func NewCreateApplicationRequest(server string, body CreateApplicationJSONRequestBody) (*http.Request, error)
NewCreateApplicationRequest calls the generic CreateApplication builder with application/json body
func NewCreateApplicationRequestWithBody ¶
func NewCreateApplicationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateApplicationRequestWithBody generates requests for CreateApplication with any type of body
func NewCreateTokenRequest ¶
func NewCreateTokenRequest(server string, body CreateTokenJSONRequestBody) (*http.Request, error)
NewCreateTokenRequest calls the generic CreateToken builder with application/json body
func NewCreateTokenRequestWithBody ¶
func NewCreateTokenRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateTokenRequestWithBody generates requests for CreateToken with any type of body
func NewDescribeSessionRequest ¶
NewDescribeSessionRequest generates requests for DescribeSession
func NewEditApplicationRequest ¶
func NewEditApplicationRequest(server string, name string, body EditApplicationJSONRequestBody) (*http.Request, error)
NewEditApplicationRequest calls the generic EditApplication builder with application/json body
func NewEditApplicationRequestWithBody ¶
func NewEditApplicationRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
NewEditApplicationRequestWithBody generates requests for EditApplication with any type of body
func NewEnableTagRequest ¶
func NewEnableTagRequest(server string, name string, body EnableTagJSONRequestBody) (*http.Request, error)
NewEnableTagRequest calls the generic EnableTag builder with application/json body
func NewEnableTagRequestWithBody ¶
func NewEnableTagRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
NewEnableTagRequestWithBody generates requests for EnableTag with any type of body
func NewGetAvailableLocationsRequest ¶
NewGetAvailableLocationsRequest generates requests for GetAvailableLocations
func NewJoinSessionRequest ¶
func NewJoinSessionRequest(server string, body JoinSessionJSONRequestBody) (*http.Request, error)
NewJoinSessionRequest calls the generic JoinSession builder with application/json body
func NewJoinSessionRequestWithBody ¶
func NewJoinSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewJoinSessionRequestWithBody generates requests for JoinSession with any type of body
func NewLeaveSessionRequest ¶
func NewLeaveSessionRequest(server string, body LeaveSessionJSONRequestBody) (*http.Request, error)
NewLeaveSessionRequest calls the generic LeaveSession builder with application/json body
func NewLeaveSessionRequestWithBody ¶
func NewLeaveSessionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewLeaveSessionRequestWithBody generates requests for LeaveSession with any type of body
func NewListApplicationTagsUpstreamRequest ¶
func NewListApplicationTagsUpstreamRequest(server string, name string, params *ListApplicationTagsUpstreamParams) (*http.Request, error)
NewListApplicationTagsUpstreamRequest generates requests for ListApplicationTagsUpstream
func NewListApplicationsRequest ¶
NewListApplicationsRequest generates requests for ListApplications
func NewListRegionsRequest ¶
NewListRegionsRequest generates requests for ListRegions
func NewSessionListRequest ¶
func NewSessionListRequest(server string, params *SessionListParams) (*http.Request, error)
NewSessionListRequest generates requests for SessionList
func NewSessionRunRequest ¶
func NewSessionRunRequest(server string, body SessionRunJSONRequestBody) (*http.Request, error)
NewSessionRunRequest calls the generic SessionRun builder with application/json body
func NewSessionRunRequestWithBody ¶
func NewSessionRunRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewSessionRunRequestWithBody generates requests for SessionRun with any type of body
func NewSessionStopRequest ¶
NewSessionStopRequest generates requests for SessionStop
func NewStreamLogsRequest ¶
func NewStreamLogsRequest(server string, params *StreamLogsParams) (*http.Request, error)
NewStreamLogsRequest generates requests for StreamLogs
Types ¶
type ArtifactsParams ¶
type ArtifactsParams struct {
// Session The id of the session to download an artifact from.
Session string `form:"session" json:"session"`
// Path The local path inside the container to the target file or folder requested
// for download.
Path string `form:"path" json:"path"`
}
ArtifactsParams defines parameters for Artifacts.
type ArtifactsResponse ¶
type ArtifactsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
}
func ParseArtifactsResponse ¶
func ParseArtifactsResponse(rsp *http.Response) (*ArtifactsResponse, error)
ParseArtifactsResponse parses an HTTP response from a ArtifactsWithResponse call
func (ArtifactsResponse) Status ¶
func (r ArtifactsResponse) Status() string
Status returns HTTPResponse.Status
func (ArtifactsResponse) StatusCode ¶
func (r ArtifactsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AvailableLocationsEntry ¶
AvailableLocationsEntry defines model for AvailableLocationsEntry.
type AvailableLocationsOk ¶
type AvailableLocationsOk struct {
Locations []AvailableLocationsEntry `json:"locations"`
}
AvailableLocationsOk defines model for AvailableLocationsOk.
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) Artifacts ¶
func (c *Client) Artifacts(ctx context.Context, params *ArtifactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateApplication ¶
func (c *Client) CreateApplication(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateApplicationWithBody ¶
func (*Client) CreateToken ¶
func (c *Client) CreateToken(ctx context.Context, body CreateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTokenWithBody ¶
func (*Client) DescribeSession ¶
func (*Client) EditApplication ¶
func (c *Client) EditApplication(ctx context.Context, name string, body EditApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EditApplicationWithBody ¶
func (*Client) EnableTag ¶
func (c *Client) EnableTag(ctx context.Context, name string, body EnableTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) EnableTagWithBody ¶
func (*Client) GetAvailableLocations ¶
func (*Client) JoinSession ¶
func (c *Client) JoinSession(ctx context.Context, body JoinSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) JoinSessionWithBody ¶
func (*Client) LeaveSession ¶
func (c *Client) LeaveSession(ctx context.Context, body LeaveSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LeaveSessionWithBody ¶
func (*Client) ListApplicationTagsUpstream ¶
func (c *Client) ListApplicationTagsUpstream(ctx context.Context, name string, params *ListApplicationTagsUpstreamParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListApplications ¶
func (*Client) ListRegions ¶
func (*Client) SessionList ¶
func (c *Client) SessionList(ctx context.Context, params *SessionListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SessionRun ¶
func (c *Client) SessionRun(ctx context.Context, body SessionRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SessionRunWithBody ¶
func (*Client) SessionStop ¶
func (*Client) StreamLogs ¶
func (c *Client) StreamLogs(ctx context.Context, params *StreamLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListApplications request
ListApplications(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateApplicationWithBody request with any body
CreateApplicationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateApplication(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EditApplicationWithBody request with any body
EditApplicationWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EditApplication(ctx context.Context, name string, body EditApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// EnableTagWithBody request with any body
EnableTagWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
EnableTag(ctx context.Context, name string, body EnableTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListApplicationTagsUpstream request
ListApplicationTagsUpstream(ctx context.Context, name string, params *ListApplicationTagsUpstreamParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// Artifacts request
Artifacts(ctx context.Context, params *ArtifactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAvailableLocations request
GetAvailableLocations(ctx context.Context, image string, reqEditors ...RequestEditorFn) (*http.Response, error)
// StreamLogs request
StreamLogs(ctx context.Context, params *StreamLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListRegions request
ListRegions(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// SessionList request
SessionList(ctx context.Context, params *SessionListParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SessionRunWithBody request with any body
SessionRunWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SessionRun(ctx context.Context, body SessionRunJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// JoinSessionWithBody request with any body
JoinSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
JoinSession(ctx context.Context, body JoinSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// LeaveSessionWithBody request with any body
LeaveSessionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LeaveSession(ctx context.Context, body LeaveSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SessionStop request
SessionStop(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DescribeSession request
DescribeSession(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// TagExists request
TagExists(ctx context.Context, region string, image string, version string, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateTokenWithBody request with any body
CreateTokenWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateToken(ctx context.Context, body CreateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
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) ArtifactsWithResponse ¶
func (c *ClientWithResponses) ArtifactsWithResponse(ctx context.Context, params *ArtifactsParams, reqEditors ...RequestEditorFn) (*ArtifactsResponse, error)
ArtifactsWithResponse request returning *ArtifactsResponse
func (*ClientWithResponses) CreateApplicationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error)
CreateApplicationWithBodyWithResponse request with arbitrary body returning *CreateApplicationResponse
func (*ClientWithResponses) CreateApplicationWithResponse ¶
func (c *ClientWithResponses) CreateApplicationWithResponse(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error)
func (*ClientWithResponses) CreateTokenWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)
CreateTokenWithBodyWithResponse request with arbitrary body returning *CreateTokenResponse
func (*ClientWithResponses) CreateTokenWithResponse ¶
func (c *ClientWithResponses) CreateTokenWithResponse(ctx context.Context, body CreateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)
func (*ClientWithResponses) DescribeSessionWithResponse ¶
func (c *ClientWithResponses) DescribeSessionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DescribeSessionResponse, error)
DescribeSessionWithResponse request returning *DescribeSessionResponse
func (*ClientWithResponses) EditApplicationWithBodyWithResponse ¶
func (c *ClientWithResponses) EditApplicationWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditApplicationResponse, error)
EditApplicationWithBodyWithResponse request with arbitrary body returning *EditApplicationResponse
func (*ClientWithResponses) EditApplicationWithResponse ¶
func (c *ClientWithResponses) EditApplicationWithResponse(ctx context.Context, name string, body EditApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditApplicationResponse, error)
func (*ClientWithResponses) EnableTagWithBodyWithResponse ¶
func (c *ClientWithResponses) EnableTagWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnableTagResponse, error)
EnableTagWithBodyWithResponse request with arbitrary body returning *EnableTagResponse
func (*ClientWithResponses) EnableTagWithResponse ¶
func (c *ClientWithResponses) EnableTagWithResponse(ctx context.Context, name string, body EnableTagJSONRequestBody, reqEditors ...RequestEditorFn) (*EnableTagResponse, error)
func (*ClientWithResponses) GetAvailableLocationsWithResponse ¶
func (c *ClientWithResponses) GetAvailableLocationsWithResponse(ctx context.Context, image string, reqEditors ...RequestEditorFn) (*GetAvailableLocationsResponse, error)
GetAvailableLocationsWithResponse request returning *GetAvailableLocationsResponse
func (*ClientWithResponses) JoinSessionWithBodyWithResponse ¶
func (c *ClientWithResponses) JoinSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*JoinSessionResponse, error)
JoinSessionWithBodyWithResponse request with arbitrary body returning *JoinSessionResponse
func (*ClientWithResponses) JoinSessionWithResponse ¶
func (c *ClientWithResponses) JoinSessionWithResponse(ctx context.Context, body JoinSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*JoinSessionResponse, error)
func (*ClientWithResponses) LeaveSessionWithBodyWithResponse ¶
func (c *ClientWithResponses) LeaveSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LeaveSessionResponse, error)
LeaveSessionWithBodyWithResponse request with arbitrary body returning *LeaveSessionResponse
func (*ClientWithResponses) LeaveSessionWithResponse ¶
func (c *ClientWithResponses) LeaveSessionWithResponse(ctx context.Context, body LeaveSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*LeaveSessionResponse, error)
func (*ClientWithResponses) ListApplicationTagsUpstreamWithResponse ¶
func (c *ClientWithResponses) ListApplicationTagsUpstreamWithResponse(ctx context.Context, name string, params *ListApplicationTagsUpstreamParams, reqEditors ...RequestEditorFn) (*ListApplicationTagsUpstreamResponse, error)
ListApplicationTagsUpstreamWithResponse request returning *ListApplicationTagsUpstreamResponse
func (*ClientWithResponses) ListApplicationsWithResponse ¶
func (c *ClientWithResponses) ListApplicationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListApplicationsResponse, error)
ListApplicationsWithResponse request returning *ListApplicationsResponse
func (*ClientWithResponses) ListRegionsWithResponse ¶
func (c *ClientWithResponses) ListRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegionsResponse, error)
ListRegionsWithResponse request returning *ListRegionsResponse
func (*ClientWithResponses) SessionListWithResponse ¶
func (c *ClientWithResponses) SessionListWithResponse(ctx context.Context, params *SessionListParams, reqEditors ...RequestEditorFn) (*SessionListResponse, error)
SessionListWithResponse request returning *SessionListResponse
func (*ClientWithResponses) SessionRunWithBodyWithResponse ¶
func (c *ClientWithResponses) SessionRunWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SessionRunResponse, error)
SessionRunWithBodyWithResponse request with arbitrary body returning *SessionRunResponse
func (*ClientWithResponses) SessionRunWithResponse ¶
func (c *ClientWithResponses) SessionRunWithResponse(ctx context.Context, body SessionRunJSONRequestBody, reqEditors ...RequestEditorFn) (*SessionRunResponse, error)
func (*ClientWithResponses) SessionStopWithResponse ¶
func (c *ClientWithResponses) SessionStopWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SessionStopResponse, error)
SessionStopWithResponse request returning *SessionStopResponse
func (*ClientWithResponses) StreamLogsWithResponse ¶
func (c *ClientWithResponses) StreamLogsWithResponse(ctx context.Context, params *StreamLogsParams, reqEditors ...RequestEditorFn) (*StreamLogsResponse, error)
StreamLogsWithResponse request returning *StreamLogsResponse
func (*ClientWithResponses) TagExistsWithResponse ¶
func (c *ClientWithResponses) TagExistsWithResponse(ctx context.Context, region string, image string, version string, reqEditors ...RequestEditorFn) (*TagExistsResponse, error)
TagExistsWithResponse request returning *TagExistsResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListApplicationsWithResponse request
ListApplicationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListApplicationsResponse, error)
// CreateApplicationWithBodyWithResponse request with any body
CreateApplicationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error)
CreateApplicationWithResponse(ctx context.Context, body CreateApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApplicationResponse, error)
// EditApplicationWithBodyWithResponse request with any body
EditApplicationWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditApplicationResponse, error)
EditApplicationWithResponse(ctx context.Context, name string, body EditApplicationJSONRequestBody, reqEditors ...RequestEditorFn) (*EditApplicationResponse, error)
// EnableTagWithBodyWithResponse request with any body
EnableTagWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EnableTagResponse, error)
EnableTagWithResponse(ctx context.Context, name string, body EnableTagJSONRequestBody, reqEditors ...RequestEditorFn) (*EnableTagResponse, error)
// ListApplicationTagsUpstreamWithResponse request
ListApplicationTagsUpstreamWithResponse(ctx context.Context, name string, params *ListApplicationTagsUpstreamParams, reqEditors ...RequestEditorFn) (*ListApplicationTagsUpstreamResponse, error)
// ArtifactsWithResponse request
ArtifactsWithResponse(ctx context.Context, params *ArtifactsParams, reqEditors ...RequestEditorFn) (*ArtifactsResponse, error)
// GetAvailableLocationsWithResponse request
GetAvailableLocationsWithResponse(ctx context.Context, image string, reqEditors ...RequestEditorFn) (*GetAvailableLocationsResponse, error)
// StreamLogsWithResponse request
StreamLogsWithResponse(ctx context.Context, params *StreamLogsParams, reqEditors ...RequestEditorFn) (*StreamLogsResponse, error)
// ListRegionsWithResponse request
ListRegionsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListRegionsResponse, error)
// SessionListWithResponse request
SessionListWithResponse(ctx context.Context, params *SessionListParams, reqEditors ...RequestEditorFn) (*SessionListResponse, error)
// SessionRunWithBodyWithResponse request with any body
SessionRunWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SessionRunResponse, error)
SessionRunWithResponse(ctx context.Context, body SessionRunJSONRequestBody, reqEditors ...RequestEditorFn) (*SessionRunResponse, error)
// JoinSessionWithBodyWithResponse request with any body
JoinSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*JoinSessionResponse, error)
JoinSessionWithResponse(ctx context.Context, body JoinSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*JoinSessionResponse, error)
// LeaveSessionWithBodyWithResponse request with any body
LeaveSessionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LeaveSessionResponse, error)
LeaveSessionWithResponse(ctx context.Context, body LeaveSessionJSONRequestBody, reqEditors ...RequestEditorFn) (*LeaveSessionResponse, error)
// SessionStopWithResponse request
SessionStopWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*SessionStopResponse, error)
// DescribeSessionWithResponse request
DescribeSessionWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DescribeSessionResponse, error)
// TagExistsWithResponse request
TagExistsWithResponse(ctx context.Context, region string, image string, version string, reqEditors ...RequestEditorFn) (*TagExistsResponse, error)
// CreateTokenWithBodyWithResponse request with any body
CreateTokenWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)
CreateTokenWithResponse(ctx context.Context, body CreateTokenJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTokenResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateApplicationJSONRequestBody ¶
type CreateApplicationJSONRequestBody = CreateApplicationRequestBody
CreateApplicationJSONRequestBody defines body for CreateApplication for application/json ContentType.
type CreateApplicationRequestBody ¶
type CreateApplicationRequestBody struct {
Limits Limits `json:"limits"`
// Name The name of this application.
Name string `json:"name"`
NetworkMode string `json:"networkMode"`
NodePool string `json:"nodePool"`
Ports []PortBinding `json:"ports"`
Regions []string `json:"regions"`
Registry string `json:"registry"`
Repository string `json:"repository"`
Reservation Reservation `json:"reservation"`
TagKeep int `json:"tagKeep"`
}
CreateApplicationRequestBody defines model for CreateApplicationRequestBody.
type CreateApplicationResponse ¶
type CreateApplicationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CreateApplicationResponseBody
JSON401 *ErrorResponse
JSON409 *ErrorResponse
JSON422 *ErrorResponse
}
func ParseCreateApplicationResponse ¶
func ParseCreateApplicationResponse(rsp *http.Response) (*CreateApplicationResponse, error)
ParseCreateApplicationResponse parses an HTTP response from a CreateApplicationWithResponse call
func (CreateApplicationResponse) Status ¶
func (r CreateApplicationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateApplicationResponse) StatusCode ¶
func (r CreateApplicationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateApplicationResponseBody ¶
type CreateApplicationResponseBody = map[string]interface{}
CreateApplicationResponseBody defines model for CreateApplicationResponseBody.
type CreateTokenJSONRequestBody ¶
type CreateTokenJSONRequestBody = CreateTokenRequestBody
CreateTokenJSONRequestBody defines body for CreateToken for application/json ContentType.
type CreateTokenRequestBody ¶
type CreateTokenRequestBody struct {
// ExpiresAfter The time after which the token should expire. Valid time units are 'm' and 'h'.
// Values equal to less than a minute will be rounded up to a minute.
ExpiresAfter *string `json:"expires_after,omitempty"`
// Name The name of the token to be created.
Name string `json:"name"`
// Scopes The list of scopes that the token should be created with.
Scopes []string `json:"scopes"`
}
CreateTokenRequestBody defines model for CreateTokenRequestBody.
type CreateTokenResponse ¶
type CreateTokenResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *TokenCreatedResponseBody
JSON401 *ErrorResponse
JSON409 *ErrorResponse
JSON422 *ErrorResponse
}
func ParseCreateTokenResponse ¶
func ParseCreateTokenResponse(rsp *http.Response) (*CreateTokenResponse, error)
ParseCreateTokenResponse parses an HTTP response from a CreateTokenWithResponse call
func (CreateTokenResponse) Status ¶
func (r CreateTokenResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTokenResponse) StatusCode ¶
func (r CreateTokenResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DescribeSessionResponse ¶
type DescribeSessionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *DescribedSession
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
}
func ParseDescribeSessionResponse ¶
func ParseDescribeSessionResponse(rsp *http.Response) (*DescribeSessionResponse, error)
ParseDescribeSessionResponse parses an HTTP response from a DescribeSessionWithResponse call
func (DescribeSessionResponse) Status ¶
func (r DescribeSessionResponse) Status() string
Status returns HTTPResponse.Status
func (DescribeSessionResponse) StatusCode ¶
func (r DescribeSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DescribedSession ¶
type DescribedSession struct {
// Id The unique identifier of the session.
Id string `json:"id"`
// Image The name of the image of the game that is hosted inside the container.
Image string `json:"image"`
// Tag The build tag of the image the container is derived from.
Tag string `json:"tag"`
// Location The location or region that the game session is hosted in.
Location string `json:"location"`
// Host The IP address of the host machine the game session is hosted on.
Host string `json:"host"`
// Created The unix timestamp the session was created in.
Created float32 `json:"created"`
// Port A record of exposed ports for this container.
Port map[string]float32 `json:"port"`
// Status The current runtime status of the underlying container.
Status SessionStatus `json:"status"`
// Labels The collection of user-defined key/value metadata stored inside the configuration of the session.
Labels map[string]string `json:"labels"`
Players DescribedSessionPlayers `json:"players"`
}
DescribedSession defines model for DescribedSession.
type DescribedSessionPlayers ¶
type DescribedSessionPlayers struct {
Joined []string `json:"joined"`
JoinedCount int `json:"joinedCount"`
}
DescribedSessionPlayers defines model for DescribedSessionPlayers.
type EditApplicationJSONRequestBody ¶
type EditApplicationJSONRequestBody = EditApplicationRequestBody
EditApplicationJSONRequestBody defines body for EditApplication for application/json ContentType.
type EditApplicationRequestBody ¶
type EditApplicationRequestBody struct {
Limits *Limits `json:"limits,omitempty"`
NetworkMode *string `json:"networkMode,omitempty"`
NodePool *string `json:"nodePool,omitempty"`
Ports *[]PortBinding `json:"ports,omitempty"`
Regions *[]string `json:"regions,omitempty"`
Registry *string `json:"registry,omitempty"`
Repository *string `json:"repository,omitempty"`
Reservation *Reservation `json:"reservation,omitempty"`
TagKeep *int `json:"tagKeep,omitempty"`
}
EditApplicationRequestBody defines model for EditApplicationRequestBody.
type EditApplicationResponse ¶
type EditApplicationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *ErrorResponse
JSON404 *ErrorResponse
}
func ParseEditApplicationResponse ¶
func ParseEditApplicationResponse(rsp *http.Response) (*EditApplicationResponse, error)
ParseEditApplicationResponse parses an HTTP response from a EditApplicationWithResponse call
func (EditApplicationResponse) Status ¶
func (r EditApplicationResponse) Status() string
Status returns HTTPResponse.Status
func (EditApplicationResponse) StatusCode ¶
func (r EditApplicationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EnableApplicationTagRequestBody ¶
type EnableApplicationTagRequestBody struct {
Tag string `json:"tag"`
}
EnableApplicationTagRequestBody defines model for EnableApplicationTagRequestBody.
type EnableTagJSONRequestBody ¶
type EnableTagJSONRequestBody = EnableApplicationTagRequestBody
EnableTagJSONRequestBody defines body for EnableTag for application/json ContentType.
type EnableTagResponse ¶
type EnableTagResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON422 *ErrorResponse
}
func ParseEnableTagResponse ¶
func ParseEnableTagResponse(rsp *http.Response) (*EnableTagResponse, error)
ParseEnableTagResponse parses an HTTP response from a EnableTagWithResponse call
func (EnableTagResponse) Status ¶
func (r EnableTagResponse) Status() string
Status returns HTTPResponse.Status
func (EnableTagResponse) StatusCode ¶
func (r EnableTagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ErrorResponse ¶
type ErrorResponse struct {
Code string `json:"code"`
Details string `json:"details"`
Identifier string `json:"identifier"`
Message string `json:"message"`
Path string `json:"path"`
StatusCode int `json:"statusCode"`
Timestamp string `json:"timestamp"`
Violations *[]FieldViolation `json:"violations,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type FieldViolation ¶
FieldViolation defines model for FieldViolation.
type GetAvailableLocationsResponse ¶
type GetAvailableLocationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AvailableLocationsOk
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
}
func ParseGetAvailableLocationsResponse ¶
func ParseGetAvailableLocationsResponse(rsp *http.Response) (*GetAvailableLocationsResponse, error)
ParseGetAvailableLocationsResponse parses an HTTP response from a GetAvailableLocationsWithResponse call
func (GetAvailableLocationsResponse) Status ¶
func (r GetAvailableLocationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetAvailableLocationsResponse) StatusCode ¶
func (r GetAvailableLocationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type JoinSession ¶
type JoinSession struct {
// Players The list of player ID's to join this session.
Players []string `json:"players"`
// Session The ID of the session.
Session string `json:"session"`
}
JoinSession defines model for JoinSession.
type JoinSessionJSONRequestBody ¶
type JoinSessionJSONRequestBody = JoinSession
JoinSessionJSONRequestBody defines body for JoinSession for application/json ContentType.
type JoinSessionOkBody ¶
type JoinSessionOkBody struct {
// Count The total amount of players that are in this session.
Count int `json:"count"`
// Players The list of player ID's to join this session.
Players []string `json:"players"`
}
JoinSessionOkBody defines model for JoinSessionOkBody.
type JoinSessionResponse ¶
type JoinSessionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *JoinSessionOkBody
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON422 *ErrorResponse
}
func ParseJoinSessionResponse ¶
func ParseJoinSessionResponse(rsp *http.Response) (*JoinSessionResponse, error)
ParseJoinSessionResponse parses an HTTP response from a JoinSessionWithResponse call
func (JoinSessionResponse) Status ¶
func (r JoinSessionResponse) Status() string
Status returns HTTPResponse.Status
func (JoinSessionResponse) StatusCode ¶
func (r JoinSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LeaveSession ¶
type LeaveSession struct {
// Players The list of player ID's to join this session.
Players []string `json:"players"`
}
LeaveSession defines model for LeaveSession.
type LeaveSessionJSONRequestBody ¶
type LeaveSessionJSONRequestBody = LeaveSession
LeaveSessionJSONRequestBody defines body for LeaveSession for application/json ContentType.
type LeaveSessionOkBody ¶
type LeaveSessionOkBody struct {
// Count The total amount of players that are in this session.
Count int `json:"count"`
// Players The list of player ID's to leave this session.
Players []string `json:"players"`
}
LeaveSessionOkBody defines model for LeaveSessionOkBody.
type LeaveSessionResponse ¶
type LeaveSessionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LeaveSessionOkBody
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON422 *ErrorResponse
}
func ParseLeaveSessionResponse ¶
func ParseLeaveSessionResponse(rsp *http.Response) (*LeaveSessionResponse, error)
ParseLeaveSessionResponse parses an HTTP response from a LeaveSessionWithResponse call
func (LeaveSessionResponse) Status ¶
func (r LeaveSessionResponse) Status() string
Status returns HTTPResponse.Status
func (LeaveSessionResponse) StatusCode ¶
func (r LeaveSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Limits ¶
type Limits struct {
Cpu float32 `json:"cpu"`
Gpu *float32 `json:"gpu,omitempty"`
Ram float32 `json:"ram"`
}
Limits defines model for Limits.
type ListApplicationRegistryTagsResponseBody ¶
type ListApplicationRegistryTagsResponseBody struct {
Tags []RegistryTag `json:"tags"`
}
ListApplicationRegistryTagsResponseBody defines model for ListApplicationRegistryTagsResponseBody.
type ListApplicationTagsUpstreamParams ¶
type ListApplicationTagsUpstreamParams struct {
// Page The page number to retrieve.
Page *int `form:"page,omitempty" json:"page,omitempty"`
// PageSize The number of tags to retrieve per page.
PageSize *int `form:"pageSize,omitempty" json:"pageSize,omitempty"`
}
ListApplicationTagsUpstreamParams defines parameters for ListApplicationTagsUpstream.
type ListApplicationTagsUpstreamResponse ¶
type ListApplicationTagsUpstreamResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListApplicationRegistryTagsResponseBody
JSON401 *ErrorResponse
JSON403 *ErrorResponse
}
func ParseListApplicationTagsUpstreamResponse ¶
func ParseListApplicationTagsUpstreamResponse(rsp *http.Response) (*ListApplicationTagsUpstreamResponse, error)
ParseListApplicationTagsUpstreamResponse parses an HTTP response from a ListApplicationTagsUpstreamWithResponse call
func (ListApplicationTagsUpstreamResponse) Status ¶
func (r ListApplicationTagsUpstreamResponse) Status() string
Status returns HTTPResponse.Status
func (ListApplicationTagsUpstreamResponse) StatusCode ¶
func (r ListApplicationTagsUpstreamResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListApplicationsResponse ¶
type ListApplicationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListApplicationsResponseBody
JSON401 *ErrorResponse
JSON403 *ErrorResponse
}
func ParseListApplicationsResponse ¶
func ParseListApplicationsResponse(rsp *http.Response) (*ListApplicationsResponse, error)
ParseListApplicationsResponse parses an HTTP response from a ListApplicationsWithResponse call
func (ListApplicationsResponse) Status ¶
func (r ListApplicationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListApplicationsResponse) StatusCode ¶
func (r ListApplicationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListApplicationsResponseBody ¶
type ListApplicationsResponseBody struct {
Applications []ListedApplication `json:"applications"`
}
ListApplicationsResponseBody defines model for ListApplicationsResponseBody.
type ListRegionsResponse ¶
type ListRegionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ListRegionsResponseBody
JSON401 *ErrorResponse
JSON403 *ErrorResponse
}
func ParseListRegionsResponse ¶
func ParseListRegionsResponse(rsp *http.Response) (*ListRegionsResponse, error)
ParseListRegionsResponse parses an HTTP response from a ListRegionsWithResponse call
func (ListRegionsResponse) Status ¶
func (r ListRegionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListRegionsResponse) StatusCode ¶
func (r ListRegionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListRegionsResponseBody ¶
type ListRegionsResponseBody struct {
Regions []string `json:"regions"`
}
ListRegionsResponseBody defines model for ListRegionsResponseBody.
type ListedApplication ¶
type ListedApplication struct {
// Name The name of this application.
Name string `json:"name"`
Repository string `json:"repository"`
TagKeep int `json:"tagKeep"`
NetworkMode string `json:"networkMode"`
Limits Limits `json:"limits"`
Reservation Reservation `json:"reservation"`
Registry *string `json:"registry,omitempty"`
NodePool *string `json:"nodePool,omitempty"`
Regions []string `json:"regions"`
Ports []PortBinding `json:"ports"`
}
ListedApplication defines model for ListedApplication.
type Port ¶
type Port struct {
// Container The port of the container that is hosted on the machine.
Container int `json:"container"`
// Host The host port for mapping the container port.
Host int `json:"host"`
// Type The type of protocol of this port entry.
Type PortType `json:"type"`
}
Port defines model for Port.
type PortBinding ¶
type PortBinding struct {
Protocol string `json:"protocol"`
Requested int `json:"requested"`
Tls bool `json:"tls"`
}
PortBinding defines model for PortBinding.
type RegistryTag ¶
type RegistryTag struct {
Version string `json:"version"`
}
RegistryTag defines model for RegistryTag.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type Reservation ¶
type Reservation struct {
Cpu float32 `json:"cpu"`
Gpu *float32 `json:"gpu,omitempty"`
Ram float32 `json:"ram"`
}
Reservation defines model for Reservation.
type SessionListEntry ¶
type SessionListEntry struct {
// Id The unique identifier of the session.
Id string `json:"id"`
// Image The name of the image of the game that is hosted inside the container.
Image string `json:"image"`
// Tag The build tag of the image the container is derived from.
Tag *string `json:"tag,omitempty"`
// Location The location or region that the game session is hosted in.
Location string `json:"location"`
// Host The IP address of the host machine the game session is hosted on.
Host string `json:"host"`
// Created The unix timestamp the session was created in.
Created float32 `json:"created"`
// Port A record of exposed ports for this container.
Port map[string]float32 `json:"port"`
// Status The current runtime status of the underlying container.
Status SessionStatus `json:"status,omitempty"`
// Labels The collection of user-defined key/value metadata stored inside the configuration of the session.
Labels *map[string]string `json:"labels,omitempty"`
PlayerCount *int `json:"playerCount,omitempty"`
}
SessionListEntry defines model for SessionListEntry.
type SessionListOkBody ¶
type SessionListOkBody struct {
Sessions []SessionListEntry `json:"sessions"`
}
SessionListOkBody defines model for SessionListOkBody.
type SessionListParams ¶
type SessionListParams struct {
// All Whether to return all sessions regardless of status in the response.
// The default value for this is 'false', which would only return running sessions.
All *bool `form:"all,omitempty" json:"all,omitempty"`
// Location Filter results by location.
Location *string `form:"location,omitempty" json:"location,omitempty"`
// Image Filter results by image.
Image *string `form:"image,omitempty" json:"image,omitempty"`
// Tag Filter results by tag.
Tag *string `form:"tag,omitempty" json:"tag,omitempty"`
// Host Filter results by host IP address.
Host *string `form:"host,omitempty" json:"host,omitempty"`
PlayerCount *map[string]int `json:"playerCount,omitempty"`
Filter *map[string]string `json:"filter,omitempty"`
}
SessionListParams defines parameters for SessionList.
type SessionListResponse ¶
type SessionListResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SessionListOkBody
JSON401 *ErrorResponse
JSON403 *ErrorResponse
}
func ParseSessionListResponse ¶
func ParseSessionListResponse(rsp *http.Response) (*SessionListResponse, error)
ParseSessionListResponse parses an HTTP response from a SessionListWithResponse call
func (SessionListResponse) Status ¶
func (r SessionListResponse) Status() string
Status returns HTTPResponse.Status
func (SessionListResponse) StatusCode ¶
func (r SessionListResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SessionRunBody ¶
type SessionRunBody struct {
// Args The list of program console arguments to feed to the application hosted inside the underlying container. This field is ignored when a container is claimed from a warm pool.
Args *[]string `json:"args,omitempty"`
// Env The list of environment variables to feed the underlying container on startup. This field is ignored when a container is claimed from a warm pool.
Env *map[string]string `json:"env,omitempty"`
// ExternalId An optional customer-provided identifier for this session.
//
ExternalId *string `json:"external_id,omitempty"`
// Id The unique identifier of the session. If undefined, Gameye will generate a UUIDV4
// for you and return it in the API response.
Id *string `json:"id,omitempty"`
// Image The name of the application.
Image string `json:"image"`
// Labels A collection of user-defined key/value metadata. This field is ignored in case a container is claimed from a warm pool.
Labels map[string]string `json:"labels,omitempty"`
// Location The region the game session is to be hosted in.
Location string `json:"location"`
// Restart Indicates whether this session must be automatically restarted on failure. The underlying container will not be restarted in case of a manual termination. This field is ignored when a container is claimed from a warm pool.
Restart *bool `json:"restart,omitempty"`
// Ttl The amount of time a container should live for until it is to be automatically (and forcefully) terminated. Valid time units are 'm' and 'h'. Any value than a minute will be rounded up to a minute.
Ttl *string `json:"ttl,omitempty"`
// Version Tag of the image that the session will be run. This tag needs to be available or a 404 will be thrown. If not specified run the tag with the highest priority. This field is ignored when a container is claimed from a warm pool.
Version *string `json:"version,omitempty"`
}
SessionRunBody defines model for SessionRunBody.
type SessionRunJSONRequestBody ¶
type SessionRunJSONRequestBody = SessionRunBody
SessionRunJSONRequestBody defines body for SessionRun for application/json ContentType.
type SessionRunOkBody ¶
type SessionRunOkBody struct {
// Host The IP address of the machine that the session is running on.
Host string `json:"host"`
// Id The generated unique session ID.
Id *string `json:"id,omitempty"`
// Ports The list of mapped ports for this session.
Ports []Port `json:"ports"`
}
SessionRunOkBody defines model for SessionRunOkBody.
type SessionRunResponse ¶
type SessionRunResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SessionRunOkBody
JSON401 *ErrorResponse
JSON402 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON409 *ErrorResponse
JSON420 *ErrorResponse
JSON422 *ErrorResponse
}
func ParseSessionRunResponse ¶
func ParseSessionRunResponse(rsp *http.Response) (*SessionRunResponse, error)
ParseSessionRunResponse parses an HTTP response from a SessionRunWithResponse call
func (SessionRunResponse) Status ¶
func (r SessionRunResponse) Status() string
Status returns HTTPResponse.Status
func (SessionRunResponse) StatusCode ¶
func (r SessionRunResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SessionStatus ¶
type SessionStatus string
SessionStatus The current runtime status of the underlying container.
const ( Created SessionStatus = "created" Dead SessionStatus = "dead" Draining SessionStatus = "draining" Exited SessionStatus = "exited" Restarting SessionStatus = "restarting" Running SessionStatus = "running" ServerUnreachable SessionStatus = "server_unreachable" Shuttingdown SessionStatus = "shuttingdown" )
Defines values for SessionStatus.
type SessionStopResponse ¶
type SessionStopResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
JSON409 *ErrorResponse
}
func ParseSessionStopResponse ¶
func ParseSessionStopResponse(rsp *http.Response) (*SessionStopResponse, error)
ParseSessionStopResponse parses an HTTP response from a SessionStopWithResponse call
func (SessionStopResponse) Status ¶
func (r SessionStopResponse) Status() string
Status returns HTTPResponse.Status
func (SessionStopResponse) StatusCode ¶
func (r SessionStopResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StreamLogsParams ¶
type StreamLogsParams struct {
Id string `form:"id" json:"id"`
Follow *bool `form:"follow,omitempty" json:"follow,omitempty"`
}
StreamLogsParams defines parameters for StreamLogs.
type StreamLogsResponse ¶
type StreamLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
}
func ParseStreamLogsResponse ¶
func ParseStreamLogsResponse(rsp *http.Response) (*StreamLogsResponse, error)
ParseStreamLogsResponse parses an HTTP response from a StreamLogsWithResponse call
func (StreamLogsResponse) Status ¶
func (r StreamLogsResponse) Status() string
Status returns HTTPResponse.Status
func (StreamLogsResponse) StatusCode ¶
func (r StreamLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TagExistsResponse ¶
type TagExistsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TagOk
JSON400 *ErrorResponse
JSON401 *ErrorResponse
JSON403 *ErrorResponse
JSON404 *ErrorResponse
}
func ParseTagExistsResponse ¶
func ParseTagExistsResponse(rsp *http.Response) (*TagExistsResponse, error)
ParseTagExistsResponse parses an HTTP response from a TagExistsWithResponse call
func (TagExistsResponse) Status ¶
func (r TagExistsResponse) Status() string
Status returns HTTPResponse.Status
func (TagExistsResponse) StatusCode ¶
func (r TagExistsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TokenCreatedResponseBody ¶
type TokenCreatedResponseBody struct {
Token string `json:"token"`
}
TokenCreatedResponseBody defines model for TokenCreatedResponseBody.