Documentation
¶
Overview ¶
Package compute provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.7.1 DO NOT EDIT.
Package compute provides a typed Go client and models generated from the compute service's OpenAPI 3 specification.
Index ¶
- Variables
- func NewAddSSHPublicKeyRequest(server string, body AddSSHPublicKeyJSONRequestBody) (*http.Request, error)
- func NewAddSSHPublicKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddUserKeyRequest(server string, handle string) (*http.Request, error)
- func NewAuthSessionRequest(server string) (*http.Request, error)
- func NewAuthorizeSSHRequest(server string, body AuthorizeSSHJSONRequestBody) (*http.Request, error)
- func NewAuthorizeSSHRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSandboxRequest(server string, params *CreateSandboxParams, body CreateSandboxJSONRequestBody) (*http.Request, error)
- func NewCreateSandboxRequestWithBody(server string, params *CreateSandboxParams, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteSSHPublicKeyRequest(server string, id SSHPublicKeyID) (*http.Request, error)
- func NewDeleteSandboxRequest(server string, id SandboxID, params *DeleteSandboxParams) (*http.Request, error)
- func NewDeleteSnapshotRequest(server string, id SnapshotID, params *DeleteSnapshotParams) (*http.Request, error)
- func NewDeleteUserKeyRequest(server string, handle string, label string) (*http.Request, error)
- func NewExecSandboxRequest(server string, id SandboxID) (*http.Request, error)
- func NewGetNodeRequest(server string, id string) (*http.Request, error)
- func NewGetOperationRequest(server string, id OperationID) (*http.Request, error)
- func NewGetSandboxLineageRequest(server string, id SandboxID) (*http.Request, error)
- func NewGetSandboxLogsRequest(server string, id SandboxID) (*http.Request, error)
- func NewGetSandboxOperationsRequest(server string, id SandboxID) (*http.Request, error)
- func NewGetSandboxRequest(server string, id SandboxID) (*http.Request, error)
- func NewGetSandboxSnapshotsRequest(server string, id SandboxID) (*http.Request, error)
- func NewGetSnapshotRequest(server string, id SnapshotID) (*http.Request, error)
- func NewGetSnapshotRestoredByRequest(server string, id SnapshotID) (*http.Request, error)
- func NewGetTemplateRequest(server string, name string, version string) (*http.Request, error)
- func NewGetUserRequest(server string, handle string) (*http.Request, error)
- func NewHealthzRequest(server string) (*http.Request, error)
- func NewLeaseSandboxRequest(server string, id SandboxID, body LeaseSandboxJSONRequestBody) (*http.Request, error)
- func NewLeaseSandboxRequestWithBody(server string, id SandboxID, contentType string, body io.Reader) (*http.Request, error)
- func NewListAuditRequest(server string) (*http.Request, error)
- func NewListNodesRequest(server string) (*http.Request, error)
- func NewListOperationsRequest(server string, params *ListOperationsParams) (*http.Request, error)
- func NewListSSHPublicKeysRequest(server string, params *ListSSHPublicKeysParams) (*http.Request, error)
- func NewListSandboxesRequest(server string, params *ListSandboxesParams) (*http.Request, error)
- func NewListSnapshotsRequest(server string, params *ListSnapshotsParams) (*http.Request, error)
- func NewListTemplatesRequest(server string, params *ListTemplatesParams) (*http.Request, error)
- func NewListUsersRequest(server string) (*http.Request, error)
- func NewMetaRequest(server string) (*http.Request, error)
- func NewMetricsRequest(server string) (*http.Request, error)
- func NewOpenAPIYAMLRequest(server string) (*http.Request, error)
- func NewPrepareSandboxSSHRequest(server string, id SandboxID, body PrepareSandboxSSHJSONRequestBody) (*http.Request, error)
- func NewPrepareSandboxSSHRequestWithBody(server string, id SandboxID, contentType string, body io.Reader) (*http.Request, error)
- func NewReadyzRequest(server string) (*http.Request, error)
- func NewRestoreSnapshotRequest(server string, id SnapshotID, params *RestoreSnapshotParams, ...) (*http.Request, error)
- func NewRestoreSnapshotRequestWithBody(server string, id SnapshotID, params *RestoreSnapshotParams, ...) (*http.Request, error)
- func NewSnapshotSandboxRequest(server string, id SandboxID, params *SnapshotSandboxParams, ...) (*http.Request, error)
- func NewSnapshotSandboxRequestWithBody(server string, id SandboxID, params *SnapshotSandboxParams, contentType string, ...) (*http.Request, error)
- func NewStartSandboxRequest(server string, id SandboxID, params *StartSandboxParams) (*http.Request, error)
- func NewStopSandboxRequest(server string, id SandboxID, params *StopSandboxParams) (*http.Request, error)
- func NewTunnelSandboxRequest(server string, id SandboxID, port int) (*http.Request, error)
- type AcceptedResponse
- type AddSSHPublicKeyJSONRequestBody
- type AddSSHPublicKeyRequest
- type AddSSHPublicKeyResponse
- type AddUserKeyResponse
- type AuthSession
- type AuthSessionResponse
- type AuthorizeSSHJSONRequestBody
- type AuthorizeSSHResponse
- type BadRequest
- type Client
- func (c *Client) AddSSHPublicKey(ctx context.Context, body AddSSHPublicKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddSSHPublicKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AddUserKey(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AuthSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AuthorizeSSH(ctx context.Context, body AuthorizeSSHJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthorizeSSHWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSandbox(ctx context.Context, params *CreateSandboxParams, ...) (*http.Response, error)
- func (c *Client) CreateSandboxWithBody(ctx context.Context, params *CreateSandboxParams, contentType string, ...) (*http.Response, error)
- func (c *Client) DeleteSSHPublicKey(ctx context.Context, id SSHPublicKeyID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSandbox(ctx context.Context, id SandboxID, params *DeleteSandboxParams, ...) (*http.Response, error)
- func (c *Client) DeleteSnapshot(ctx context.Context, id SnapshotID, params *DeleteSnapshotParams, ...) (*http.Response, error)
- func (c *Client) DeleteUserKey(ctx context.Context, handle string, label string, ...) (*http.Response, error)
- func (c *Client) ExecSandbox(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetNode(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOperation(ctx context.Context, id OperationID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSandbox(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSandboxLineage(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSandboxLogs(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSandboxOperations(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSandboxSnapshots(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSnapshot(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSnapshotRestoredBy(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTemplate(ctx context.Context, name string, version string, ...) (*http.Response, error)
- func (c *Client) GetUser(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Healthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LeaseSandbox(ctx context.Context, id SandboxID, body LeaseSandboxJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) LeaseSandboxWithBody(ctx context.Context, id SandboxID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ListAudit(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListNodes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListOperations(ctx context.Context, params *ListOperationsParams, ...) (*http.Response, error)
- func (c *Client) ListSSHPublicKeys(ctx context.Context, params *ListSSHPublicKeysParams, ...) (*http.Response, error)
- func (c *Client) ListSandboxes(ctx context.Context, params *ListSandboxesParams, ...) (*http.Response, error)
- func (c *Client) ListSnapshots(ctx context.Context, params *ListSnapshotsParams, ...) (*http.Response, error)
- func (c *Client) ListTemplates(ctx context.Context, params *ListTemplatesParams, ...) (*http.Response, error)
- func (c *Client) ListUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Meta(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) Metrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) OpenAPIYAML(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PrepareSandboxSSH(ctx context.Context, id SandboxID, body PrepareSandboxSSHJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PrepareSandboxSSHWithBody(ctx context.Context, id SandboxID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Readyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RestoreSnapshot(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, ...) (*http.Response, error)
- func (c *Client) RestoreSnapshotWithBody(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, ...) (*http.Response, error)
- func (c *Client) SnapshotSandbox(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, ...) (*http.Response, error)
- func (c *Client) SnapshotSandboxWithBody(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, ...) (*http.Response, error)
- func (c *Client) StartSandbox(ctx context.Context, id SandboxID, params *StartSandboxParams, ...) (*http.Response, error)
- func (c *Client) StopSandbox(ctx context.Context, id SandboxID, params *StopSandboxParams, ...) (*http.Response, error)
- func (c *Client) TunnelSandbox(ctx context.Context, id SandboxID, port int, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddSSHPublicKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddSSHPublicKeyResponse, error)
- func (c *ClientWithResponses) AddSSHPublicKeyWithResponse(ctx context.Context, body AddSSHPublicKeyJSONRequestBody, ...) (*AddSSHPublicKeyResponse, error)
- func (c *ClientWithResponses) AddUserKeyWithResponse(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*AddUserKeyResponse, error)
- func (c *ClientWithResponses) AuthSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSessionResponse, error)
- func (c *ClientWithResponses) AuthorizeSSHWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthorizeSSHResponse, error)
- func (c *ClientWithResponses) AuthorizeSSHWithResponse(ctx context.Context, body AuthorizeSSHJSONRequestBody, ...) (*AuthorizeSSHResponse, error)
- func (c *ClientWithResponses) CreateSandboxWithBodyWithResponse(ctx context.Context, params *CreateSandboxParams, contentType string, ...) (*CreateSandboxResponse, error)
- func (c *ClientWithResponses) CreateSandboxWithResponse(ctx context.Context, params *CreateSandboxParams, ...) (*CreateSandboxResponse, error)
- func (c *ClientWithResponses) DeleteSSHPublicKeyWithResponse(ctx context.Context, id SSHPublicKeyID, reqEditors ...RequestEditorFn) (*DeleteSSHPublicKeyResponse, error)
- func (c *ClientWithResponses) DeleteSandboxWithResponse(ctx context.Context, id SandboxID, params *DeleteSandboxParams, ...) (*DeleteSandboxResponse, error)
- func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, id SnapshotID, params *DeleteSnapshotParams, ...) (*DeleteSnapshotResponse, error)
- func (c *ClientWithResponses) DeleteUserKeyWithResponse(ctx context.Context, handle string, label string, ...) (*DeleteUserKeyResponse, error)
- func (c *ClientWithResponses) ExecSandboxWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*ExecSandboxResponse, error)
- func (c *ClientWithResponses) GetNodeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetNodeResponse, error)
- func (c *ClientWithResponses) GetOperationWithResponse(ctx context.Context, id OperationID, reqEditors ...RequestEditorFn) (*GetOperationResponse, error)
- func (c *ClientWithResponses) GetSandboxLineageWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxLineageResponse, error)
- func (c *ClientWithResponses) GetSandboxLogsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxLogsResponse, error)
- func (c *ClientWithResponses) GetSandboxOperationsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxOperationsResponse, error)
- func (c *ClientWithResponses) GetSandboxSnapshotsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxSnapshotsResponse, error)
- func (c *ClientWithResponses) GetSandboxWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxResponse, error)
- func (c *ClientWithResponses) GetSnapshotRestoredByWithResponse(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*GetSnapshotRestoredByResponse, error)
- func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
- func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, name string, version string, ...) (*GetTemplateResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
- func (c *ClientWithResponses) HealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthzResponse, error)
- func (c *ClientWithResponses) LeaseSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, ...) (*LeaseSandboxResponse, error)
- func (c *ClientWithResponses) LeaseSandboxWithResponse(ctx context.Context, id SandboxID, body LeaseSandboxJSONRequestBody, ...) (*LeaseSandboxResponse, error)
- func (c *ClientWithResponses) ListAuditWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAuditResponse, error)
- func (c *ClientWithResponses) ListNodesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)
- func (c *ClientWithResponses) ListOperationsWithResponse(ctx context.Context, params *ListOperationsParams, ...) (*ListOperationsResponse, error)
- func (c *ClientWithResponses) ListSSHPublicKeysWithResponse(ctx context.Context, params *ListSSHPublicKeysParams, ...) (*ListSSHPublicKeysResponse, error)
- func (c *ClientWithResponses) ListSandboxesWithResponse(ctx context.Context, params *ListSandboxesParams, ...) (*ListSandboxesResponse, error)
- func (c *ClientWithResponses) ListSnapshotsWithResponse(ctx context.Context, params *ListSnapshotsParams, ...) (*ListSnapshotsResponse, error)
- func (c *ClientWithResponses) ListTemplatesWithResponse(ctx context.Context, params *ListTemplatesParams, ...) (*ListTemplatesResponse, error)
- func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
- func (c *ClientWithResponses) MetaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetaResponse, error)
- func (c *ClientWithResponses) MetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetricsResponse, error)
- func (c *ClientWithResponses) OpenAPIYAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OpenAPIYAMLResponse, error)
- func (c *ClientWithResponses) PrepareSandboxSSHWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, ...) (*PrepareSandboxSSHResponse, error)
- func (c *ClientWithResponses) PrepareSandboxSSHWithResponse(ctx context.Context, id SandboxID, body PrepareSandboxSSHJSONRequestBody, ...) (*PrepareSandboxSSHResponse, error)
- func (c *ClientWithResponses) ReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReadyzResponse, error)
- func (c *ClientWithResponses) RestoreSnapshotWithBodyWithResponse(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, ...) (*RestoreSnapshotResponse, error)
- func (c *ClientWithResponses) RestoreSnapshotWithResponse(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, ...) (*RestoreSnapshotResponse, error)
- func (c *ClientWithResponses) SnapshotSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, ...) (*SnapshotSandboxResponse, error)
- func (c *ClientWithResponses) SnapshotSandboxWithResponse(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, ...) (*SnapshotSandboxResponse, error)
- func (c *ClientWithResponses) StartSandboxWithResponse(ctx context.Context, id SandboxID, params *StartSandboxParams, ...) (*StartSandboxResponse, error)
- func (c *ClientWithResponses) StopSandboxWithResponse(ctx context.Context, id SandboxID, params *StopSandboxParams, ...) (*StopSandboxResponse, error)
- func (c *ClientWithResponses) TunnelSandboxWithResponse(ctx context.Context, id SandboxID, port int, reqEditors ...RequestEditorFn) (*TunnelSandboxResponse, error)
- type ClientWithResponsesInterface
- type Conflict
- type CreateSandboxJSONRequestBody
- type CreateSandboxParams
- type CreateSandboxRequest
- type CreateSandboxRequestOnDelete
- type CreateSandboxResponse
- type Cursor
- type DeleteSSHPublicKeyResponse
- type DeleteSandboxParams
- type DeleteSandboxResponse
- type DeleteSnapshotParams
- type DeleteSnapshotResponse
- type DeleteUserKeyResponse
- type Error
- type ErrorBody
- type ErrorBodyCode
- type ErrorEnvelope
- type ExecSandboxResponse
- type Failure
- type GetNodeResponse
- type GetOperationResponse
- type GetSandboxLineageResponse
- type GetSandboxLogsResponse
- type GetSandboxOperationsResponse
- type GetSandboxResponse
- type GetSandboxSnapshotsResponse
- type GetSnapshotResponse
- type GetSnapshotRestoredByResponse
- type GetTemplateResponse
- type GetUserResponse
- type HealthzResponse
- type HttpRequestDoer
- type IdempotencyKey
- type InternalError
- type LeaseResponse
- type LeaseSandboxJSONRequestBody
- type LeaseSandboxRequest
- type LeaseSandboxResponse
- type Limit
- type ListAuditResponse
- type ListEnvelope
- type ListNodesResponse
- type ListOperationsParams
- type ListOperationsResponse
- type ListSSHPublicKeysParams
- type ListSSHPublicKeysResponse
- type ListSandboxesParams
- type ListSandboxesResponse
- type ListSnapshotsParams
- type ListSnapshotsResponse
- type ListTemplatesParams
- type ListTemplatesResponse
- type ListUsersResponse
- type MetaResponse
- type MetricsResponse
- type NotFound
- type NotReady
- type Offset
- type OpenAPIYAMLResponse
- type Operation
- type OperationID
- type OperationKind
- type OperationList
- type OperationState
- type PrepareSandboxSSHJSONRequestBody
- type PrepareSandboxSSHRequest
- type PrepareSandboxSSHResponse
- type ReadyzResponse
- type RequestEditorFn
- type RestoreSnapshotJSONRequestBody
- type RestoreSnapshotParams
- type RestoreSnapshotRequest
- type RestoreSnapshotResponse
- type SSHAuthorizeRequest
- type SSHAuthorizeResponse
- type SSHPreparation
- type SSHPublicKey
- type SSHPublicKeyID
- type SSHPublicKeyList
- type Sandbox
- type SandboxID
- type SandboxList
- type SandboxOnDelete
- type SandboxStatus
- type Snapshot
- type SnapshotArchiveState
- type SnapshotID
- type SnapshotList
- type SnapshotSandboxJSONRequestBody
- type SnapshotSandboxParams
- type SnapshotSandboxRequest
- type SnapshotSandboxResponse
- type SnapshotState
- type SnapshotTier
- type StartSandboxParams
- type StartSandboxResponse
- type StopSandboxParams
- type StopSandboxResponse
- type StreamingNotImplemented
- type Template
- type TemplateClockPolicy
- type TemplateList
- type TunnelSandboxResponse
- type UnprocessableEntity
- type WebSessionIdentity
Constants ¶
This section is empty.
Variables ¶
var OpenAPIYAML []byte
OpenAPIYAML is the checked-in OpenAPI 3 specification for the compute service.
Functions ¶
func NewAddSSHPublicKeyRequest ¶
func NewAddSSHPublicKeyRequest(server string, body AddSSHPublicKeyJSONRequestBody) (*http.Request, error)
NewAddSSHPublicKeyRequest calls the generic AddSSHPublicKey builder with application/json body
func NewAddSSHPublicKeyRequestWithBody ¶
func NewAddSSHPublicKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddSSHPublicKeyRequestWithBody generates requests for AddSSHPublicKey with any type of body
func NewAddUserKeyRequest ¶
NewAddUserKeyRequest generates requests for AddUserKey
func NewAuthSessionRequest ¶
NewAuthSessionRequest generates requests for AuthSession
func NewAuthorizeSSHRequest ¶
func NewAuthorizeSSHRequest(server string, body AuthorizeSSHJSONRequestBody) (*http.Request, error)
NewAuthorizeSSHRequest calls the generic AuthorizeSSH builder with application/json body
func NewAuthorizeSSHRequestWithBody ¶
func NewAuthorizeSSHRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthorizeSSHRequestWithBody generates requests for AuthorizeSSH with any type of body
func NewCreateSandboxRequest ¶
func NewCreateSandboxRequest(server string, params *CreateSandboxParams, body CreateSandboxJSONRequestBody) (*http.Request, error)
NewCreateSandboxRequest calls the generic CreateSandbox builder with application/json body
func NewCreateSandboxRequestWithBody ¶
func NewCreateSandboxRequestWithBody(server string, params *CreateSandboxParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateSandboxRequestWithBody generates requests for CreateSandbox with any type of body
func NewDeleteSSHPublicKeyRequest ¶
func NewDeleteSSHPublicKeyRequest(server string, id SSHPublicKeyID) (*http.Request, error)
NewDeleteSSHPublicKeyRequest generates requests for DeleteSSHPublicKey
func NewDeleteSandboxRequest ¶
func NewDeleteSandboxRequest(server string, id SandboxID, params *DeleteSandboxParams) (*http.Request, error)
NewDeleteSandboxRequest generates requests for DeleteSandbox
func NewDeleteSnapshotRequest ¶
func NewDeleteSnapshotRequest(server string, id SnapshotID, params *DeleteSnapshotParams) (*http.Request, error)
NewDeleteSnapshotRequest generates requests for DeleteSnapshot
func NewDeleteUserKeyRequest ¶
NewDeleteUserKeyRequest generates requests for DeleteUserKey
func NewExecSandboxRequest ¶
NewExecSandboxRequest generates requests for ExecSandbox
func NewGetNodeRequest ¶
NewGetNodeRequest generates requests for GetNode
func NewGetOperationRequest ¶
func NewGetOperationRequest(server string, id OperationID) (*http.Request, error)
NewGetOperationRequest generates requests for GetOperation
func NewGetSandboxLineageRequest ¶
NewGetSandboxLineageRequest generates requests for GetSandboxLineage
func NewGetSandboxLogsRequest ¶
NewGetSandboxLogsRequest generates requests for GetSandboxLogs
func NewGetSandboxOperationsRequest ¶
NewGetSandboxOperationsRequest generates requests for GetSandboxOperations
func NewGetSandboxRequest ¶
NewGetSandboxRequest generates requests for GetSandbox
func NewGetSandboxSnapshotsRequest ¶
NewGetSandboxSnapshotsRequest generates requests for GetSandboxSnapshots
func NewGetSnapshotRequest ¶
func NewGetSnapshotRequest(server string, id SnapshotID) (*http.Request, error)
NewGetSnapshotRequest generates requests for GetSnapshot
func NewGetSnapshotRestoredByRequest ¶
func NewGetSnapshotRestoredByRequest(server string, id SnapshotID) (*http.Request, error)
NewGetSnapshotRestoredByRequest generates requests for GetSnapshotRestoredBy
func NewGetTemplateRequest ¶
NewGetTemplateRequest generates requests for GetTemplate
func NewGetUserRequest ¶
NewGetUserRequest generates requests for GetUser
func NewHealthzRequest ¶
NewHealthzRequest generates requests for Healthz
func NewLeaseSandboxRequest ¶
func NewLeaseSandboxRequest(server string, id SandboxID, body LeaseSandboxJSONRequestBody) (*http.Request, error)
NewLeaseSandboxRequest calls the generic LeaseSandbox builder with application/json body
func NewLeaseSandboxRequestWithBody ¶
func NewLeaseSandboxRequestWithBody(server string, id SandboxID, contentType string, body io.Reader) (*http.Request, error)
NewLeaseSandboxRequestWithBody generates requests for LeaseSandbox with any type of body
func NewListAuditRequest ¶
NewListAuditRequest generates requests for ListAudit
func NewListNodesRequest ¶
NewListNodesRequest generates requests for ListNodes
func NewListOperationsRequest ¶
func NewListOperationsRequest(server string, params *ListOperationsParams) (*http.Request, error)
NewListOperationsRequest generates requests for ListOperations
func NewListSSHPublicKeysRequest ¶
func NewListSSHPublicKeysRequest(server string, params *ListSSHPublicKeysParams) (*http.Request, error)
NewListSSHPublicKeysRequest generates requests for ListSSHPublicKeys
func NewListSandboxesRequest ¶
func NewListSandboxesRequest(server string, params *ListSandboxesParams) (*http.Request, error)
NewListSandboxesRequest generates requests for ListSandboxes
func NewListSnapshotsRequest ¶
func NewListSnapshotsRequest(server string, params *ListSnapshotsParams) (*http.Request, error)
NewListSnapshotsRequest generates requests for ListSnapshots
func NewListTemplatesRequest ¶
func NewListTemplatesRequest(server string, params *ListTemplatesParams) (*http.Request, error)
NewListTemplatesRequest generates requests for ListTemplates
func NewListUsersRequest ¶
NewListUsersRequest generates requests for ListUsers
func NewMetaRequest ¶
NewMetaRequest generates requests for Meta
func NewMetricsRequest ¶
NewMetricsRequest generates requests for Metrics
func NewOpenAPIYAMLRequest ¶
NewOpenAPIYAMLRequest generates requests for OpenAPIYAML
func NewPrepareSandboxSSHRequest ¶
func NewPrepareSandboxSSHRequest(server string, id SandboxID, body PrepareSandboxSSHJSONRequestBody) (*http.Request, error)
NewPrepareSandboxSSHRequest calls the generic PrepareSandboxSSH builder with application/json body
func NewPrepareSandboxSSHRequestWithBody ¶
func NewPrepareSandboxSSHRequestWithBody(server string, id SandboxID, contentType string, body io.Reader) (*http.Request, error)
NewPrepareSandboxSSHRequestWithBody generates requests for PrepareSandboxSSH with any type of body
func NewReadyzRequest ¶
NewReadyzRequest generates requests for Readyz
func NewRestoreSnapshotRequest ¶
func NewRestoreSnapshotRequest(server string, id SnapshotID, params *RestoreSnapshotParams, body RestoreSnapshotJSONRequestBody) (*http.Request, error)
NewRestoreSnapshotRequest calls the generic RestoreSnapshot builder with application/json body
func NewRestoreSnapshotRequestWithBody ¶
func NewRestoreSnapshotRequestWithBody(server string, id SnapshotID, params *RestoreSnapshotParams, contentType string, body io.Reader) (*http.Request, error)
NewRestoreSnapshotRequestWithBody generates requests for RestoreSnapshot with any type of body
func NewSnapshotSandboxRequest ¶
func NewSnapshotSandboxRequest(server string, id SandboxID, params *SnapshotSandboxParams, body SnapshotSandboxJSONRequestBody) (*http.Request, error)
NewSnapshotSandboxRequest calls the generic SnapshotSandbox builder with application/json body
func NewSnapshotSandboxRequestWithBody ¶
func NewSnapshotSandboxRequestWithBody(server string, id SandboxID, params *SnapshotSandboxParams, contentType string, body io.Reader) (*http.Request, error)
NewSnapshotSandboxRequestWithBody generates requests for SnapshotSandbox with any type of body
func NewStartSandboxRequest ¶
func NewStartSandboxRequest(server string, id SandboxID, params *StartSandboxParams) (*http.Request, error)
NewStartSandboxRequest generates requests for StartSandbox
func NewStopSandboxRequest ¶
func NewStopSandboxRequest(server string, id SandboxID, params *StopSandboxParams) (*http.Request, error)
NewStopSandboxRequest generates requests for StopSandbox
Types ¶
type AcceptedResponse ¶
type AcceptedResponse struct {
// Id Resource ID for create-style operations.
Id *string `json:"id,omitempty"`
OpId string `json:"op_id"`
SandboxId *string `json:"sandbox_id,omitempty"`
SnapshotId *string `json:"snapshot_id,omitempty"`
}
AcceptedResponse defines model for AcceptedResponse.
type AddSSHPublicKeyJSONRequestBody ¶
type AddSSHPublicKeyJSONRequestBody = AddSSHPublicKeyRequest
AddSSHPublicKeyJSONRequestBody defines body for AddSSHPublicKey for application/json ContentType.
type AddSSHPublicKeyRequest ¶
type AddSSHPublicKeyRequest struct {
// Name Optional display name. Defaults to the key comment or fingerprint.
Name *string `json:"name,omitempty"`
// PublicKey One OpenSSH public key line.
PublicKey string `json:"public_key"`
}
AddSSHPublicKeyRequest defines model for AddSSHPublicKeyRequest.
type AddSSHPublicKeyResponse ¶
type AddSSHPublicKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SSHPublicKey
JSON400 *BadRequest
JSON409 *Conflict
JSON500 *InternalError
}
func ParseAddSSHPublicKeyResponse ¶
func ParseAddSSHPublicKeyResponse(rsp *http.Response) (*AddSSHPublicKeyResponse, error)
ParseAddSSHPublicKeyResponse parses an HTTP response from a AddSSHPublicKeyWithResponse call
func (AddSSHPublicKeyResponse) ContentType ¶
func (r AddSSHPublicKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddSSHPublicKeyResponse) Status ¶
func (r AddSSHPublicKeyResponse) Status() string
Status returns HTTPResponse.Status
func (AddSSHPublicKeyResponse) StatusCode ¶
func (r AddSSHPublicKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AddUserKeyResponse ¶
type AddUserKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseAddUserKeyResponse ¶
func ParseAddUserKeyResponse(rsp *http.Response) (*AddUserKeyResponse, error)
ParseAddUserKeyResponse parses an HTTP response from a AddUserKeyWithResponse call
func (AddUserKeyResponse) ContentType ¶
func (r AddUserKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddUserKeyResponse) Status ¶
func (r AddUserKeyResponse) Status() string
Status returns HTTPResponse.Status
func (AddUserKeyResponse) StatusCode ¶
func (r AddUserKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthSession ¶
type AuthSession struct {
Authenticated bool `json:"authenticated"`
Enabled bool `json:"enabled"`
User *WebSessionIdentity `json:"user,omitempty"`
}
AuthSession defines model for AuthSession.
type AuthSessionResponse ¶
type AuthSessionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AuthSession
JSONDefault *Error
}
func ParseAuthSessionResponse ¶
func ParseAuthSessionResponse(rsp *http.Response) (*AuthSessionResponse, error)
ParseAuthSessionResponse parses an HTTP response from a AuthSessionWithResponse call
func (AuthSessionResponse) ContentType ¶
func (r AuthSessionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AuthSessionResponse) Status ¶
func (r AuthSessionResponse) Status() string
Status returns HTTPResponse.Status
func (AuthSessionResponse) StatusCode ¶
func (r AuthSessionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthorizeSSHJSONRequestBody ¶
type AuthorizeSSHJSONRequestBody = SSHAuthorizeRequest
AuthorizeSSHJSONRequestBody defines body for AuthorizeSSH for application/json ContentType.
type AuthorizeSSHResponse ¶
type AuthorizeSSHResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SSHAuthorizeResponse
JSONDefault *Error
}
func ParseAuthorizeSSHResponse ¶
func ParseAuthorizeSSHResponse(rsp *http.Response) (*AuthorizeSSHResponse, error)
ParseAuthorizeSSHResponse parses an HTTP response from a AuthorizeSSHWithResponse call
func (AuthorizeSSHResponse) ContentType ¶
func (r AuthorizeSSHResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AuthorizeSSHResponse) Status ¶
func (r AuthorizeSSHResponse) Status() string
Status returns HTTPResponse.Status
func (AuthorizeSSHResponse) StatusCode ¶
func (r AuthorizeSSHResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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) AddSSHPublicKey ¶
func (c *Client) AddSSHPublicKey(ctx context.Context, body AddSSHPublicKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddSSHPublicKeyWithBody ¶
func (*Client) AddUserKey ¶
func (*Client) AuthSession ¶
func (*Client) AuthorizeSSH ¶
func (c *Client) AuthorizeSSH(ctx context.Context, body AuthorizeSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthorizeSSHWithBody ¶
func (*Client) CreateSandbox ¶
func (c *Client) CreateSandbox(ctx context.Context, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSandboxWithBody ¶
func (*Client) DeleteSSHPublicKey ¶
func (c *Client) DeleteSSHPublicKey(ctx context.Context, id SSHPublicKeyID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteSandbox ¶
func (c *Client) DeleteSandbox(ctx context.Context, id SandboxID, params *DeleteSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteSnapshot ¶
func (c *Client) DeleteSnapshot(ctx context.Context, id SnapshotID, params *DeleteSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteUserKey ¶
func (*Client) ExecSandbox ¶
func (*Client) GetOperation ¶
func (c *Client) GetOperation(ctx context.Context, id OperationID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSandbox ¶
func (*Client) GetSandboxLineage ¶
func (*Client) GetSandboxLogs ¶
func (*Client) GetSandboxOperations ¶
func (*Client) GetSandboxSnapshots ¶
func (*Client) GetSnapshot ¶
func (c *Client) GetSnapshot(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSnapshotRestoredBy ¶
func (c *Client) GetSnapshotRestoredBy(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTemplate ¶
func (*Client) LeaseSandbox ¶
func (c *Client) LeaseSandbox(ctx context.Context, id SandboxID, body LeaseSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LeaseSandboxWithBody ¶
func (*Client) ListOperations ¶
func (c *Client) ListOperations(ctx context.Context, params *ListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSSHPublicKeys ¶
func (c *Client) ListSSHPublicKeys(ctx context.Context, params *ListSSHPublicKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSandboxes ¶
func (c *Client) ListSandboxes(ctx context.Context, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSnapshots ¶
func (c *Client) ListSnapshots(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListTemplates ¶
func (c *Client) ListTemplates(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) OpenAPIYAML ¶
func (*Client) PrepareSandboxSSH ¶
func (c *Client) PrepareSandboxSSH(ctx context.Context, id SandboxID, body PrepareSandboxSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PrepareSandboxSSHWithBody ¶
func (*Client) RestoreSnapshot ¶
func (c *Client) RestoreSnapshot(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, body RestoreSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RestoreSnapshotWithBody ¶
func (c *Client) RestoreSnapshotWithBody(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SnapshotSandbox ¶
func (c *Client) SnapshotSandbox(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, body SnapshotSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SnapshotSandboxWithBody ¶
func (*Client) StartSandbox ¶
func (c *Client) StartSandbox(ctx context.Context, id SandboxID, params *StartSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StopSandbox ¶
func (c *Client) StopSandbox(ctx context.Context, id SandboxID, params *StopSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListAudit request
ListAudit(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthSession request
AuthSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// Healthz request
Healthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSSHPublicKeys request
ListSSHPublicKeys(ctx context.Context, params *ListSSHPublicKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddSSHPublicKeyWithBody request with any body
AddSSHPublicKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddSSHPublicKey(ctx context.Context, body AddSSHPublicKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSSHPublicKey request
DeleteSSHPublicKey(ctx context.Context, id SSHPublicKeyID, reqEditors ...RequestEditorFn) (*http.Response, error)
// Meta request
Meta(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// Metrics request
Metrics(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListNodes request
ListNodes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetNode request
GetNode(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// OpenAPIYAML request
OpenAPIYAML(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOperations request
ListOperations(ctx context.Context, params *ListOperationsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOperation request
GetOperation(ctx context.Context, id OperationID, reqEditors ...RequestEditorFn) (*http.Response, error)
// Readyz request
Readyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSandboxes request
ListSandboxes(ctx context.Context, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateSandboxWithBody request with any body
CreateSandboxWithBody(ctx context.Context, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateSandbox(ctx context.Context, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSandbox request
DeleteSandbox(ctx context.Context, id SandboxID, params *DeleteSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandbox request
GetSandbox(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExecSandbox request
ExecSandbox(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
// LeaseSandboxWithBody request with any body
LeaseSandboxWithBody(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
LeaseSandbox(ctx context.Context, id SandboxID, body LeaseSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxLineage request
GetSandboxLineage(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxLogs request
GetSandboxLogs(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxOperations request
GetSandboxOperations(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
// SnapshotSandboxWithBody request with any body
SnapshotSandboxWithBody(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SnapshotSandbox(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, body SnapshotSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxSnapshots request
GetSandboxSnapshots(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
// PrepareSandboxSSHWithBody request with any body
PrepareSandboxSSHWithBody(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PrepareSandboxSSH(ctx context.Context, id SandboxID, body PrepareSandboxSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartSandbox request
StartSandbox(ctx context.Context, id SandboxID, params *StartSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// StopSandbox request
StopSandbox(ctx context.Context, id SandboxID, params *StopSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// TunnelSandbox request
TunnelSandbox(ctx context.Context, id SandboxID, port int, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSnapshots request
ListSnapshots(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSnapshot request
DeleteSnapshot(ctx context.Context, id SnapshotID, params *DeleteSnapshotParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSnapshot request
GetSnapshot(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*http.Response, error)
// RestoreSnapshotWithBody request with any body
RestoreSnapshotWithBody(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RestoreSnapshot(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, body RestoreSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSnapshotRestoredBy request
GetSnapshotRestoredBy(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthorizeSSHWithBody request with any body
AuthorizeSSHWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthorizeSSH(ctx context.Context, body AuthorizeSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTemplates request
ListTemplates(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTemplate request
GetTemplate(ctx context.Context, name string, version string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUsers request
ListUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUser request
GetUser(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddUserKey request
AddUserKey(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUserKey request
DeleteUserKey(ctx context.Context, handle string, label string, 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) AddSSHPublicKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) AddSSHPublicKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSSHPublicKeyResponse, error)
AddSSHPublicKeyWithBodyWithResponse request with arbitrary body returning *AddSSHPublicKeyResponse
func (*ClientWithResponses) AddSSHPublicKeyWithResponse ¶
func (c *ClientWithResponses) AddSSHPublicKeyWithResponse(ctx context.Context, body AddSSHPublicKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSSHPublicKeyResponse, error)
func (*ClientWithResponses) AddUserKeyWithResponse ¶
func (c *ClientWithResponses) AddUserKeyWithResponse(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*AddUserKeyResponse, error)
AddUserKeyWithResponse request returning *AddUserKeyResponse
func (*ClientWithResponses) AuthSessionWithResponse ¶
func (c *ClientWithResponses) AuthSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSessionResponse, error)
AuthSessionWithResponse request returning *AuthSessionResponse
func (*ClientWithResponses) AuthorizeSSHWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthorizeSSHWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthorizeSSHResponse, error)
AuthorizeSSHWithBodyWithResponse request with arbitrary body returning *AuthorizeSSHResponse
func (*ClientWithResponses) AuthorizeSSHWithResponse ¶
func (c *ClientWithResponses) AuthorizeSSHWithResponse(ctx context.Context, body AuthorizeSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthorizeSSHResponse, error)
func (*ClientWithResponses) CreateSandboxWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSandboxWithBodyWithResponse(ctx context.Context, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxResponse, error)
CreateSandboxWithBodyWithResponse request with arbitrary body returning *CreateSandboxResponse
func (*ClientWithResponses) CreateSandboxWithResponse ¶
func (c *ClientWithResponses) CreateSandboxWithResponse(ctx context.Context, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxResponse, error)
func (*ClientWithResponses) DeleteSSHPublicKeyWithResponse ¶
func (c *ClientWithResponses) DeleteSSHPublicKeyWithResponse(ctx context.Context, id SSHPublicKeyID, reqEditors ...RequestEditorFn) (*DeleteSSHPublicKeyResponse, error)
DeleteSSHPublicKeyWithResponse request returning *DeleteSSHPublicKeyResponse
func (*ClientWithResponses) DeleteSandboxWithResponse ¶
func (c *ClientWithResponses) DeleteSandboxWithResponse(ctx context.Context, id SandboxID, params *DeleteSandboxParams, reqEditors ...RequestEditorFn) (*DeleteSandboxResponse, error)
DeleteSandboxWithResponse request returning *DeleteSandboxResponse
func (*ClientWithResponses) DeleteSnapshotWithResponse ¶
func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, id SnapshotID, params *DeleteSnapshotParams, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)
DeleteSnapshotWithResponse request returning *DeleteSnapshotResponse
func (*ClientWithResponses) DeleteUserKeyWithResponse ¶
func (c *ClientWithResponses) DeleteUserKeyWithResponse(ctx context.Context, handle string, label string, reqEditors ...RequestEditorFn) (*DeleteUserKeyResponse, error)
DeleteUserKeyWithResponse request returning *DeleteUserKeyResponse
func (*ClientWithResponses) ExecSandboxWithResponse ¶
func (c *ClientWithResponses) ExecSandboxWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*ExecSandboxResponse, error)
ExecSandboxWithResponse request returning *ExecSandboxResponse
func (*ClientWithResponses) GetNodeWithResponse ¶
func (c *ClientWithResponses) GetNodeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetNodeResponse, error)
GetNodeWithResponse request returning *GetNodeResponse
func (*ClientWithResponses) GetOperationWithResponse ¶
func (c *ClientWithResponses) GetOperationWithResponse(ctx context.Context, id OperationID, reqEditors ...RequestEditorFn) (*GetOperationResponse, error)
GetOperationWithResponse request returning *GetOperationResponse
func (*ClientWithResponses) GetSandboxLineageWithResponse ¶
func (c *ClientWithResponses) GetSandboxLineageWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxLineageResponse, error)
GetSandboxLineageWithResponse request returning *GetSandboxLineageResponse
func (*ClientWithResponses) GetSandboxLogsWithResponse ¶
func (c *ClientWithResponses) GetSandboxLogsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxLogsResponse, error)
GetSandboxLogsWithResponse request returning *GetSandboxLogsResponse
func (*ClientWithResponses) GetSandboxOperationsWithResponse ¶
func (c *ClientWithResponses) GetSandboxOperationsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxOperationsResponse, error)
GetSandboxOperationsWithResponse request returning *GetSandboxOperationsResponse
func (*ClientWithResponses) GetSandboxSnapshotsWithResponse ¶
func (c *ClientWithResponses) GetSandboxSnapshotsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxSnapshotsResponse, error)
GetSandboxSnapshotsWithResponse request returning *GetSandboxSnapshotsResponse
func (*ClientWithResponses) GetSandboxWithResponse ¶
func (c *ClientWithResponses) GetSandboxWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxResponse, error)
GetSandboxWithResponse request returning *GetSandboxResponse
func (*ClientWithResponses) GetSnapshotRestoredByWithResponse ¶
func (c *ClientWithResponses) GetSnapshotRestoredByWithResponse(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*GetSnapshotRestoredByResponse, error)
GetSnapshotRestoredByWithResponse request returning *GetSnapshotRestoredByResponse
func (*ClientWithResponses) GetSnapshotWithResponse ¶
func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
GetSnapshotWithResponse request returning *GetSnapshotResponse
func (*ClientWithResponses) GetTemplateWithResponse ¶
func (c *ClientWithResponses) GetTemplateWithResponse(ctx context.Context, name string, version string, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error)
GetTemplateWithResponse request returning *GetTemplateResponse
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse request returning *GetUserResponse
func (*ClientWithResponses) HealthzWithResponse ¶
func (c *ClientWithResponses) HealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthzResponse, error)
HealthzWithResponse request returning *HealthzResponse
func (*ClientWithResponses) LeaseSandboxWithBodyWithResponse ¶
func (c *ClientWithResponses) LeaseSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LeaseSandboxResponse, error)
LeaseSandboxWithBodyWithResponse request with arbitrary body returning *LeaseSandboxResponse
func (*ClientWithResponses) LeaseSandboxWithResponse ¶
func (c *ClientWithResponses) LeaseSandboxWithResponse(ctx context.Context, id SandboxID, body LeaseSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*LeaseSandboxResponse, error)
func (*ClientWithResponses) ListAuditWithResponse ¶
func (c *ClientWithResponses) ListAuditWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAuditResponse, error)
ListAuditWithResponse request returning *ListAuditResponse
func (*ClientWithResponses) ListNodesWithResponse ¶
func (c *ClientWithResponses) ListNodesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)
ListNodesWithResponse request returning *ListNodesResponse
func (*ClientWithResponses) ListOperationsWithResponse ¶
func (c *ClientWithResponses) ListOperationsWithResponse(ctx context.Context, params *ListOperationsParams, reqEditors ...RequestEditorFn) (*ListOperationsResponse, error)
ListOperationsWithResponse request returning *ListOperationsResponse
func (*ClientWithResponses) ListSSHPublicKeysWithResponse ¶
func (c *ClientWithResponses) ListSSHPublicKeysWithResponse(ctx context.Context, params *ListSSHPublicKeysParams, reqEditors ...RequestEditorFn) (*ListSSHPublicKeysResponse, error)
ListSSHPublicKeysWithResponse request returning *ListSSHPublicKeysResponse
func (*ClientWithResponses) ListSandboxesWithResponse ¶
func (c *ClientWithResponses) ListSandboxesWithResponse(ctx context.Context, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*ListSandboxesResponse, error)
ListSandboxesWithResponse request returning *ListSandboxesResponse
func (*ClientWithResponses) ListSnapshotsWithResponse ¶
func (c *ClientWithResponses) ListSnapshotsWithResponse(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*ListSnapshotsResponse, error)
ListSnapshotsWithResponse request returning *ListSnapshotsResponse
func (*ClientWithResponses) ListTemplatesWithResponse ¶
func (c *ClientWithResponses) ListTemplatesWithResponse(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*ListTemplatesResponse, error)
ListTemplatesWithResponse request returning *ListTemplatesResponse
func (*ClientWithResponses) ListUsersWithResponse ¶
func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithResponse request returning *ListUsersResponse
func (*ClientWithResponses) MetaWithResponse ¶
func (c *ClientWithResponses) MetaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetaResponse, error)
MetaWithResponse request returning *MetaResponse
func (*ClientWithResponses) MetricsWithResponse ¶
func (c *ClientWithResponses) MetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetricsResponse, error)
MetricsWithResponse request returning *MetricsResponse
func (*ClientWithResponses) OpenAPIYAMLWithResponse ¶
func (c *ClientWithResponses) OpenAPIYAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OpenAPIYAMLResponse, error)
OpenAPIYAMLWithResponse request returning *OpenAPIYAMLResponse
func (*ClientWithResponses) PrepareSandboxSSHWithBodyWithResponse ¶
func (c *ClientWithResponses) PrepareSandboxSSHWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareSandboxSSHResponse, error)
PrepareSandboxSSHWithBodyWithResponse request with arbitrary body returning *PrepareSandboxSSHResponse
func (*ClientWithResponses) PrepareSandboxSSHWithResponse ¶
func (c *ClientWithResponses) PrepareSandboxSSHWithResponse(ctx context.Context, id SandboxID, body PrepareSandboxSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareSandboxSSHResponse, error)
func (*ClientWithResponses) ReadyzWithResponse ¶
func (c *ClientWithResponses) ReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReadyzResponse, error)
ReadyzWithResponse request returning *ReadyzResponse
func (*ClientWithResponses) RestoreSnapshotWithBodyWithResponse ¶
func (c *ClientWithResponses) RestoreSnapshotWithBodyWithResponse(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreSnapshotResponse, error)
RestoreSnapshotWithBodyWithResponse request with arbitrary body returning *RestoreSnapshotResponse
func (*ClientWithResponses) RestoreSnapshotWithResponse ¶
func (c *ClientWithResponses) RestoreSnapshotWithResponse(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, body RestoreSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreSnapshotResponse, error)
func (*ClientWithResponses) SnapshotSandboxWithBodyWithResponse ¶
func (c *ClientWithResponses) SnapshotSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnapshotSandboxResponse, error)
SnapshotSandboxWithBodyWithResponse request with arbitrary body returning *SnapshotSandboxResponse
func (*ClientWithResponses) SnapshotSandboxWithResponse ¶
func (c *ClientWithResponses) SnapshotSandboxWithResponse(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, body SnapshotSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*SnapshotSandboxResponse, error)
func (*ClientWithResponses) StartSandboxWithResponse ¶
func (c *ClientWithResponses) StartSandboxWithResponse(ctx context.Context, id SandboxID, params *StartSandboxParams, reqEditors ...RequestEditorFn) (*StartSandboxResponse, error)
StartSandboxWithResponse request returning *StartSandboxResponse
func (*ClientWithResponses) StopSandboxWithResponse ¶
func (c *ClientWithResponses) StopSandboxWithResponse(ctx context.Context, id SandboxID, params *StopSandboxParams, reqEditors ...RequestEditorFn) (*StopSandboxResponse, error)
StopSandboxWithResponse request returning *StopSandboxResponse
func (*ClientWithResponses) TunnelSandboxWithResponse ¶
func (c *ClientWithResponses) TunnelSandboxWithResponse(ctx context.Context, id SandboxID, port int, reqEditors ...RequestEditorFn) (*TunnelSandboxResponse, error)
TunnelSandboxWithResponse request returning *TunnelSandboxResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAuditWithResponse request
ListAuditWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAuditResponse, error)
// AuthSessionWithResponse request
AuthSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSessionResponse, error)
// HealthzWithResponse request
HealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthzResponse, error)
// ListSSHPublicKeysWithResponse request
ListSSHPublicKeysWithResponse(ctx context.Context, params *ListSSHPublicKeysParams, reqEditors ...RequestEditorFn) (*ListSSHPublicKeysResponse, error)
// AddSSHPublicKeyWithBodyWithResponse request with any body
AddSSHPublicKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSSHPublicKeyResponse, error)
AddSSHPublicKeyWithResponse(ctx context.Context, body AddSSHPublicKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSSHPublicKeyResponse, error)
// DeleteSSHPublicKeyWithResponse request
DeleteSSHPublicKeyWithResponse(ctx context.Context, id SSHPublicKeyID, reqEditors ...RequestEditorFn) (*DeleteSSHPublicKeyResponse, error)
// MetaWithResponse request
MetaWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetaResponse, error)
// MetricsWithResponse request
MetricsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*MetricsResponse, error)
// ListNodesWithResponse request
ListNodesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListNodesResponse, error)
// GetNodeWithResponse request
GetNodeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetNodeResponse, error)
// OpenAPIYAMLWithResponse request
OpenAPIYAMLWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*OpenAPIYAMLResponse, error)
// ListOperationsWithResponse request
ListOperationsWithResponse(ctx context.Context, params *ListOperationsParams, reqEditors ...RequestEditorFn) (*ListOperationsResponse, error)
// GetOperationWithResponse request
GetOperationWithResponse(ctx context.Context, id OperationID, reqEditors ...RequestEditorFn) (*GetOperationResponse, error)
// ReadyzWithResponse request
ReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReadyzResponse, error)
// ListSandboxesWithResponse request
ListSandboxesWithResponse(ctx context.Context, params *ListSandboxesParams, reqEditors ...RequestEditorFn) (*ListSandboxesResponse, error)
// CreateSandboxWithBodyWithResponse request with any body
CreateSandboxWithBodyWithResponse(ctx context.Context, params *CreateSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSandboxResponse, error)
CreateSandboxWithResponse(ctx context.Context, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSandboxResponse, error)
// DeleteSandboxWithResponse request
DeleteSandboxWithResponse(ctx context.Context, id SandboxID, params *DeleteSandboxParams, reqEditors ...RequestEditorFn) (*DeleteSandboxResponse, error)
// GetSandboxWithResponse request
GetSandboxWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxResponse, error)
// ExecSandboxWithResponse request
ExecSandboxWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*ExecSandboxResponse, error)
// LeaseSandboxWithBodyWithResponse request with any body
LeaseSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LeaseSandboxResponse, error)
LeaseSandboxWithResponse(ctx context.Context, id SandboxID, body LeaseSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*LeaseSandboxResponse, error)
// GetSandboxLineageWithResponse request
GetSandboxLineageWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxLineageResponse, error)
// GetSandboxLogsWithResponse request
GetSandboxLogsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxLogsResponse, error)
// GetSandboxOperationsWithResponse request
GetSandboxOperationsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxOperationsResponse, error)
// SnapshotSandboxWithBodyWithResponse request with any body
SnapshotSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SnapshotSandboxResponse, error)
SnapshotSandboxWithResponse(ctx context.Context, id SandboxID, params *SnapshotSandboxParams, body SnapshotSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*SnapshotSandboxResponse, error)
// GetSandboxSnapshotsWithResponse request
GetSandboxSnapshotsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxSnapshotsResponse, error)
// PrepareSandboxSSHWithBodyWithResponse request with any body
PrepareSandboxSSHWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PrepareSandboxSSHResponse, error)
PrepareSandboxSSHWithResponse(ctx context.Context, id SandboxID, body PrepareSandboxSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*PrepareSandboxSSHResponse, error)
// StartSandboxWithResponse request
StartSandboxWithResponse(ctx context.Context, id SandboxID, params *StartSandboxParams, reqEditors ...RequestEditorFn) (*StartSandboxResponse, error)
// StopSandboxWithResponse request
StopSandboxWithResponse(ctx context.Context, id SandboxID, params *StopSandboxParams, reqEditors ...RequestEditorFn) (*StopSandboxResponse, error)
// TunnelSandboxWithResponse request
TunnelSandboxWithResponse(ctx context.Context, id SandboxID, port int, reqEditors ...RequestEditorFn) (*TunnelSandboxResponse, error)
// ListSnapshotsWithResponse request
ListSnapshotsWithResponse(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*ListSnapshotsResponse, error)
// DeleteSnapshotWithResponse request
DeleteSnapshotWithResponse(ctx context.Context, id SnapshotID, params *DeleteSnapshotParams, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)
// GetSnapshotWithResponse request
GetSnapshotWithResponse(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
// RestoreSnapshotWithBodyWithResponse request with any body
RestoreSnapshotWithBodyWithResponse(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreSnapshotResponse, error)
RestoreSnapshotWithResponse(ctx context.Context, id SnapshotID, params *RestoreSnapshotParams, body RestoreSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreSnapshotResponse, error)
// GetSnapshotRestoredByWithResponse request
GetSnapshotRestoredByWithResponse(ctx context.Context, id SnapshotID, reqEditors ...RequestEditorFn) (*GetSnapshotRestoredByResponse, error)
// AuthorizeSSHWithBodyWithResponse request with any body
AuthorizeSSHWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthorizeSSHResponse, error)
AuthorizeSSHWithResponse(ctx context.Context, body AuthorizeSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthorizeSSHResponse, error)
// ListTemplatesWithResponse request
ListTemplatesWithResponse(ctx context.Context, params *ListTemplatesParams, reqEditors ...RequestEditorFn) (*ListTemplatesResponse, error)
// GetTemplateWithResponse request
GetTemplateWithResponse(ctx context.Context, name string, version string, reqEditors ...RequestEditorFn) (*GetTemplateResponse, error)
// ListUsersWithResponse request
ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
// GetUserWithResponse request
GetUserWithResponse(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
// AddUserKeyWithResponse request
AddUserKeyWithResponse(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*AddUserKeyResponse, error)
// DeleteUserKeyWithResponse request
DeleteUserKeyWithResponse(ctx context.Context, handle string, label string, reqEditors ...RequestEditorFn) (*DeleteUserKeyResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateSandboxJSONRequestBody ¶
type CreateSandboxJSONRequestBody = CreateSandboxRequest
CreateSandboxJSONRequestBody defines body for CreateSandbox for application/json ContentType.
type CreateSandboxParams ¶
type CreateSandboxParams struct {
// IdempotencyKey Required for mutating requests. Reusing a key with the same request returns the same accepted operation; reusing it with a different request returns 409.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
CreateSandboxParams defines parameters for CreateSandbox.
type CreateSandboxRequest ¶
type CreateSandboxRequest struct {
// OnDelete Disposition to apply when the sandbox is deleted.
OnDelete *CreateSandboxRequestOnDelete `json:"on_delete,omitempty"`
Template string `json:"template"`
// Ttl Optional positive Go-style duration string.
Ttl *string `json:"ttl,omitempty"`
}
CreateSandboxRequest defines model for CreateSandboxRequest.
type CreateSandboxRequestOnDelete ¶
type CreateSandboxRequestOnDelete string
CreateSandboxRequestOnDelete Disposition to apply when the sandbox is deleted.
const ( CreateSandboxRequestOnDeleteArchive CreateSandboxRequestOnDelete = "archive" CreateSandboxRequestOnDeleteCold CreateSandboxRequestOnDelete = "cold" CreateSandboxRequestOnDeleteDelete CreateSandboxRequestOnDelete = "delete" CreateSandboxRequestOnDeleteHot CreateSandboxRequestOnDelete = "hot" )
Defines values for CreateSandboxRequestOnDelete.
func (CreateSandboxRequestOnDelete) Valid ¶
func (e CreateSandboxRequestOnDelete) Valid() bool
Valid indicates whether the value is a known member of the CreateSandboxRequestOnDelete enum.
type CreateSandboxResponse ¶
type CreateSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSON400 *BadRequest
JSON409 *Conflict
JSON422 *UnprocessableEntity
JSON500 *InternalError
}
func ParseCreateSandboxResponse ¶
func ParseCreateSandboxResponse(rsp *http.Response) (*CreateSandboxResponse, error)
ParseCreateSandboxResponse parses an HTTP response from a CreateSandboxWithResponse call
func (CreateSandboxResponse) ContentType ¶
func (r CreateSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateSandboxResponse) Status ¶
func (r CreateSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSandboxResponse) StatusCode ¶
func (r CreateSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSSHPublicKeyResponse ¶
type DeleteSSHPublicKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSON500 *InternalError
}
func ParseDeleteSSHPublicKeyResponse ¶
func ParseDeleteSSHPublicKeyResponse(rsp *http.Response) (*DeleteSSHPublicKeyResponse, error)
ParseDeleteSSHPublicKeyResponse parses an HTTP response from a DeleteSSHPublicKeyWithResponse call
func (DeleteSSHPublicKeyResponse) ContentType ¶
func (r DeleteSSHPublicKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteSSHPublicKeyResponse) Status ¶
func (r DeleteSSHPublicKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSSHPublicKeyResponse) StatusCode ¶
func (r DeleteSSHPublicKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSandboxParams ¶
type DeleteSandboxParams struct {
// IdempotencyKey Required for mutating requests. Reusing a key with the same request returns the same accepted operation; reusing it with a different request returns 409.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
DeleteSandboxParams defines parameters for DeleteSandbox.
type DeleteSandboxResponse ¶
type DeleteSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSON400 *BadRequest
JSON409 *Conflict
JSON500 *InternalError
}
func ParseDeleteSandboxResponse ¶
func ParseDeleteSandboxResponse(rsp *http.Response) (*DeleteSandboxResponse, error)
ParseDeleteSandboxResponse parses an HTTP response from a DeleteSandboxWithResponse call
func (DeleteSandboxResponse) ContentType ¶
func (r DeleteSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteSandboxResponse) Status ¶
func (r DeleteSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSandboxResponse) StatusCode ¶
func (r DeleteSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSnapshotParams ¶
type DeleteSnapshotParams struct {
// IdempotencyKey Required for mutating requests. Reusing a key with the same request returns the same accepted operation; reusing it with a different request returns 409.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
DeleteSnapshotParams defines parameters for DeleteSnapshot.
type DeleteSnapshotResponse ¶
type DeleteSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSONDefault *Error
}
func ParseDeleteSnapshotResponse ¶
func ParseDeleteSnapshotResponse(rsp *http.Response) (*DeleteSnapshotResponse, error)
ParseDeleteSnapshotResponse parses an HTTP response from a DeleteSnapshotWithResponse call
func (DeleteSnapshotResponse) ContentType ¶
func (r DeleteSnapshotResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteSnapshotResponse) Status ¶
func (r DeleteSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSnapshotResponse) StatusCode ¶
func (r DeleteSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUserKeyResponse ¶
type DeleteUserKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseDeleteUserKeyResponse ¶
func ParseDeleteUserKeyResponse(rsp *http.Response) (*DeleteUserKeyResponse, error)
ParseDeleteUserKeyResponse parses an HTTP response from a DeleteUserKeyWithResponse call
func (DeleteUserKeyResponse) ContentType ¶
func (r DeleteUserKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteUserKeyResponse) Status ¶
func (r DeleteUserKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteUserKeyResponse) StatusCode ¶
func (r DeleteUserKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ErrorBody ¶
type ErrorBody struct {
Code ErrorBodyCode `json:"code"`
Details *map[string]string `json:"details,omitempty"`
Message string `json:"message"`
}
ErrorBody defines model for ErrorBody.
type ErrorBodyCode ¶
type ErrorBodyCode string
ErrorBodyCode defines model for ErrorBody.Code.
const ( ErrorBodyCodeAmbiguousPagination ErrorBodyCode = "ambiguous_pagination" ErrorBodyCodeAmbiguousTemplate ErrorBodyCode = "ambiguous_template" ErrorBodyCodeConflict ErrorBodyCode = "conflict" ErrorBodyCodeInternalError ErrorBodyCode = "internal_error" ErrorBodyCodeInvalidCursor ErrorBodyCode = "invalid_cursor" ErrorBodyCodeInvalidJson ErrorBodyCode = "invalid_json" ErrorBodyCodeInvalidLimit ErrorBodyCode = "invalid_limit" ErrorBodyCodeInvalidOffset ErrorBodyCode = "invalid_offset" ErrorBodyCodeInvalidOnDelete ErrorBodyCode = "invalid_on_delete" ErrorBodyCodeInvalidPort ErrorBodyCode = "invalid_port" ErrorBodyCodeInvalidSshAuthorization ErrorBodyCode = "invalid_ssh_authorization" ErrorBodyCodeInvalidSshKey ErrorBodyCode = "invalid_ssh_key" ErrorBodyCodeInvalidSshPublicKey ErrorBodyCode = "invalid_ssh_public_key" ErrorBodyCodeInvalidTtl ErrorBodyCode = "invalid_ttl" ErrorBodyCodeMissingIdempotencyKey ErrorBodyCode = "missing_idempotency_key" ErrorBodyCodeMissingTemplate ErrorBodyCode = "missing_template" ErrorBodyCodeNotFound ErrorBodyCode = "not_found" ErrorBodyCodeNotReady ErrorBodyCode = "not_ready" ErrorBodyCodeRequestTooLarge ErrorBodyCode = "request_too_large" ErrorBodyCodeStreamingNotImplemented ErrorBodyCode = "streaming_not_implemented" ErrorBodyCodeTemplateNotFound ErrorBodyCode = "template_not_found" )
Defines values for ErrorBodyCode.
func (ErrorBodyCode) Valid ¶
func (e ErrorBodyCode) Valid() bool
Valid indicates whether the value is a known member of the ErrorBodyCode enum.
type ErrorEnvelope ¶
type ErrorEnvelope struct {
Error ErrorBody `json:"error"`
}
ErrorEnvelope defines model for ErrorEnvelope.
type ExecSandboxResponse ¶
type ExecSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON501 *StreamingNotImplemented
}
func ParseExecSandboxResponse ¶
func ParseExecSandboxResponse(rsp *http.Response) (*ExecSandboxResponse, error)
ParseExecSandboxResponse parses an HTTP response from a ExecSandboxWithResponse call
func (ExecSandboxResponse) ContentType ¶
func (r ExecSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ExecSandboxResponse) Status ¶
func (r ExecSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (ExecSandboxResponse) StatusCode ¶
func (r ExecSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Failure ¶
type Failure struct {
CreatedAt time.Time `json:"created_at"`
Message string `json:"message"`
Reason string `json:"reason"`
UpdatedAt time.Time `json:"updated_at"`
}
Failure defines model for Failure.
type GetNodeResponse ¶
type GetNodeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetNodeResponse ¶
func ParseGetNodeResponse(rsp *http.Response) (*GetNodeResponse, error)
ParseGetNodeResponse parses an HTTP response from a GetNodeWithResponse call
func (GetNodeResponse) ContentType ¶
func (r GetNodeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetNodeResponse) Status ¶
func (r GetNodeResponse) Status() string
Status returns HTTPResponse.Status
func (GetNodeResponse) StatusCode ¶
func (r GetNodeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOperationResponse ¶
type GetOperationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Operation
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetOperationResponse ¶
func ParseGetOperationResponse(rsp *http.Response) (*GetOperationResponse, error)
ParseGetOperationResponse parses an HTTP response from a GetOperationWithResponse call
func (GetOperationResponse) ContentType ¶
func (r GetOperationResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetOperationResponse) Status ¶
func (r GetOperationResponse) Status() string
Status returns HTTPResponse.Status
func (GetOperationResponse) StatusCode ¶
func (r GetOperationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxLineageResponse ¶
type GetSandboxLineageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetSandboxLineageResponse ¶
func ParseGetSandboxLineageResponse(rsp *http.Response) (*GetSandboxLineageResponse, error)
ParseGetSandboxLineageResponse parses an HTTP response from a GetSandboxLineageWithResponse call
func (GetSandboxLineageResponse) ContentType ¶
func (r GetSandboxLineageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSandboxLineageResponse) Status ¶
func (r GetSandboxLineageResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxLineageResponse) StatusCode ¶
func (r GetSandboxLineageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxLogsResponse ¶
type GetSandboxLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetSandboxLogsResponse ¶
func ParseGetSandboxLogsResponse(rsp *http.Response) (*GetSandboxLogsResponse, error)
ParseGetSandboxLogsResponse parses an HTTP response from a GetSandboxLogsWithResponse call
func (GetSandboxLogsResponse) ContentType ¶
func (r GetSandboxLogsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSandboxLogsResponse) Status ¶
func (r GetSandboxLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxLogsResponse) StatusCode ¶
func (r GetSandboxLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxOperationsResponse ¶
type GetSandboxOperationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetSandboxOperationsResponse ¶
func ParseGetSandboxOperationsResponse(rsp *http.Response) (*GetSandboxOperationsResponse, error)
ParseGetSandboxOperationsResponse parses an HTTP response from a GetSandboxOperationsWithResponse call
func (GetSandboxOperationsResponse) ContentType ¶
func (r GetSandboxOperationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSandboxOperationsResponse) Status ¶
func (r GetSandboxOperationsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxOperationsResponse) StatusCode ¶
func (r GetSandboxOperationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxResponse ¶
type GetSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Sandbox
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetSandboxResponse ¶
func ParseGetSandboxResponse(rsp *http.Response) (*GetSandboxResponse, error)
ParseGetSandboxResponse parses an HTTP response from a GetSandboxWithResponse call
func (GetSandboxResponse) ContentType ¶
func (r GetSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSandboxResponse) Status ¶
func (r GetSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxResponse) StatusCode ¶
func (r GetSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxSnapshotsResponse ¶
type GetSandboxSnapshotsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetSandboxSnapshotsResponse ¶
func ParseGetSandboxSnapshotsResponse(rsp *http.Response) (*GetSandboxSnapshotsResponse, error)
ParseGetSandboxSnapshotsResponse parses an HTTP response from a GetSandboxSnapshotsWithResponse call
func (GetSandboxSnapshotsResponse) ContentType ¶
func (r GetSandboxSnapshotsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSandboxSnapshotsResponse) Status ¶
func (r GetSandboxSnapshotsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxSnapshotsResponse) StatusCode ¶
func (r GetSandboxSnapshotsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSnapshotResponse ¶
type GetSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Snapshot
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetSnapshotResponse ¶
func ParseGetSnapshotResponse(rsp *http.Response) (*GetSnapshotResponse, error)
ParseGetSnapshotResponse parses an HTTP response from a GetSnapshotWithResponse call
func (GetSnapshotResponse) ContentType ¶
func (r GetSnapshotResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSnapshotResponse) Status ¶
func (r GetSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (GetSnapshotResponse) StatusCode ¶
func (r GetSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSnapshotRestoredByResponse ¶
type GetSnapshotRestoredByResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetSnapshotRestoredByResponse ¶
func ParseGetSnapshotRestoredByResponse(rsp *http.Response) (*GetSnapshotRestoredByResponse, error)
ParseGetSnapshotRestoredByResponse parses an HTTP response from a GetSnapshotRestoredByWithResponse call
func (GetSnapshotRestoredByResponse) ContentType ¶
func (r GetSnapshotRestoredByResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSnapshotRestoredByResponse) Status ¶
func (r GetSnapshotRestoredByResponse) Status() string
Status returns HTTPResponse.Status
func (GetSnapshotRestoredByResponse) StatusCode ¶
func (r GetSnapshotRestoredByResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTemplateResponse ¶
type GetTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Template
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetTemplateResponse ¶
func ParseGetTemplateResponse(rsp *http.Response) (*GetTemplateResponse, error)
ParseGetTemplateResponse parses an HTTP response from a GetTemplateWithResponse call
func (GetTemplateResponse) ContentType ¶
func (r GetTemplateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTemplateResponse) Status ¶
func (r GetTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (GetTemplateResponse) StatusCode ¶
func (r GetTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserResponse ¶
type GetUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetUserResponse ¶
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
func (GetUserResponse) ContentType ¶
func (r GetUserResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetUserResponse) Status ¶
func (r GetUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserResponse) StatusCode ¶
func (r GetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HealthzResponse ¶
func ParseHealthzResponse ¶
func ParseHealthzResponse(rsp *http.Response) (*HealthzResponse, error)
ParseHealthzResponse parses an HTTP response from a HealthzWithResponse call
func (HealthzResponse) ContentType ¶
func (r HealthzResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (HealthzResponse) Status ¶
func (r HealthzResponse) Status() string
Status returns HTTPResponse.Status
func (HealthzResponse) StatusCode ¶
func (r HealthzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type InternalError ¶
type InternalError = ErrorEnvelope
InternalError defines model for InternalError.
type LeaseResponse ¶
type LeaseResponse struct {
// ExpiresAt New expiry after the lease extension.
ExpiresAt *time.Time `json:"expires_at,omitempty"`
Id string `json:"id"`
}
LeaseResponse defines model for LeaseResponse.
type LeaseSandboxJSONRequestBody ¶
type LeaseSandboxJSONRequestBody = LeaseSandboxRequest
LeaseSandboxJSONRequestBody defines body for LeaseSandbox for application/json ContentType.
type LeaseSandboxRequest ¶
type LeaseSandboxRequest struct {
// Extend Positive Go-style duration to extend the lease by, clamped to max_lease_extension and max TTL.
Extend string `json:"extend"`
}
LeaseSandboxRequest defines model for LeaseSandboxRequest.
type LeaseSandboxResponse ¶
type LeaseSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LeaseResponse
JSONDefault *Error
}
func ParseLeaseSandboxResponse ¶
func ParseLeaseSandboxResponse(rsp *http.Response) (*LeaseSandboxResponse, error)
ParseLeaseSandboxResponse parses an HTTP response from a LeaseSandboxWithResponse call
func (LeaseSandboxResponse) ContentType ¶
func (r LeaseSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (LeaseSandboxResponse) Status ¶
func (r LeaseSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (LeaseSandboxResponse) StatusCode ¶
func (r LeaseSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAuditResponse ¶
func ParseListAuditResponse ¶
func ParseListAuditResponse(rsp *http.Response) (*ListAuditResponse, error)
ParseListAuditResponse parses an HTTP response from a ListAuditWithResponse call
func (ListAuditResponse) ContentType ¶
func (r ListAuditResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAuditResponse) Status ¶
func (r ListAuditResponse) Status() string
Status returns HTTPResponse.Status
func (ListAuditResponse) StatusCode ¶
func (r ListAuditResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEnvelope ¶
type ListEnvelope struct {
Items []interface{} `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
ListEnvelope defines model for ListEnvelope.
type ListNodesResponse ¶
func ParseListNodesResponse ¶
func ParseListNodesResponse(rsp *http.Response) (*ListNodesResponse, error)
ParseListNodesResponse parses an HTTP response from a ListNodesWithResponse call
func (ListNodesResponse) ContentType ¶
func (r ListNodesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListNodesResponse) Status ¶
func (r ListNodesResponse) Status() string
Status returns HTTPResponse.Status
func (ListNodesResponse) StatusCode ¶
func (r ListNodesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOperationsParams ¶
type ListOperationsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Integer offset cursor returned as next_cursor.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Offset Integer offset alternative to cursor.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListOperationsParams defines parameters for ListOperations.
type ListOperationsResponse ¶
type ListOperationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OperationList
JSONDefault *Error
}
func ParseListOperationsResponse ¶
func ParseListOperationsResponse(rsp *http.Response) (*ListOperationsResponse, error)
ParseListOperationsResponse parses an HTTP response from a ListOperationsWithResponse call
func (ListOperationsResponse) ContentType ¶
func (r ListOperationsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListOperationsResponse) Status ¶
func (r ListOperationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListOperationsResponse) StatusCode ¶
func (r ListOperationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSSHPublicKeysParams ¶
type ListSSHPublicKeysParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Integer offset cursor returned as next_cursor.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Offset Integer offset alternative to cursor.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListSSHPublicKeysParams defines parameters for ListSSHPublicKeys.
type ListSSHPublicKeysResponse ¶
type ListSSHPublicKeysResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SSHPublicKeyList
JSONDefault *Error
}
func ParseListSSHPublicKeysResponse ¶
func ParseListSSHPublicKeysResponse(rsp *http.Response) (*ListSSHPublicKeysResponse, error)
ParseListSSHPublicKeysResponse parses an HTTP response from a ListSSHPublicKeysWithResponse call
func (ListSSHPublicKeysResponse) ContentType ¶
func (r ListSSHPublicKeysResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSSHPublicKeysResponse) Status ¶
func (r ListSSHPublicKeysResponse) Status() string
Status returns HTTPResponse.Status
func (ListSSHPublicKeysResponse) StatusCode ¶
func (r ListSSHPublicKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSandboxesParams ¶
type ListSandboxesParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Integer offset cursor returned as next_cursor.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Offset Integer offset alternative to cursor.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListSandboxesParams defines parameters for ListSandboxes.
type ListSandboxesResponse ¶
type ListSandboxesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxList
JSONDefault *Error
}
func ParseListSandboxesResponse ¶
func ParseListSandboxesResponse(rsp *http.Response) (*ListSandboxesResponse, error)
ParseListSandboxesResponse parses an HTTP response from a ListSandboxesWithResponse call
func (ListSandboxesResponse) ContentType ¶
func (r ListSandboxesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSandboxesResponse) Status ¶
func (r ListSandboxesResponse) Status() string
Status returns HTTPResponse.Status
func (ListSandboxesResponse) StatusCode ¶
func (r ListSandboxesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSnapshotsParams ¶
type ListSnapshotsParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Integer offset cursor returned as next_cursor.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Offset Integer offset alternative to cursor.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListSnapshotsParams defines parameters for ListSnapshots.
type ListSnapshotsResponse ¶
type ListSnapshotsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SnapshotList
JSONDefault *Error
}
func ParseListSnapshotsResponse ¶
func ParseListSnapshotsResponse(rsp *http.Response) (*ListSnapshotsResponse, error)
ParseListSnapshotsResponse parses an HTTP response from a ListSnapshotsWithResponse call
func (ListSnapshotsResponse) ContentType ¶
func (r ListSnapshotsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSnapshotsResponse) Status ¶
func (r ListSnapshotsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSnapshotsResponse) StatusCode ¶
func (r ListSnapshotsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTemplatesParams ¶
type ListTemplatesParams struct {
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
// Cursor Integer offset cursor returned as next_cursor.
Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`
// Offset Integer offset alternative to cursor.
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
}
ListTemplatesParams defines parameters for ListTemplates.
type ListTemplatesResponse ¶
type ListTemplatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *TemplateList
JSONDefault *Error
}
func ParseListTemplatesResponse ¶
func ParseListTemplatesResponse(rsp *http.Response) (*ListTemplatesResponse, error)
ParseListTemplatesResponse parses an HTTP response from a ListTemplatesWithResponse call
func (ListTemplatesResponse) ContentType ¶
func (r ListTemplatesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListTemplatesResponse) Status ¶
func (r ListTemplatesResponse) Status() string
Status returns HTTPResponse.Status
func (ListTemplatesResponse) StatusCode ¶
func (r ListTemplatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersResponse ¶
func ParseListUsersResponse ¶
func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)
ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call
func (ListUsersResponse) ContentType ¶
func (r ListUsersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListUsersResponse) Status ¶
func (r ListUsersResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsersResponse) StatusCode ¶
func (r ListUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MetaResponse ¶
func ParseMetaResponse ¶
func ParseMetaResponse(rsp *http.Response) (*MetaResponse, error)
ParseMetaResponse parses an HTTP response from a MetaWithResponse call
func (MetaResponse) ContentType ¶
func (r MetaResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MetaResponse) Status ¶
func (r MetaResponse) Status() string
Status returns HTTPResponse.Status
func (MetaResponse) StatusCode ¶
func (r MetaResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MetricsResponse ¶
func ParseMetricsResponse ¶
func ParseMetricsResponse(rsp *http.Response) (*MetricsResponse, error)
ParseMetricsResponse parses an HTTP response from a MetricsWithResponse call
func (MetricsResponse) ContentType ¶
func (r MetricsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MetricsResponse) Status ¶
func (r MetricsResponse) Status() string
Status returns HTTPResponse.Status
func (MetricsResponse) StatusCode ¶
func (r MetricsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OpenAPIYAMLResponse ¶
func ParseOpenAPIYAMLResponse ¶
func ParseOpenAPIYAMLResponse(rsp *http.Response) (*OpenAPIYAMLResponse, error)
ParseOpenAPIYAMLResponse parses an HTTP response from a OpenAPIYAMLWithResponse call
func (OpenAPIYAMLResponse) ContentType ¶
func (r OpenAPIYAMLResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (OpenAPIYAMLResponse) Status ¶
func (r OpenAPIYAMLResponse) Status() string
Status returns HTTPResponse.Status
func (OpenAPIYAMLResponse) StatusCode ¶
func (r OpenAPIYAMLResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Operation ¶
type Operation struct {
CreatedAt time.Time `json:"created_at"`
Error *Failure `json:"error,omitempty"`
Id *string `json:"id,omitempty"`
Kind *OperationKind `json:"kind,omitempty"`
Result *map[string]string `json:"result,omitempty"`
State OperationState `json:"state"`
UpdatedAt time.Time `json:"updated_at"`
}
Operation defines model for Operation.
type OperationKind ¶
type OperationKind string
OperationKind defines model for Operation.Kind.
const ( OperationKindCreate OperationKind = "create" OperationKindDeleteSandbox OperationKind = "delete_sandbox" OperationKindDeleteSnapshot OperationKind = "delete_snapshot" OperationKindRestore OperationKind = "restore" OperationKindSnapshot OperationKind = "snapshot" OperationKindStart OperationKind = "start" OperationKindStop OperationKind = "stop" )
Defines values for OperationKind.
func (OperationKind) Valid ¶
func (e OperationKind) Valid() bool
Valid indicates whether the value is a known member of the OperationKind enum.
type OperationList ¶
type OperationList struct {
Items []Operation `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
OperationList defines model for OperationList.
type OperationState ¶
type OperationState string
OperationState defines model for Operation.State.
const ( OperationStateFailed OperationState = "failed" OperationStateQueued OperationState = "queued" OperationStateRunning OperationState = "running" OperationStateSucceeded OperationState = "succeeded" )
Defines values for OperationState.
func (OperationState) Valid ¶
func (e OperationState) Valid() bool
Valid indicates whether the value is a known member of the OperationState enum.
type PrepareSandboxSSHJSONRequestBody ¶
type PrepareSandboxSSHJSONRequestBody = PrepareSandboxSSHRequest
PrepareSandboxSSHJSONRequestBody defines body for PrepareSandboxSSH for application/json ContentType.
type PrepareSandboxSSHRequest ¶
type PrepareSandboxSSHRequest struct {
// PublicKey One registered OpenSSH public key to certify for gateway authentication.
PublicKey string `json:"public_key"`
}
PrepareSandboxSSHRequest defines model for PrepareSandboxSSHRequest.
type PrepareSandboxSSHResponse ¶
type PrepareSandboxSSHResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SSHPreparation
JSONDefault *Error
}
func ParsePrepareSandboxSSHResponse ¶
func ParsePrepareSandboxSSHResponse(rsp *http.Response) (*PrepareSandboxSSHResponse, error)
ParsePrepareSandboxSSHResponse parses an HTTP response from a PrepareSandboxSSHWithResponse call
func (PrepareSandboxSSHResponse) ContentType ¶
func (r PrepareSandboxSSHResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PrepareSandboxSSHResponse) Status ¶
func (r PrepareSandboxSSHResponse) Status() string
Status returns HTTPResponse.Status
func (PrepareSandboxSSHResponse) StatusCode ¶
func (r PrepareSandboxSSHResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReadyzResponse ¶
func ParseReadyzResponse ¶
func ParseReadyzResponse(rsp *http.Response) (*ReadyzResponse, error)
ParseReadyzResponse parses an HTTP response from a ReadyzWithResponse call
func (ReadyzResponse) ContentType ¶
func (r ReadyzResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ReadyzResponse) Status ¶
func (r ReadyzResponse) Status() string
Status returns HTTPResponse.Status
func (ReadyzResponse) StatusCode ¶
func (r ReadyzResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RestoreSnapshotJSONRequestBody ¶
type RestoreSnapshotJSONRequestBody = RestoreSnapshotRequest
RestoreSnapshotJSONRequestBody defines body for RestoreSnapshot for application/json ContentType.
type RestoreSnapshotParams ¶
type RestoreSnapshotParams struct {
// IdempotencyKey Required for mutating requests. Reusing a key with the same request returns the same accepted operation; reusing it with a different request returns 409.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
RestoreSnapshotParams defines parameters for RestoreSnapshot.
type RestoreSnapshotRequest ¶
type RestoreSnapshotRequest struct {
// Ttl Optional positive Go-style duration string.
Ttl *string `json:"ttl,omitempty"`
}
RestoreSnapshotRequest defines model for RestoreSnapshotRequest.
type RestoreSnapshotResponse ¶
type RestoreSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSONDefault *Error
}
func ParseRestoreSnapshotResponse ¶
func ParseRestoreSnapshotResponse(rsp *http.Response) (*RestoreSnapshotResponse, error)
ParseRestoreSnapshotResponse parses an HTTP response from a RestoreSnapshotWithResponse call
func (RestoreSnapshotResponse) ContentType ¶
func (r RestoreSnapshotResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RestoreSnapshotResponse) Status ¶
func (r RestoreSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (RestoreSnapshotResponse) StatusCode ¶
func (r RestoreSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SSHAuthorizeRequest ¶
type SSHAuthorizeRequest struct {
// ClientCertificate Gateway-auth SSH certificate presented by the client.
ClientCertificate *string `json:"client_certificate,omitempty"`
// GatewayPublicKey One OpenSSH public key generated by the gateway for this session.
GatewayPublicKey string `json:"gateway_public_key"`
// PublicKeyFingerprint SHA256 fingerprint of a live registered public key already proven by the gateway.
PublicKeyFingerprint *string `json:"public_key_fingerprint,omitempty"`
// RoutingUsername SSH username carrying the target sandbox name.
RoutingUsername string `json:"routing_username"`
}
SSHAuthorizeRequest defines model for SSHAuthorizeRequest.
type SSHAuthorizeResponse ¶
type SSHAuthorizeResponse struct {
Capability string `json:"capability"`
ExpiresAt time.Time `json:"expires_at"`
GuestCertificate string `json:"guest_certificate"`
IncarnationId string `json:"incarnation_id"`
SandboxId string `json:"sandbox_id"`
SupervisorEndpoint string `json:"supervisor_endpoint"`
SupervisorPort int `json:"supervisor_port"`
}
SSHAuthorizeResponse defines model for SSHAuthorizeResponse.
type SSHPreparation ¶
type SSHPreparation struct {
ClientCertificate string `json:"client_certificate"`
ExpiresAt time.Time `json:"expires_at"`
Host string `json:"host"`
KeyFingerprint string `json:"key_fingerprint"`
Port int `json:"port"`
Username string `json:"username"`
}
SSHPreparation defines model for SSHPreparation.
type SSHPublicKey ¶
type SSHPublicKey struct {
CreatedAt time.Time `json:"created_at"`
Fingerprint string `json:"fingerprint"`
Id string `json:"id"`
Name string `json:"name"`
PublicKey string `json:"public_key"`
UpdatedAt time.Time `json:"updated_at"`
}
SSHPublicKey defines model for SSHPublicKey.
type SSHPublicKeyList ¶
type SSHPublicKeyList struct {
Items []SSHPublicKey `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
SSHPublicKeyList defines model for SSHPublicKeyList.
type Sandbox ¶
type Sandbox struct {
CreatedAt time.Time `json:"created_at"`
Error *Failure `json:"error,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
Id string `json:"id"`
MaxExpiresAt *time.Time `json:"max_expires_at,omitempty"`
Node *string `json:"node,omitempty"`
OnDelete SandboxOnDelete `json:"on_delete"`
Status SandboxStatus `json:"status"`
TemplateVersion string `json:"template_version"`
UpdatedAt time.Time `json:"updated_at"`
}
Sandbox defines model for Sandbox.
type SandboxList ¶
type SandboxList struct {
Items []Sandbox `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
SandboxList defines model for SandboxList.
type SandboxOnDelete ¶
type SandboxOnDelete string
SandboxOnDelete defines model for Sandbox.OnDelete.
const ( SandboxOnDeleteArchive SandboxOnDelete = "archive" SandboxOnDeleteCold SandboxOnDelete = "cold" SandboxOnDeleteDelete SandboxOnDelete = "delete" SandboxOnDeleteHot SandboxOnDelete = "hot" )
Defines values for SandboxOnDelete.
func (SandboxOnDelete) Valid ¶
func (e SandboxOnDelete) Valid() bool
Valid indicates whether the value is a known member of the SandboxOnDelete enum.
type SandboxStatus ¶
type SandboxStatus string
SandboxStatus defines model for Sandbox.Status.
const ( SandboxStatusDegraded SandboxStatus = "degraded" SandboxStatusFailed SandboxStatus = "failed" SandboxStatusGone SandboxStatus = "gone" SandboxStatusPending SandboxStatus = "pending" SandboxStatusRestoring SandboxStatus = "restoring" SandboxStatusRunning SandboxStatus = "running" SandboxStatusSnapshotting SandboxStatus = "snapshotting" SandboxStatusStopped SandboxStatus = "stopped" )
Defines values for SandboxStatus.
func (SandboxStatus) Valid ¶
func (e SandboxStatus) Valid() bool
Valid indicates whether the value is a known member of the SandboxStatus enum.
type Snapshot ¶
type Snapshot struct {
// ArchiveRef Stored archive completion marker object key when archive_state is archived.
ArchiveRef *string `json:"archive_ref,omitempty"`
ArchiveState *SnapshotArchiveState `json:"archive_state,omitempty"`
CreatedAt time.Time `json:"created_at"`
Error *Failure `json:"error,omitempty"`
ExpiresAt *time.Time `json:"expires_at,omitempty"`
Id string `json:"id"`
Node *string `json:"node,omitempty"`
SandboxId string `json:"sandbox_id"`
State SnapshotState `json:"state"`
TemplateVersion string `json:"template_version"`
Tier SnapshotTier `json:"tier"`
UpdatedAt time.Time `json:"updated_at"`
}
Snapshot defines model for Snapshot.
type SnapshotArchiveState ¶
type SnapshotArchiveState string
SnapshotArchiveState defines model for Snapshot.ArchiveState.
const ( SnapshotArchiveStateArchived SnapshotArchiveState = "archived" SnapshotArchiveStateArchiving SnapshotArchiveState = "archiving" SnapshotArchiveStateFailed SnapshotArchiveState = "failed" )
Defines values for SnapshotArchiveState.
func (SnapshotArchiveState) Valid ¶
func (e SnapshotArchiveState) Valid() bool
Valid indicates whether the value is a known member of the SnapshotArchiveState enum.
type SnapshotList ¶
type SnapshotList struct {
Items []Snapshot `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
SnapshotList defines model for SnapshotList.
type SnapshotSandboxJSONRequestBody ¶
type SnapshotSandboxJSONRequestBody = SnapshotSandboxRequest
SnapshotSandboxJSONRequestBody defines body for SnapshotSandbox for application/json ContentType.
type SnapshotSandboxParams ¶
type SnapshotSandboxParams struct {
// IdempotencyKey Required for mutating requests. Reusing a key with the same request returns the same accepted operation; reusing it with a different request returns 409.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
SnapshotSandboxParams defines parameters for SnapshotSandbox.
type SnapshotSandboxRequest ¶
type SnapshotSandboxRequest struct {
Note *string `json:"note,omitempty"`
// Ttl Optional Go-style duration string. Omit to use lifecycle.default_snapshot_ttl; "0" means no expiry.
Ttl *string `json:"ttl,omitempty"`
}
SnapshotSandboxRequest defines model for SnapshotSandboxRequest.
type SnapshotSandboxResponse ¶
type SnapshotSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSONDefault *Error
}
func ParseSnapshotSandboxResponse ¶
func ParseSnapshotSandboxResponse(rsp *http.Response) (*SnapshotSandboxResponse, error)
ParseSnapshotSandboxResponse parses an HTTP response from a SnapshotSandboxWithResponse call
func (SnapshotSandboxResponse) ContentType ¶
func (r SnapshotSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SnapshotSandboxResponse) Status ¶
func (r SnapshotSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (SnapshotSandboxResponse) StatusCode ¶
func (r SnapshotSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SnapshotState ¶
type SnapshotState string
SnapshotState defines model for Snapshot.State.
const ( SnapshotStateAvailable SnapshotState = "available" SnapshotStateClaimed SnapshotState = "claimed" SnapshotStateConsumed SnapshotState = "consumed" SnapshotStateCreating SnapshotState = "creating" SnapshotStateFailed SnapshotState = "failed" )
Defines values for SnapshotState.
func (SnapshotState) Valid ¶
func (e SnapshotState) Valid() bool
Valid indicates whether the value is a known member of the SnapshotState enum.
type SnapshotTier ¶
type SnapshotTier string
SnapshotTier defines model for Snapshot.Tier.
const ( Archive SnapshotTier = "archive" Cold SnapshotTier = "cold" Hot SnapshotTier = "hot" )
Defines values for SnapshotTier.
func (SnapshotTier) Valid ¶
func (e SnapshotTier) Valid() bool
Valid indicates whether the value is a known member of the SnapshotTier enum.
type StartSandboxParams ¶
type StartSandboxParams struct {
// IdempotencyKey Required for mutating requests. Reusing a key with the same request returns the same accepted operation; reusing it with a different request returns 409.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
StartSandboxParams defines parameters for StartSandbox.
type StartSandboxResponse ¶
type StartSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSONDefault *Error
}
func ParseStartSandboxResponse ¶
func ParseStartSandboxResponse(rsp *http.Response) (*StartSandboxResponse, error)
ParseStartSandboxResponse parses an HTTP response from a StartSandboxWithResponse call
func (StartSandboxResponse) ContentType ¶
func (r StartSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StartSandboxResponse) Status ¶
func (r StartSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (StartSandboxResponse) StatusCode ¶
func (r StartSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StopSandboxParams ¶
type StopSandboxParams struct {
// IdempotencyKey Required for mutating requests. Reusing a key with the same request returns the same accepted operation; reusing it with a different request returns 409.
IdempotencyKey IdempotencyKey `json:"Idempotency-Key"`
}
StopSandboxParams defines parameters for StopSandbox.
type StopSandboxResponse ¶
type StopSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSONDefault *Error
}
func ParseStopSandboxResponse ¶
func ParseStopSandboxResponse(rsp *http.Response) (*StopSandboxResponse, error)
ParseStopSandboxResponse parses an HTTP response from a StopSandboxWithResponse call
func (StopSandboxResponse) ContentType ¶
func (r StopSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StopSandboxResponse) Status ¶
func (r StopSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (StopSandboxResponse) StatusCode ¶
func (r StopSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StreamingNotImplemented ¶
type StreamingNotImplemented = ErrorEnvelope
StreamingNotImplemented defines model for StreamingNotImplemented.
type Template ¶
type Template struct {
ClockPolicy TemplateClockPolicy `json:"clock_policy"`
DiskGb int `json:"disk_gb"`
MemoryMb int `json:"memory_mb"`
Name string `json:"name"`
Vcpu int `json:"vcpu"`
Version string `json:"version"`
}
Template defines model for Template.
type TemplateClockPolicy ¶
type TemplateClockPolicy string
TemplateClockPolicy defines model for Template.ClockPolicy.
const ( Frozen TemplateClockPolicy = "frozen" Realtime TemplateClockPolicy = "realtime" )
Defines values for TemplateClockPolicy.
func (TemplateClockPolicy) Valid ¶
func (e TemplateClockPolicy) Valid() bool
Valid indicates whether the value is a known member of the TemplateClockPolicy enum.
type TemplateList ¶
type TemplateList struct {
Items []Template `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
TemplateList defines model for TemplateList.
type TunnelSandboxResponse ¶
type TunnelSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *BadRequest
JSON501 *StreamingNotImplemented
}
func ParseTunnelSandboxResponse ¶
func ParseTunnelSandboxResponse(rsp *http.Response) (*TunnelSandboxResponse, error)
ParseTunnelSandboxResponse parses an HTTP response from a TunnelSandboxWithResponse call
func (TunnelSandboxResponse) ContentType ¶
func (r TunnelSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TunnelSandboxResponse) Status ¶
func (r TunnelSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (TunnelSandboxResponse) StatusCode ¶
func (r TunnelSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnprocessableEntity ¶
type UnprocessableEntity = ErrorEnvelope
UnprocessableEntity defines model for UnprocessableEntity.
type WebSessionIdentity ¶
type WebSessionIdentity struct {
AvatarUrl string `json:"avatarUrl"`
Email string `json:"email"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
Handle string `json:"handle"`
Name string `json:"name"`
Subject string `json:"subject"`
}
WebSessionIdentity defines model for WebSessionIdentity.