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 ¶
- Constants
- Variables
- func NewAddSSHPublicKeyRequest(server string, body AddSSHPublicKeyJSONRequestBody) (*http.Request, error)
- func NewAddSSHPublicKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewAddUserSSHPublicKeyRequest(server string, handle string, body AddUserSSHPublicKeyJSONRequestBody) (*http.Request, error)
- func NewAddUserSSHPublicKeyRequestWithBody(server string, handle string, contentType string, body io.Reader) (*http.Request, error)
- func NewAuthCLIConfigRequest(server string) (*http.Request, error)
- func NewAuthSessionRequest(server string) (*http.Request, error)
- func NewAuthorizeIngressRequest(server string, body AuthorizeIngressJSONRequestBody) (*http.Request, error)
- func NewAuthorizeIngressRequestWithBody(server string, contentType string, body io.Reader) (*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 NewCreateHookTemplateRequest(server string, body CreateHookTemplateJSONRequestBody) (*http.Request, error)
- func NewCreateHookTemplateRequestWithBody(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 NewDeactivateImageRequest(server string, id ImageID) (*http.Request, error)
- func NewDeleteHookTemplateRequest(server string, name string) (*http.Request, error)
- func NewDeleteImageRequest(server string, id ImageID, params *DeleteImageParams) (*http.Request, error)
- func NewDeleteSSHPublicKeyRequest(server string, id SSHPublicKeyID) (*http.Request, error)
- func NewDeleteSandboxRequest(server string, id SandboxID, params *DeleteSandboxParams) (*http.Request, error)
- func NewDeleteUserSSHPublicKeyRequest(server string, handle string, id SSHPublicKeyID) (*http.Request, error)
- func NewExecSandboxRequest(server string, id SandboxID, body ExecSandboxJSONRequestBody) (*http.Request, error)
- func NewExecSandboxRequestWithBody(server string, id SandboxID, contentType string, body io.Reader) (*http.Request, error)
- func NewExposePortRequest(server string, id SandboxID, body ExposePortJSONRequestBody) (*http.Request, error)
- func NewExposePortRequestWithBody(server string, id SandboxID, contentType string, body io.Reader) (*http.Request, error)
- func NewForkImageRequest(server string, id ImageID, params *ForkImageParams, ...) (*http.Request, error)
- func NewForkImageRequestWithBody(server string, id ImageID, params *ForkImageParams, contentType string, ...) (*http.Request, error)
- func NewForkSandboxRequest(server string, id SandboxID, params *ForkSandboxParams, ...) (*http.Request, error)
- func NewForkSandboxRequestWithBody(server string, id SandboxID, params *ForkSandboxParams, contentType string, ...) (*http.Request, error)
- func NewGetForkRequest(server string, id ForkID) (*http.Request, error)
- func NewGetHookTemplateRequest(server string, name string) (*http.Request, error)
- func NewGetImageLineageRequest(server string, id ImageID) (*http.Request, error)
- func NewGetImageRequest(server string, id ImageID) (*http.Request, error)
- func NewGetImageRestoredByRequest(server string, id ImageID) (*http.Request, error)
- func NewGetNodeRequest(server string, id string) (*http.Request, error)
- func NewGetOperationRequest(server string, id OperationID) (*http.Request, error)
- func NewGetSandboxHookRunsRequest(server string, id SandboxID, params *GetSandboxHookRunsParams) (*http.Request, error)
- func NewGetSandboxHooksRequest(server string, id SandboxID, params *GetSandboxHooksParams) (*http.Request, error)
- func NewGetSandboxImagesRequest(server string, id SandboxID) (*http.Request, error)
- func NewGetSandboxLineageRequest(server string, id SandboxID) (*http.Request, error)
- func NewGetSandboxLogsRequest(server string, id SandboxID, params *GetSandboxLogsParams) (*http.Request, error)
- func NewGetSandboxMetricsRequest(server string, id SandboxID, params *GetSandboxMetricsParams) (*http.Request, error)
- func NewGetSandboxOperationsRequest(server string, id SandboxID) (*http.Request, error)
- func NewGetSandboxRequest(server string, id SandboxID) (*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 NewListBakesRequest(server string, params *ListBakesParams) (*http.Request, error)
- func NewListForksRequest(server string) (*http.Request, error)
- func NewListHookTemplatesRequest(server string, params *ListHookTemplatesParams) (*http.Request, error)
- func NewListImagesRequest(server string, params *ListImagesParams) (*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 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 NewPauseSandboxRequest(server string, id SandboxID, params *PauseSandboxParams) (*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 NewPromoteImageRequest(server string, id ImageID, body PromoteImageJSONRequestBody) (*http.Request, error)
- func NewPromoteImageRequestWithBody(server string, id ImageID, contentType string, body io.Reader) (*http.Request, error)
- func NewReadyzRequest(server string) (*http.Request, error)
- func NewResumeSandboxRequest(server string, id SandboxID, params *ResumeSandboxParams) (*http.Request, error)
- func NewRunBakeRequest(server string, name string) (*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 NewStreamExecSandboxRequest(server string, id SandboxID, params *StreamExecSandboxParams) (*http.Request, error)
- func NewTunnelSandboxRequest(server string, id SandboxID, port int) (*http.Request, error)
- func NewUnexposePortRequest(server string, id SandboxID, port Port) (*http.Request, error)
- func NewUpdateHookTemplateRequest(server string, name string, body UpdateHookTemplateJSONRequestBody) (*http.Request, error)
- func NewUpdateHookTemplateRequestWithBody(server string, name string, contentType string, body io.Reader) (*http.Request, error)
- type AcceptedResponse
- type AddSSHPublicKeyJSONRequestBody
- type AddSSHPublicKeyRequest
- type AddSSHPublicKeyResponse
- type AddUserSSHPublicKeyJSONRequestBody
- type AddUserSSHPublicKeyResponse
- type AuthCLIConfig
- type AuthCLIConfigResponse
- type AuthSession
- type AuthSessionResponse
- type AuthorizeIngressJSONRequestBody
- type AuthorizeIngressResponse
- type AuthorizeSSHJSONRequestBody
- type AuthorizeSSHResponse
- type BadRequest
- type BakeStatus
- type BakeStatusLastResult
- type BakeStatusList
- 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) AddUserSSHPublicKey(ctx context.Context, handle string, body AddUserSSHPublicKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddUserSSHPublicKeyWithBody(ctx context.Context, handle string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) AuthCLIConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AuthSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AuthorizeIngress(ctx context.Context, body AuthorizeIngressJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AuthorizeIngressWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*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) CreateHookTemplate(ctx context.Context, body CreateHookTemplateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateHookTemplateWithBody(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) DeactivateImage(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteHookTemplate(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteImage(ctx context.Context, id ImageID, params *DeleteImageParams, ...) (*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) DeleteUserSSHPublicKey(ctx context.Context, handle string, id SSHPublicKeyID, ...) (*http.Response, error)
- func (c *Client) ExecSandbox(ctx context.Context, id SandboxID, body ExecSandboxJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ExecSandboxWithBody(ctx context.Context, id SandboxID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ExposePort(ctx context.Context, id SandboxID, body ExposePortJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ExposePortWithBody(ctx context.Context, id SandboxID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ForkImage(ctx context.Context, id ImageID, params *ForkImageParams, ...) (*http.Response, error)
- func (c *Client) ForkImageWithBody(ctx context.Context, id ImageID, params *ForkImageParams, contentType string, ...) (*http.Response, error)
- func (c *Client) ForkSandbox(ctx context.Context, id SandboxID, params *ForkSandboxParams, ...) (*http.Response, error)
- func (c *Client) ForkSandboxWithBody(ctx context.Context, id SandboxID, params *ForkSandboxParams, ...) (*http.Response, error)
- func (c *Client) GetFork(ctx context.Context, id ForkID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHookTemplate(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetImage(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetImageLineage(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetImageRestoredBy(ctx context.Context, id ImageID, 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) GetSandboxHookRuns(ctx context.Context, id SandboxID, params *GetSandboxHookRunsParams, ...) (*http.Response, error)
- func (c *Client) GetSandboxHooks(ctx context.Context, id SandboxID, params *GetSandboxHooksParams, ...) (*http.Response, error)
- func (c *Client) GetSandboxImages(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, params *GetSandboxLogsParams, ...) (*http.Response, error)
- func (c *Client) GetSandboxMetrics(ctx context.Context, id SandboxID, params *GetSandboxMetricsParams, ...) (*http.Response, error)
- func (c *Client) GetSandboxOperations(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*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) ListBakes(ctx context.Context, params *ListBakesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListForks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListHookTemplates(ctx context.Context, params *ListHookTemplatesParams, ...) (*http.Response, error)
- func (c *Client) ListImages(ctx context.Context, params *ListImagesParams, 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) 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) PauseSandbox(ctx context.Context, id SandboxID, params *PauseSandboxParams, ...) (*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) PromoteImage(ctx context.Context, id ImageID, body PromoteImageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PromoteImageWithBody(ctx context.Context, id ImageID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) Readyz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ResumeSandbox(ctx context.Context, id SandboxID, params *ResumeSandboxParams, ...) (*http.Response, error)
- func (c *Client) RunBake(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*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) StreamExecSandbox(ctx context.Context, id SandboxID, params *StreamExecSandboxParams, ...) (*http.Response, error)
- func (c *Client) TunnelSandbox(ctx context.Context, id SandboxID, port int, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UnexposePort(ctx context.Context, id SandboxID, port Port, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateHookTemplate(ctx context.Context, name string, body UpdateHookTemplateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateHookTemplateWithBody(ctx context.Context, name string, contentType string, body io.Reader, ...) (*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) AddUserSSHPublicKeyWithBodyWithResponse(ctx context.Context, handle string, contentType string, body io.Reader, ...) (*AddUserSSHPublicKeyResponse, error)
- func (c *ClientWithResponses) AddUserSSHPublicKeyWithResponse(ctx context.Context, handle string, body AddUserSSHPublicKeyJSONRequestBody, ...) (*AddUserSSHPublicKeyResponse, error)
- func (c *ClientWithResponses) AuthCLIConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCLIConfigResponse, error)
- func (c *ClientWithResponses) AuthSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSessionResponse, error)
- func (c *ClientWithResponses) AuthorizeIngressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AuthorizeIngressResponse, error)
- func (c *ClientWithResponses) AuthorizeIngressWithResponse(ctx context.Context, body AuthorizeIngressJSONRequestBody, ...) (*AuthorizeIngressResponse, 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) CreateHookTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateHookTemplateResponse, error)
- func (c *ClientWithResponses) CreateHookTemplateWithResponse(ctx context.Context, body CreateHookTemplateJSONRequestBody, ...) (*CreateHookTemplateResponse, 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) DeactivateImageWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*DeactivateImageResponse, error)
- func (c *ClientWithResponses) DeleteHookTemplateWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteHookTemplateResponse, error)
- func (c *ClientWithResponses) DeleteImageWithResponse(ctx context.Context, id ImageID, params *DeleteImageParams, ...) (*DeleteImageResponse, 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) DeleteUserSSHPublicKeyWithResponse(ctx context.Context, handle string, id SSHPublicKeyID, ...) (*DeleteUserSSHPublicKeyResponse, error)
- func (c *ClientWithResponses) ExecSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, ...) (*ExecSandboxResponse, error)
- func (c *ClientWithResponses) ExecSandboxWithResponse(ctx context.Context, id SandboxID, body ExecSandboxJSONRequestBody, ...) (*ExecSandboxResponse, error)
- func (c *ClientWithResponses) ExposePortWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, ...) (*ExposePortResponse, error)
- func (c *ClientWithResponses) ExposePortWithResponse(ctx context.Context, id SandboxID, body ExposePortJSONRequestBody, ...) (*ExposePortResponse, error)
- func (c *ClientWithResponses) ForkImageWithBodyWithResponse(ctx context.Context, id ImageID, params *ForkImageParams, contentType string, ...) (*ForkImageResponse, error)
- func (c *ClientWithResponses) ForkImageWithResponse(ctx context.Context, id ImageID, params *ForkImageParams, ...) (*ForkImageResponse, error)
- func (c *ClientWithResponses) ForkSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, params *ForkSandboxParams, ...) (*ForkSandboxResponse, error)
- func (c *ClientWithResponses) ForkSandboxWithResponse(ctx context.Context, id SandboxID, params *ForkSandboxParams, ...) (*ForkSandboxResponse, error)
- func (c *ClientWithResponses) GetForkWithResponse(ctx context.Context, id ForkID, reqEditors ...RequestEditorFn) (*GetForkResponse, error)
- func (c *ClientWithResponses) GetHookTemplateWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetHookTemplateResponse, error)
- func (c *ClientWithResponses) GetImageLineageWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*GetImageLineageResponse, error)
- func (c *ClientWithResponses) GetImageRestoredByWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*GetImageRestoredByResponse, error)
- func (c *ClientWithResponses) GetImageWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*GetImageResponse, 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) GetSandboxHookRunsWithResponse(ctx context.Context, id SandboxID, params *GetSandboxHookRunsParams, ...) (*GetSandboxHookRunsResponse, error)
- func (c *ClientWithResponses) GetSandboxHooksWithResponse(ctx context.Context, id SandboxID, params *GetSandboxHooksParams, ...) (*GetSandboxHooksResponse, error)
- func (c *ClientWithResponses) GetSandboxImagesWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxImagesResponse, error)
- func (c *ClientWithResponses) GetSandboxLineageWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxLineageResponse, error)
- func (c *ClientWithResponses) GetSandboxLogsWithResponse(ctx context.Context, id SandboxID, params *GetSandboxLogsParams, ...) (*GetSandboxLogsResponse, error)
- func (c *ClientWithResponses) GetSandboxMetricsWithResponse(ctx context.Context, id SandboxID, params *GetSandboxMetricsParams, ...) (*GetSandboxMetricsResponse, error)
- func (c *ClientWithResponses) GetSandboxOperationsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxOperationsResponse, error)
- func (c *ClientWithResponses) GetSandboxWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxResponse, 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) ListBakesWithResponse(ctx context.Context, params *ListBakesParams, reqEditors ...RequestEditorFn) (*ListBakesResponse, error)
- func (c *ClientWithResponses) ListForksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListForksResponse, error)
- func (c *ClientWithResponses) ListHookTemplatesWithResponse(ctx context.Context, params *ListHookTemplatesParams, ...) (*ListHookTemplatesResponse, error)
- func (c *ClientWithResponses) ListImagesWithResponse(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*ListImagesResponse, 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) 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) PauseSandboxWithResponse(ctx context.Context, id SandboxID, params *PauseSandboxParams, ...) (*PauseSandboxResponse, 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) PromoteImageWithBodyWithResponse(ctx context.Context, id ImageID, contentType string, body io.Reader, ...) (*PromoteImageResponse, error)
- func (c *ClientWithResponses) PromoteImageWithResponse(ctx context.Context, id ImageID, body PromoteImageJSONRequestBody, ...) (*PromoteImageResponse, error)
- func (c *ClientWithResponses) ReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReadyzResponse, error)
- func (c *ClientWithResponses) ResumeSandboxWithResponse(ctx context.Context, id SandboxID, params *ResumeSandboxParams, ...) (*ResumeSandboxResponse, error)
- func (c *ClientWithResponses) RunBakeWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*RunBakeResponse, 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) StreamExecSandboxWithResponse(ctx context.Context, id SandboxID, params *StreamExecSandboxParams, ...) (*StreamExecSandboxResponse, error)
- func (c *ClientWithResponses) TunnelSandboxWithResponse(ctx context.Context, id SandboxID, port int, reqEditors ...RequestEditorFn) (*TunnelSandboxResponse, error)
- func (c *ClientWithResponses) UnexposePortWithResponse(ctx context.Context, id SandboxID, port Port, reqEditors ...RequestEditorFn) (*UnexposePortResponse, error)
- func (c *ClientWithResponses) UpdateHookTemplateWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, ...) (*UpdateHookTemplateResponse, error)
- func (c *ClientWithResponses) UpdateHookTemplateWithResponse(ctx context.Context, name string, body UpdateHookTemplateJSONRequestBody, ...) (*UpdateHookTemplateResponse, error)
- type ClientWithResponsesInterface
- type Conflict
- type CreateHookTemplateJSONRequestBody
- type CreateHookTemplateResponse
- type CreateSandboxJSONRequestBody
- type CreateSandboxParams
- type CreateSandboxRequest
- type CreateSandboxRequestOnDelete
- type CreateSandboxResponse
- type CreateSandboxSource
- func (t CreateSandboxSource) AsSnapshotBootSource() (SnapshotBootSource, error)
- func (t CreateSandboxSource) AsTemplateBootSource() (TemplateBootSource, error)
- func (t *CreateSandboxSource) FromSnapshotBootSource(v SnapshotBootSource) error
- func (t *CreateSandboxSource) FromTemplateBootSource(v TemplateBootSource) error
- func (t CreateSandboxSource) MarshalJSON() ([]byte, error)
- func (t *CreateSandboxSource) MergeSnapshotBootSource(v SnapshotBootSource) error
- func (t *CreateSandboxSource) MergeTemplateBootSource(v TemplateBootSource) error
- func (t *CreateSandboxSource) UnmarshalJSON(b []byte) error
- type Cursor
- type DeactivateImageResponse
- type DeleteHookTemplateResponse
- type DeleteImageParams
- type DeleteImageResponse
- type DeleteSSHPublicKeyResponse
- type DeleteSandboxParams
- type DeleteSandboxResponse
- type DeleteUserSSHPublicKeyResponse
- type Error
- type ErrorBody
- type ErrorBodyCode
- type ErrorEnvelope
- type ExecSandboxJSONRequestBody
- type ExecSandboxRequest
- type ExecSandboxResponse
- type ExecSandboxResult
- type ExposePortJSONRequestBody
- type ExposePortRequest
- type ExposePortResponse
- type ExposedPort
- type Filter
- type Forbidden
- type Fork
- type ForkAccepted
- type ForkChild
- type ForkID
- type ForkIdentity
- type ForkIdentityClock
- type ForkIdentityRng
- type ForkImageJSONRequestBody
- type ForkImageParams
- type ForkImageResponse
- type ForkRequest
- type ForkRequestFlavor
- type ForkSandboxJSONRequestBody
- type ForkSandboxParams
- type ForkSandboxResponse
- type ForkSource
- type ForkSourceKind
- type GetForkResponse
- type GetHookTemplateResponse
- type GetImageLineageResponse
- type GetImageResponse
- type GetImageRestoredByResponse
- type GetNodeResponse
- type GetOperationResponse
- type GetSandboxHookRunsParams
- type GetSandboxHookRunsResponse
- type GetSandboxHooksParams
- type GetSandboxHooksResponse
- type GetSandboxImagesResponse
- type GetSandboxLineageResponse
- type GetSandboxLogsParams
- type GetSandboxLogsParamsSource
- type GetSandboxLogsResponse
- type GetSandboxMetricsParams
- type GetSandboxMetricsResponse
- type GetSandboxOperationsResponse
- type GetSandboxResponse
- type GetUserResponse
- type GuestNetwork
- type HealthzResponse
- type HookDeclaration
- type HookDeclarationEvent
- type HookDeclarationOnFailure
- type HookRun
- type HookRunList
- type HookRunStatus
- type HookSummary
- type HookSummaryList
- type HookSummaryOnFailure
- type HookTemplate
- type HookTemplateList
- type HookTemplateRequest
- type HttpRequestDoer
- type IdempotencyKey
- type Image
- type ImageFlavor
- type ImageID
- type ImageKind
- type ImageList
- type IngressAuthorizeRequest
- type IngressAuthorizeResponse
- type InternalError
- type LeaseResponse
- type LeaseSandboxJSONRequestBody
- type LeaseSandboxRequest
- type LeaseSandboxResponse
- type Limit
- type LineageNode
- type LineageNodeEdge
- type LineageNodeKind
- type LineageNodeVariant
- type LineageResponse
- type ListAuditResponse
- type ListBakesParams
- type ListBakesResponse
- type ListEnvelope
- type ListForksResponse
- type ListHookTemplatesParams
- type ListHookTemplatesResponse
- type ListImagesParams
- type ListImagesResponse
- type ListNodesResponse
- type ListOperationsParams
- type ListOperationsResponse
- type ListSSHPublicKeysParams
- type ListSSHPublicKeysResponse
- type ListSandboxesParams
- type ListSandboxesResponse
- type ListUsersResponse
- type LiveMetrics
- type LogLine
- type LogLineSource
- type LogsResponse
- type MetaResponse
- type MetricsResponse
- type NotFound
- type NotReady
- type Offset
- type OpenAPIYAMLResponse
- type Operation
- type OperationID
- type OperationList
- type OperationPhaseTiming
- type OperationProgress
- type OperationState
- type PauseSandboxParams
- type PauseSandboxResponse
- type Port
- type PortExposureRequest
- type PrepareSandboxSSHJSONRequestBody
- type PrepareSandboxSSHRequest
- type PrepareSandboxSSHResponse
- type PrepareSandboxSSHResult
- type PromoteImageJSONRequestBody
- type PromoteImageResponse
- type PromoteSnapshotRequest
- type ReadyzResponse
- type RequestEditorFn
- type ResumeSandboxParams
- type ResumeSandboxResponse
- type RunBakeResponse
- type SSHAuthorizeRequest
- type SSHAuthorizeResponse
- type SSHPublicKey
- type SSHPublicKeyID
- type SSHPublicKeyList
- type Sandbox
- type SandboxID
- type SandboxList
- type SandboxMetricSample
- type SandboxMetricsResponse
- type SandboxOnDelete
- type SandboxState
- type ScheduledResponse
- type ScheduledResponseStatus
- type Snapshot
- type SnapshotBootSource
- type SnapshotBootSourceFlavor
- type SnapshotBootSourceKind
- type SnapshotSandboxJSONRequestBody
- type SnapshotSandboxParams
- type SnapshotSandboxRequest
- type SnapshotSandboxResponse
- type SnapshotState
- type StartSandboxParams
- type StartSandboxResponse
- type StopSandboxParams
- type StopSandboxResponse
- type StreamExecSandboxParams
- type StreamExecSandboxResponse
- type Template
- type TemplateBootSource
- type TemplateBootSourceKind
- type TemplateBuild
- type TemplateClockPolicy
- type TemplateFlavor
- type TunnelSandboxResponse
- type UnexposePortResponse
- type UnprocessableEntity
- type UpdateHookTemplateJSONRequestBody
- type UpdateHookTemplateResponse
- type WatchdogDeclaration
- type WatchdogDeclarationAction
- type WatchdogSummary
- type WatchdogSummaryAction
- type WebSessionIdentity
Constants ¶
const (
BearerAuthScopes bearerAuthContextKey = "bearerAuth.Scopes"
)
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 NewAddUserSSHPublicKeyRequest ¶
func NewAddUserSSHPublicKeyRequest(server string, handle string, body AddUserSSHPublicKeyJSONRequestBody) (*http.Request, error)
NewAddUserSSHPublicKeyRequest calls the generic AddUserSSHPublicKey builder with application/json body
func NewAddUserSSHPublicKeyRequestWithBody ¶
func NewAddUserSSHPublicKeyRequestWithBody(server string, handle string, contentType string, body io.Reader) (*http.Request, error)
NewAddUserSSHPublicKeyRequestWithBody generates requests for AddUserSSHPublicKey with any type of body
func NewAuthCLIConfigRequest ¶
NewAuthCLIConfigRequest generates requests for AuthCLIConfig
func NewAuthSessionRequest ¶
NewAuthSessionRequest generates requests for AuthSession
func NewAuthorizeIngressRequest ¶
func NewAuthorizeIngressRequest(server string, body AuthorizeIngressJSONRequestBody) (*http.Request, error)
NewAuthorizeIngressRequest calls the generic AuthorizeIngress builder with application/json body
func NewAuthorizeIngressRequestWithBody ¶
func NewAuthorizeIngressRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAuthorizeIngressRequestWithBody generates requests for AuthorizeIngress with any type of body
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 NewCreateHookTemplateRequest ¶
func NewCreateHookTemplateRequest(server string, body CreateHookTemplateJSONRequestBody) (*http.Request, error)
NewCreateHookTemplateRequest calls the generic CreateHookTemplate builder with application/json body
func NewCreateHookTemplateRequestWithBody ¶
func NewCreateHookTemplateRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateHookTemplateRequestWithBody generates requests for CreateHookTemplate 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 NewDeactivateImageRequest ¶
NewDeactivateImageRequest generates requests for DeactivateImage
func NewDeleteHookTemplateRequest ¶
NewDeleteHookTemplateRequest generates requests for DeleteHookTemplate
func NewDeleteImageRequest ¶
func NewDeleteImageRequest(server string, id ImageID, params *DeleteImageParams) (*http.Request, error)
NewDeleteImageRequest generates requests for DeleteImage
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 NewDeleteUserSSHPublicKeyRequest ¶
func NewDeleteUserSSHPublicKeyRequest(server string, handle string, id SSHPublicKeyID) (*http.Request, error)
NewDeleteUserSSHPublicKeyRequest generates requests for DeleteUserSSHPublicKey
func NewExecSandboxRequest ¶
func NewExecSandboxRequest(server string, id SandboxID, body ExecSandboxJSONRequestBody) (*http.Request, error)
NewExecSandboxRequest calls the generic ExecSandbox builder with application/json body
func NewExecSandboxRequestWithBody ¶
func NewExecSandboxRequestWithBody(server string, id SandboxID, contentType string, body io.Reader) (*http.Request, error)
NewExecSandboxRequestWithBody generates requests for ExecSandbox with any type of body
func NewExposePortRequest ¶
func NewExposePortRequest(server string, id SandboxID, body ExposePortJSONRequestBody) (*http.Request, error)
NewExposePortRequest calls the generic ExposePort builder with application/json body
func NewExposePortRequestWithBody ¶
func NewExposePortRequestWithBody(server string, id SandboxID, contentType string, body io.Reader) (*http.Request, error)
NewExposePortRequestWithBody generates requests for ExposePort with any type of body
func NewForkImageRequest ¶
func NewForkImageRequest(server string, id ImageID, params *ForkImageParams, body ForkImageJSONRequestBody) (*http.Request, error)
NewForkImageRequest calls the generic ForkImage builder with application/json body
func NewForkImageRequestWithBody ¶
func NewForkImageRequestWithBody(server string, id ImageID, params *ForkImageParams, contentType string, body io.Reader) (*http.Request, error)
NewForkImageRequestWithBody generates requests for ForkImage with any type of body
func NewForkSandboxRequest ¶
func NewForkSandboxRequest(server string, id SandboxID, params *ForkSandboxParams, body ForkSandboxJSONRequestBody) (*http.Request, error)
NewForkSandboxRequest calls the generic ForkSandbox builder with application/json body
func NewForkSandboxRequestWithBody ¶
func NewForkSandboxRequestWithBody(server string, id SandboxID, params *ForkSandboxParams, contentType string, body io.Reader) (*http.Request, error)
NewForkSandboxRequestWithBody generates requests for ForkSandbox with any type of body
func NewGetForkRequest ¶
NewGetForkRequest generates requests for GetFork
func NewGetHookTemplateRequest ¶
NewGetHookTemplateRequest generates requests for GetHookTemplate
func NewGetImageLineageRequest ¶
NewGetImageLineageRequest generates requests for GetImageLineage
func NewGetImageRequest ¶
NewGetImageRequest generates requests for GetImage
func NewGetImageRestoredByRequest ¶
NewGetImageRestoredByRequest generates requests for GetImageRestoredBy
func NewGetNodeRequest ¶
NewGetNodeRequest generates requests for GetNode
func NewGetOperationRequest ¶
func NewGetOperationRequest(server string, id OperationID) (*http.Request, error)
NewGetOperationRequest generates requests for GetOperation
func NewGetSandboxHookRunsRequest ¶
func NewGetSandboxHookRunsRequest(server string, id SandboxID, params *GetSandboxHookRunsParams) (*http.Request, error)
NewGetSandboxHookRunsRequest generates requests for GetSandboxHookRuns
func NewGetSandboxHooksRequest ¶
func NewGetSandboxHooksRequest(server string, id SandboxID, params *GetSandboxHooksParams) (*http.Request, error)
NewGetSandboxHooksRequest generates requests for GetSandboxHooks
func NewGetSandboxImagesRequest ¶
NewGetSandboxImagesRequest generates requests for GetSandboxImages
func NewGetSandboxLineageRequest ¶
NewGetSandboxLineageRequest generates requests for GetSandboxLineage
func NewGetSandboxLogsRequest ¶
func NewGetSandboxLogsRequest(server string, id SandboxID, params *GetSandboxLogsParams) (*http.Request, error)
NewGetSandboxLogsRequest generates requests for GetSandboxLogs
func NewGetSandboxMetricsRequest ¶
func NewGetSandboxMetricsRequest(server string, id SandboxID, params *GetSandboxMetricsParams) (*http.Request, error)
NewGetSandboxMetricsRequest generates requests for GetSandboxMetrics
func NewGetSandboxOperationsRequest ¶
NewGetSandboxOperationsRequest generates requests for GetSandboxOperations
func NewGetSandboxRequest ¶
NewGetSandboxRequest generates requests for GetSandbox
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 NewListBakesRequest ¶
func NewListBakesRequest(server string, params *ListBakesParams) (*http.Request, error)
NewListBakesRequest generates requests for ListBakes
func NewListForksRequest ¶
NewListForksRequest generates requests for ListForks
func NewListHookTemplatesRequest ¶
func NewListHookTemplatesRequest(server string, params *ListHookTemplatesParams) (*http.Request, error)
NewListHookTemplatesRequest generates requests for ListHookTemplates
func NewListImagesRequest ¶
func NewListImagesRequest(server string, params *ListImagesParams) (*http.Request, error)
NewListImagesRequest generates requests for ListImages
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 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 NewPauseSandboxRequest ¶
func NewPauseSandboxRequest(server string, id SandboxID, params *PauseSandboxParams) (*http.Request, error)
NewPauseSandboxRequest generates requests for PauseSandbox
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 NewPromoteImageRequest ¶
func NewPromoteImageRequest(server string, id ImageID, body PromoteImageJSONRequestBody) (*http.Request, error)
NewPromoteImageRequest calls the generic PromoteImage builder with application/json body
func NewPromoteImageRequestWithBody ¶
func NewPromoteImageRequestWithBody(server string, id ImageID, contentType string, body io.Reader) (*http.Request, error)
NewPromoteImageRequestWithBody generates requests for PromoteImage with any type of body
func NewReadyzRequest ¶
NewReadyzRequest generates requests for Readyz
func NewResumeSandboxRequest ¶
func NewResumeSandboxRequest(server string, id SandboxID, params *ResumeSandboxParams) (*http.Request, error)
NewResumeSandboxRequest generates requests for ResumeSandbox
func NewRunBakeRequest ¶
NewRunBakeRequest generates requests for RunBake
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
func NewStreamExecSandboxRequest ¶
func NewStreamExecSandboxRequest(server string, id SandboxID, params *StreamExecSandboxParams) (*http.Request, error)
NewStreamExecSandboxRequest generates requests for StreamExecSandbox
func NewTunnelSandboxRequest ¶
NewTunnelSandboxRequest generates requests for TunnelSandbox
func NewUnexposePortRequest ¶
NewUnexposePortRequest generates requests for UnexposePort
func NewUpdateHookTemplateRequest ¶
func NewUpdateHookTemplateRequest(server string, name string, body UpdateHookTemplateJSONRequestBody) (*http.Request, error)
NewUpdateHookTemplateRequest calls the generic UpdateHookTemplate builder with application/json body
Types ¶
type AcceptedResponse ¶
type AcceptedResponse struct {
Hooks *[]HookSummary `json:"hooks,omitempty"`
// 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"`
Watchdog *WatchdogSummary `json:"watchdog,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 {
// Label Optional display label. Defaults to the key comment or fingerprint.
Label *string `json:"label,omitempty"`
// 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 AddUserSSHPublicKeyJSONRequestBody ¶
type AddUserSSHPublicKeyJSONRequestBody = AddSSHPublicKeyRequest
AddUserSSHPublicKeyJSONRequestBody defines body for AddUserSSHPublicKey for application/json ContentType.
type AddUserSSHPublicKeyResponse ¶
type AddUserSSHPublicKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *SSHPublicKey
JSON403 *Forbidden
JSON404 *NotFound
JSON409 *Conflict
JSONDefault *Error
}
func ParseAddUserSSHPublicKeyResponse ¶
func ParseAddUserSSHPublicKeyResponse(rsp *http.Response) (*AddUserSSHPublicKeyResponse, error)
ParseAddUserSSHPublicKeyResponse parses an HTTP response from a AddUserSSHPublicKeyWithResponse call
func (AddUserSSHPublicKeyResponse) ContentType ¶
func (r AddUserSSHPublicKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddUserSSHPublicKeyResponse) Status ¶
func (r AddUserSSHPublicKeyResponse) Status() string
Status returns HTTPResponse.Status
func (AddUserSSHPublicKeyResponse) StatusCode ¶
func (r AddUserSSHPublicKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AuthCLIConfig ¶
type AuthCLIConfig struct {
ClientId *string `json:"client_id,omitempty"`
Issuer *string `json:"issuer,omitempty"`
OidcEnabled bool `json:"oidc_enabled"`
Scopes []string `json:"scopes"`
}
AuthCLIConfig defines model for AuthCLIConfig.
type AuthCLIConfigResponse ¶
type AuthCLIConfigResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AuthCLIConfig
JSONDefault *Error
}
func ParseAuthCLIConfigResponse ¶
func ParseAuthCLIConfigResponse(rsp *http.Response) (*AuthCLIConfigResponse, error)
ParseAuthCLIConfigResponse parses an HTTP response from a AuthCLIConfigWithResponse call
func (AuthCLIConfigResponse) ContentType ¶
func (r AuthCLIConfigResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AuthCLIConfigResponse) Status ¶
func (r AuthCLIConfigResponse) Status() string
Status returns HTTPResponse.Status
func (AuthCLIConfigResponse) StatusCode ¶
func (r AuthCLIConfigResponse) 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 AuthorizeIngressJSONRequestBody ¶
type AuthorizeIngressJSONRequestBody = IngressAuthorizeRequest
AuthorizeIngressJSONRequestBody defines body for AuthorizeIngress for application/json ContentType.
type AuthorizeIngressResponse ¶
type AuthorizeIngressResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *IngressAuthorizeResponse
JSONDefault *Error
}
func ParseAuthorizeIngressResponse ¶
func ParseAuthorizeIngressResponse(rsp *http.Response) (*AuthorizeIngressResponse, error)
ParseAuthorizeIngressResponse parses an HTTP response from a AuthorizeIngressWithResponse call
func (AuthorizeIngressResponse) ContentType ¶
func (r AuthorizeIngressResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AuthorizeIngressResponse) Status ¶
func (r AuthorizeIngressResponse) Status() string
Status returns HTTPResponse.Status
func (AuthorizeIngressResponse) StatusCode ¶
func (r AuthorizeIngressResponse) 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 BakeStatus ¶
type BakeStatus struct {
ActiveCreatedAt *time.Time `json:"active_created_at,omitempty"`
ActiveVersion *string `json:"active_version,omitempty"`
Description *string `json:"description,omitempty"`
Enabled bool `json:"enabled"`
Interval string `json:"interval"`
LastAttemptAt *time.Time `json:"last_attempt_at,omitempty"`
LastError *string `json:"last_error,omitempty"`
LastResult *BakeStatusLastResult `json:"last_result,omitempty"`
LastVersion *string `json:"last_version,omitempty"`
Name string `json:"name"`
NextDueAt *time.Time `json:"next_due_at,omitempty"`
Running bool `json:"running"`
Seed string `json:"seed"`
}
BakeStatus defines model for BakeStatus.
type BakeStatusLastResult ¶
type BakeStatusLastResult string
BakeStatusLastResult defines model for BakeStatus.LastResult.
const ( BakeStatusLastResultFailed BakeStatusLastResult = "failed" BakeStatusLastResultSucceeded BakeStatusLastResult = "succeeded" )
Defines values for BakeStatusLastResult.
func (BakeStatusLastResult) Valid ¶
func (e BakeStatusLastResult) Valid() bool
Valid indicates whether the value is a known member of the BakeStatusLastResult enum.
type BakeStatusList ¶
type BakeStatusList struct {
Items []BakeStatus `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
BakeStatusList defines model for BakeStatusList.
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) AddUserSSHPublicKey ¶
func (c *Client) AddUserSSHPublicKey(ctx context.Context, handle string, body AddUserSSHPublicKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddUserSSHPublicKeyWithBody ¶
func (*Client) AuthCLIConfig ¶
func (*Client) AuthSession ¶
func (*Client) AuthorizeIngress ¶
func (c *Client) AuthorizeIngress(ctx context.Context, body AuthorizeIngressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthorizeIngressWithBody ¶
func (*Client) AuthorizeSSH ¶
func (c *Client) AuthorizeSSH(ctx context.Context, body AuthorizeSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AuthorizeSSHWithBody ¶
func (*Client) CreateHookTemplate ¶
func (c *Client) CreateHookTemplate(ctx context.Context, body CreateHookTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateHookTemplateWithBody ¶
func (*Client) CreateSandbox ¶
func (c *Client) CreateSandbox(ctx context.Context, params *CreateSandboxParams, body CreateSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSandboxWithBody ¶
func (*Client) DeactivateImage ¶
func (*Client) DeleteHookTemplate ¶
func (*Client) DeleteImage ¶
func (c *Client) DeleteImage(ctx context.Context, id ImageID, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
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) DeleteUserSSHPublicKey ¶
func (c *Client) DeleteUserSSHPublicKey(ctx context.Context, handle string, id SSHPublicKeyID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExecSandbox ¶
func (c *Client) ExecSandbox(ctx context.Context, id SandboxID, body ExecSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExecSandboxWithBody ¶
func (*Client) ExposePort ¶
func (c *Client) ExposePort(ctx context.Context, id SandboxID, body ExposePortJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ExposePortWithBody ¶
func (*Client) ForkImage ¶
func (c *Client) ForkImage(ctx context.Context, id ImageID, params *ForkImageParams, body ForkImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForkImageWithBody ¶
func (*Client) ForkSandbox ¶
func (c *Client) ForkSandbox(ctx context.Context, id SandboxID, params *ForkSandboxParams, body ForkSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForkSandboxWithBody ¶
func (*Client) GetHookTemplate ¶
func (*Client) GetImageLineage ¶
func (*Client) GetImageRestoredBy ¶
func (*Client) GetOperation ¶
func (c *Client) GetOperation(ctx context.Context, id OperationID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSandbox ¶
func (*Client) GetSandboxHookRuns ¶
func (c *Client) GetSandboxHookRuns(ctx context.Context, id SandboxID, params *GetSandboxHookRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSandboxHooks ¶
func (c *Client) GetSandboxHooks(ctx context.Context, id SandboxID, params *GetSandboxHooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSandboxImages ¶
func (*Client) GetSandboxLineage ¶
func (*Client) GetSandboxLogs ¶
func (c *Client) GetSandboxLogs(ctx context.Context, id SandboxID, params *GetSandboxLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSandboxMetrics ¶
func (c *Client) GetSandboxMetrics(ctx context.Context, id SandboxID, params *GetSandboxMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSandboxOperations ¶
func (*Client) LeaseSandbox ¶
func (c *Client) LeaseSandbox(ctx context.Context, id SandboxID, body LeaseSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LeaseSandboxWithBody ¶
func (*Client) ListBakes ¶
func (c *Client) ListBakes(ctx context.Context, params *ListBakesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListHookTemplates ¶
func (c *Client) ListHookTemplates(ctx context.Context, params *ListHookTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListImages ¶
func (c *Client) ListImages(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
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) OpenAPIYAML ¶
func (*Client) PauseSandbox ¶
func (c *Client) PauseSandbox(ctx context.Context, id SandboxID, params *PauseSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PrepareSandboxSSH ¶
func (c *Client) PrepareSandboxSSH(ctx context.Context, id SandboxID, body PrepareSandboxSSHJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PrepareSandboxSSHWithBody ¶
func (*Client) PromoteImage ¶
func (c *Client) PromoteImage(ctx context.Context, id ImageID, body PromoteImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PromoteImageWithBody ¶
func (*Client) ResumeSandbox ¶
func (c *Client) ResumeSandbox(ctx context.Context, id SandboxID, params *ResumeSandboxParams, 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)
func (*Client) StreamExecSandbox ¶
func (c *Client) StreamExecSandbox(ctx context.Context, id SandboxID, params *StreamExecSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TunnelSandbox ¶
func (*Client) UnexposePort ¶
func (*Client) UpdateHookTemplate ¶
func (c *Client) UpdateHookTemplate(ctx context.Context, name string, body UpdateHookTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListAudit request
ListAudit(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthCLIConfig request
AuthCLIConfig(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthSession request
AuthSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListBakes request
ListBakes(ctx context.Context, params *ListBakesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RunBake request
RunBake(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListForks request
ListForks(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetFork request
GetFork(ctx context.Context, id ForkID, reqEditors ...RequestEditorFn) (*http.Response, error)
// Healthz request
Healthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListHookTemplates request
ListHookTemplates(ctx context.Context, params *ListHookTemplatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateHookTemplateWithBody request with any body
CreateHookTemplateWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateHookTemplate(ctx context.Context, body CreateHookTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteHookTemplate request
DeleteHookTemplate(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHookTemplate request
GetHookTemplate(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateHookTemplateWithBody request with any body
UpdateHookTemplateWithBody(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateHookTemplate(ctx context.Context, name string, body UpdateHookTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListImages request
ListImages(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteImage request
DeleteImage(ctx context.Context, id ImageID, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetImage request
GetImage(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeactivateImage request
DeactivateImage(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ForkImageWithBody request with any body
ForkImageWithBody(ctx context.Context, id ImageID, params *ForkImageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ForkImage(ctx context.Context, id ImageID, params *ForkImageParams, body ForkImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetImageLineage request
GetImageLineage(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*http.Response, error)
// PromoteImageWithBody request with any body
PromoteImageWithBody(ctx context.Context, id ImageID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PromoteImage(ctx context.Context, id ImageID, body PromoteImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetImageRestoredBy request
GetImageRestoredBy(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*http.Response, error)
// AuthorizeIngressWithBody request with any body
AuthorizeIngressWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AuthorizeIngress(ctx context.Context, body AuthorizeIngressJSONRequestBody, 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)
// StreamExecSandbox request
StreamExecSandbox(ctx context.Context, id SandboxID, params *StreamExecSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExecSandboxWithBody request with any body
ExecSandboxWithBody(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExecSandbox(ctx context.Context, id SandboxID, body ExecSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ForkSandboxWithBody request with any body
ForkSandboxWithBody(ctx context.Context, id SandboxID, params *ForkSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ForkSandbox(ctx context.Context, id SandboxID, params *ForkSandboxParams, body ForkSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxHookRuns request
GetSandboxHookRuns(ctx context.Context, id SandboxID, params *GetSandboxHookRunsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxHooks request
GetSandboxHooks(ctx context.Context, id SandboxID, params *GetSandboxHooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxImages request
GetSandboxImages(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, params *GetSandboxLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxMetrics request
GetSandboxMetrics(ctx context.Context, id SandboxID, params *GetSandboxMetricsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSandboxOperations request
GetSandboxOperations(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*http.Response, error)
// PauseSandbox request
PauseSandbox(ctx context.Context, id SandboxID, params *PauseSandboxParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ExposePortWithBody request with any body
ExposePortWithBody(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ExposePort(ctx context.Context, id SandboxID, body ExposePortJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UnexposePort request
UnexposePort(ctx context.Context, id SandboxID, port Port, reqEditors ...RequestEditorFn) (*http.Response, error)
// ResumeSandbox request
ResumeSandbox(ctx context.Context, id SandboxID, params *ResumeSandboxParams, 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)
// 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)
// 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)
// ListUsers request
ListUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUser request
GetUser(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddUserSSHPublicKeyWithBody request with any body
AddUserSSHPublicKeyWithBody(ctx context.Context, handle string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddUserSSHPublicKey(ctx context.Context, handle string, body AddUserSSHPublicKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUserSSHPublicKey request
DeleteUserSSHPublicKey(ctx context.Context, handle string, id SSHPublicKeyID, 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) AddUserSSHPublicKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) AddUserSSHPublicKeyWithBodyWithResponse(ctx context.Context, handle string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserSSHPublicKeyResponse, error)
AddUserSSHPublicKeyWithBodyWithResponse request with arbitrary body returning *AddUserSSHPublicKeyResponse
func (*ClientWithResponses) AddUserSSHPublicKeyWithResponse ¶
func (c *ClientWithResponses) AddUserSSHPublicKeyWithResponse(ctx context.Context, handle string, body AddUserSSHPublicKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserSSHPublicKeyResponse, error)
func (*ClientWithResponses) AuthCLIConfigWithResponse ¶
func (c *ClientWithResponses) AuthCLIConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCLIConfigResponse, error)
AuthCLIConfigWithResponse request returning *AuthCLIConfigResponse
func (*ClientWithResponses) AuthSessionWithResponse ¶
func (c *ClientWithResponses) AuthSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSessionResponse, error)
AuthSessionWithResponse request returning *AuthSessionResponse
func (*ClientWithResponses) AuthorizeIngressWithBodyWithResponse ¶
func (c *ClientWithResponses) AuthorizeIngressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthorizeIngressResponse, error)
AuthorizeIngressWithBodyWithResponse request with arbitrary body returning *AuthorizeIngressResponse
func (*ClientWithResponses) AuthorizeIngressWithResponse ¶
func (c *ClientWithResponses) AuthorizeIngressWithResponse(ctx context.Context, body AuthorizeIngressJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthorizeIngressResponse, error)
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) CreateHookTemplateWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateHookTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateHookTemplateResponse, error)
CreateHookTemplateWithBodyWithResponse request with arbitrary body returning *CreateHookTemplateResponse
func (*ClientWithResponses) CreateHookTemplateWithResponse ¶
func (c *ClientWithResponses) CreateHookTemplateWithResponse(ctx context.Context, body CreateHookTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateHookTemplateResponse, 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) DeactivateImageWithResponse ¶
func (c *ClientWithResponses) DeactivateImageWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*DeactivateImageResponse, error)
DeactivateImageWithResponse request returning *DeactivateImageResponse
func (*ClientWithResponses) DeleteHookTemplateWithResponse ¶
func (c *ClientWithResponses) DeleteHookTemplateWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteHookTemplateResponse, error)
DeleteHookTemplateWithResponse request returning *DeleteHookTemplateResponse
func (*ClientWithResponses) DeleteImageWithResponse ¶
func (c *ClientWithResponses) DeleteImageWithResponse(ctx context.Context, id ImageID, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*DeleteImageResponse, error)
DeleteImageWithResponse request returning *DeleteImageResponse
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) DeleteUserSSHPublicKeyWithResponse ¶
func (c *ClientWithResponses) DeleteUserSSHPublicKeyWithResponse(ctx context.Context, handle string, id SSHPublicKeyID, reqEditors ...RequestEditorFn) (*DeleteUserSSHPublicKeyResponse, error)
DeleteUserSSHPublicKeyWithResponse request returning *DeleteUserSSHPublicKeyResponse
func (*ClientWithResponses) ExecSandboxWithBodyWithResponse ¶
func (c *ClientWithResponses) ExecSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecSandboxResponse, error)
ExecSandboxWithBodyWithResponse request with arbitrary body returning *ExecSandboxResponse
func (*ClientWithResponses) ExecSandboxWithResponse ¶
func (c *ClientWithResponses) ExecSandboxWithResponse(ctx context.Context, id SandboxID, body ExecSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecSandboxResponse, error)
func (*ClientWithResponses) ExposePortWithBodyWithResponse ¶
func (c *ClientWithResponses) ExposePortWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExposePortResponse, error)
ExposePortWithBodyWithResponse request with arbitrary body returning *ExposePortResponse
func (*ClientWithResponses) ExposePortWithResponse ¶
func (c *ClientWithResponses) ExposePortWithResponse(ctx context.Context, id SandboxID, body ExposePortJSONRequestBody, reqEditors ...RequestEditorFn) (*ExposePortResponse, error)
func (*ClientWithResponses) ForkImageWithBodyWithResponse ¶
func (c *ClientWithResponses) ForkImageWithBodyWithResponse(ctx context.Context, id ImageID, params *ForkImageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkImageResponse, error)
ForkImageWithBodyWithResponse request with arbitrary body returning *ForkImageResponse
func (*ClientWithResponses) ForkImageWithResponse ¶
func (c *ClientWithResponses) ForkImageWithResponse(ctx context.Context, id ImageID, params *ForkImageParams, body ForkImageJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkImageResponse, error)
func (*ClientWithResponses) ForkSandboxWithBodyWithResponse ¶
func (c *ClientWithResponses) ForkSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, params *ForkSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkSandboxResponse, error)
ForkSandboxWithBodyWithResponse request with arbitrary body returning *ForkSandboxResponse
func (*ClientWithResponses) ForkSandboxWithResponse ¶
func (c *ClientWithResponses) ForkSandboxWithResponse(ctx context.Context, id SandboxID, params *ForkSandboxParams, body ForkSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkSandboxResponse, error)
func (*ClientWithResponses) GetForkWithResponse ¶
func (c *ClientWithResponses) GetForkWithResponse(ctx context.Context, id ForkID, reqEditors ...RequestEditorFn) (*GetForkResponse, error)
GetForkWithResponse request returning *GetForkResponse
func (*ClientWithResponses) GetHookTemplateWithResponse ¶
func (c *ClientWithResponses) GetHookTemplateWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetHookTemplateResponse, error)
GetHookTemplateWithResponse request returning *GetHookTemplateResponse
func (*ClientWithResponses) GetImageLineageWithResponse ¶
func (c *ClientWithResponses) GetImageLineageWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*GetImageLineageResponse, error)
GetImageLineageWithResponse request returning *GetImageLineageResponse
func (*ClientWithResponses) GetImageRestoredByWithResponse ¶
func (c *ClientWithResponses) GetImageRestoredByWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*GetImageRestoredByResponse, error)
GetImageRestoredByWithResponse request returning *GetImageRestoredByResponse
func (*ClientWithResponses) GetImageWithResponse ¶
func (c *ClientWithResponses) GetImageWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*GetImageResponse, error)
GetImageWithResponse request returning *GetImageResponse
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) GetSandboxHookRunsWithResponse ¶
func (c *ClientWithResponses) GetSandboxHookRunsWithResponse(ctx context.Context, id SandboxID, params *GetSandboxHookRunsParams, reqEditors ...RequestEditorFn) (*GetSandboxHookRunsResponse, error)
GetSandboxHookRunsWithResponse request returning *GetSandboxHookRunsResponse
func (*ClientWithResponses) GetSandboxHooksWithResponse ¶
func (c *ClientWithResponses) GetSandboxHooksWithResponse(ctx context.Context, id SandboxID, params *GetSandboxHooksParams, reqEditors ...RequestEditorFn) (*GetSandboxHooksResponse, error)
GetSandboxHooksWithResponse request returning *GetSandboxHooksResponse
func (*ClientWithResponses) GetSandboxImagesWithResponse ¶
func (c *ClientWithResponses) GetSandboxImagesWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxImagesResponse, error)
GetSandboxImagesWithResponse request returning *GetSandboxImagesResponse
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, params *GetSandboxLogsParams, reqEditors ...RequestEditorFn) (*GetSandboxLogsResponse, error)
GetSandboxLogsWithResponse request returning *GetSandboxLogsResponse
func (*ClientWithResponses) GetSandboxMetricsWithResponse ¶
func (c *ClientWithResponses) GetSandboxMetricsWithResponse(ctx context.Context, id SandboxID, params *GetSandboxMetricsParams, reqEditors ...RequestEditorFn) (*GetSandboxMetricsResponse, error)
GetSandboxMetricsWithResponse request returning *GetSandboxMetricsResponse
func (*ClientWithResponses) GetSandboxOperationsWithResponse ¶
func (c *ClientWithResponses) GetSandboxOperationsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxOperationsResponse, error)
GetSandboxOperationsWithResponse request returning *GetSandboxOperationsResponse
func (*ClientWithResponses) GetSandboxWithResponse ¶
func (c *ClientWithResponses) GetSandboxWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxResponse, error)
GetSandboxWithResponse request returning *GetSandboxResponse
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) ListBakesWithResponse ¶
func (c *ClientWithResponses) ListBakesWithResponse(ctx context.Context, params *ListBakesParams, reqEditors ...RequestEditorFn) (*ListBakesResponse, error)
ListBakesWithResponse request returning *ListBakesResponse
func (*ClientWithResponses) ListForksWithResponse ¶
func (c *ClientWithResponses) ListForksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListForksResponse, error)
ListForksWithResponse request returning *ListForksResponse
func (*ClientWithResponses) ListHookTemplatesWithResponse ¶
func (c *ClientWithResponses) ListHookTemplatesWithResponse(ctx context.Context, params *ListHookTemplatesParams, reqEditors ...RequestEditorFn) (*ListHookTemplatesResponse, error)
ListHookTemplatesWithResponse request returning *ListHookTemplatesResponse
func (*ClientWithResponses) ListImagesWithResponse ¶
func (c *ClientWithResponses) ListImagesWithResponse(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*ListImagesResponse, error)
ListImagesWithResponse request returning *ListImagesResponse
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) 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) PauseSandboxWithResponse ¶
func (c *ClientWithResponses) PauseSandboxWithResponse(ctx context.Context, id SandboxID, params *PauseSandboxParams, reqEditors ...RequestEditorFn) (*PauseSandboxResponse, error)
PauseSandboxWithResponse request returning *PauseSandboxResponse
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) PromoteImageWithBodyWithResponse ¶
func (c *ClientWithResponses) PromoteImageWithBodyWithResponse(ctx context.Context, id ImageID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteImageResponse, error)
PromoteImageWithBodyWithResponse request with arbitrary body returning *PromoteImageResponse
func (*ClientWithResponses) PromoteImageWithResponse ¶
func (c *ClientWithResponses) PromoteImageWithResponse(ctx context.Context, id ImageID, body PromoteImageJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteImageResponse, error)
func (*ClientWithResponses) ReadyzWithResponse ¶
func (c *ClientWithResponses) ReadyzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ReadyzResponse, error)
ReadyzWithResponse request returning *ReadyzResponse
func (*ClientWithResponses) ResumeSandboxWithResponse ¶
func (c *ClientWithResponses) ResumeSandboxWithResponse(ctx context.Context, id SandboxID, params *ResumeSandboxParams, reqEditors ...RequestEditorFn) (*ResumeSandboxResponse, error)
ResumeSandboxWithResponse request returning *ResumeSandboxResponse
func (*ClientWithResponses) RunBakeWithResponse ¶
func (c *ClientWithResponses) RunBakeWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*RunBakeResponse, error)
RunBakeWithResponse request returning *RunBakeResponse
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) StreamExecSandboxWithResponse ¶
func (c *ClientWithResponses) StreamExecSandboxWithResponse(ctx context.Context, id SandboxID, params *StreamExecSandboxParams, reqEditors ...RequestEditorFn) (*StreamExecSandboxResponse, error)
StreamExecSandboxWithResponse request returning *StreamExecSandboxResponse
func (*ClientWithResponses) TunnelSandboxWithResponse ¶
func (c *ClientWithResponses) TunnelSandboxWithResponse(ctx context.Context, id SandboxID, port int, reqEditors ...RequestEditorFn) (*TunnelSandboxResponse, error)
TunnelSandboxWithResponse request returning *TunnelSandboxResponse
func (*ClientWithResponses) UnexposePortWithResponse ¶
func (c *ClientWithResponses) UnexposePortWithResponse(ctx context.Context, id SandboxID, port Port, reqEditors ...RequestEditorFn) (*UnexposePortResponse, error)
UnexposePortWithResponse request returning *UnexposePortResponse
func (*ClientWithResponses) UpdateHookTemplateWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateHookTemplateWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateHookTemplateResponse, error)
UpdateHookTemplateWithBodyWithResponse request with arbitrary body returning *UpdateHookTemplateResponse
func (*ClientWithResponses) UpdateHookTemplateWithResponse ¶
func (c *ClientWithResponses) UpdateHookTemplateWithResponse(ctx context.Context, name string, body UpdateHookTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateHookTemplateResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListAuditWithResponse request
ListAuditWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAuditResponse, error)
// AuthCLIConfigWithResponse request
AuthCLIConfigWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthCLIConfigResponse, error)
// AuthSessionWithResponse request
AuthSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*AuthSessionResponse, error)
// ListBakesWithResponse request
ListBakesWithResponse(ctx context.Context, params *ListBakesParams, reqEditors ...RequestEditorFn) (*ListBakesResponse, error)
// RunBakeWithResponse request
RunBakeWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*RunBakeResponse, error)
// ListForksWithResponse request
ListForksWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListForksResponse, error)
// GetForkWithResponse request
GetForkWithResponse(ctx context.Context, id ForkID, reqEditors ...RequestEditorFn) (*GetForkResponse, error)
// HealthzWithResponse request
HealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*HealthzResponse, error)
// ListHookTemplatesWithResponse request
ListHookTemplatesWithResponse(ctx context.Context, params *ListHookTemplatesParams, reqEditors ...RequestEditorFn) (*ListHookTemplatesResponse, error)
// CreateHookTemplateWithBodyWithResponse request with any body
CreateHookTemplateWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateHookTemplateResponse, error)
CreateHookTemplateWithResponse(ctx context.Context, body CreateHookTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateHookTemplateResponse, error)
// DeleteHookTemplateWithResponse request
DeleteHookTemplateWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteHookTemplateResponse, error)
// GetHookTemplateWithResponse request
GetHookTemplateWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetHookTemplateResponse, error)
// UpdateHookTemplateWithBodyWithResponse request with any body
UpdateHookTemplateWithBodyWithResponse(ctx context.Context, name string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateHookTemplateResponse, error)
UpdateHookTemplateWithResponse(ctx context.Context, name string, body UpdateHookTemplateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateHookTemplateResponse, error)
// ListImagesWithResponse request
ListImagesWithResponse(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*ListImagesResponse, error)
// DeleteImageWithResponse request
DeleteImageWithResponse(ctx context.Context, id ImageID, params *DeleteImageParams, reqEditors ...RequestEditorFn) (*DeleteImageResponse, error)
// GetImageWithResponse request
GetImageWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*GetImageResponse, error)
// DeactivateImageWithResponse request
DeactivateImageWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*DeactivateImageResponse, error)
// ForkImageWithBodyWithResponse request with any body
ForkImageWithBodyWithResponse(ctx context.Context, id ImageID, params *ForkImageParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkImageResponse, error)
ForkImageWithResponse(ctx context.Context, id ImageID, params *ForkImageParams, body ForkImageJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkImageResponse, error)
// GetImageLineageWithResponse request
GetImageLineageWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*GetImageLineageResponse, error)
// PromoteImageWithBodyWithResponse request with any body
PromoteImageWithBodyWithResponse(ctx context.Context, id ImageID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PromoteImageResponse, error)
PromoteImageWithResponse(ctx context.Context, id ImageID, body PromoteImageJSONRequestBody, reqEditors ...RequestEditorFn) (*PromoteImageResponse, error)
// GetImageRestoredByWithResponse request
GetImageRestoredByWithResponse(ctx context.Context, id ImageID, reqEditors ...RequestEditorFn) (*GetImageRestoredByResponse, error)
// AuthorizeIngressWithBodyWithResponse request with any body
AuthorizeIngressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AuthorizeIngressResponse, error)
AuthorizeIngressWithResponse(ctx context.Context, body AuthorizeIngressJSONRequestBody, reqEditors ...RequestEditorFn) (*AuthorizeIngressResponse, 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)
// StreamExecSandboxWithResponse request
StreamExecSandboxWithResponse(ctx context.Context, id SandboxID, params *StreamExecSandboxParams, reqEditors ...RequestEditorFn) (*StreamExecSandboxResponse, error)
// ExecSandboxWithBodyWithResponse request with any body
ExecSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExecSandboxResponse, error)
ExecSandboxWithResponse(ctx context.Context, id SandboxID, body ExecSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*ExecSandboxResponse, error)
// ForkSandboxWithBodyWithResponse request with any body
ForkSandboxWithBodyWithResponse(ctx context.Context, id SandboxID, params *ForkSandboxParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkSandboxResponse, error)
ForkSandboxWithResponse(ctx context.Context, id SandboxID, params *ForkSandboxParams, body ForkSandboxJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkSandboxResponse, error)
// GetSandboxHookRunsWithResponse request
GetSandboxHookRunsWithResponse(ctx context.Context, id SandboxID, params *GetSandboxHookRunsParams, reqEditors ...RequestEditorFn) (*GetSandboxHookRunsResponse, error)
// GetSandboxHooksWithResponse request
GetSandboxHooksWithResponse(ctx context.Context, id SandboxID, params *GetSandboxHooksParams, reqEditors ...RequestEditorFn) (*GetSandboxHooksResponse, error)
// GetSandboxImagesWithResponse request
GetSandboxImagesWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxImagesResponse, 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, params *GetSandboxLogsParams, reqEditors ...RequestEditorFn) (*GetSandboxLogsResponse, error)
// GetSandboxMetricsWithResponse request
GetSandboxMetricsWithResponse(ctx context.Context, id SandboxID, params *GetSandboxMetricsParams, reqEditors ...RequestEditorFn) (*GetSandboxMetricsResponse, error)
// GetSandboxOperationsWithResponse request
GetSandboxOperationsWithResponse(ctx context.Context, id SandboxID, reqEditors ...RequestEditorFn) (*GetSandboxOperationsResponse, error)
// PauseSandboxWithResponse request
PauseSandboxWithResponse(ctx context.Context, id SandboxID, params *PauseSandboxParams, reqEditors ...RequestEditorFn) (*PauseSandboxResponse, error)
// ExposePortWithBodyWithResponse request with any body
ExposePortWithBodyWithResponse(ctx context.Context, id SandboxID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ExposePortResponse, error)
ExposePortWithResponse(ctx context.Context, id SandboxID, body ExposePortJSONRequestBody, reqEditors ...RequestEditorFn) (*ExposePortResponse, error)
// UnexposePortWithResponse request
UnexposePortWithResponse(ctx context.Context, id SandboxID, port Port, reqEditors ...RequestEditorFn) (*UnexposePortResponse, error)
// ResumeSandboxWithResponse request
ResumeSandboxWithResponse(ctx context.Context, id SandboxID, params *ResumeSandboxParams, reqEditors ...RequestEditorFn) (*ResumeSandboxResponse, 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)
// 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)
// 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)
// ListUsersWithResponse request
ListUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
// GetUserWithResponse request
GetUserWithResponse(ctx context.Context, handle string, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
// AddUserSSHPublicKeyWithBodyWithResponse request with any body
AddUserSSHPublicKeyWithBodyWithResponse(ctx context.Context, handle string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddUserSSHPublicKeyResponse, error)
AddUserSSHPublicKeyWithResponse(ctx context.Context, handle string, body AddUserSSHPublicKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*AddUserSSHPublicKeyResponse, error)
// DeleteUserSSHPublicKeyWithResponse request
DeleteUserSSHPublicKeyWithResponse(ctx context.Context, handle string, id SSHPublicKeyID, reqEditors ...RequestEditorFn) (*DeleteUserSSHPublicKeyResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateHookTemplateJSONRequestBody ¶
type CreateHookTemplateJSONRequestBody = HookTemplateRequest
CreateHookTemplateJSONRequestBody defines body for CreateHookTemplate for application/json ContentType.
type CreateHookTemplateResponse ¶
type CreateHookTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *HookTemplate
JSONDefault *Error
}
func ParseCreateHookTemplateResponse ¶
func ParseCreateHookTemplateResponse(rsp *http.Response) (*CreateHookTemplateResponse, error)
ParseCreateHookTemplateResponse parses an HTTP response from a CreateHookTemplateWithResponse call
func (CreateHookTemplateResponse) ContentType ¶
func (r CreateHookTemplateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateHookTemplateResponse) Status ¶
func (r CreateHookTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (CreateHookTemplateResponse) StatusCode ¶
func (r CreateHookTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 {
// DiskGb Optional disk override in GiB. Cold creates require disk_gb to be greater than or equal to the cold template disk size. Warm restores require disk_gb to be at least the recorded warm snapshot disk size. This resizes the backing zvol only; extra space becomes available to the guest only after the guest resizes its filesystem.
DiskGb *int `json:"disk_gb,omitempty"`
// Env Optional write-only guest environment delivered to shells and execs.
Env *map[string]string `json:"env,omitempty"`
// ExposedPorts Optional explicit port exposure list. Absent inherits template or snapshot defaults; present empty exposes nothing.
ExposedPorts *[]PortExposureRequest `json:"exposed_ports,omitempty"`
Hooks *[]HookDeclaration `json:"hooks,omitempty"`
// Labels Optional service metadata labels for the sandbox.
Labels *map[string]string `json:"labels,omitempty"`
// MemoryMb Optional memory override in MiB, bounded by operator override_limits. Warm restores pin memory to the recorded snapshot value because Firecracker restore loads the saved memory image; requests with a different memory value are rejected with override_not_allowed. Snapshot sources currently resolve through warm restore, so the same rule applies.
MemoryMb *int `json:"memory_mb,omitempty"`
// Name Optional display name stored as sandbox web metadata.
Name *string `json:"name,omitempty"`
// OnDelete Disposition to apply when the sandbox is deleted.
OnDelete *CreateSandboxRequestOnDelete `json:"on_delete,omitempty"`
// Paused When true the restored sandbox is left paused (its fully-booted memory image loaded but not resumed) instead of running. Valid only for a warm-flavor snapshot source; a template source or the cold flavor is rejected because there is no frozen image to hold.
Paused *bool `json:"paused,omitempty"`
Source *CreateSandboxSource `json:"source,omitempty"`
// Template Legacy template name. Mutually exclusive with source.
Template *string `json:"template,omitempty"`
// Ttl Optional positive Go-style duration string.
Ttl *string `json:"ttl,omitempty"`
// Vcpu Optional vCPU override, bounded by operator override_limits. Cold creates may override freely within limits. Warm restores require vCPU to be at least the recorded warm snapshot value because supervisor pod sizing is derived from this metadata.
Vcpu *int `json:"vcpu,omitempty"`
Watchdog *WatchdogDeclaration `json:"watchdog,omitempty"`
}
CreateSandboxRequest defines model for CreateSandboxRequest.
type CreateSandboxRequestOnDelete ¶
type CreateSandboxRequestOnDelete string
CreateSandboxRequestOnDelete Disposition to apply when the sandbox is deleted.
const ( CreateSandboxRequestOnDeleteArchive CreateSandboxRequestOnDelete = "archive" 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 CreateSandboxSource ¶
type CreateSandboxSource struct {
// contains filtered or unexported fields
}
CreateSandboxSource defines model for CreateSandboxSource.
func (CreateSandboxSource) AsSnapshotBootSource ¶
func (t CreateSandboxSource) AsSnapshotBootSource() (SnapshotBootSource, error)
AsSnapshotBootSource returns the union data inside the CreateSandboxSource as a SnapshotBootSource
func (CreateSandboxSource) AsTemplateBootSource ¶
func (t CreateSandboxSource) AsTemplateBootSource() (TemplateBootSource, error)
AsTemplateBootSource returns the union data inside the CreateSandboxSource as a TemplateBootSource
func (*CreateSandboxSource) FromSnapshotBootSource ¶
func (t *CreateSandboxSource) FromSnapshotBootSource(v SnapshotBootSource) error
FromSnapshotBootSource overwrites any union data inside the CreateSandboxSource as the provided SnapshotBootSource
func (*CreateSandboxSource) FromTemplateBootSource ¶
func (t *CreateSandboxSource) FromTemplateBootSource(v TemplateBootSource) error
FromTemplateBootSource overwrites any union data inside the CreateSandboxSource as the provided TemplateBootSource
func (CreateSandboxSource) MarshalJSON ¶
func (t CreateSandboxSource) MarshalJSON() ([]byte, error)
func (*CreateSandboxSource) MergeSnapshotBootSource ¶
func (t *CreateSandboxSource) MergeSnapshotBootSource(v SnapshotBootSource) error
MergeSnapshotBootSource performs a merge with any union data inside the CreateSandboxSource, using the provided SnapshotBootSource
func (*CreateSandboxSource) MergeTemplateBootSource ¶
func (t *CreateSandboxSource) MergeTemplateBootSource(v TemplateBootSource) error
MergeTemplateBootSource performs a merge with any union data inside the CreateSandboxSource, using the provided TemplateBootSource
func (*CreateSandboxSource) UnmarshalJSON ¶
func (t *CreateSandboxSource) UnmarshalJSON(b []byte) error
type DeactivateImageResponse ¶
type DeactivateImageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseDeactivateImageResponse ¶
func ParseDeactivateImageResponse(rsp *http.Response) (*DeactivateImageResponse, error)
ParseDeactivateImageResponse parses an HTTP response from a DeactivateImageWithResponse call
func (DeactivateImageResponse) ContentType ¶
func (r DeactivateImageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeactivateImageResponse) Status ¶
func (r DeactivateImageResponse) Status() string
Status returns HTTPResponse.Status
func (DeactivateImageResponse) StatusCode ¶
func (r DeactivateImageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteHookTemplateResponse ¶
type DeleteHookTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
JSONDefault *Error
}
func ParseDeleteHookTemplateResponse ¶
func ParseDeleteHookTemplateResponse(rsp *http.Response) (*DeleteHookTemplateResponse, error)
ParseDeleteHookTemplateResponse parses an HTTP response from a DeleteHookTemplateWithResponse call
func (DeleteHookTemplateResponse) ContentType ¶
func (r DeleteHookTemplateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteHookTemplateResponse) Status ¶
func (r DeleteHookTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteHookTemplateResponse) StatusCode ¶
func (r DeleteHookTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteImageParams ¶
type DeleteImageParams 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"`
}
DeleteImageParams defines parameters for DeleteImage.
type DeleteImageResponse ¶
type DeleteImageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSON409 *Error
JSONDefault *Error
}
func ParseDeleteImageResponse ¶
func ParseDeleteImageResponse(rsp *http.Response) (*DeleteImageResponse, error)
ParseDeleteImageResponse parses an HTTP response from a DeleteImageWithResponse call
func (DeleteImageResponse) ContentType ¶
func (r DeleteImageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteImageResponse) Status ¶
func (r DeleteImageResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteImageResponse) StatusCode ¶
func (r DeleteImageResponse) 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 {
// Retain Set to false to discard retained state and delete without honoring the sandbox on_delete disposition. Omit or set true to use the stored disposition.
Retain *bool `form:"retain,omitempty" json:"retain,omitempty"`
// 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 DeleteUserSSHPublicKeyResponse ¶
type DeleteUserSSHPublicKeyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON403 *Forbidden
JSON404 *NotFound
JSONDefault *Error
}
func ParseDeleteUserSSHPublicKeyResponse ¶
func ParseDeleteUserSSHPublicKeyResponse(rsp *http.Response) (*DeleteUserSSHPublicKeyResponse, error)
ParseDeleteUserSSHPublicKeyResponse parses an HTTP response from a DeleteUserSSHPublicKeyWithResponse call
func (DeleteUserSSHPublicKeyResponse) ContentType ¶
func (r DeleteUserSSHPublicKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteUserSSHPublicKeyResponse) Status ¶
func (r DeleteUserSSHPublicKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteUserSSHPublicKeyResponse) StatusCode ¶
func (r DeleteUserSSHPublicKeyResponse) 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" ErrorBodyCodeForbidden ErrorBodyCode = "forbidden" ErrorBodyCodeHookTemplateNotFound ErrorBodyCode = "hook_template_not_found" ErrorBodyCodeInternalError ErrorBodyCode = "internal_error" ErrorBodyCodeInvalidCursor ErrorBodyCode = "invalid_cursor" ErrorBodyCodeInvalidExecRequest ErrorBodyCode = "invalid_exec_request" ErrorBodyCodeInvalidFilter ErrorBodyCode = "invalid_filter" ErrorBodyCodeInvalidHook ErrorBodyCode = "invalid_hook" ErrorBodyCodeInvalidJson ErrorBodyCode = "invalid_json" ErrorBodyCodeInvalidLimit ErrorBodyCode = "invalid_limit" ErrorBodyCodeInvalidOffset ErrorBodyCode = "invalid_offset" ErrorBodyCodeInvalidOnDelete ErrorBodyCode = "invalid_on_delete" ErrorBodyCodeInvalidOverride ErrorBodyCode = "invalid_override" ErrorBodyCodeInvalidPort ErrorBodyCode = "invalid_port" ErrorBodyCodeInvalidRequest ErrorBodyCode = "invalid_request" ErrorBodyCodeInvalidSource ErrorBodyCode = "invalid_source" ErrorBodyCodeInvalidSshAuthorization ErrorBodyCode = "invalid_ssh_authorization" ErrorBodyCodeInvalidSshKey ErrorBodyCode = "invalid_ssh_key" ErrorBodyCodeInvalidSshPublicKey ErrorBodyCode = "invalid_ssh_public_key" ErrorBodyCodeInvalidTemplate ErrorBodyCode = "invalid_template" ErrorBodyCodeInvalidTtl ErrorBodyCode = "invalid_ttl" ErrorBodyCodeMissingIdempotencyKey ErrorBodyCode = "missing_idempotency_key" ErrorBodyCodeMissingTemplate ErrorBodyCode = "missing_template" ErrorBodyCodeNotFound ErrorBodyCode = "not_found" ErrorBodyCodeNotReady ErrorBodyCode = "not_ready" ErrorBodyCodeOverrideNotAllowed ErrorBodyCode = "override_not_allowed" ErrorBodyCodeRequestTooLarge ErrorBodyCode = "request_too_large" 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 ExecSandboxJSONRequestBody ¶
type ExecSandboxJSONRequestBody = ExecSandboxRequest
ExecSandboxJSONRequestBody defines body for ExecSandbox for application/json ContentType.
type ExecSandboxRequest ¶
type ExecSandboxRequest struct {
// Command Argument vector executed directly in the guest (no shell). Wrap in ["/bin/sh", "-c", ...] for shell semantics.
Command []string `json:"command"`
// Timeout Positive Go-style duration bounding the command's runtime. Defaults to 30s; maximum 5m.
Timeout *string `json:"timeout,omitempty"`
}
ExecSandboxRequest defines model for ExecSandboxRequest.
type ExecSandboxResponse ¶
type ExecSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExecSandboxResult
JSONDefault *Error
}
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 ExecSandboxResult ¶
type ExecSandboxResult struct {
// ExitCode Command exit code. -1 when the process was killed (including on timeout).
ExitCode int `json:"exit_code"`
Stderr string `json:"stderr"`
StderrTruncated *bool `json:"stderr_truncated,omitempty"`
Stdout string `json:"stdout"`
StdoutTruncated *bool `json:"stdout_truncated,omitempty"`
// TimedOut True when the command hit the timeout and was killed.
TimedOut *bool `json:"timed_out,omitempty"`
}
ExecSandboxResult defines model for ExecSandboxResult.
type ExposePortJSONRequestBody ¶
type ExposePortJSONRequestBody = ExposePortRequest
ExposePortJSONRequestBody defines body for ExposePort for application/json ContentType.
type ExposePortRequest ¶
type ExposePortRequest struct {
Managed *bool `json:"managed,omitempty"`
Name *string `json:"name,omitempty"`
Port int `json:"port"`
Protocol *string `json:"protocol,omitempty"`
Service *string `json:"service,omitempty"`
}
ExposePortRequest defines model for ExposePortRequest.
type ExposePortResponse ¶
type ExposePortResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExposedPort
JSONDefault *Error
}
func ParseExposePortResponse ¶
func ParseExposePortResponse(rsp *http.Response) (*ExposePortResponse, error)
ParseExposePortResponse parses an HTTP response from a ExposePortWithResponse call
func (ExposePortResponse) ContentType ¶
func (r ExposePortResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ExposePortResponse) Status ¶
func (r ExposePortResponse) Status() string
Status returns HTTPResponse.Status
func (ExposePortResponse) StatusCode ¶
func (r ExposePortResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ExposedPort ¶
type ExposedPort struct {
// Managed Owned by an automated reconciler (portsync) rather than a user.
Managed *bool `json:"managed,omitempty"`
Name *string `json:"name,omitempty"`
Port int `json:"port"`
// Protocol Endpoint label within the service (e.g. rpc, ws, metrics).
Protocol *string `json:"protocol,omitempty"`
// Service Workload the exposure belongs to (e.g. Kurtosis service name); grouping key.
Service *string `json:"service,omitempty"`
Url string `json:"url"`
}
ExposedPort defines model for ExposedPort.
type Fork ¶
type Fork struct {
Cancelled int `json:"cancelled"`
Children *[]ForkChild `json:"children,omitempty"`
CreatedAt string `json:"created_at"`
DeadlineAt *string `json:"deadline_at,omitempty"`
Failed int `json:"failed"`
FailureMessage *string `json:"failure_message,omitempty"`
FailureReason *string `json:"failure_reason,omitempty"`
Id string `json:"id"`
MinReady *int `json:"min_ready,omitempty"`
Queued int `json:"queued"`
Requested int `json:"requested"`
Running int `json:"running"`
Source ForkSource `json:"source"`
State string `json:"state"`
UpdatedAt string `json:"updated_at"`
}
Fork defines model for Fork.
type ForkAccepted ¶
ForkAccepted defines model for ForkAccepted.
type ForkChild ¶
type ForkChild struct {
Ordinal int `json:"ordinal"`
SandboxId string `json:"sandbox_id"`
State string `json:"state"`
}
ForkChild defines model for ForkChild.
type ForkIdentity ¶
type ForkIdentity struct {
// Clock correct applies realtime clock correction while the child is paused during snapshot load, regardless of the snapshot manifest; inherit leaves the manifest or template clock policy in control.
Clock ForkIdentityClock `json:"clock"`
// Rng Child RNG policy. reseed relies on the VM Generation ID clone event. inherit is reserved for a future Firecracker flag and is rejected by the current server because regeneration is currently unconditional on snapshot restore.
Rng ForkIdentityRng `json:"rng"`
}
ForkIdentity defines model for ForkIdentity.
type ForkIdentityClock ¶
type ForkIdentityClock string
ForkIdentityClock correct applies realtime clock correction while the child is paused during snapshot load, regardless of the snapshot manifest; inherit leaves the manifest or template clock policy in control.
const ( ForkIdentityClockCorrect ForkIdentityClock = "correct" ForkIdentityClockInherit ForkIdentityClock = "inherit" )
Defines values for ForkIdentityClock.
func (ForkIdentityClock) Valid ¶
func (e ForkIdentityClock) Valid() bool
Valid indicates whether the value is a known member of the ForkIdentityClock enum.
type ForkIdentityRng ¶
type ForkIdentityRng string
ForkIdentityRng Child RNG policy. reseed relies on the VM Generation ID clone event. inherit is reserved for a future Firecracker flag and is rejected by the current server because regeneration is currently unconditional on snapshot restore.
const ( ForkIdentityRngInherit ForkIdentityRng = "inherit" ForkIdentityRngReseed ForkIdentityRng = "reseed" )
Defines values for ForkIdentityRng.
func (ForkIdentityRng) Valid ¶
func (e ForkIdentityRng) Valid() bool
Valid indicates whether the value is a known member of the ForkIdentityRng enum.
type ForkImageJSONRequestBody ¶
type ForkImageJSONRequestBody = ForkRequest
ForkImageJSONRequestBody defines body for ForkImage for application/json ContentType.
type ForkImageParams ¶
type ForkImageParams 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"`
}
ForkImageParams defines parameters for ForkImage.
type ForkImageResponse ¶
type ForkImageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *ForkAccepted
JSONDefault *Error
}
func ParseForkImageResponse ¶
func ParseForkImageResponse(rsp *http.Response) (*ForkImageResponse, error)
ParseForkImageResponse parses an HTTP response from a ForkImageWithResponse call
func (ForkImageResponse) ContentType ¶
func (r ForkImageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ForkImageResponse) Status ¶
func (r ForkImageResponse) Status() string
Status returns HTTPResponse.Status
func (ForkImageResponse) StatusCode ¶
func (r ForkImageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ForkRequest ¶
type ForkRequest struct {
// Count Number of sandboxes to create. The only multiplier in the API.
Count int `json:"count"`
// Deadline Go-style duration string bounding how long queued children may wait for capacity before the sweeper cancels the still-queued ones.
Deadline *string `json:"deadline,omitempty"`
// Flavor How each child boots from the source snapshot. "warm" (default) resumes the captured memory image; "cold" boots a fresh kernel on the snapshot's disk.
Flavor *ForkRequestFlavor `json:"flavor,omitempty"`
Identity ForkIdentity `json:"identity"`
// MinReady Floor of ready children below which the fork reports failure (min_ready_not_met). Running children are never destroyed to meet it. Must not exceed count.
MinReady *int `json:"min_ready,omitempty"`
// Paused Whether children land paused instead of running. Omit to inherit the default: sandbox-source children inherit the source's state at fork time (a paused source yields paused children), snapshot-source children run. Set true/false to override. paused true with the cold flavor is rejected because cold children fresh-boot.
Paused *bool `json:"paused,omitempty"`
// Ttl Go-style duration string applied to every child. Fork children always carry a TTL: omit to fall back to the configured lifecycle.default_ttl (a required server default). If neither is present the request is rejected.
Ttl *string `json:"ttl,omitempty"`
}
ForkRequest defines model for ForkRequest.
type ForkRequestFlavor ¶
type ForkRequestFlavor string
ForkRequestFlavor How each child boots from the source snapshot. "warm" (default) resumes the captured memory image; "cold" boots a fresh kernel on the snapshot's disk.
const ( ForkRequestFlavorCold ForkRequestFlavor = "cold" ForkRequestFlavorWarm ForkRequestFlavor = "warm" )
Defines values for ForkRequestFlavor.
func (ForkRequestFlavor) Valid ¶
func (e ForkRequestFlavor) Valid() bool
Valid indicates whether the value is a known member of the ForkRequestFlavor enum.
type ForkSandboxJSONRequestBody ¶
type ForkSandboxJSONRequestBody = ForkRequest
ForkSandboxJSONRequestBody defines body for ForkSandbox for application/json ContentType.
type ForkSandboxParams ¶
type ForkSandboxParams 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"`
}
ForkSandboxParams defines parameters for ForkSandbox.
type ForkSandboxResponse ¶
type ForkSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *ForkAccepted
JSONDefault *Error
}
func ParseForkSandboxResponse ¶
func ParseForkSandboxResponse(rsp *http.Response) (*ForkSandboxResponse, error)
ParseForkSandboxResponse parses an HTTP response from a ForkSandboxWithResponse call
func (ForkSandboxResponse) ContentType ¶
func (r ForkSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ForkSandboxResponse) Status ¶
func (r ForkSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (ForkSandboxResponse) StatusCode ¶
func (r ForkSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ForkSource ¶
type ForkSource struct {
Id string `json:"id"`
Kind ForkSourceKind `json:"kind"`
}
ForkSource defines model for ForkSource.
type ForkSourceKind ¶
type ForkSourceKind string
ForkSourceKind defines model for ForkSource.Kind.
const ( ForkSourceKindSandbox ForkSourceKind = "sandbox" ForkSourceKindSnapshot ForkSourceKind = "snapshot" )
Defines values for ForkSourceKind.
func (ForkSourceKind) Valid ¶
func (e ForkSourceKind) Valid() bool
Valid indicates whether the value is a known member of the ForkSourceKind enum.
type GetForkResponse ¶
type GetForkResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Fork
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetForkResponse ¶
func ParseGetForkResponse(rsp *http.Response) (*GetForkResponse, error)
ParseGetForkResponse parses an HTTP response from a GetForkWithResponse call
func (GetForkResponse) ContentType ¶
func (r GetForkResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetForkResponse) Status ¶
func (r GetForkResponse) Status() string
Status returns HTTPResponse.Status
func (GetForkResponse) StatusCode ¶
func (r GetForkResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHookTemplateResponse ¶
type GetHookTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HookTemplate
JSONDefault *Error
}
func ParseGetHookTemplateResponse ¶
func ParseGetHookTemplateResponse(rsp *http.Response) (*GetHookTemplateResponse, error)
ParseGetHookTemplateResponse parses an HTTP response from a GetHookTemplateWithResponse call
func (GetHookTemplateResponse) ContentType ¶
func (r GetHookTemplateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetHookTemplateResponse) Status ¶
func (r GetHookTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (GetHookTemplateResponse) StatusCode ¶
func (r GetHookTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetImageLineageResponse ¶
type GetImageLineageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LineageResponse
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetImageLineageResponse ¶
func ParseGetImageLineageResponse(rsp *http.Response) (*GetImageLineageResponse, error)
ParseGetImageLineageResponse parses an HTTP response from a GetImageLineageWithResponse call
func (GetImageLineageResponse) ContentType ¶
func (r GetImageLineageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetImageLineageResponse) Status ¶
func (r GetImageLineageResponse) Status() string
Status returns HTTPResponse.Status
func (GetImageLineageResponse) StatusCode ¶
func (r GetImageLineageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetImageResponse ¶
type GetImageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Image
JSON404 *NotFound
JSON500 *InternalError
}
func ParseGetImageResponse ¶
func ParseGetImageResponse(rsp *http.Response) (*GetImageResponse, error)
ParseGetImageResponse parses an HTTP response from a GetImageWithResponse call
func (GetImageResponse) ContentType ¶
func (r GetImageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetImageResponse) Status ¶
func (r GetImageResponse) Status() string
Status returns HTTPResponse.Status
func (GetImageResponse) StatusCode ¶
func (r GetImageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetImageRestoredByResponse ¶
type GetImageRestoredByResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetImageRestoredByResponse ¶
func ParseGetImageRestoredByResponse(rsp *http.Response) (*GetImageRestoredByResponse, error)
ParseGetImageRestoredByResponse parses an HTTP response from a GetImageRestoredByWithResponse call
func (GetImageRestoredByResponse) ContentType ¶
func (r GetImageRestoredByResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetImageRestoredByResponse) Status ¶
func (r GetImageRestoredByResponse) Status() string
Status returns HTTPResponse.Status
func (GetImageRestoredByResponse) StatusCode ¶
func (r GetImageRestoredByResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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 GetSandboxHookRunsParams ¶
type GetSandboxHookRunsParams 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"`
// Filter Filter results by field, formatted as key<op>value where op is one of =, !=, ~= (contains), >, <, >=, <=. Keys are response field names and may be dotted to reach nested fields (e.g. error.reason). Comparison is numeric when both sides are numbers and case-insensitive otherwise. Repeatable; all filters must match. Applied before pagination.
Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"`
}
GetSandboxHookRunsParams defines parameters for GetSandboxHookRuns.
type GetSandboxHookRunsResponse ¶
type GetSandboxHookRunsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HookRunList
JSONDefault *Error
}
func ParseGetSandboxHookRunsResponse ¶
func ParseGetSandboxHookRunsResponse(rsp *http.Response) (*GetSandboxHookRunsResponse, error)
ParseGetSandboxHookRunsResponse parses an HTTP response from a GetSandboxHookRunsWithResponse call
func (GetSandboxHookRunsResponse) ContentType ¶
func (r GetSandboxHookRunsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSandboxHookRunsResponse) Status ¶
func (r GetSandboxHookRunsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxHookRunsResponse) StatusCode ¶
func (r GetSandboxHookRunsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxHooksParams ¶
type GetSandboxHooksParams 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"`
// Filter Filter results by field, formatted as key<op>value where op is one of =, !=, ~= (contains), >, <, >=, <=. Keys are response field names and may be dotted to reach nested fields (e.g. error.reason). Comparison is numeric when both sides are numbers and case-insensitive otherwise. Repeatable; all filters must match. Applied before pagination.
Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"`
}
GetSandboxHooksParams defines parameters for GetSandboxHooks.
type GetSandboxHooksResponse ¶
type GetSandboxHooksResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HookSummaryList
JSONDefault *Error
}
func ParseGetSandboxHooksResponse ¶
func ParseGetSandboxHooksResponse(rsp *http.Response) (*GetSandboxHooksResponse, error)
ParseGetSandboxHooksResponse parses an HTTP response from a GetSandboxHooksWithResponse call
func (GetSandboxHooksResponse) ContentType ¶
func (r GetSandboxHooksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSandboxHooksResponse) Status ¶
func (r GetSandboxHooksResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxHooksResponse) StatusCode ¶
func (r GetSandboxHooksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxImagesResponse ¶
type GetSandboxImagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetSandboxImagesResponse ¶
func ParseGetSandboxImagesResponse(rsp *http.Response) (*GetSandboxImagesResponse, error)
ParseGetSandboxImagesResponse parses an HTTP response from a GetSandboxImagesWithResponse call
func (GetSandboxImagesResponse) ContentType ¶
func (r GetSandboxImagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSandboxImagesResponse) Status ¶
func (r GetSandboxImagesResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxImagesResponse) StatusCode ¶
func (r GetSandboxImagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSandboxLineageResponse ¶
type GetSandboxLineageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LineageResponse
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 GetSandboxLogsParams ¶
type GetSandboxLogsParams struct {
// TailBytes Per-source byte tail to return. Defaults to 256 KiB and is capped by the server.
TailBytes *int64 `form:"tail_bytes,omitempty" json:"tail_bytes,omitempty"`
// Source Restrict logs to one source.
Source *GetSandboxLogsParamsSource `form:"source,omitempty" json:"source,omitempty"`
}
GetSandboxLogsParams defines parameters for GetSandboxLogs.
type GetSandboxLogsParamsSource ¶
type GetSandboxLogsParamsSource string
GetSandboxLogsParamsSource defines parameters for GetSandboxLogs.
const ( GetSandboxLogsParamsSourceConsole GetSandboxLogsParamsSource = "console" GetSandboxLogsParamsSourceFirecracker GetSandboxLogsParamsSource = "firecracker" )
Defines values for GetSandboxLogsParamsSource.
func (GetSandboxLogsParamsSource) Valid ¶
func (e GetSandboxLogsParamsSource) Valid() bool
Valid indicates whether the value is a known member of the GetSandboxLogsParamsSource enum.
type GetSandboxLogsResponse ¶
type GetSandboxLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LogsResponse
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 GetSandboxMetricsParams ¶
type GetSandboxMetricsParams struct {
Since *time.Time `form:"since,omitempty" json:"since,omitempty"`
Until *time.Time `form:"until,omitempty" json:"until,omitempty"`
// Step Positive duration hint accepted for client compatibility; raw samples are still returned.
Step *string `form:"step,omitempty" json:"step,omitempty"`
}
GetSandboxMetricsParams defines parameters for GetSandboxMetrics.
type GetSandboxMetricsResponse ¶
type GetSandboxMetricsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SandboxMetricsResponse
JSON400 *BadRequest
JSON404 *NotFound
JSONDefault *Error
}
func ParseGetSandboxMetricsResponse ¶
func ParseGetSandboxMetricsResponse(rsp *http.Response) (*GetSandboxMetricsResponse, error)
ParseGetSandboxMetricsResponse parses an HTTP response from a GetSandboxMetricsWithResponse call
func (GetSandboxMetricsResponse) ContentType ¶
func (r GetSandboxMetricsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetSandboxMetricsResponse) Status ¶
func (r GetSandboxMetricsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSandboxMetricsResponse) StatusCode ¶
func (r GetSandboxMetricsResponse) 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 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 GuestNetwork ¶
type GuestNetwork struct {
Dns string `json:"dns"`
EgressAllow []string `json:"egressAllow"`
EgressDeny []string `json:"egressDeny"`
GuestIp *string `json:"guestIp"`
Jailer bool `json:"jailer"`
Nftables bool `json:"nftables"`
Node *string `json:"node"`
TapDevice string `json:"tapDevice"`
UplinkCidr string `json:"uplinkCidr"`
}
GuestNetwork defines model for GuestNetwork.
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 HookDeclaration ¶
type HookDeclaration struct {
Env *map[string]string `json:"env,omitempty"`
Event HookDeclarationEvent `json:"event"`
OnFailure *HookDeclarationOnFailure `json:"on_failure,omitempty"`
RunOrder *int `json:"run_order,omitempty"`
// Script Inline shell script. Mutually exclusive with template.
Script *string `json:"script,omitempty"`
// Template Hook template name. Mutually exclusive with script.
Template *string `json:"template,omitempty"`
TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
}
HookDeclaration defines model for HookDeclaration.
type HookDeclarationEvent ¶
type HookDeclarationEvent string
HookDeclarationEvent defines model for HookDeclaration.Event.
const ( AfterCreate HookDeclarationEvent = "after_create" AfterRestore HookDeclarationEvent = "after_restore" AfterResume HookDeclarationEvent = "after_resume" BeforeDelete HookDeclarationEvent = "before_delete" BeforePause HookDeclarationEvent = "before_pause" BeforeSnapshot HookDeclarationEvent = "before_snapshot" BeforeStop HookDeclarationEvent = "before_stop" )
Defines values for HookDeclarationEvent.
func (HookDeclarationEvent) Valid ¶
func (e HookDeclarationEvent) Valid() bool
Valid indicates whether the value is a known member of the HookDeclarationEvent enum.
type HookDeclarationOnFailure ¶
type HookDeclarationOnFailure string
HookDeclarationOnFailure defines model for HookDeclaration.OnFailure.
const ( HookDeclarationOnFailureAbort HookDeclarationOnFailure = "abort" HookDeclarationOnFailureContinue HookDeclarationOnFailure = "continue" )
Defines values for HookDeclarationOnFailure.
func (HookDeclarationOnFailure) Valid ¶
func (e HookDeclarationOnFailure) Valid() bool
Valid indicates whether the value is a known member of the HookDeclarationOnFailure enum.
type HookRun ¶
type HookRun struct {
Error *string `json:"error,omitempty"`
Event string `json:"event"`
ExitCode *int `json:"exit_code,omitempty"`
FinishedAt *time.Time `json:"finished_at,omitempty"`
HookId *string `json:"hook_id,omitempty"`
Id string `json:"id"`
OperationId *string `json:"operation_id,omitempty"`
SandboxId string `json:"sandbox_id"`
StartedAt time.Time `json:"started_at"`
Status HookRunStatus `json:"status"`
StderrTail *string `json:"stderr_tail,omitempty"`
StdoutTail *string `json:"stdout_tail,omitempty"`
}
HookRun defines model for HookRun.
type HookRunList ¶
type HookRunList struct {
Items []HookRun `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
HookRunList defines model for HookRunList.
type HookRunStatus ¶
type HookRunStatus string
HookRunStatus defines model for HookRun.Status.
const ( HookRunStatusFailed HookRunStatus = "failed" HookRunStatusRunning HookRunStatus = "running" HookRunStatusSkipped HookRunStatus = "skipped" HookRunStatusSucceeded HookRunStatus = "succeeded" HookRunStatusTimedOut HookRunStatus = "timed_out" )
Defines values for HookRunStatus.
func (HookRunStatus) Valid ¶
func (e HookRunStatus) Valid() bool
Valid indicates whether the value is a known member of the HookRunStatus enum.
type HookSummary ¶
type HookSummary struct {
Event string `json:"event"`
OnFailure HookSummaryOnFailure `json:"on_failure"`
RunOrder int `json:"run_order"`
SourceTemplateName *string `json:"source_template_name,omitempty"`
TimeoutSeconds int `json:"timeout_seconds"`
}
HookSummary defines model for HookSummary.
type HookSummaryList ¶
type HookSummaryList struct {
Items []HookSummary `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
HookSummaryList defines model for HookSummaryList.
type HookSummaryOnFailure ¶
type HookSummaryOnFailure string
HookSummaryOnFailure defines model for HookSummary.OnFailure.
const ( HookSummaryOnFailureAbort HookSummaryOnFailure = "abort" HookSummaryOnFailureContinue HookSummaryOnFailure = "continue" )
Defines values for HookSummaryOnFailure.
func (HookSummaryOnFailure) Valid ¶
func (e HookSummaryOnFailure) Valid() bool
Valid indicates whether the value is a known member of the HookSummaryOnFailure enum.
type HookTemplate ¶
type HookTemplate struct {
CreatedAt time.Time `json:"created_at"`
CreatedBy *string `json:"created_by,omitempty"`
Description *string `json:"description,omitempty"`
Env *map[string]string `json:"env,omitempty"`
Id string `json:"id"`
Name string `json:"name"`
Script string `json:"script"`
TimeoutSeconds int `json:"timeout_seconds"`
UpdatedAt time.Time `json:"updated_at"`
}
HookTemplate defines model for HookTemplate.
type HookTemplateList ¶
type HookTemplateList struct {
Items []HookTemplate `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
HookTemplateList defines model for HookTemplateList.
type HookTemplateRequest ¶
type HookTemplateRequest struct {
Description *string `json:"description,omitempty"`
Env *map[string]string `json:"env,omitempty"`
Name *string `json:"name,omitempty"`
Script string `json:"script"`
TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
}
HookTemplateRequest defines model for HookTemplateRequest.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Image ¶
type Image struct {
CreatedAt *string `json:"createdAt,omitempty"`
Flavor ImageFlavor `json:"flavor"`
// Id Snapshot ID for raw images, "name@version" for named ones.
Id string `json:"id"`
Kind ImageKind `json:"kind"`
Name *string `json:"name,omitempty"`
// Promoted Raw image backs an active named image.
Promoted *bool `json:"promoted,omitempty"`
Snapshot *Snapshot `json:"snapshot,omitempty"`
SnapshotId *string `json:"snapshotId,omitempty"`
Template *Template `json:"template,omitempty"`
Version *string `json:"version,omitempty"`
}
Image defines model for Image.
type ImageFlavor ¶
type ImageFlavor string
ImageFlavor defines model for Image.Flavor.
const ( ImageFlavorCold ImageFlavor = "cold" ImageFlavorWarm ImageFlavor = "warm" )
Defines values for ImageFlavor.
func (ImageFlavor) Valid ¶
func (e ImageFlavor) Valid() bool
Valid indicates whether the value is a known member of the ImageFlavor enum.
type ImageList ¶
type ImageList struct {
Items []Image `json:"items"`
NextCursor *string `json:"next_cursor,omitempty"`
Total int `json:"total"`
}
ImageList defines model for ImageList.
type IngressAuthorizeRequest ¶
type IngressAuthorizeRequest struct {
// GatewayPublicKey One OpenSSH public key generated by the gateway for this session.
GatewayPublicKey string `json:"gateway_public_key"`
// PortLabel Numeric port string or configured port name.
PortLabel string `json:"port_label"`
SandboxId string `json:"sandbox_id"`
}
IngressAuthorizeRequest defines model for IngressAuthorizeRequest.
type IngressAuthorizeResponse ¶
type IngressAuthorizeResponse struct {
Capability string `json:"capability"`
ExpiresAt time.Time `json:"expires_at"`
GuestCertificate string `json:"guest_certificate"`
IncarnationId string `json:"incarnation_id"`
Port int `json:"port"`
SandboxId string `json:"sandbox_id"`
SupervisorEndpoint string `json:"supervisor_endpoint"`
SupervisorPort int `json:"supervisor_port"`
}
IngressAuthorizeResponse defines model for IngressAuthorizeResponse.
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 LineageNode ¶
type LineageNode struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
Depth int `json:"depth"`
Edge *LineageNodeEdge `json:"edge,omitempty"`
EntityId *string `json:"entityId,omitempty"`
Href *string `json:"href,omitempty"`
IsLast bool `json:"isLast"`
Key string `json:"key"`
Kind LineageNodeKind `json:"kind"`
Label string `json:"label"`
ParentKey *string `json:"parentKey,omitempty"`
State *string `json:"state,omitempty"`
Sub string `json:"sub"`
Variant LineageNodeVariant `json:"variant"`
}
LineageNode defines model for LineageNode.
type LineageNodeEdge ¶
type LineageNodeEdge string
LineageNodeEdge defines model for LineageNode.Edge.
const ( CreatedFrom LineageNodeEdge = "created-from" SnapshottedTo LineageNodeEdge = "snapshotted-to" )
Defines values for LineageNodeEdge.
func (LineageNodeEdge) Valid ¶
func (e LineageNodeEdge) Valid() bool
Valid indicates whether the value is a known member of the LineageNodeEdge enum.
type LineageNodeKind ¶
type LineageNodeKind string
LineageNodeKind defines model for LineageNode.Kind.
const ( Empty LineageNodeKind = "—" SANDBOX LineageNodeKind = "SANDBOX" SNAPSHOT LineageNodeKind = "SNAPSHOT" )
Defines values for LineageNodeKind.
func (LineageNodeKind) Valid ¶
func (e LineageNodeKind) Valid() bool
Valid indicates whether the value is a known member of the LineageNodeKind enum.
type LineageNodeVariant ¶
type LineageNodeVariant string
LineageNodeVariant defines model for LineageNode.Variant.
const ( LineageNodeVariantCurrent LineageNodeVariant = "current" LineageNodeVariantHistorical LineageNodeVariant = "historical" LineageNodeVariantNone LineageNodeVariant = "none" LineageNodeVariantRestoredLive LineageNodeVariant = "restored-live" LineageNodeVariantSnapshot LineageNodeVariant = "snapshot" )
Defines values for LineageNodeVariant.
func (LineageNodeVariant) Valid ¶
func (e LineageNodeVariant) Valid() bool
Valid indicates whether the value is a known member of the LineageNodeVariant enum.
type LineageResponse ¶
type LineageResponse struct {
Nodes []LineageNode `json:"nodes"`
}
LineageResponse defines model for LineageResponse.
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 ListBakesParams ¶
type ListBakesParams 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"`
// Filter Filter results by field, formatted as key<op>value where op is one of =, !=, ~= (contains), >, <, >=, <=. Keys are response field names and may be dotted to reach nested fields (e.g. error.reason). Comparison is numeric when both sides are numbers and case-insensitive otherwise. Repeatable; all filters must match. Applied before pagination.
Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"`
}
ListBakesParams defines parameters for ListBakes.
type ListBakesResponse ¶
type ListBakesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *BakeStatusList
JSONDefault *Error
}
func ParseListBakesResponse ¶
func ParseListBakesResponse(rsp *http.Response) (*ListBakesResponse, error)
ParseListBakesResponse parses an HTTP response from a ListBakesWithResponse call
func (ListBakesResponse) ContentType ¶
func (r ListBakesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListBakesResponse) Status ¶
func (r ListBakesResponse) Status() string
Status returns HTTPResponse.Status
func (ListBakesResponse) StatusCode ¶
func (r ListBakesResponse) 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 ListForksResponse ¶
type ListForksResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Fork
JSONDefault *Error
}
func ParseListForksResponse ¶
func ParseListForksResponse(rsp *http.Response) (*ListForksResponse, error)
ParseListForksResponse parses an HTTP response from a ListForksWithResponse call
func (ListForksResponse) ContentType ¶
func (r ListForksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListForksResponse) Status ¶
func (r ListForksResponse) Status() string
Status returns HTTPResponse.Status
func (ListForksResponse) StatusCode ¶
func (r ListForksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListHookTemplatesParams ¶
type ListHookTemplatesParams 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"`
// Filter Filter results by field, formatted as key<op>value where op is one of =, !=, ~= (contains), >, <, >=, <=. Keys are response field names and may be dotted to reach nested fields (e.g. error.reason). Comparison is numeric when both sides are numbers and case-insensitive otherwise. Repeatable; all filters must match. Applied before pagination.
Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"`
}
ListHookTemplatesParams defines parameters for ListHookTemplates.
type ListHookTemplatesResponse ¶
type ListHookTemplatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HookTemplateList
JSONDefault *Error
}
func ParseListHookTemplatesResponse ¶
func ParseListHookTemplatesResponse(rsp *http.Response) (*ListHookTemplatesResponse, error)
ParseListHookTemplatesResponse parses an HTTP response from a ListHookTemplatesWithResponse call
func (ListHookTemplatesResponse) ContentType ¶
func (r ListHookTemplatesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListHookTemplatesResponse) Status ¶
func (r ListHookTemplatesResponse) Status() string
Status returns HTTPResponse.Status
func (ListHookTemplatesResponse) StatusCode ¶
func (r ListHookTemplatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListImagesParams ¶
type ListImagesParams 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"`
// Filter Filter results by field, formatted as key<op>value where op is one of =, !=, ~= (contains), >, <, >=, <=. Keys are response field names and may be dotted to reach nested fields (e.g. error.reason). Comparison is numeric when both sides are numbers and case-insensitive otherwise. Repeatable; all filters must match. Applied before pagination.
Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"`
}
ListImagesParams defines parameters for ListImages.
type ListImagesResponse ¶
type ListImagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ImageList
JSONDefault *Error
}
func ParseListImagesResponse ¶
func ParseListImagesResponse(rsp *http.Response) (*ListImagesResponse, error)
ParseListImagesResponse parses an HTTP response from a ListImagesWithResponse call
func (ListImagesResponse) ContentType ¶
func (r ListImagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListImagesResponse) Status ¶
func (r ListImagesResponse) Status() string
Status returns HTTPResponse.Status
func (ListImagesResponse) StatusCode ¶
func (r ListImagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
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"`
// Filter Filter results by field, formatted as key<op>value where op is one of =, !=, ~= (contains), >, <, >=, <=. Keys are response field names and may be dotted to reach nested fields (e.g. error.reason). Comparison is numeric when both sides are numbers and case-insensitive otherwise. Repeatable; all filters must match. Applied before pagination.
Filter *Filter `form:"filter,omitempty" json:"filter,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"`
// Filter Filter results by field, formatted as key<op>value where op is one of =, !=, ~= (contains), >, <, >=, <=. Keys are response field names and may be dotted to reach nested fields (e.g. error.reason). Comparison is numeric when both sides are numbers and case-insensitive otherwise. Repeatable; all filters must match. Applied before pagination.
Filter *Filter `form:"filter,omitempty" json:"filter,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"`
// Filter Filter results by field, formatted as key<op>value where op is one of =, !=, ~= (contains), >, <, >=, <=. Keys are response field names and may be dotted to reach nested fields (e.g. error.reason). Comparison is numeric when both sides are numbers and case-insensitive otherwise. Repeatable; all filters must match. Applied before pagination.
Filter *Filter `form:"filter,omitempty" json:"filter,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 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 LiveMetrics ¶
type LiveMetrics struct {
CpuPct float32 `json:"cpuPct"`
DiskTotalGiB float32 `json:"diskTotalGiB"`
DiskUsedGiB float32 `json:"diskUsedGiB"`
MemTotalGiB float32 `json:"memTotalGiB"`
MemUsedGiB float32 `json:"memUsedGiB"`
}
LiveMetrics defines model for LiveMetrics.
type LogLine ¶
type LogLine struct {
Level string `json:"level"`
Msg string `json:"msg"`
// Source Log stream source when provided by the real sandbox log backend.
Source *LogLineSource `json:"source,omitempty"`
// Src Backward-compatible source/process field.
Src string `json:"src"`
Ts string `json:"ts"`
}
LogLine defines model for LogLine.
type LogLineSource ¶
type LogLineSource string
LogLineSource Log stream source when provided by the real sandbox log backend.
const ( LogLineSourceConsole LogLineSource = "console" LogLineSourceFirecracker LogLineSource = "firecracker" )
Defines values for LogLineSource.
func (LogLineSource) Valid ¶
func (e LogLineSource) Valid() bool
Valid indicates whether the value is a known member of the LogLineSource enum.
type LogsResponse ¶
type LogsResponse struct {
Items []LogLine `json:"items"`
// Truncated True when at least one source was tailed from a larger log.
Truncated *bool `json:"truncated,omitempty"`
}
LogsResponse defines model for LogsResponse.
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 {
Actor string `json:"actor"`
DurationMs *int64 `json:"durationMs,omitempty"`
Err string `json:"err"`
Id string `json:"id"`
IdempotencyKey string `json:"idempotencyKey"`
Progress *OperationProgress `json:"progress,omitempty"`
StartedAt time.Time `json:"startedAt"`
State OperationState `json:"state"`
Target string `json:"target"`
TargetId *string `json:"targetId,omitempty"`
Type string `json:"type"`
Warnings []string `json:"warnings"`
}
Operation defines model for Operation.
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 OperationPhaseTiming ¶
type OperationPhaseTiming struct {
DurationMs *int64 `json:"durationMs,omitempty"`
FinishedAt *time.Time `json:"finishedAt,omitempty"`
Name string `json:"name"`
StartedAt time.Time `json:"startedAt"`
}
OperationPhaseTiming defines model for OperationPhaseTiming.
type OperationProgress ¶
type OperationProgress struct {
// Percent 0-100 completion estimate; absent when indeterminate.
Percent *float64 `json:"percent,omitempty"`
// Phase Name of the step currently executing; empty once terminal.
Phase *string `json:"phase,omitempty"`
Phases []OperationPhaseTiming `json:"phases"`
// Planned Ordered steps the operation expects to run.
Planned *[]string `json:"planned,omitempty"`
// Unit What unitsDone/unitsTotal count, e.g. bytes.
Unit *string `json:"unit,omitempty"`
UnitsDone *int64 `json:"unitsDone,omitempty"`
UnitsTotal *int64 `json:"unitsTotal,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
}
OperationProgress defines model for OperationProgress.
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 PauseSandboxParams ¶
type PauseSandboxParams 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"`
}
PauseSandboxParams defines parameters for PauseSandbox.
type PauseSandboxResponse ¶
type PauseSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSONDefault *Error
}
func ParsePauseSandboxResponse ¶
func ParsePauseSandboxResponse(rsp *http.Response) (*PauseSandboxResponse, error)
ParsePauseSandboxResponse parses an HTTP response from a PauseSandboxWithResponse call
func (PauseSandboxResponse) ContentType ¶
func (r PauseSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PauseSandboxResponse) Status ¶
func (r PauseSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (PauseSandboxResponse) StatusCode ¶
func (r PauseSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PortExposureRequest ¶
type PortExposureRequest struct {
Managed *bool `json:"managed,omitempty"`
Name *string `json:"name,omitempty"`
Port int `json:"port"`
Protocol *string `json:"protocol,omitempty"`
Service *string `json:"service,omitempty"`
}
PortExposureRequest defines model for PortExposureRequest.
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 *PrepareSandboxSSHResult
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 PrepareSandboxSSHResult ¶
type PrepareSandboxSSHResult 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"`
}
PrepareSandboxSSHResult defines model for PrepareSandboxSSHResult.
type PromoteImageJSONRequestBody ¶
type PromoteImageJSONRequestBody = PromoteSnapshotRequest
PromoteImageJSONRequestBody defines body for PromoteImage for application/json ContentType.
type PromoteImageResponse ¶
type PromoteImageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Image
JSONDefault *Error
}
func ParsePromoteImageResponse ¶
func ParsePromoteImageResponse(rsp *http.Response) (*PromoteImageResponse, error)
ParsePromoteImageResponse parses an HTTP response from a PromoteImageWithResponse call
func (PromoteImageResponse) ContentType ¶
func (r PromoteImageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PromoteImageResponse) Status ¶
func (r PromoteImageResponse) Status() string
Status returns HTTPResponse.Status
func (PromoteImageResponse) StatusCode ¶
func (r PromoteImageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PromoteSnapshotRequest ¶
type PromoteSnapshotRequest struct {
Description *string `json:"description,omitempty"`
Name string `json:"name"`
Replace *bool `json:"replace,omitempty"`
Tags *[]string `json:"tags,omitempty"`
Version *string `json:"version,omitempty"`
}
PromoteSnapshotRequest defines model for PromoteSnapshotRequest.
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 ResumeSandboxParams ¶
type ResumeSandboxParams 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"`
}
ResumeSandboxParams defines parameters for ResumeSandbox.
type ResumeSandboxResponse ¶
type ResumeSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *AcceptedResponse
JSONDefault *Error
}
func ParseResumeSandboxResponse ¶
func ParseResumeSandboxResponse(rsp *http.Response) (*ResumeSandboxResponse, error)
ParseResumeSandboxResponse parses an HTTP response from a ResumeSandboxWithResponse call
func (ResumeSandboxResponse) ContentType ¶
func (r ResumeSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ResumeSandboxResponse) Status ¶
func (r ResumeSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (ResumeSandboxResponse) StatusCode ¶
func (r ResumeSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RunBakeResponse ¶
type RunBakeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *ScheduledResponse
JSON404 *NotFound
JSON409 *Conflict
JSONDefault *Error
}
func ParseRunBakeResponse ¶
func ParseRunBakeResponse(rsp *http.Response) (*RunBakeResponse, error)
ParseRunBakeResponse parses an HTTP response from a RunBakeWithResponse call
func (RunBakeResponse) ContentType ¶
func (r RunBakeResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RunBakeResponse) Status ¶
func (r RunBakeResponse) Status() string
Status returns HTTPResponse.Status
func (RunBakeResponse) StatusCode ¶
func (r RunBakeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SSHAuthorizeRequest ¶
type SSHAuthorizeRequest struct {
// ClientCertificate Service-issued 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 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 {
Clock *string `json:"clock,omitempty"`
ClockPolicy string `json:"clockPolicy"`
CreatedAt time.Time `json:"createdAt"`
Err string `json:"err"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
ExposedPorts *[]ExposedPort `json:"exposedPorts,omitempty"`
Frozen bool `json:"frozen"`
Hooks *[]HookSummary `json:"hooks,omitempty"`
Id string `json:"id"`
IdempotencyKey string `json:"idempotencyKey"`
Ip *string `json:"ip,omitempty"`
Labels map[string]string `json:"labels"`
LeaseRenews *string `json:"leaseRenews,omitempty"`
LeasedBy *string `json:"leasedBy,omitempty"`
MaxExpiresAt *time.Time `json:"maxExpiresAt,omitempty"`
Mem int `json:"mem"`
Metrics LiveMetrics `json:"metrics"`
Name string `json:"name"`
Network GuestNetwork `json:"network"`
Node *string `json:"node,omitempty"`
OnDelete SandboxOnDelete `json:"onDelete"`
Procs []string `json:"procs"`
Restored bool `json:"restored"`
Snap int `json:"snap"`
SourceSnapshot *string `json:"sourceSnapshot,omitempty"`
State SandboxState `json:"state"`
Tags []string `json:"tags"`
Template string `json:"template"`
Vcpu int `json:"vcpu"`
Ver string `json:"ver"`
Watchdog *WatchdogSummary `json:"watchdog,omitempty"`
Workload string `json:"workload"`
}
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 SandboxMetricSample ¶
type SandboxMetricSample struct {
// CpuSecondsTotal Cumulative counter of Firecracker process user+system CPU seconds.
CpuSecondsTotal float32 `json:"cpu_seconds_total"`
// DiskUsedBytes Point-in-time sandbox disk usage gauge; null when per-sandbox usage is unavailable.
DiskUsedBytes *int64 `json:"disk_used_bytes,omitempty"`
// MemoryBytes Point-in-time RSS memory gauge for the Firecracker process.
MemoryBytes int64 `json:"memory_bytes"`
// NetRxBytes Cumulative receive byte counter from the sandbox TAP device.
NetRxBytes int64 `json:"net_rx_bytes"`
// NetTxBytes Cumulative transmit byte counter from the sandbox TAP device.
NetTxBytes int64 `json:"net_tx_bytes"`
// SampledAt Wall-clock sample timestamp produced by the supervisor/control-plane sampler.
SampledAt time.Time `json:"sampled_at"`
}
SandboxMetricSample defines model for SandboxMetricSample.
type SandboxMetricsResponse ¶
type SandboxMetricsResponse struct {
Items []SandboxMetricSample `json:"items"`
}
SandboxMetricsResponse defines model for SandboxMetricsResponse.
type SandboxOnDelete ¶
type SandboxOnDelete string
SandboxOnDelete defines model for Sandbox.OnDelete.
const ( SandboxOnDeleteArchive SandboxOnDelete = "archive" 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 SandboxState ¶
type SandboxState string
SandboxState defines model for Sandbox.State.
const ( SandboxStateDegraded SandboxState = "degraded" SandboxStateFailed SandboxState = "failed" SandboxStateGone SandboxState = "gone" SandboxStatePaused SandboxState = "paused" SandboxStatePending SandboxState = "pending" SandboxStateRestoring SandboxState = "restoring" SandboxStateRunning SandboxState = "running" SandboxStateSnapshotting SandboxState = "snapshotting" SandboxStateStopped SandboxState = "stopped" )
Defines values for SandboxState.
func (SandboxState) Valid ¶
func (e SandboxState) Valid() bool
Valid indicates whether the value is a known member of the SandboxState enum.
type ScheduledResponse ¶
type ScheduledResponse struct {
Status ScheduledResponseStatus `json:"status"`
}
ScheduledResponse defines model for ScheduledResponse.
type ScheduledResponseStatus ¶
type ScheduledResponseStatus string
ScheduledResponseStatus defines model for ScheduledResponse.Status.
const (
Scheduled ScheduledResponseStatus = "scheduled"
)
Defines values for ScheduledResponseStatus.
func (ScheduledResponseStatus) Valid ¶
func (e ScheduledResponseStatus) Valid() bool
Valid indicates whether the value is a known member of the ScheduledResponseStatus enum.
type Snapshot ¶
type Snapshot struct {
Clock *string `json:"clock,omitempty"`
CreatedAt time.Time `json:"createdAt"`
Description string `json:"description"`
Digest string `json:"digest"`
// ExpiresAt When the snapshot is reaped. Snapshots always carry a TTL (request ttl or the configured lifecycle.default_snapshot_ttl), so this is populated for every live snapshot.
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
Frozen bool `json:"frozen"`
FrozenAt string `json:"frozenAt"`
Id string `json:"id"`
Node *string `json:"node,omitempty"`
Note string `json:"note"`
Owner string `json:"owner"`
Parent *string `json:"parent,omitempty"`
Restores int `json:"restores"`
Sandbox string `json:"sandbox"`
SandboxId string `json:"sandboxId"`
Size string `json:"size"`
SizeGiB float32 `json:"sizeGiB"`
State SnapshotState `json:"state"`
Tags []string `json:"tags"`
Template string `json:"template"`
Ver string `json:"ver"`
}
Snapshot defines model for Snapshot.
type SnapshotBootSource ¶
type SnapshotBootSource struct {
// Flavor How the snapshot boots. "warm" (default) resumes the captured memory image and pins memory to the snapshot's size. "cold" boots a fresh kernel on the snapshot's disk state with freely chosen vcpu and memory.
Flavor *SnapshotBootSourceFlavor `json:"flavor,omitempty"`
Kind SnapshotBootSourceKind `json:"kind"`
SnapshotId string `json:"snapshot_id"`
}
SnapshotBootSource defines model for SnapshotBootSource.
type SnapshotBootSourceFlavor ¶
type SnapshotBootSourceFlavor string
SnapshotBootSourceFlavor How the snapshot boots. "warm" (default) resumes the captured memory image and pins memory to the snapshot's size. "cold" boots a fresh kernel on the snapshot's disk state with freely chosen vcpu and memory.
const ( SnapshotBootSourceFlavorCold SnapshotBootSourceFlavor = "cold" SnapshotBootSourceFlavorWarm SnapshotBootSourceFlavor = "warm" )
Defines values for SnapshotBootSourceFlavor.
func (SnapshotBootSourceFlavor) Valid ¶
func (e SnapshotBootSourceFlavor) Valid() bool
Valid indicates whether the value is a known member of the SnapshotBootSourceFlavor enum.
type SnapshotBootSourceKind ¶
type SnapshotBootSourceKind string
SnapshotBootSourceKind defines model for SnapshotBootSource.Kind.
const (
SnapshotBootSourceKindSnapshot SnapshotBootSourceKind = "snapshot"
)
Defines values for SnapshotBootSourceKind.
func (SnapshotBootSourceKind) Valid ¶
func (e SnapshotBootSourceKind) Valid() bool
Valid indicates whether the value is a known member of the SnapshotBootSourceKind enum.
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 Go-style duration string. Snapshots always carry a TTL: omit to fall back to the configured lifecycle.default_snapshot_ttl (a required server default). If neither is present the request is rejected.
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 ( Available SnapshotState = "available" Creating SnapshotState = "creating" Deleted SnapshotState = "deleted" Failed 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 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 StreamExecSandboxParams ¶
type StreamExecSandboxParams struct {
// Cmd Repeated argv item, in order. The server shell-quotes and joins these items for SSH exec.
Cmd []string `form:"cmd" json:"cmd"`
Pty *bool `form:"pty,omitempty" json:"pty,omitempty"`
Rows *int `form:"rows,omitempty" json:"rows,omitempty"`
Cols *int `form:"cols,omitempty" json:"cols,omitempty"`
}
StreamExecSandboxParams defines parameters for StreamExecSandbox.
type StreamExecSandboxResponse ¶
type StreamExecSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *BadRequest
JSON409 *Conflict
JSONDefault *Error
}
func ParseStreamExecSandboxResponse ¶
func ParseStreamExecSandboxResponse(rsp *http.Response) (*StreamExecSandboxResponse, error)
ParseStreamExecSandboxResponse parses an HTTP response from a StreamExecSandboxWithResponse call
func (StreamExecSandboxResponse) ContentType ¶
func (r StreamExecSandboxResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (StreamExecSandboxResponse) Status ¶
func (r StreamExecSandboxResponse) Status() string
Status returns HTTPResponse.Status
func (StreamExecSandboxResponse) StatusCode ¶
func (r StreamExecSandboxResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Template ¶
type Template struct {
Artifact string `json:"artifact"`
Build TemplateBuild `json:"build"`
Clock string `json:"clock"`
ClockPolicy TemplateClockPolicy `json:"clockPolicy"`
Description *string `json:"description,omitempty"`
DiskGb int `json:"diskGb"`
Flavor TemplateFlavor `json:"flavor"`
Kernel string `json:"kernel"`
MemoryMb int `json:"memoryMb"`
Name string `json:"name"`
Pinned string `json:"pinned"`
Rootfs string `json:"rootfs"`
Sizing string `json:"sizing"`
SourceSnapshotId *string `json:"sourceSnapshotId,omitempty"`
Tags []string `json:"tags"`
Vcpu int `json:"vcpu"`
VcpuOptions []int `json:"vcpuOptions"`
Ver string `json:"ver"`
}
Template defines model for Template.
type TemplateBootSource ¶
type TemplateBootSource struct {
Kind TemplateBootSourceKind `json:"kind"`
Name string `json:"name"`
Version *string `json:"version,omitempty"`
}
TemplateBootSource defines model for TemplateBootSource.
type TemplateBootSourceKind ¶
type TemplateBootSourceKind string
TemplateBootSourceKind defines model for TemplateBootSource.Kind.
const (
TemplateBootSourceKindTemplate TemplateBootSourceKind = "template"
)
Defines values for TemplateBootSourceKind.
func (TemplateBootSourceKind) Valid ¶
func (e TemplateBootSourceKind) Valid() bool
Valid indicates whether the value is a known member of the TemplateBootSourceKind enum.
type TemplateBuild ¶
type TemplateBuild struct {
// Source Freeform provenance for the template build recipe or warm snapshot lineage.
Source string `json:"source"`
}
TemplateBuild defines model for TemplateBuild.
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 TemplateFlavor ¶
type TemplateFlavor string
TemplateFlavor defines model for Template.Flavor.
const ( TemplateFlavorCold TemplateFlavor = "cold" TemplateFlavorWarm TemplateFlavor = "warm" )
Defines values for TemplateFlavor.
func (TemplateFlavor) Valid ¶
func (e TemplateFlavor) Valid() bool
Valid indicates whether the value is a known member of the TemplateFlavor enum.
type TunnelSandboxResponse ¶
type TunnelSandboxResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *BadRequest
JSON409 *Conflict
JSONDefault *Error
}
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 UnexposePortResponse ¶
func ParseUnexposePortResponse ¶
func ParseUnexposePortResponse(rsp *http.Response) (*UnexposePortResponse, error)
ParseUnexposePortResponse parses an HTTP response from a UnexposePortWithResponse call
func (UnexposePortResponse) ContentType ¶
func (r UnexposePortResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UnexposePortResponse) Status ¶
func (r UnexposePortResponse) Status() string
Status returns HTTPResponse.Status
func (UnexposePortResponse) StatusCode ¶
func (r UnexposePortResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnprocessableEntity ¶
type UnprocessableEntity = ErrorEnvelope
UnprocessableEntity defines model for UnprocessableEntity.
type UpdateHookTemplateJSONRequestBody ¶
type UpdateHookTemplateJSONRequestBody = HookTemplateRequest
UpdateHookTemplateJSONRequestBody defines body for UpdateHookTemplate for application/json ContentType.
type UpdateHookTemplateResponse ¶
type UpdateHookTemplateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *HookTemplate
JSONDefault *Error
}
func ParseUpdateHookTemplateResponse ¶
func ParseUpdateHookTemplateResponse(rsp *http.Response) (*UpdateHookTemplateResponse, error)
ParseUpdateHookTemplateResponse parses an HTTP response from a UpdateHookTemplateWithResponse call
func (UpdateHookTemplateResponse) ContentType ¶
func (r UpdateHookTemplateResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateHookTemplateResponse) Status ¶
func (r UpdateHookTemplateResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateHookTemplateResponse) StatusCode ¶
func (r UpdateHookTemplateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WatchdogDeclaration ¶
type WatchdogDeclaration struct {
Action WatchdogDeclarationAction `json:"action"`
Env *map[string]string `json:"env,omitempty"`
FailureThreshold *int `json:"failure_threshold,omitempty"`
IntervalSeconds int `json:"interval_seconds"`
// Script Inline shell script. Mutually exclusive with template.
Script *string `json:"script,omitempty"`
// Template Hook template name. Mutually exclusive with script.
Template *string `json:"template,omitempty"`
TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
}
WatchdogDeclaration defines model for WatchdogDeclaration.
type WatchdogDeclarationAction ¶
type WatchdogDeclarationAction string
WatchdogDeclarationAction defines model for WatchdogDeclaration.Action.
const ( WatchdogDeclarationActionNone WatchdogDeclarationAction = "none" WatchdogDeclarationActionSnapshot WatchdogDeclarationAction = "snapshot" WatchdogDeclarationActionStop WatchdogDeclarationAction = "stop" )
Defines values for WatchdogDeclarationAction.
func (WatchdogDeclarationAction) Valid ¶
func (e WatchdogDeclarationAction) Valid() bool
Valid indicates whether the value is a known member of the WatchdogDeclarationAction enum.
type WatchdogSummary ¶
type WatchdogSummary struct {
Action WatchdogSummaryAction `json:"action"`
FailureThreshold int `json:"failure_threshold"`
IntervalSeconds int `json:"interval_seconds"`
SourceTemplateName *string `json:"source_template_name,omitempty"`
TimeoutSeconds int `json:"timeout_seconds"`
}
WatchdogSummary defines model for WatchdogSummary.
type WatchdogSummaryAction ¶
type WatchdogSummaryAction string
WatchdogSummaryAction defines model for WatchdogSummary.Action.
const ( WatchdogSummaryActionNone WatchdogSummaryAction = "none" WatchdogSummaryActionSnapshot WatchdogSummaryAction = "snapshot" WatchdogSummaryActionStop WatchdogSummaryAction = "stop" )
Defines values for WatchdogSummaryAction.
func (WatchdogSummaryAction) Valid ¶
func (e WatchdogSummaryAction) Valid() bool
Valid indicates whether the value is a known member of the WatchdogSummaryAction enum.
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.