Documentation
¶
Overview ¶
Package oapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func NewAttachVolumeRequest(server string, id string, volumeId string, body AttachVolumeJSONRequestBody) (*http.Request, error)
- func NewAttachVolumeRequestWithBody(server string, id string, volumeId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCancelBuildRequest(server string, id string) (*http.Request, error)
- func NewCreateBuildRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateDeviceRequest(server string, body CreateDeviceJSONRequestBody) (*http.Request, error)
- func NewCreateDeviceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateImageRequest(server string, body CreateImageJSONRequestBody) (*http.Request, error)
- func NewCreateImageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateIngressRequest(server string, body CreateIngressJSONRequestBody) (*http.Request, error)
- func NewCreateIngressRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateInstanceRequest(server string, body CreateInstanceJSONRequestBody) (*http.Request, error)
- func NewCreateInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateInstanceSnapshotRequest(server string, id string, body CreateInstanceSnapshotJSONRequestBody) (*http.Request, error)
- func NewCreateInstanceSnapshotRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateVolumeFromArchiveRequestWithBody(server string, params *CreateVolumeFromArchiveParams, contentType string, ...) (*http.Request, error)
- func NewCreateVolumeRequest(server string, body CreateVolumeJSONRequestBody) (*http.Request, error)
- func NewCreateVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteDeviceRequest(server string, id string) (*http.Request, error)
- func NewDeleteImageRequest(server string, name string) (*http.Request, error)
- func NewDeleteIngressRequest(server string, id string) (*http.Request, error)
- func NewDeleteInstanceRequest(server string, id string) (*http.Request, error)
- func NewDeleteInstanceSnapshotScheduleRequest(server string, id string) (*http.Request, error)
- func NewDeleteSnapshotRequest(server string, snapshotId string) (*http.Request, error)
- func NewDeleteVolumeRequest(server string, id string) (*http.Request, error)
- func NewDetachVolumeRequest(server string, id string, volumeId string) (*http.Request, error)
- func NewForkInstanceRequest(server string, id string, body ForkInstanceJSONRequestBody) (*http.Request, error)
- func NewForkInstanceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewForkSnapshotRequest(server string, snapshotId string, body ForkSnapshotJSONRequestBody) (*http.Request, error)
- func NewForkSnapshotRequestWithBody(server string, snapshotId string, contentType string, body io.Reader) (*http.Request, error)
- func NewGetAutoStandbyStatusRequest(server string, id string) (*http.Request, error)
- func NewGetBuildEventsRequest(server string, id string, params *GetBuildEventsParams) (*http.Request, error)
- func NewGetBuildRequest(server string, id string) (*http.Request, error)
- func NewGetDeviceRequest(server string, id string) (*http.Request, error)
- func NewGetHealthRequest(server string) (*http.Request, error)
- func NewGetImageRequest(server string, name string) (*http.Request, error)
- func NewGetIngressRequest(server string, id string) (*http.Request, error)
- func NewGetInstanceLogsRequest(server string, id string, params *GetInstanceLogsParams) (*http.Request, error)
- func NewGetInstanceRequest(server string, id string) (*http.Request, error)
- func NewGetInstanceSnapshotScheduleRequest(server string, id string) (*http.Request, error)
- func NewGetInstanceStatsRequest(server string, id string) (*http.Request, error)
- func NewGetResourcesRequest(server string) (*http.Request, error)
- func NewGetSnapshotRequest(server string, snapshotId string) (*http.Request, error)
- func NewGetVolumeRequest(server string, id string) (*http.Request, error)
- func NewListAvailableDevicesRequest(server string) (*http.Request, error)
- func NewListBuildsRequest(server string, params *ListBuildsParams) (*http.Request, error)
- func NewListDevicesRequest(server string, params *ListDevicesParams) (*http.Request, error)
- func NewListImagesRequest(server string, params *ListImagesParams) (*http.Request, error)
- func NewListIngressesRequest(server string, params *ListIngressesParams) (*http.Request, error)
- func NewListInstancesRequest(server string, params *ListInstancesParams) (*http.Request, error)
- func NewListSnapshotsRequest(server string, params *ListSnapshotsParams) (*http.Request, error)
- func NewListVolumesRequest(server string, params *ListVolumesParams) (*http.Request, error)
- func NewReclaimMemoryRequest(server string, body ReclaimMemoryJSONRequestBody) (*http.Request, error)
- func NewReclaimMemoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewRestoreInstanceRequest(server string, id string) (*http.Request, error)
- func NewRestoreInstanceSnapshotRequest(server string, id string, snapshotId string, ...) (*http.Request, error)
- func NewRestoreInstanceSnapshotRequestWithBody(server string, id string, snapshotId string, contentType string, ...) (*http.Request, error)
- func NewSetInstanceSnapshotScheduleRequest(server string, id string, body SetInstanceSnapshotScheduleJSONRequestBody) (*http.Request, error)
- func NewSetInstanceSnapshotScheduleRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewStandbyInstanceRequest(server string, id string, body StandbyInstanceJSONRequestBody) (*http.Request, error)
- func NewStandbyInstanceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewStartInstanceRequest(server string, id string, body StartInstanceJSONRequestBody) (*http.Request, error)
- func NewStartInstanceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewStatInstancePathRequest(server string, id string, params *StatInstancePathParams) (*http.Request, error)
- func NewStopInstanceRequest(server string, id string) (*http.Request, error)
- func NewUpdateInstanceRequest(server string, id string, body UpdateInstanceJSONRequestBody) (*http.Request, error)
- func NewUpdateInstanceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
- func NewWaitForInstanceStateRequest(server string, id string, params *WaitForInstanceStateParams) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type AttachVolume200JSONResponse
- type AttachVolume404JSONResponse
- type AttachVolume409JSONResponse
- type AttachVolume500JSONResponse
- type AttachVolumeJSONRequestBody
- type AttachVolumeRequest
- type AttachVolumeRequestObject
- type AttachVolumeResponse
- type AttachVolumeResponseObject
- type AutoStandbyPolicy
- type AutoStandbyStatus
- type AutoStandbyStatusReason
- type AutoStandbyStatusStatus
- type AvailableDevice
- type Build
- type BuildEvent
- type BuildEventType
- type BuildProvenance
- type BuildStatus
- type CancelBuild204Response
- type CancelBuild404JSONResponse
- type CancelBuild409JSONResponse
- type CancelBuild500JSONResponse
- type CancelBuildRequestObject
- type CancelBuildResponse
- type CancelBuildResponseObject
- type ChiServerOptions
- type Client
- func (c *Client) AttachVolume(ctx context.Context, id string, volumeId string, ...) (*http.Response, error)
- func (c *Client) AttachVolumeWithBody(ctx context.Context, id string, volumeId string, contentType string, ...) (*http.Response, error)
- func (c *Client) CancelBuild(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateBuildWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateDevice(ctx context.Context, body CreateDeviceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateDeviceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateImage(ctx context.Context, body CreateImageJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateImageWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateIngress(ctx context.Context, body CreateIngressJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateIngressWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateInstance(ctx context.Context, body CreateInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateInstanceSnapshot(ctx context.Context, id string, body CreateInstanceSnapshotJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateInstanceSnapshotWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateInstanceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateVolumeFromArchiveWithBody(ctx context.Context, params *CreateVolumeFromArchiveParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteDevice(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteImage(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteIngress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteInstanceSnapshotSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DetachVolume(ctx context.Context, id string, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ForkInstance(ctx context.Context, id string, body ForkInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ForkInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) ForkSnapshot(ctx context.Context, snapshotId string, body ForkSnapshotJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ForkSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) GetAutoStandbyStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBuild(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetBuildEvents(ctx context.Context, id string, params *GetBuildEventsParams, ...) (*http.Response, error)
- func (c *Client) GetDevice(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetImage(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetIngress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInstanceLogs(ctx context.Context, id string, params *GetInstanceLogsParams, ...) (*http.Response, error)
- func (c *Client) GetInstanceSnapshotSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInstanceStats(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetResources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAvailableDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListBuilds(ctx context.Context, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListDevices(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListImages(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListIngresses(ctx context.Context, params *ListIngressesParams, ...) (*http.Response, error)
- func (c *Client) ListInstances(ctx context.Context, params *ListInstancesParams, ...) (*http.Response, error)
- func (c *Client) ListSnapshots(ctx context.Context, params *ListSnapshotsParams, ...) (*http.Response, error)
- func (c *Client) ListVolumes(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ReclaimMemory(ctx context.Context, body ReclaimMemoryJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) ReclaimMemoryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) RestoreInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RestoreInstanceSnapshot(ctx context.Context, id string, snapshotId string, ...) (*http.Response, error)
- func (c *Client) RestoreInstanceSnapshotWithBody(ctx context.Context, id string, snapshotId string, contentType string, ...) (*http.Response, error)
- func (c *Client) SetInstanceSnapshotSchedule(ctx context.Context, id string, ...) (*http.Response, error)
- func (c *Client) SetInstanceSnapshotScheduleWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StandbyInstance(ctx context.Context, id string, body StandbyInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StandbyInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StartInstance(ctx context.Context, id string, body StartInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) StartInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) StatInstancePath(ctx context.Context, id string, params *StatInstancePathParams, ...) (*http.Response, error)
- func (c *Client) StopInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateInstance(ctx context.Context, id string, body UpdateInstanceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) WaitForInstanceState(ctx context.Context, id string, params *WaitForInstanceStateParams, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AttachVolumeWithBodyWithResponse(ctx context.Context, id string, volumeId string, contentType string, ...) (*AttachVolumeResponse, error)
- func (c *ClientWithResponses) AttachVolumeWithResponse(ctx context.Context, id string, volumeId string, ...) (*AttachVolumeResponse, error)
- func (c *ClientWithResponses) CancelBuildWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CancelBuildResponse, error)
- func (c *ClientWithResponses) CreateBuildWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateBuildResponse, error)
- func (c *ClientWithResponses) CreateDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateDeviceResponse, error)
- func (c *ClientWithResponses) CreateDeviceWithResponse(ctx context.Context, body CreateDeviceJSONRequestBody, ...) (*CreateDeviceResponse, error)
- func (c *ClientWithResponses) CreateImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateImageResponse, error)
- func (c *ClientWithResponses) CreateImageWithResponse(ctx context.Context, body CreateImageJSONRequestBody, ...) (*CreateImageResponse, error)
- func (c *ClientWithResponses) CreateIngressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateIngressResponse, error)
- func (c *ClientWithResponses) CreateIngressWithResponse(ctx context.Context, body CreateIngressJSONRequestBody, ...) (*CreateIngressResponse, error)
- func (c *ClientWithResponses) CreateInstanceSnapshotWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*CreateInstanceSnapshotResponse, error)
- func (c *ClientWithResponses) CreateInstanceSnapshotWithResponse(ctx context.Context, id string, body CreateInstanceSnapshotJSONRequestBody, ...) (*CreateInstanceSnapshotResponse, error)
- func (c *ClientWithResponses) CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateInstanceResponse, error)
- func (c *ClientWithResponses) CreateInstanceWithResponse(ctx context.Context, body CreateInstanceJSONRequestBody, ...) (*CreateInstanceResponse, error)
- func (c *ClientWithResponses) CreateVolumeFromArchiveWithBodyWithResponse(ctx context.Context, params *CreateVolumeFromArchiveParams, contentType string, ...) (*CreateVolumeFromArchiveResponse, error)
- func (c *ClientWithResponses) CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateVolumeResponse, error)
- func (c *ClientWithResponses) CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, ...) (*CreateVolumeResponse, error)
- func (c *ClientWithResponses) DeleteDeviceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteDeviceResponse, error)
- func (c *ClientWithResponses) DeleteImageWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteImageResponse, error)
- func (c *ClientWithResponses) DeleteIngressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIngressResponse, error)
- func (c *ClientWithResponses) DeleteInstanceSnapshotScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteInstanceSnapshotScheduleResponse, error)
- func (c *ClientWithResponses) DeleteInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteInstanceResponse, error)
- func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)
- func (c *ClientWithResponses) DeleteVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)
- func (c *ClientWithResponses) DetachVolumeWithResponse(ctx context.Context, id string, volumeId string, reqEditors ...RequestEditorFn) (*DetachVolumeResponse, error)
- func (c *ClientWithResponses) ForkInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*ForkInstanceResponse, error)
- func (c *ClientWithResponses) ForkInstanceWithResponse(ctx context.Context, id string, body ForkInstanceJSONRequestBody, ...) (*ForkInstanceResponse, error)
- func (c *ClientWithResponses) ForkSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, ...) (*ForkSnapshotResponse, error)
- func (c *ClientWithResponses) ForkSnapshotWithResponse(ctx context.Context, snapshotId string, body ForkSnapshotJSONRequestBody, ...) (*ForkSnapshotResponse, error)
- func (c *ClientWithResponses) GetAutoStandbyStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAutoStandbyStatusResponse, error)
- func (c *ClientWithResponses) GetBuildEventsWithResponse(ctx context.Context, id string, params *GetBuildEventsParams, ...) (*GetBuildEventsResponse, error)
- func (c *ClientWithResponses) GetBuildWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetBuildResponse, error)
- func (c *ClientWithResponses) GetDeviceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
- func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
- func (c *ClientWithResponses) GetImageWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetImageResponse, error)
- func (c *ClientWithResponses) GetIngressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIngressResponse, error)
- func (c *ClientWithResponses) GetInstanceLogsWithResponse(ctx context.Context, id string, params *GetInstanceLogsParams, ...) (*GetInstanceLogsResponse, error)
- func (c *ClientWithResponses) GetInstanceSnapshotScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetInstanceSnapshotScheduleResponse, error)
- func (c *ClientWithResponses) GetInstanceStatsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetInstanceStatsResponse, error)
- func (c *ClientWithResponses) GetInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetInstanceResponse, error)
- func (c *ClientWithResponses) GetResourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error)
- func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
- func (c *ClientWithResponses) GetVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)
- func (c *ClientWithResponses) ListAvailableDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAvailableDevicesResponse, error)
- func (c *ClientWithResponses) ListBuildsWithResponse(ctx context.Context, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*ListBuildsResponse, error)
- func (c *ClientWithResponses) ListDevicesWithResponse(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*ListDevicesResponse, error)
- func (c *ClientWithResponses) ListImagesWithResponse(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*ListImagesResponse, error)
- func (c *ClientWithResponses) ListIngressesWithResponse(ctx context.Context, params *ListIngressesParams, ...) (*ListIngressesResponse, error)
- func (c *ClientWithResponses) ListInstancesWithResponse(ctx context.Context, params *ListInstancesParams, ...) (*ListInstancesResponse, error)
- func (c *ClientWithResponses) ListSnapshotsWithResponse(ctx context.Context, params *ListSnapshotsParams, ...) (*ListSnapshotsResponse, error)
- func (c *ClientWithResponses) ListVolumesWithResponse(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
- func (c *ClientWithResponses) ReclaimMemoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*ReclaimMemoryResponse, error)
- func (c *ClientWithResponses) ReclaimMemoryWithResponse(ctx context.Context, body ReclaimMemoryJSONRequestBody, ...) (*ReclaimMemoryResponse, error)
- func (c *ClientWithResponses) RestoreInstanceSnapshotWithBodyWithResponse(ctx context.Context, id string, snapshotId string, contentType string, ...) (*RestoreInstanceSnapshotResponse, error)
- func (c *ClientWithResponses) RestoreInstanceSnapshotWithResponse(ctx context.Context, id string, snapshotId string, ...) (*RestoreInstanceSnapshotResponse, error)
- func (c *ClientWithResponses) RestoreInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RestoreInstanceResponse, error)
- func (c *ClientWithResponses) SetInstanceSnapshotScheduleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*SetInstanceSnapshotScheduleResponse, error)
- func (c *ClientWithResponses) SetInstanceSnapshotScheduleWithResponse(ctx context.Context, id string, ...) (*SetInstanceSnapshotScheduleResponse, error)
- func (c *ClientWithResponses) StandbyInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*StandbyInstanceResponse, error)
- func (c *ClientWithResponses) StandbyInstanceWithResponse(ctx context.Context, id string, body StandbyInstanceJSONRequestBody, ...) (*StandbyInstanceResponse, error)
- func (c *ClientWithResponses) StartInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*StartInstanceResponse, error)
- func (c *ClientWithResponses) StartInstanceWithResponse(ctx context.Context, id string, body StartInstanceJSONRequestBody, ...) (*StartInstanceResponse, error)
- func (c *ClientWithResponses) StatInstancePathWithResponse(ctx context.Context, id string, params *StatInstancePathParams, ...) (*StatInstancePathResponse, error)
- func (c *ClientWithResponses) StopInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*StopInstanceResponse, error)
- func (c *ClientWithResponses) UpdateInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, ...) (*UpdateInstanceResponse, error)
- func (c *ClientWithResponses) UpdateInstanceWithResponse(ctx context.Context, id string, body UpdateInstanceJSONRequestBody, ...) (*UpdateInstanceResponse, error)
- func (c *ClientWithResponses) WaitForInstanceStateWithResponse(ctx context.Context, id string, params *WaitForInstanceStateParams, ...) (*WaitForInstanceStateResponse, error)
- type ClientWithResponsesInterface
- type CreateBuild202JSONResponse
- type CreateBuild400JSONResponse
- type CreateBuild401JSONResponse
- type CreateBuild500JSONResponse
- type CreateBuildMultipartBody
- type CreateBuildMultipartRequestBody
- type CreateBuildRequestObject
- type CreateBuildResponse
- type CreateBuildResponseObject
- type CreateDevice201JSONResponse
- type CreateDevice400JSONResponse
- type CreateDevice401JSONResponse
- type CreateDevice404JSONResponse
- type CreateDevice409JSONResponse
- type CreateDevice500JSONResponse
- type CreateDeviceJSONRequestBody
- type CreateDeviceRequest
- type CreateDeviceRequestObject
- type CreateDeviceResponse
- type CreateDeviceResponseObject
- type CreateImage202JSONResponse
- type CreateImage400JSONResponse
- type CreateImage401JSONResponse
- type CreateImage404JSONResponse
- type CreateImage429JSONResponse
- type CreateImage500JSONResponse
- type CreateImageJSONRequestBody
- type CreateImageRequest
- type CreateImageRequestObject
- type CreateImageResponse
- type CreateImageResponseObject
- type CreateIngress201JSONResponse
- type CreateIngress400JSONResponse
- type CreateIngress401JSONResponse
- type CreateIngress409JSONResponse
- type CreateIngress500JSONResponse
- type CreateIngressJSONRequestBody
- type CreateIngressRequest
- type CreateIngressRequestObject
- type CreateIngressResponse
- type CreateIngressResponseObject
- type CreateInstance201JSONResponse
- type CreateInstance400JSONResponse
- type CreateInstance401JSONResponse
- type CreateInstance404JSONResponse
- type CreateInstance409JSONResponse
- type CreateInstance429JSONResponse
- type CreateInstance500JSONResponse
- type CreateInstanceJSONRequestBody
- type CreateInstanceRequest
- type CreateInstanceRequestCredential
- type CreateInstanceRequestCredentialInject
- type CreateInstanceRequestCredentialInjectAs
- type CreateInstanceRequestCredentialSource
- type CreateInstanceRequestHypervisor
- type CreateInstanceRequestNetworkEgress
- type CreateInstanceRequestNetworkEgressEnforcement
- type CreateInstanceRequestNetworkEgressEnforcementMode
- type CreateInstanceRequestObject
- type CreateInstanceResponse
- type CreateInstanceResponseObject
- type CreateInstanceSnapshot201JSONResponse
- type CreateInstanceSnapshot400JSONResponse
- type CreateInstanceSnapshot404JSONResponse
- type CreateInstanceSnapshot409JSONResponse
- type CreateInstanceSnapshot500JSONResponse
- type CreateInstanceSnapshot501JSONResponse
- type CreateInstanceSnapshotJSONRequestBody
- type CreateInstanceSnapshotRequestObject
- type CreateInstanceSnapshotResponse
- type CreateInstanceSnapshotResponseObject
- type CreateSnapshotRequest
- type CreateVolume201JSONResponse
- type CreateVolume400JSONResponse
- type CreateVolume401JSONResponse
- type CreateVolume409JSONResponse
- type CreateVolume500JSONResponse
- type CreateVolumeFromArchive201JSONResponse
- type CreateVolumeFromArchive400JSONResponse
- type CreateVolumeFromArchive401JSONResponse
- type CreateVolumeFromArchive409JSONResponse
- type CreateVolumeFromArchive500JSONResponse
- type CreateVolumeFromArchiveParams
- type CreateVolumeFromArchiveRequestObject
- type CreateVolumeFromArchiveResponse
- type CreateVolumeFromArchiveResponseObject
- type CreateVolumeJSONRequestBody
- type CreateVolumeRequest
- type CreateVolumeRequestObject
- type CreateVolumeResponse
- type CreateVolumeResponseObject
- type DeleteDevice204Response
- type DeleteDevice404JSONResponse
- type DeleteDevice409JSONResponse
- type DeleteDevice500JSONResponse
- type DeleteDeviceRequestObject
- type DeleteDeviceResponse
- type DeleteDeviceResponseObject
- type DeleteImage204Response
- type DeleteImage404JSONResponse
- type DeleteImage500JSONResponse
- type DeleteImageRequestObject
- type DeleteImageResponse
- type DeleteImageResponseObject
- type DeleteIngress204Response
- type DeleteIngress404JSONResponse
- type DeleteIngress409JSONResponse
- type DeleteIngress500JSONResponse
- type DeleteIngressRequestObject
- type DeleteIngressResponse
- type DeleteIngressResponseObject
- type DeleteInstance204Response
- type DeleteInstance404JSONResponse
- type DeleteInstance500JSONResponse
- type DeleteInstanceRequestObject
- type DeleteInstanceResponse
- type DeleteInstanceResponseObject
- type DeleteInstanceSnapshotSchedule204Response
- type DeleteInstanceSnapshotSchedule404JSONResponse
- type DeleteInstanceSnapshotSchedule500JSONResponse
- type DeleteInstanceSnapshotScheduleRequestObject
- type DeleteInstanceSnapshotScheduleResponse
- type DeleteInstanceSnapshotScheduleResponseObject
- type DeleteSnapshot204Response
- type DeleteSnapshot404JSONResponse
- type DeleteSnapshot500JSONResponse
- type DeleteSnapshotRequestObject
- type DeleteSnapshotResponse
- type DeleteSnapshotResponseObject
- type DeleteVolume204Response
- type DeleteVolume404JSONResponse
- type DeleteVolume409JSONResponse
- type DeleteVolume500JSONResponse
- type DeleteVolumeRequestObject
- type DeleteVolumeResponse
- type DeleteVolumeResponseObject
- type DetachVolume200JSONResponse
- type DetachVolume404JSONResponse
- type DetachVolume500JSONResponse
- type DetachVolumeRequestObject
- type DetachVolumeResponse
- type DetachVolumeResponseObject
- type Device
- type DeviceType
- type DiskBreakdown
- type Error
- type ErrorDetail
- type ForkInstance201JSONResponse
- type ForkInstance400JSONResponse
- type ForkInstance404JSONResponse
- type ForkInstance409JSONResponse
- type ForkInstance500JSONResponse
- type ForkInstance501JSONResponse
- type ForkInstanceJSONRequestBody
- type ForkInstanceRequest
- type ForkInstanceRequestObject
- type ForkInstanceResponse
- type ForkInstanceResponseObject
- type ForkSnapshot201JSONResponse
- type ForkSnapshot400JSONResponse
- type ForkSnapshot404JSONResponse
- type ForkSnapshot409JSONResponse
- type ForkSnapshot500JSONResponse
- type ForkSnapshot501JSONResponse
- type ForkSnapshotJSONRequestBody
- type ForkSnapshotRequest
- type ForkSnapshotRequestObject
- type ForkSnapshotRequestTargetHypervisor
- type ForkSnapshotResponse
- type ForkSnapshotResponseObject
- type ForkTargetState
- type GPUConfig
- type GPUProfile
- type GPUResourceStatus
- type GPUResourceStatusMode
- type GetAutoStandbyStatus200JSONResponse
- type GetAutoStandbyStatus404JSONResponse
- type GetAutoStandbyStatus500JSONResponse
- type GetAutoStandbyStatusRequestObject
- type GetAutoStandbyStatusResponse
- type GetAutoStandbyStatusResponseObject
- type GetBuild200JSONResponse
- type GetBuild404JSONResponse
- type GetBuild500JSONResponse
- type GetBuildEvents200TexteventStreamResponse
- type GetBuildEvents404JSONResponse
- type GetBuildEvents500JSONResponse
- type GetBuildEventsParams
- type GetBuildEventsRequestObject
- type GetBuildEventsResponse
- type GetBuildEventsResponseObject
- type GetBuildRequestObject
- type GetBuildResponse
- type GetBuildResponseObject
- type GetDevice200JSONResponse
- type GetDevice404JSONResponse
- type GetDevice500JSONResponse
- type GetDeviceRequestObject
- type GetDeviceResponse
- type GetDeviceResponseObject
- type GetHealth200JSONResponse
- type GetHealthRequestObject
- type GetHealthResponse
- type GetHealthResponseObject
- type GetImage200JSONResponse
- type GetImage404JSONResponse
- type GetImage500JSONResponse
- type GetImageRequestObject
- type GetImageResponse
- type GetImageResponseObject
- type GetIngress200JSONResponse
- type GetIngress404JSONResponse
- type GetIngress409JSONResponse
- type GetIngress500JSONResponse
- type GetIngressRequestObject
- type GetIngressResponse
- type GetIngressResponseObject
- type GetInstance200JSONResponse
- type GetInstance404JSONResponse
- type GetInstance500JSONResponse
- type GetInstanceLogs200TexteventStreamResponse
- type GetInstanceLogs404JSONResponse
- type GetInstanceLogs500JSONResponse
- type GetInstanceLogsParams
- type GetInstanceLogsParamsSource
- type GetInstanceLogsRequestObject
- type GetInstanceLogsResponse
- type GetInstanceLogsResponseObject
- type GetInstanceRequestObject
- type GetInstanceResponse
- type GetInstanceResponseObject
- type GetInstanceSnapshotSchedule200JSONResponse
- type GetInstanceSnapshotSchedule404JSONResponse
- type GetInstanceSnapshotSchedule500JSONResponse
- type GetInstanceSnapshotScheduleRequestObject
- type GetInstanceSnapshotScheduleResponse
- type GetInstanceSnapshotScheduleResponseObject
- type GetInstanceStats200JSONResponse
- type GetInstanceStats404JSONResponse
- type GetInstanceStats500JSONResponse
- type GetInstanceStatsRequestObject
- type GetInstanceStatsResponse
- type GetInstanceStatsResponseObject
- type GetResources200JSONResponse
- type GetResources500JSONResponse
- type GetResourcesRequestObject
- type GetResourcesResponse
- type GetResourcesResponseObject
- type GetSnapshot200JSONResponse
- type GetSnapshot404JSONResponse
- type GetSnapshot500JSONResponse
- type GetSnapshotRequestObject
- type GetSnapshotResponse
- type GetSnapshotResponseObject
- type GetVolume200JSONResponse
- type GetVolume404JSONResponse
- type GetVolume500JSONResponse
- type GetVolumeRequestObject
- type GetVolumeResponse
- type GetVolumeResponseObject
- type Health
- type HealthCheck
- type HealthCheckExec
- type HealthCheckHTTP
- type HealthCheckHTTPScheme
- type HealthCheckTCP
- type HealthCheckType
- type HealthStatus
- type HttpRequestDoer
- type Image
- type ImageStatus
- type Ingress
- type IngressMatch
- type IngressRule
- type IngressTarget
- type Instance
- type InstanceGPU
- type InstanceHealthStatus
- type InstanceHealthStatusStatus
- type InstanceHypervisor
- type InstanceState
- type InstanceStats
- type InvalidParamFormatError
- type ListAvailableDevices200JSONResponse
- type ListAvailableDevices401JSONResponse
- type ListAvailableDevices500JSONResponse
- type ListAvailableDevicesRequestObject
- type ListAvailableDevicesResponse
- type ListAvailableDevicesResponseObject
- type ListBuilds200JSONResponse
- type ListBuilds401JSONResponse
- type ListBuilds500JSONResponse
- type ListBuildsParams
- type ListBuildsRequestObject
- type ListBuildsResponse
- type ListBuildsResponseObject
- type ListDevices200JSONResponse
- type ListDevices401JSONResponse
- type ListDevices500JSONResponse
- type ListDevicesParams
- type ListDevicesRequestObject
- type ListDevicesResponse
- type ListDevicesResponseObject
- type ListImages200JSONResponse
- type ListImages401JSONResponse
- type ListImages500JSONResponse
- type ListImagesParams
- type ListImagesRequestObject
- type ListImagesResponse
- type ListImagesResponseObject
- type ListIngresses200JSONResponse
- type ListIngresses401JSONResponse
- type ListIngresses500JSONResponse
- type ListIngressesParams
- type ListIngressesRequestObject
- type ListIngressesResponse
- type ListIngressesResponseObject
- type ListInstances200JSONResponse
- type ListInstances401JSONResponse
- type ListInstances500JSONResponse
- type ListInstancesParams
- type ListInstancesRequestObject
- type ListInstancesResponse
- type ListInstancesResponseObject
- type ListSnapshots200JSONResponse
- type ListSnapshots500JSONResponse
- type ListSnapshotsParams
- type ListSnapshotsRequestObject
- type ListSnapshotsResponse
- type ListSnapshotsResponseObject
- type ListVolumes200JSONResponse
- type ListVolumes401JSONResponse
- type ListVolumes500JSONResponse
- type ListVolumesParams
- type ListVolumesRequestObject
- type ListVolumesResponse
- type ListVolumesResponseObject
- type MemoryReclaimAction
- type MemoryReclaimActionHypervisor
- type MemoryReclaimRequest
- type MemoryReclaimResponse
- type MemoryReclaimResponseHostPressureState
- type MiddlewareFunc
- type PassthroughDevice
- type PathInfo
- type ReclaimMemory200JSONResponse
- type ReclaimMemory400JSONResponse
- type ReclaimMemory401JSONResponse
- type ReclaimMemory500JSONResponse
- type ReclaimMemoryJSONRequestBody
- type ReclaimMemoryRequestObject
- type ReclaimMemoryResponse
- type ReclaimMemoryResponseObject
- type RequestEditorFn
- type RequiredHeaderError
- type RequiredParamError
- type ResourceAllocation
- type ResourceStatus
- type Resources
- type RestartPolicy
- type RestartPolicyPolicy
- type RestartStatus
- type RestartStatusBlockedReason
- type RestartStatusLastReason
- type RestoreInstance200JSONResponse
- type RestoreInstance404JSONResponse
- type RestoreInstance409JSONResponse
- type RestoreInstance500JSONResponse
- type RestoreInstanceRequestObject
- type RestoreInstanceResponse
- type RestoreInstanceResponseObject
- type RestoreInstanceSnapshot200JSONResponse
- type RestoreInstanceSnapshot400JSONResponse
- type RestoreInstanceSnapshot404JSONResponse
- type RestoreInstanceSnapshot409JSONResponse
- type RestoreInstanceSnapshot500JSONResponse
- type RestoreInstanceSnapshot501JSONResponse
- type RestoreInstanceSnapshotJSONRequestBody
- type RestoreInstanceSnapshotRequestObject
- type RestoreInstanceSnapshotResponse
- type RestoreInstanceSnapshotResponseObject
- type RestoreSnapshotRequest
- type RestoreSnapshotRequestTargetHypervisor
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AttachVolume(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CancelBuild(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateBuild(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateDevice(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateImage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateIngress(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateInstanceSnapshot(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateVolume(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateVolumeFromArchive(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteDevice(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteImage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteIngress(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteSnapshot(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteVolume(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DetachVolume(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ForkInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ForkSnapshot(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAutoStandbyStatus(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetBuild(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetBuildEvents(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDevice(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetImage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetIngress(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInstanceLogs(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetInstanceStats(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetResources(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSnapshot(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetVolume(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListAvailableDevices(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListBuilds(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListDevices(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListImages(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListIngresses(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListInstances(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListSnapshots(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListVolumes(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReclaimMemory(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RestoreInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RestoreInstanceSnapshot(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StandbyInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StartInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StatInstancePath(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) StopInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateInstance(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) WaitForInstanceState(w http.ResponseWriter, r *http.Request)
- type SetInstanceSnapshotSchedule200JSONResponse
- type SetInstanceSnapshotSchedule400JSONResponse
- type SetInstanceSnapshotSchedule404JSONResponse
- type SetInstanceSnapshotSchedule500JSONResponse
- type SetInstanceSnapshotScheduleJSONRequestBody
- type SetInstanceSnapshotScheduleRequestObject
- type SetInstanceSnapshotScheduleResponse
- type SetInstanceSnapshotScheduleResponseObject
- type SetSnapshotScheduleRequest
- type Snapshot
- type SnapshotCompressionConfig
- type SnapshotCompressionConfigAlgorithm
- type SnapshotCompressionState
- type SnapshotKind
- type SnapshotPolicy
- type SnapshotSchedule
- type SnapshotScheduleRetention
- type SnapshotSourceHypervisor
- type SnapshotTargetState
- type StandbyInstance200JSONResponse
- type StandbyInstance400JSONResponse
- type StandbyInstance404JSONResponse
- type StandbyInstance409JSONResponse
- type StandbyInstance500JSONResponse
- type StandbyInstanceJSONRequestBody
- type StandbyInstanceRequest
- type StandbyInstanceRequestObject
- type StandbyInstanceResponse
- type StandbyInstanceResponseObject
- type StartInstance200JSONResponse
- type StartInstance404JSONResponse
- type StartInstance409JSONResponse
- type StartInstance500JSONResponse
- type StartInstanceJSONBody
- type StartInstanceJSONRequestBody
- type StartInstanceRequestObject
- type StartInstanceResponse
- type StartInstanceResponseObject
- type StatInstancePath200JSONResponse
- type StatInstancePath404JSONResponse
- type StatInstancePath409JSONResponse
- type StatInstancePath500JSONResponse
- type StatInstancePathParams
- type StatInstancePathRequestObject
- type StatInstancePathResponse
- type StatInstancePathResponseObject
- type StopInstance200JSONResponse
- type StopInstance404JSONResponse
- type StopInstance409JSONResponse
- type StopInstance500JSONResponse
- type StopInstanceRequestObject
- type StopInstanceResponse
- type StopInstanceResponseObject
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type Tags
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type Unimplemented
- func (_ Unimplemented) AttachVolume(w http.ResponseWriter, r *http.Request, id string, volumeId string)
- func (_ Unimplemented) CancelBuild(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) CreateBuild(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateDevice(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateImage(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateIngress(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateInstance(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateInstanceSnapshot(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) CreateVolume(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateVolumeFromArchive(w http.ResponseWriter, r *http.Request, params CreateVolumeFromArchiveParams)
- func (_ Unimplemented) DeleteDevice(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) DeleteImage(w http.ResponseWriter, r *http.Request, name string)
- func (_ Unimplemented) DeleteIngress(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) DeleteInstance(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) DeleteInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) DeleteSnapshot(w http.ResponseWriter, r *http.Request, snapshotId string)
- func (_ Unimplemented) DeleteVolume(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) DetachVolume(w http.ResponseWriter, r *http.Request, id string, volumeId string)
- func (_ Unimplemented) ForkInstance(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) ForkSnapshot(w http.ResponseWriter, r *http.Request, snapshotId string)
- func (_ Unimplemented) GetAutoStandbyStatus(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) GetBuild(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) GetBuildEvents(w http.ResponseWriter, r *http.Request, id string, params GetBuildEventsParams)
- func (_ Unimplemented) GetDevice(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) GetHealth(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetImage(w http.ResponseWriter, r *http.Request, name string)
- func (_ Unimplemented) GetIngress(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) GetInstance(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) GetInstanceLogs(w http.ResponseWriter, r *http.Request, id string, ...)
- func (_ Unimplemented) GetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) GetInstanceStats(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) GetResources(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetSnapshot(w http.ResponseWriter, r *http.Request, snapshotId string)
- func (_ Unimplemented) GetVolume(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) ListAvailableDevices(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListBuilds(w http.ResponseWriter, r *http.Request, params ListBuildsParams)
- func (_ Unimplemented) ListDevices(w http.ResponseWriter, r *http.Request, params ListDevicesParams)
- func (_ Unimplemented) ListImages(w http.ResponseWriter, r *http.Request, params ListImagesParams)
- func (_ Unimplemented) ListIngresses(w http.ResponseWriter, r *http.Request, params ListIngressesParams)
- func (_ Unimplemented) ListInstances(w http.ResponseWriter, r *http.Request, params ListInstancesParams)
- func (_ Unimplemented) ListSnapshots(w http.ResponseWriter, r *http.Request, params ListSnapshotsParams)
- func (_ Unimplemented) ListVolumes(w http.ResponseWriter, r *http.Request, params ListVolumesParams)
- func (_ Unimplemented) ReclaimMemory(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) RestoreInstance(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) RestoreInstanceSnapshot(w http.ResponseWriter, r *http.Request, id string, snapshotId string)
- func (_ Unimplemented) SetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) StandbyInstance(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) StartInstance(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) StatInstancePath(w http.ResponseWriter, r *http.Request, id string, ...)
- func (_ Unimplemented) StopInstance(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) UpdateInstance(w http.ResponseWriter, r *http.Request, id string)
- func (_ Unimplemented) WaitForInstanceState(w http.ResponseWriter, r *http.Request, id string, ...)
- type UnmarshalingParamError
- type UpdateInstance200JSONResponse
- type UpdateInstance400JSONResponse
- type UpdateInstance404JSONResponse
- type UpdateInstance409JSONResponse
- type UpdateInstance500JSONResponse
- type UpdateInstanceJSONRequestBody
- type UpdateInstanceRequest
- type UpdateInstanceRequestObject
- type UpdateInstanceResponse
- type UpdateInstanceResponseObject
- type Volume
- type VolumeAttachment
- type VolumeMount
- type WaitForInstanceState200JSONResponse
- type WaitForInstanceState400JSONResponse
- type WaitForInstanceState404JSONResponse
- type WaitForInstanceState500JSONResponse
- type WaitForInstanceStateParams
- type WaitForInstanceStateRequestObject
- type WaitForInstanceStateResponse
- type WaitForInstanceStateResponseObject
- type WaitForStateResponse
Constants ¶
const (
BearerAuthScopes = "bearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func NewAttachVolumeRequest ¶
func NewAttachVolumeRequest(server string, id string, volumeId string, body AttachVolumeJSONRequestBody) (*http.Request, error)
NewAttachVolumeRequest calls the generic AttachVolume builder with application/json body
func NewAttachVolumeRequestWithBody ¶
func NewAttachVolumeRequestWithBody(server string, id string, volumeId string, contentType string, body io.Reader) (*http.Request, error)
NewAttachVolumeRequestWithBody generates requests for AttachVolume with any type of body
func NewCancelBuildRequest ¶
NewCancelBuildRequest generates requests for CancelBuild
func NewCreateBuildRequestWithBody ¶
func NewCreateBuildRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateBuildRequestWithBody generates requests for CreateBuild with any type of body
func NewCreateDeviceRequest ¶
func NewCreateDeviceRequest(server string, body CreateDeviceJSONRequestBody) (*http.Request, error)
NewCreateDeviceRequest calls the generic CreateDevice builder with application/json body
func NewCreateDeviceRequestWithBody ¶
func NewCreateDeviceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateDeviceRequestWithBody generates requests for CreateDevice with any type of body
func NewCreateImageRequest ¶
func NewCreateImageRequest(server string, body CreateImageJSONRequestBody) (*http.Request, error)
NewCreateImageRequest calls the generic CreateImage builder with application/json body
func NewCreateImageRequestWithBody ¶
func NewCreateImageRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateImageRequestWithBody generates requests for CreateImage with any type of body
func NewCreateIngressRequest ¶
func NewCreateIngressRequest(server string, body CreateIngressJSONRequestBody) (*http.Request, error)
NewCreateIngressRequest calls the generic CreateIngress builder with application/json body
func NewCreateIngressRequestWithBody ¶
func NewCreateIngressRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateIngressRequestWithBody generates requests for CreateIngress with any type of body
func NewCreateInstanceRequest ¶
func NewCreateInstanceRequest(server string, body CreateInstanceJSONRequestBody) (*http.Request, error)
NewCreateInstanceRequest calls the generic CreateInstance builder with application/json body
func NewCreateInstanceRequestWithBody ¶
func NewCreateInstanceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateInstanceRequestWithBody generates requests for CreateInstance with any type of body
func NewCreateInstanceSnapshotRequest ¶ added in v0.1.0
func NewCreateInstanceSnapshotRequest(server string, id string, body CreateInstanceSnapshotJSONRequestBody) (*http.Request, error)
NewCreateInstanceSnapshotRequest calls the generic CreateInstanceSnapshot builder with application/json body
func NewCreateInstanceSnapshotRequestWithBody ¶ added in v0.1.0
func NewCreateInstanceSnapshotRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewCreateInstanceSnapshotRequestWithBody generates requests for CreateInstanceSnapshot with any type of body
func NewCreateVolumeFromArchiveRequestWithBody ¶ added in v0.0.6
func NewCreateVolumeFromArchiveRequestWithBody(server string, params *CreateVolumeFromArchiveParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateVolumeFromArchiveRequestWithBody generates requests for CreateVolumeFromArchive with any type of body
func NewCreateVolumeRequest ¶
func NewCreateVolumeRequest(server string, body CreateVolumeJSONRequestBody) (*http.Request, error)
NewCreateVolumeRequest calls the generic CreateVolume builder with application/json body
func NewCreateVolumeRequestWithBody ¶
func NewCreateVolumeRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateVolumeRequestWithBody generates requests for CreateVolume with any type of body
func NewDeleteDeviceRequest ¶
NewDeleteDeviceRequest generates requests for DeleteDevice
func NewDeleteImageRequest ¶
NewDeleteImageRequest generates requests for DeleteImage
func NewDeleteIngressRequest ¶
NewDeleteIngressRequest generates requests for DeleteIngress
func NewDeleteInstanceRequest ¶
NewDeleteInstanceRequest generates requests for DeleteInstance
func NewDeleteInstanceSnapshotScheduleRequest ¶ added in v0.1.0
NewDeleteInstanceSnapshotScheduleRequest generates requests for DeleteInstanceSnapshotSchedule
func NewDeleteSnapshotRequest ¶ added in v0.1.0
NewDeleteSnapshotRequest generates requests for DeleteSnapshot
func NewDeleteVolumeRequest ¶
NewDeleteVolumeRequest generates requests for DeleteVolume
func NewDetachVolumeRequest ¶
NewDetachVolumeRequest generates requests for DetachVolume
func NewForkInstanceRequest ¶ added in v0.0.7
func NewForkInstanceRequest(server string, id string, body ForkInstanceJSONRequestBody) (*http.Request, error)
NewForkInstanceRequest calls the generic ForkInstance builder with application/json body
func NewForkInstanceRequestWithBody ¶ added in v0.0.7
func NewForkInstanceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewForkInstanceRequestWithBody generates requests for ForkInstance with any type of body
func NewForkSnapshotRequest ¶ added in v0.1.0
func NewForkSnapshotRequest(server string, snapshotId string, body ForkSnapshotJSONRequestBody) (*http.Request, error)
NewForkSnapshotRequest calls the generic ForkSnapshot builder with application/json body
func NewForkSnapshotRequestWithBody ¶ added in v0.1.0
func NewForkSnapshotRequestWithBody(server string, snapshotId string, contentType string, body io.Reader) (*http.Request, error)
NewForkSnapshotRequestWithBody generates requests for ForkSnapshot with any type of body
func NewGetAutoStandbyStatusRequest ¶ added in v0.1.0
NewGetAutoStandbyStatusRequest generates requests for GetAutoStandbyStatus
func NewGetBuildEventsRequest ¶
func NewGetBuildEventsRequest(server string, id string, params *GetBuildEventsParams) (*http.Request, error)
NewGetBuildEventsRequest generates requests for GetBuildEvents
func NewGetBuildRequest ¶
NewGetBuildRequest generates requests for GetBuild
func NewGetDeviceRequest ¶
NewGetDeviceRequest generates requests for GetDevice
func NewGetHealthRequest ¶
NewGetHealthRequest generates requests for GetHealth
func NewGetImageRequest ¶
NewGetImageRequest generates requests for GetImage
func NewGetIngressRequest ¶
NewGetIngressRequest generates requests for GetIngress
func NewGetInstanceLogsRequest ¶
func NewGetInstanceLogsRequest(server string, id string, params *GetInstanceLogsParams) (*http.Request, error)
NewGetInstanceLogsRequest generates requests for GetInstanceLogs
func NewGetInstanceRequest ¶
NewGetInstanceRequest generates requests for GetInstance
func NewGetInstanceSnapshotScheduleRequest ¶ added in v0.1.0
NewGetInstanceSnapshotScheduleRequest generates requests for GetInstanceSnapshotSchedule
func NewGetInstanceStatsRequest ¶ added in v0.0.6
NewGetInstanceStatsRequest generates requests for GetInstanceStats
func NewGetResourcesRequest ¶
NewGetResourcesRequest generates requests for GetResources
func NewGetSnapshotRequest ¶ added in v0.1.0
NewGetSnapshotRequest generates requests for GetSnapshot
func NewGetVolumeRequest ¶
NewGetVolumeRequest generates requests for GetVolume
func NewListAvailableDevicesRequest ¶
NewListAvailableDevicesRequest generates requests for ListAvailableDevices
func NewListBuildsRequest ¶
func NewListBuildsRequest(server string, params *ListBuildsParams) (*http.Request, error)
NewListBuildsRequest generates requests for ListBuilds
func NewListDevicesRequest ¶
func NewListDevicesRequest(server string, params *ListDevicesParams) (*http.Request, error)
NewListDevicesRequest generates requests for ListDevices
func NewListImagesRequest ¶
func NewListImagesRequest(server string, params *ListImagesParams) (*http.Request, error)
NewListImagesRequest generates requests for ListImages
func NewListIngressesRequest ¶
func NewListIngressesRequest(server string, params *ListIngressesParams) (*http.Request, error)
NewListIngressesRequest generates requests for ListIngresses
func NewListInstancesRequest ¶
func NewListInstancesRequest(server string, params *ListInstancesParams) (*http.Request, error)
NewListInstancesRequest generates requests for ListInstances
func NewListSnapshotsRequest ¶ added in v0.1.0
func NewListSnapshotsRequest(server string, params *ListSnapshotsParams) (*http.Request, error)
NewListSnapshotsRequest generates requests for ListSnapshots
func NewListVolumesRequest ¶
func NewListVolumesRequest(server string, params *ListVolumesParams) (*http.Request, error)
NewListVolumesRequest generates requests for ListVolumes
func NewReclaimMemoryRequest ¶ added in v0.1.0
func NewReclaimMemoryRequest(server string, body ReclaimMemoryJSONRequestBody) (*http.Request, error)
NewReclaimMemoryRequest calls the generic ReclaimMemory builder with application/json body
func NewReclaimMemoryRequestWithBody ¶ added in v0.1.0
func NewReclaimMemoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewReclaimMemoryRequestWithBody generates requests for ReclaimMemory with any type of body
func NewRestoreInstanceRequest ¶
NewRestoreInstanceRequest generates requests for RestoreInstance
func NewRestoreInstanceSnapshotRequest ¶ added in v0.1.0
func NewRestoreInstanceSnapshotRequest(server string, id string, snapshotId string, body RestoreInstanceSnapshotJSONRequestBody) (*http.Request, error)
NewRestoreInstanceSnapshotRequest calls the generic RestoreInstanceSnapshot builder with application/json body
func NewRestoreInstanceSnapshotRequestWithBody ¶ added in v0.1.0
func NewRestoreInstanceSnapshotRequestWithBody(server string, id string, snapshotId string, contentType string, body io.Reader) (*http.Request, error)
NewRestoreInstanceSnapshotRequestWithBody generates requests for RestoreInstanceSnapshot with any type of body
func NewSetInstanceSnapshotScheduleRequest ¶ added in v0.1.0
func NewSetInstanceSnapshotScheduleRequest(server string, id string, body SetInstanceSnapshotScheduleJSONRequestBody) (*http.Request, error)
NewSetInstanceSnapshotScheduleRequest calls the generic SetInstanceSnapshotSchedule builder with application/json body
func NewSetInstanceSnapshotScheduleRequestWithBody ¶ added in v0.1.0
func NewSetInstanceSnapshotScheduleRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewSetInstanceSnapshotScheduleRequestWithBody generates requests for SetInstanceSnapshotSchedule with any type of body
func NewStandbyInstanceRequest ¶
func NewStandbyInstanceRequest(server string, id string, body StandbyInstanceJSONRequestBody) (*http.Request, error)
NewStandbyInstanceRequest calls the generic StandbyInstance builder with application/json body
func NewStandbyInstanceRequestWithBody ¶ added in v0.1.0
func NewStandbyInstanceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewStandbyInstanceRequestWithBody generates requests for StandbyInstance with any type of body
func NewStartInstanceRequest ¶
func NewStartInstanceRequest(server string, id string, body StartInstanceJSONRequestBody) (*http.Request, error)
NewStartInstanceRequest calls the generic StartInstance builder with application/json body
func NewStartInstanceRequestWithBody ¶ added in v0.0.6
func NewStartInstanceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewStartInstanceRequestWithBody generates requests for StartInstance with any type of body
func NewStatInstancePathRequest ¶
func NewStatInstancePathRequest(server string, id string, params *StatInstancePathParams) (*http.Request, error)
NewStatInstancePathRequest generates requests for StatInstancePath
func NewStopInstanceRequest ¶
NewStopInstanceRequest generates requests for StopInstance
func NewUpdateInstanceRequest ¶ added in v0.1.0
func NewUpdateInstanceRequest(server string, id string, body UpdateInstanceJSONRequestBody) (*http.Request, error)
NewUpdateInstanceRequest calls the generic UpdateInstance builder with application/json body
func NewUpdateInstanceRequestWithBody ¶ added in v0.1.0
func NewUpdateInstanceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInstanceRequestWithBody generates requests for UpdateInstance with any type of body
func NewWaitForInstanceStateRequest ¶ added in v0.1.0
func NewWaitForInstanceStateRequest(server string, id string, params *WaitForInstanceStateParams) (*http.Request, error)
NewWaitForInstanceStateRequest generates requests for WaitForInstanceState
Types ¶
type AttachVolume200JSONResponse ¶
type AttachVolume200JSONResponse Instance
func (AttachVolume200JSONResponse) VisitAttachVolumeResponse ¶
func (response AttachVolume200JSONResponse) VisitAttachVolumeResponse(w http.ResponseWriter) error
type AttachVolume404JSONResponse ¶
type AttachVolume404JSONResponse Error
func (AttachVolume404JSONResponse) VisitAttachVolumeResponse ¶
func (response AttachVolume404JSONResponse) VisitAttachVolumeResponse(w http.ResponseWriter) error
type AttachVolume409JSONResponse ¶
type AttachVolume409JSONResponse Error
func (AttachVolume409JSONResponse) VisitAttachVolumeResponse ¶
func (response AttachVolume409JSONResponse) VisitAttachVolumeResponse(w http.ResponseWriter) error
type AttachVolume500JSONResponse ¶
type AttachVolume500JSONResponse Error
func (AttachVolume500JSONResponse) VisitAttachVolumeResponse ¶
func (response AttachVolume500JSONResponse) VisitAttachVolumeResponse(w http.ResponseWriter) error
type AttachVolumeJSONRequestBody ¶
type AttachVolumeJSONRequestBody = AttachVolumeRequest
AttachVolumeJSONRequestBody defines body for AttachVolume for application/json ContentType.
type AttachVolumeRequest ¶
type AttachVolumeRequest struct {
// MountPath Path where volume should be mounted
MountPath string `json:"mount_path"`
// Readonly Mount as read-only
Readonly *bool `json:"readonly,omitempty"`
}
AttachVolumeRequest defines model for AttachVolumeRequest.
type AttachVolumeRequestObject ¶
type AttachVolumeRequestObject struct {
Id string `json:"id"`
VolumeId string `json:"volumeId"`
Body *AttachVolumeJSONRequestBody
}
type AttachVolumeResponse ¶
type AttachVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Instance
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseAttachVolumeResponse ¶
func ParseAttachVolumeResponse(rsp *http.Response) (*AttachVolumeResponse, error)
ParseAttachVolumeResponse parses an HTTP response from a AttachVolumeWithResponse call
func (AttachVolumeResponse) Status ¶
func (r AttachVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (AttachVolumeResponse) StatusCode ¶
func (r AttachVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AttachVolumeResponseObject ¶
type AttachVolumeResponseObject interface {
VisitAttachVolumeResponse(w http.ResponseWriter) error
}
type AutoStandbyPolicy ¶ added in v0.1.0
type AutoStandbyPolicy struct {
// Enabled Whether automatic standby is enabled for this instance.
Enabled *bool `json:"enabled,omitempty"`
// IdleTimeout How long the instance must have zero qualifying inbound TCP connections
// before Hypeman places it into standby.
IdleTimeout *string `json:"idle_timeout,omitempty"`
// IgnoreDestinationPorts Optional destination TCP ports that should not keep the instance awake.
IgnoreDestinationPorts *[]int `json:"ignore_destination_ports,omitempty"`
// IgnoreSourceCidrs Optional client CIDRs that should not keep the instance awake.
IgnoreSourceCidrs *[]string `json:"ignore_source_cidrs,omitempty"`
}
AutoStandbyPolicy Linux-only automatic standby policy based on active inbound TCP connections observed from the host conntrack table.
type AutoStandbyStatus ¶ added in v0.1.0
type AutoStandbyStatus struct {
// ActiveInboundConnections Number of currently tracked qualifying inbound TCP connections.
ActiveInboundConnections int `json:"active_inbound_connections"`
// Configured Whether the instance has any auto-standby policy configured.
Configured bool `json:"configured"`
// CountdownRemaining Remaining time before the controller attempts standby, when applicable.
CountdownRemaining *string `json:"countdown_remaining"`
// Eligible Whether the instance is currently eligible to enter standby.
Eligible bool `json:"eligible"`
// Enabled Whether the configured auto-standby policy is enabled.
Enabled bool `json:"enabled"`
// IdleSince When the controller most recently observed the instance become idle.
IdleSince *time.Time `json:"idle_since"`
// IdleTimeout Configured idle timeout from the auto-standby policy.
IdleTimeout *string `json:"idle_timeout"`
// LastInboundActivityAt Timestamp of the most recent qualifying inbound TCP activity the controller observed.
LastInboundActivityAt *time.Time `json:"last_inbound_activity_at"`
// NextStandbyAt When the controller expects to attempt standby next, if a countdown is active.
NextStandbyAt *time.Time `json:"next_standby_at"`
Reason AutoStandbyStatusReason `json:"reason"`
Status AutoStandbyStatusStatus `json:"status"`
// Supported Whether the current host platform supports auto-standby diagnostics.
Supported bool `json:"supported"`
// TrackingMode Diagnostic identifier for the runtime tracking mode in use.
TrackingMode string `json:"tracking_mode"`
}
AutoStandbyStatus defines model for AutoStandbyStatus.
type AutoStandbyStatusReason ¶ added in v0.1.0
type AutoStandbyStatusReason string
AutoStandbyStatusReason defines model for AutoStandbyStatus.Reason.
const ( AutoStandbyStatusReasonActiveInboundConnections AutoStandbyStatusReason = "active_inbound_connections" AutoStandbyStatusReasonHasVgpu AutoStandbyStatusReason = "has_vgpu" AutoStandbyStatusReasonIdleTimeoutNotElapsed AutoStandbyStatusReason = "idle_timeout_not_elapsed" AutoStandbyStatusReasonInstanceNotRunning AutoStandbyStatusReason = "instance_not_running" AutoStandbyStatusReasonMissingIp AutoStandbyStatusReason = "missing_ip" AutoStandbyStatusReasonNetworkDisabled AutoStandbyStatusReason = "network_disabled" AutoStandbyStatusReasonObserverError AutoStandbyStatusReason = "observer_error" AutoStandbyStatusReasonPolicyDisabled AutoStandbyStatusReason = "policy_disabled" AutoStandbyStatusReasonPolicyMissing AutoStandbyStatusReason = "policy_missing" AutoStandbyStatusReasonReadyForStandby AutoStandbyStatusReason = "ready_for_standby" AutoStandbyStatusReasonUnsupportedPlatform AutoStandbyStatusReason = "unsupported_platform" )
Defines values for AutoStandbyStatusReason.
type AutoStandbyStatusStatus ¶ added in v0.1.0
type AutoStandbyStatusStatus string
AutoStandbyStatusStatus defines model for AutoStandbyStatus.Status.
const ( AutoStandbyStatusStatusActive AutoStandbyStatusStatus = "active" AutoStandbyStatusStatusDisabled AutoStandbyStatusStatus = "disabled" AutoStandbyStatusStatusError AutoStandbyStatusStatus = "error" AutoStandbyStatusStatusIdleCountdown AutoStandbyStatusStatus = "idle_countdown" AutoStandbyStatusStatusIneligible AutoStandbyStatusStatus = "ineligible" AutoStandbyStatusStatusReadyForStandby AutoStandbyStatusStatus = "ready_for_standby" AutoStandbyStatusStatusStandbyRequested AutoStandbyStatusStatus = "standby_requested" AutoStandbyStatusStatusUnsupported AutoStandbyStatusStatus = "unsupported" )
Defines values for AutoStandbyStatusStatus.
type AvailableDevice ¶
type AvailableDevice struct {
// CurrentDriver Currently bound driver (null if none)
CurrentDriver *string `json:"current_driver"`
// DeviceId PCI device ID (hex)
DeviceId string `json:"device_id"`
// DeviceName Human-readable device name
DeviceName *string `json:"device_name,omitempty"`
// IommuGroup IOMMU group number
IommuGroup int `json:"iommu_group"`
// PciAddress PCI address
PciAddress string `json:"pci_address"`
// VendorId PCI vendor ID (hex)
VendorId string `json:"vendor_id"`
// VendorName Human-readable vendor name
VendorName *string `json:"vendor_name,omitempty"`
}
AvailableDevice defines model for AvailableDevice.
type Build ¶
type Build struct {
// BuilderInstanceId Instance ID of the builder VM (for debugging)
BuilderInstanceId *string `json:"builder_instance_id"`
// CompletedAt Build completion timestamp
CompletedAt *time.Time `json:"completed_at"`
// CreatedAt Build creation timestamp
CreatedAt time.Time `json:"created_at"`
// DurationMs Build duration in milliseconds
DurationMs *int64 `json:"duration_ms"`
// Error Error message (only when status is failed)
Error *string `json:"error"`
// Id Build job identifier
Id string `json:"id"`
// ImageDigest Digest of built image (only when status is ready)
ImageDigest *string `json:"image_digest"`
// ImageRef Full image reference (only when status is ready)
ImageRef *string `json:"image_ref"`
Provenance *BuildProvenance `json:"provenance,omitempty"`
// QueuePosition Position in build queue (only when status is queued)
QueuePosition *int `json:"queue_position"`
// StartedAt Build start timestamp
StartedAt *time.Time `json:"started_at"`
// Status Build job status
Status BuildStatus `json:"status"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
}
Build defines model for Build.
type BuildEvent ¶
type BuildEvent struct {
// Content Log line content (only for type=log)
Content *string `json:"content,omitempty"`
// Status Build job status
Status *BuildStatus `json:"status,omitempty"`
// Timestamp Event timestamp
Timestamp time.Time `json:"timestamp"`
// Type Event type
Type BuildEventType `json:"type"`
}
BuildEvent defines model for BuildEvent.
type BuildEventType ¶
type BuildEventType string
BuildEventType Event type
const ( Heartbeat BuildEventType = "heartbeat" Log BuildEventType = "log" Status BuildEventType = "status" )
Defines values for BuildEventType.
type BuildProvenance ¶
type BuildProvenance struct {
// BaseImageDigest Pinned base image digest used
BaseImageDigest *string `json:"base_image_digest,omitempty"`
// BuildkitVersion BuildKit version used
BuildkitVersion *string `json:"buildkit_version,omitempty"`
// LockfileHashes Map of lockfile names to SHA256 hashes
LockfileHashes *map[string]string `json:"lockfile_hashes,omitempty"`
// SourceHash SHA256 hash of source tarball
SourceHash *string `json:"source_hash,omitempty"`
// Timestamp Build completion timestamp
Timestamp *time.Time `json:"timestamp,omitempty"`
}
BuildProvenance defines model for BuildProvenance.
type BuildStatus ¶
type BuildStatus string
BuildStatus Build job status
const ( BuildStatusBuilding BuildStatus = "building" BuildStatusCancelled BuildStatus = "cancelled" BuildStatusFailed BuildStatus = "failed" BuildStatusPushing BuildStatus = "pushing" BuildStatusQueued BuildStatus = "queued" BuildStatusReady BuildStatus = "ready" )
Defines values for BuildStatus.
type CancelBuild204Response ¶
type CancelBuild204Response struct {
}
func (CancelBuild204Response) VisitCancelBuildResponse ¶
func (response CancelBuild204Response) VisitCancelBuildResponse(w http.ResponseWriter) error
type CancelBuild404JSONResponse ¶
type CancelBuild404JSONResponse Error
func (CancelBuild404JSONResponse) VisitCancelBuildResponse ¶
func (response CancelBuild404JSONResponse) VisitCancelBuildResponse(w http.ResponseWriter) error
type CancelBuild409JSONResponse ¶
type CancelBuild409JSONResponse Error
func (CancelBuild409JSONResponse) VisitCancelBuildResponse ¶
func (response CancelBuild409JSONResponse) VisitCancelBuildResponse(w http.ResponseWriter) error
type CancelBuild500JSONResponse ¶
type CancelBuild500JSONResponse Error
func (CancelBuild500JSONResponse) VisitCancelBuildResponse ¶
func (response CancelBuild500JSONResponse) VisitCancelBuildResponse(w http.ResponseWriter) error
type CancelBuildRequestObject ¶
type CancelBuildRequestObject struct {
Id string `json:"id"`
}
type CancelBuildResponse ¶
type CancelBuildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseCancelBuildResponse ¶
func ParseCancelBuildResponse(rsp *http.Response) (*CancelBuildResponse, error)
ParseCancelBuildResponse parses an HTTP response from a CancelBuildWithResponse call
func (CancelBuildResponse) Status ¶
func (r CancelBuildResponse) Status() string
Status returns HTTPResponse.Status
func (CancelBuildResponse) StatusCode ¶
func (r CancelBuildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CancelBuildResponseObject ¶
type CancelBuildResponseObject interface {
VisitCancelBuildResponse(w http.ResponseWriter) error
}
type ChiServerOptions ¶
type ChiServerOptions struct {
BaseURL string
BaseRouter chi.Router
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
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) AttachVolume ¶
func (c *Client) AttachVolume(ctx context.Context, id string, volumeId string, body AttachVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AttachVolumeWithBody ¶
func (*Client) CancelBuild ¶
func (*Client) CreateBuildWithBody ¶
func (*Client) CreateDevice ¶
func (c *Client) CreateDevice(ctx context.Context, body CreateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateDeviceWithBody ¶
func (*Client) CreateImage ¶
func (c *Client) CreateImage(ctx context.Context, body CreateImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateImageWithBody ¶
func (*Client) CreateIngress ¶
func (c *Client) CreateIngress(ctx context.Context, body CreateIngressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateIngressWithBody ¶
func (*Client) CreateInstance ¶
func (c *Client) CreateInstance(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInstanceSnapshot ¶ added in v0.1.0
func (c *Client) CreateInstanceSnapshot(ctx context.Context, id string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInstanceSnapshotWithBody ¶ added in v0.1.0
func (*Client) CreateInstanceWithBody ¶
func (*Client) CreateVolume ¶
func (c *Client) CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateVolumeFromArchiveWithBody ¶ added in v0.0.6
func (*Client) CreateVolumeWithBody ¶
func (*Client) DeleteDevice ¶
func (*Client) DeleteImage ¶
func (*Client) DeleteIngress ¶
func (*Client) DeleteInstance ¶
func (*Client) DeleteInstanceSnapshotSchedule ¶ added in v0.1.0
func (*Client) DeleteSnapshot ¶ added in v0.1.0
func (*Client) DeleteVolume ¶
func (*Client) DetachVolume ¶
func (*Client) ForkInstance ¶ added in v0.0.7
func (c *Client) ForkInstance(ctx context.Context, id string, body ForkInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForkInstanceWithBody ¶ added in v0.0.7
func (*Client) ForkSnapshot ¶ added in v0.1.0
func (c *Client) ForkSnapshot(ctx context.Context, snapshotId string, body ForkSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ForkSnapshotWithBody ¶ added in v0.1.0
func (*Client) GetAutoStandbyStatus ¶ added in v0.1.0
func (*Client) GetBuildEvents ¶
func (c *Client) GetBuildEvents(ctx context.Context, id string, params *GetBuildEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetIngress ¶
func (*Client) GetInstance ¶
func (*Client) GetInstanceLogs ¶
func (c *Client) GetInstanceLogs(ctx context.Context, id string, params *GetInstanceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetInstanceSnapshotSchedule ¶ added in v0.1.0
func (*Client) GetInstanceStats ¶ added in v0.0.6
func (*Client) GetResources ¶
func (*Client) GetSnapshot ¶ added in v0.1.0
func (*Client) ListAvailableDevices ¶
func (*Client) ListBuilds ¶
func (c *Client) ListBuilds(ctx context.Context, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListDevices ¶
func (c *Client) ListDevices(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListImages ¶
func (c *Client) ListImages(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListIngresses ¶
func (c *Client) ListIngresses(ctx context.Context, params *ListIngressesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInstances ¶
func (c *Client) ListInstances(ctx context.Context, params *ListInstancesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListSnapshots ¶ added in v0.1.0
func (c *Client) ListSnapshots(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListVolumes ¶
func (c *Client) ListVolumes(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReclaimMemory ¶ added in v0.1.0
func (c *Client) ReclaimMemory(ctx context.Context, body ReclaimMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ReclaimMemoryWithBody ¶ added in v0.1.0
func (*Client) RestoreInstance ¶
func (*Client) RestoreInstanceSnapshot ¶ added in v0.1.0
func (c *Client) RestoreInstanceSnapshot(ctx context.Context, id string, snapshotId string, body RestoreInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) RestoreInstanceSnapshotWithBody ¶ added in v0.1.0
func (*Client) SetInstanceSnapshotSchedule ¶ added in v0.1.0
func (c *Client) SetInstanceSnapshotSchedule(ctx context.Context, id string, body SetInstanceSnapshotScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SetInstanceSnapshotScheduleWithBody ¶ added in v0.1.0
func (*Client) StandbyInstance ¶
func (c *Client) StandbyInstance(ctx context.Context, id string, body StandbyInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StandbyInstanceWithBody ¶ added in v0.1.0
func (*Client) StartInstance ¶
func (c *Client) StartInstance(ctx context.Context, id string, body StartInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StartInstanceWithBody ¶ added in v0.0.6
func (*Client) StatInstancePath ¶
func (c *Client) StatInstancePath(ctx context.Context, id string, params *StatInstancePathParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) StopInstance ¶
func (*Client) UpdateInstance ¶ added in v0.1.0
func (c *Client) UpdateInstance(ctx context.Context, id string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInstanceWithBody ¶ added in v0.1.0
func (*Client) WaitForInstanceState ¶ added in v0.1.0
func (c *Client) WaitForInstanceState(ctx context.Context, id string, params *WaitForInstanceStateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListBuilds request
ListBuilds(ctx context.Context, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateBuildWithBody request with any body
CreateBuildWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelBuild request
CancelBuild(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBuild request
GetBuild(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBuildEvents request
GetBuildEvents(ctx context.Context, id string, params *GetBuildEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDevices request
ListDevices(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDeviceWithBody request with any body
CreateDeviceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDevice(ctx context.Context, body CreateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAvailableDevices request
ListAvailableDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteDevice request
DeleteDevice(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDevice request
GetDevice(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetHealth request
GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListImages request
ListImages(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateImageWithBody request with any body
CreateImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateImage(ctx context.Context, body CreateImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteImage request
DeleteImage(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetImage request
GetImage(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListIngresses request
ListIngresses(ctx context.Context, params *ListIngressesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateIngressWithBody request with any body
CreateIngressWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateIngress(ctx context.Context, body CreateIngressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteIngress request
DeleteIngress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetIngress request
GetIngress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInstances request
ListInstances(ctx context.Context, params *ListInstancesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInstanceWithBody request with any body
CreateInstanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInstance(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteInstance request
DeleteInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInstance request
GetInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateInstanceWithBody request with any body
UpdateInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateInstance(ctx context.Context, id string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetAutoStandbyStatus request
GetAutoStandbyStatus(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ForkInstanceWithBody request with any body
ForkInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ForkInstance(ctx context.Context, id string, body ForkInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInstanceLogs request
GetInstanceLogs(ctx context.Context, id string, params *GetInstanceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// RestoreInstance request
RestoreInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteInstanceSnapshotSchedule request
DeleteInstanceSnapshotSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInstanceSnapshotSchedule request
GetInstanceSnapshotSchedule(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// SetInstanceSnapshotScheduleWithBody request with any body
SetInstanceSnapshotScheduleWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SetInstanceSnapshotSchedule(ctx context.Context, id string, body SetInstanceSnapshotScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInstanceSnapshotWithBody request with any body
CreateInstanceSnapshotWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInstanceSnapshot(ctx context.Context, id string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RestoreInstanceSnapshotWithBody request with any body
RestoreInstanceSnapshotWithBody(ctx context.Context, id string, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
RestoreInstanceSnapshot(ctx context.Context, id string, snapshotId string, body RestoreInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StandbyInstanceWithBody request with any body
StandbyInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StandbyInstance(ctx context.Context, id string, body StandbyInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StartInstanceWithBody request with any body
StartInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
StartInstance(ctx context.Context, id string, body StartInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// StatInstancePath request
StatInstancePath(ctx context.Context, id string, params *StatInstancePathParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInstanceStats request
GetInstanceStats(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// StopInstance request
StopInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// DetachVolume request
DetachVolume(ctx context.Context, id string, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// AttachVolumeWithBody request with any body
AttachVolumeWithBody(ctx context.Context, id string, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AttachVolume(ctx context.Context, id string, volumeId string, body AttachVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// WaitForInstanceState request
WaitForInstanceState(ctx context.Context, id string, params *WaitForInstanceStateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetResources request
GetResources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// ReclaimMemoryWithBody request with any body
ReclaimMemoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ReclaimMemory(ctx context.Context, body ReclaimMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSnapshots request
ListSnapshots(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSnapshot request
DeleteSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetSnapshot request
GetSnapshot(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ForkSnapshotWithBody request with any body
ForkSnapshotWithBody(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ForkSnapshot(ctx context.Context, snapshotId string, body ForkSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListVolumes request
ListVolumes(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVolumeWithBody request with any body
CreateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateVolume(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateVolumeFromArchiveWithBody request with any body
CreateVolumeFromArchiveWithBody(ctx context.Context, params *CreateVolumeFromArchiveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteVolume request
DeleteVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetVolume request
GetVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AttachVolumeWithBodyWithResponse ¶
func (c *ClientWithResponses) AttachVolumeWithBodyWithResponse(ctx context.Context, id string, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVolumeResponse, error)
AttachVolumeWithBodyWithResponse request with arbitrary body returning *AttachVolumeResponse
func (*ClientWithResponses) AttachVolumeWithResponse ¶
func (c *ClientWithResponses) AttachVolumeWithResponse(ctx context.Context, id string, volumeId string, body AttachVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachVolumeResponse, error)
func (*ClientWithResponses) CancelBuildWithResponse ¶
func (c *ClientWithResponses) CancelBuildWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CancelBuildResponse, error)
CancelBuildWithResponse request returning *CancelBuildResponse
func (*ClientWithResponses) CreateBuildWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateBuildWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBuildResponse, error)
CreateBuildWithBodyWithResponse request with arbitrary body returning *CreateBuildResponse
func (*ClientWithResponses) CreateDeviceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeviceResponse, error)
CreateDeviceWithBodyWithResponse request with arbitrary body returning *CreateDeviceResponse
func (*ClientWithResponses) CreateDeviceWithResponse ¶
func (c *ClientWithResponses) CreateDeviceWithResponse(ctx context.Context, body CreateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeviceResponse, error)
func (*ClientWithResponses) CreateImageWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateImageResponse, error)
CreateImageWithBodyWithResponse request with arbitrary body returning *CreateImageResponse
func (*ClientWithResponses) CreateImageWithResponse ¶
func (c *ClientWithResponses) CreateImageWithResponse(ctx context.Context, body CreateImageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateImageResponse, error)
func (*ClientWithResponses) CreateIngressWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateIngressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIngressResponse, error)
CreateIngressWithBodyWithResponse request with arbitrary body returning *CreateIngressResponse
func (*ClientWithResponses) CreateIngressWithResponse ¶
func (c *ClientWithResponses) CreateIngressWithResponse(ctx context.Context, body CreateIngressJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIngressResponse, error)
func (*ClientWithResponses) CreateInstanceSnapshotWithBodyWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) CreateInstanceSnapshotWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)
CreateInstanceSnapshotWithBodyWithResponse request with arbitrary body returning *CreateInstanceSnapshotResponse
func (*ClientWithResponses) CreateInstanceSnapshotWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) CreateInstanceSnapshotWithResponse(ctx context.Context, id string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)
func (*ClientWithResponses) CreateInstanceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)
CreateInstanceWithBodyWithResponse request with arbitrary body returning *CreateInstanceResponse
func (*ClientWithResponses) CreateInstanceWithResponse ¶
func (c *ClientWithResponses) CreateInstanceWithResponse(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)
func (*ClientWithResponses) CreateVolumeFromArchiveWithBodyWithResponse ¶ added in v0.0.6
func (c *ClientWithResponses) CreateVolumeFromArchiveWithBodyWithResponse(ctx context.Context, params *CreateVolumeFromArchiveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeFromArchiveResponse, error)
CreateVolumeFromArchiveWithBodyWithResponse request with arbitrary body returning *CreateVolumeFromArchiveResponse
func (*ClientWithResponses) CreateVolumeWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
CreateVolumeWithBodyWithResponse request with arbitrary body returning *CreateVolumeResponse
func (*ClientWithResponses) CreateVolumeWithResponse ¶
func (c *ClientWithResponses) CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
func (*ClientWithResponses) DeleteDeviceWithResponse ¶
func (c *ClientWithResponses) DeleteDeviceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteDeviceResponse, error)
DeleteDeviceWithResponse request returning *DeleteDeviceResponse
func (*ClientWithResponses) DeleteImageWithResponse ¶
func (c *ClientWithResponses) DeleteImageWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteImageResponse, error)
DeleteImageWithResponse request returning *DeleteImageResponse
func (*ClientWithResponses) DeleteIngressWithResponse ¶
func (c *ClientWithResponses) DeleteIngressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIngressResponse, error)
DeleteIngressWithResponse request returning *DeleteIngressResponse
func (*ClientWithResponses) DeleteInstanceSnapshotScheduleWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) DeleteInstanceSnapshotScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteInstanceSnapshotScheduleResponse, error)
DeleteInstanceSnapshotScheduleWithResponse request returning *DeleteInstanceSnapshotScheduleResponse
func (*ClientWithResponses) DeleteInstanceWithResponse ¶
func (c *ClientWithResponses) DeleteInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteInstanceResponse, error)
DeleteInstanceWithResponse request returning *DeleteInstanceResponse
func (*ClientWithResponses) DeleteSnapshotWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)
DeleteSnapshotWithResponse request returning *DeleteSnapshotResponse
func (*ClientWithResponses) DeleteVolumeWithResponse ¶
func (c *ClientWithResponses) DeleteVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)
DeleteVolumeWithResponse request returning *DeleteVolumeResponse
func (*ClientWithResponses) DetachVolumeWithResponse ¶
func (c *ClientWithResponses) DetachVolumeWithResponse(ctx context.Context, id string, volumeId string, reqEditors ...RequestEditorFn) (*DetachVolumeResponse, error)
DetachVolumeWithResponse request returning *DetachVolumeResponse
func (*ClientWithResponses) ForkInstanceWithBodyWithResponse ¶ added in v0.0.7
func (c *ClientWithResponses) ForkInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkInstanceResponse, error)
ForkInstanceWithBodyWithResponse request with arbitrary body returning *ForkInstanceResponse
func (*ClientWithResponses) ForkInstanceWithResponse ¶ added in v0.0.7
func (c *ClientWithResponses) ForkInstanceWithResponse(ctx context.Context, id string, body ForkInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkInstanceResponse, error)
func (*ClientWithResponses) ForkSnapshotWithBodyWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) ForkSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkSnapshotResponse, error)
ForkSnapshotWithBodyWithResponse request with arbitrary body returning *ForkSnapshotResponse
func (*ClientWithResponses) ForkSnapshotWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) ForkSnapshotWithResponse(ctx context.Context, snapshotId string, body ForkSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkSnapshotResponse, error)
func (*ClientWithResponses) GetAutoStandbyStatusWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) GetAutoStandbyStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAutoStandbyStatusResponse, error)
GetAutoStandbyStatusWithResponse request returning *GetAutoStandbyStatusResponse
func (*ClientWithResponses) GetBuildEventsWithResponse ¶
func (c *ClientWithResponses) GetBuildEventsWithResponse(ctx context.Context, id string, params *GetBuildEventsParams, reqEditors ...RequestEditorFn) (*GetBuildEventsResponse, error)
GetBuildEventsWithResponse request returning *GetBuildEventsResponse
func (*ClientWithResponses) GetBuildWithResponse ¶
func (c *ClientWithResponses) GetBuildWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetBuildResponse, error)
GetBuildWithResponse request returning *GetBuildResponse
func (*ClientWithResponses) GetDeviceWithResponse ¶
func (c *ClientWithResponses) GetDeviceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
GetDeviceWithResponse request returning *GetDeviceResponse
func (*ClientWithResponses) GetHealthWithResponse ¶
func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
GetHealthWithResponse request returning *GetHealthResponse
func (*ClientWithResponses) GetImageWithResponse ¶
func (c *ClientWithResponses) GetImageWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetImageResponse, error)
GetImageWithResponse request returning *GetImageResponse
func (*ClientWithResponses) GetIngressWithResponse ¶
func (c *ClientWithResponses) GetIngressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIngressResponse, error)
GetIngressWithResponse request returning *GetIngressResponse
func (*ClientWithResponses) GetInstanceLogsWithResponse ¶
func (c *ClientWithResponses) GetInstanceLogsWithResponse(ctx context.Context, id string, params *GetInstanceLogsParams, reqEditors ...RequestEditorFn) (*GetInstanceLogsResponse, error)
GetInstanceLogsWithResponse request returning *GetInstanceLogsResponse
func (*ClientWithResponses) GetInstanceSnapshotScheduleWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) GetInstanceSnapshotScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetInstanceSnapshotScheduleResponse, error)
GetInstanceSnapshotScheduleWithResponse request returning *GetInstanceSnapshotScheduleResponse
func (*ClientWithResponses) GetInstanceStatsWithResponse ¶ added in v0.0.6
func (c *ClientWithResponses) GetInstanceStatsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetInstanceStatsResponse, error)
GetInstanceStatsWithResponse request returning *GetInstanceStatsResponse
func (*ClientWithResponses) GetInstanceWithResponse ¶
func (c *ClientWithResponses) GetInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetInstanceResponse, error)
GetInstanceWithResponse request returning *GetInstanceResponse
func (*ClientWithResponses) GetResourcesWithResponse ¶
func (c *ClientWithResponses) GetResourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error)
GetResourcesWithResponse request returning *GetResourcesResponse
func (*ClientWithResponses) GetSnapshotWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
GetSnapshotWithResponse request returning *GetSnapshotResponse
func (*ClientWithResponses) GetVolumeWithResponse ¶
func (c *ClientWithResponses) GetVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)
GetVolumeWithResponse request returning *GetVolumeResponse
func (*ClientWithResponses) ListAvailableDevicesWithResponse ¶
func (c *ClientWithResponses) ListAvailableDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAvailableDevicesResponse, error)
ListAvailableDevicesWithResponse request returning *ListAvailableDevicesResponse
func (*ClientWithResponses) ListBuildsWithResponse ¶
func (c *ClientWithResponses) ListBuildsWithResponse(ctx context.Context, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*ListBuildsResponse, error)
ListBuildsWithResponse request returning *ListBuildsResponse
func (*ClientWithResponses) ListDevicesWithResponse ¶
func (c *ClientWithResponses) ListDevicesWithResponse(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*ListDevicesResponse, error)
ListDevicesWithResponse request returning *ListDevicesResponse
func (*ClientWithResponses) ListImagesWithResponse ¶
func (c *ClientWithResponses) ListImagesWithResponse(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*ListImagesResponse, error)
ListImagesWithResponse request returning *ListImagesResponse
func (*ClientWithResponses) ListIngressesWithResponse ¶
func (c *ClientWithResponses) ListIngressesWithResponse(ctx context.Context, params *ListIngressesParams, reqEditors ...RequestEditorFn) (*ListIngressesResponse, error)
ListIngressesWithResponse request returning *ListIngressesResponse
func (*ClientWithResponses) ListInstancesWithResponse ¶
func (c *ClientWithResponses) ListInstancesWithResponse(ctx context.Context, params *ListInstancesParams, reqEditors ...RequestEditorFn) (*ListInstancesResponse, error)
ListInstancesWithResponse request returning *ListInstancesResponse
func (*ClientWithResponses) ListSnapshotsWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) ListSnapshotsWithResponse(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*ListSnapshotsResponse, error)
ListSnapshotsWithResponse request returning *ListSnapshotsResponse
func (*ClientWithResponses) ListVolumesWithResponse ¶
func (c *ClientWithResponses) ListVolumesWithResponse(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
ListVolumesWithResponse request returning *ListVolumesResponse
func (*ClientWithResponses) ReclaimMemoryWithBodyWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) ReclaimMemoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReclaimMemoryResponse, error)
ReclaimMemoryWithBodyWithResponse request with arbitrary body returning *ReclaimMemoryResponse
func (*ClientWithResponses) ReclaimMemoryWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) ReclaimMemoryWithResponse(ctx context.Context, body ReclaimMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ReclaimMemoryResponse, error)
func (*ClientWithResponses) RestoreInstanceSnapshotWithBodyWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) RestoreInstanceSnapshotWithBodyWithResponse(ctx context.Context, id string, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreInstanceSnapshotResponse, error)
RestoreInstanceSnapshotWithBodyWithResponse request with arbitrary body returning *RestoreInstanceSnapshotResponse
func (*ClientWithResponses) RestoreInstanceSnapshotWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) RestoreInstanceSnapshotWithResponse(ctx context.Context, id string, snapshotId string, body RestoreInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreInstanceSnapshotResponse, error)
func (*ClientWithResponses) RestoreInstanceWithResponse ¶
func (c *ClientWithResponses) RestoreInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RestoreInstanceResponse, error)
RestoreInstanceWithResponse request returning *RestoreInstanceResponse
func (*ClientWithResponses) SetInstanceSnapshotScheduleWithBodyWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) SetInstanceSnapshotScheduleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetInstanceSnapshotScheduleResponse, error)
SetInstanceSnapshotScheduleWithBodyWithResponse request with arbitrary body returning *SetInstanceSnapshotScheduleResponse
func (*ClientWithResponses) SetInstanceSnapshotScheduleWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) SetInstanceSnapshotScheduleWithResponse(ctx context.Context, id string, body SetInstanceSnapshotScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*SetInstanceSnapshotScheduleResponse, error)
func (*ClientWithResponses) StandbyInstanceWithBodyWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) StandbyInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StandbyInstanceResponse, error)
StandbyInstanceWithBodyWithResponse request with arbitrary body returning *StandbyInstanceResponse
func (*ClientWithResponses) StandbyInstanceWithResponse ¶
func (c *ClientWithResponses) StandbyInstanceWithResponse(ctx context.Context, id string, body StandbyInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*StandbyInstanceResponse, error)
func (*ClientWithResponses) StartInstanceWithBodyWithResponse ¶ added in v0.0.6
func (c *ClientWithResponses) StartInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartInstanceResponse, error)
StartInstanceWithBodyWithResponse request with arbitrary body returning *StartInstanceResponse
func (*ClientWithResponses) StartInstanceWithResponse ¶
func (c *ClientWithResponses) StartInstanceWithResponse(ctx context.Context, id string, body StartInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*StartInstanceResponse, error)
func (*ClientWithResponses) StatInstancePathWithResponse ¶
func (c *ClientWithResponses) StatInstancePathWithResponse(ctx context.Context, id string, params *StatInstancePathParams, reqEditors ...RequestEditorFn) (*StatInstancePathResponse, error)
StatInstancePathWithResponse request returning *StatInstancePathResponse
func (*ClientWithResponses) StopInstanceWithResponse ¶
func (c *ClientWithResponses) StopInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*StopInstanceResponse, error)
StopInstanceWithResponse request returning *StopInstanceResponse
func (*ClientWithResponses) UpdateInstanceWithBodyWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) UpdateInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)
UpdateInstanceWithBodyWithResponse request with arbitrary body returning *UpdateInstanceResponse
func (*ClientWithResponses) UpdateInstanceWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) UpdateInstanceWithResponse(ctx context.Context, id string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)
func (*ClientWithResponses) WaitForInstanceStateWithResponse ¶ added in v0.1.0
func (c *ClientWithResponses) WaitForInstanceStateWithResponse(ctx context.Context, id string, params *WaitForInstanceStateParams, reqEditors ...RequestEditorFn) (*WaitForInstanceStateResponse, error)
WaitForInstanceStateWithResponse request returning *WaitForInstanceStateResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListBuildsWithResponse request
ListBuildsWithResponse(ctx context.Context, params *ListBuildsParams, reqEditors ...RequestEditorFn) (*ListBuildsResponse, error)
// CreateBuildWithBodyWithResponse request with any body
CreateBuildWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBuildResponse, error)
// CancelBuildWithResponse request
CancelBuildWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CancelBuildResponse, error)
// GetBuildWithResponse request
GetBuildWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetBuildResponse, error)
// GetBuildEventsWithResponse request
GetBuildEventsWithResponse(ctx context.Context, id string, params *GetBuildEventsParams, reqEditors ...RequestEditorFn) (*GetBuildEventsResponse, error)
// ListDevicesWithResponse request
ListDevicesWithResponse(ctx context.Context, params *ListDevicesParams, reqEditors ...RequestEditorFn) (*ListDevicesResponse, error)
// CreateDeviceWithBodyWithResponse request with any body
CreateDeviceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDeviceResponse, error)
CreateDeviceWithResponse(ctx context.Context, body CreateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDeviceResponse, error)
// ListAvailableDevicesWithResponse request
ListAvailableDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListAvailableDevicesResponse, error)
// DeleteDeviceWithResponse request
DeleteDeviceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteDeviceResponse, error)
// GetDeviceWithResponse request
GetDeviceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetDeviceResponse, error)
// GetHealthWithResponse request
GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
// ListImagesWithResponse request
ListImagesWithResponse(ctx context.Context, params *ListImagesParams, reqEditors ...RequestEditorFn) (*ListImagesResponse, error)
// CreateImageWithBodyWithResponse request with any body
CreateImageWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateImageResponse, error)
CreateImageWithResponse(ctx context.Context, body CreateImageJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateImageResponse, error)
// DeleteImageWithResponse request
DeleteImageWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*DeleteImageResponse, error)
// GetImageWithResponse request
GetImageWithResponse(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*GetImageResponse, error)
// ListIngressesWithResponse request
ListIngressesWithResponse(ctx context.Context, params *ListIngressesParams, reqEditors ...RequestEditorFn) (*ListIngressesResponse, error)
// CreateIngressWithBodyWithResponse request with any body
CreateIngressWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIngressResponse, error)
CreateIngressWithResponse(ctx context.Context, body CreateIngressJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIngressResponse, error)
// DeleteIngressWithResponse request
DeleteIngressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteIngressResponse, error)
// GetIngressWithResponse request
GetIngressWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetIngressResponse, error)
// ListInstancesWithResponse request
ListInstancesWithResponse(ctx context.Context, params *ListInstancesParams, reqEditors ...RequestEditorFn) (*ListInstancesResponse, error)
// CreateInstanceWithBodyWithResponse request with any body
CreateInstanceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)
CreateInstanceWithResponse(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceResponse, error)
// DeleteInstanceWithResponse request
DeleteInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteInstanceResponse, error)
// GetInstanceWithResponse request
GetInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetInstanceResponse, error)
// UpdateInstanceWithBodyWithResponse request with any body
UpdateInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)
UpdateInstanceWithResponse(ctx context.Context, id string, body UpdateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInstanceResponse, error)
// GetAutoStandbyStatusWithResponse request
GetAutoStandbyStatusWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetAutoStandbyStatusResponse, error)
// ForkInstanceWithBodyWithResponse request with any body
ForkInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkInstanceResponse, error)
ForkInstanceWithResponse(ctx context.Context, id string, body ForkInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkInstanceResponse, error)
// GetInstanceLogsWithResponse request
GetInstanceLogsWithResponse(ctx context.Context, id string, params *GetInstanceLogsParams, reqEditors ...RequestEditorFn) (*GetInstanceLogsResponse, error)
// RestoreInstanceWithResponse request
RestoreInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RestoreInstanceResponse, error)
// DeleteInstanceSnapshotScheduleWithResponse request
DeleteInstanceSnapshotScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteInstanceSnapshotScheduleResponse, error)
// GetInstanceSnapshotScheduleWithResponse request
GetInstanceSnapshotScheduleWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetInstanceSnapshotScheduleResponse, error)
// SetInstanceSnapshotScheduleWithBodyWithResponse request with any body
SetInstanceSnapshotScheduleWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SetInstanceSnapshotScheduleResponse, error)
SetInstanceSnapshotScheduleWithResponse(ctx context.Context, id string, body SetInstanceSnapshotScheduleJSONRequestBody, reqEditors ...RequestEditorFn) (*SetInstanceSnapshotScheduleResponse, error)
// CreateInstanceSnapshotWithBodyWithResponse request with any body
CreateInstanceSnapshotWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)
CreateInstanceSnapshotWithResponse(ctx context.Context, id string, body CreateInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInstanceSnapshotResponse, error)
// RestoreInstanceSnapshotWithBodyWithResponse request with any body
RestoreInstanceSnapshotWithBodyWithResponse(ctx context.Context, id string, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*RestoreInstanceSnapshotResponse, error)
RestoreInstanceSnapshotWithResponse(ctx context.Context, id string, snapshotId string, body RestoreInstanceSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*RestoreInstanceSnapshotResponse, error)
// StandbyInstanceWithBodyWithResponse request with any body
StandbyInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StandbyInstanceResponse, error)
StandbyInstanceWithResponse(ctx context.Context, id string, body StandbyInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*StandbyInstanceResponse, error)
// StartInstanceWithBodyWithResponse request with any body
StartInstanceWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*StartInstanceResponse, error)
StartInstanceWithResponse(ctx context.Context, id string, body StartInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*StartInstanceResponse, error)
// StatInstancePathWithResponse request
StatInstancePathWithResponse(ctx context.Context, id string, params *StatInstancePathParams, reqEditors ...RequestEditorFn) (*StatInstancePathResponse, error)
// GetInstanceStatsWithResponse request
GetInstanceStatsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetInstanceStatsResponse, error)
// StopInstanceWithResponse request
StopInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*StopInstanceResponse, error)
// DetachVolumeWithResponse request
DetachVolumeWithResponse(ctx context.Context, id string, volumeId string, reqEditors ...RequestEditorFn) (*DetachVolumeResponse, error)
// AttachVolumeWithBodyWithResponse request with any body
AttachVolumeWithBodyWithResponse(ctx context.Context, id string, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AttachVolumeResponse, error)
AttachVolumeWithResponse(ctx context.Context, id string, volumeId string, body AttachVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*AttachVolumeResponse, error)
// WaitForInstanceStateWithResponse request
WaitForInstanceStateWithResponse(ctx context.Context, id string, params *WaitForInstanceStateParams, reqEditors ...RequestEditorFn) (*WaitForInstanceStateResponse, error)
// GetResourcesWithResponse request
GetResourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error)
// ReclaimMemoryWithBodyWithResponse request with any body
ReclaimMemoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ReclaimMemoryResponse, error)
ReclaimMemoryWithResponse(ctx context.Context, body ReclaimMemoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ReclaimMemoryResponse, error)
// ListSnapshotsWithResponse request
ListSnapshotsWithResponse(ctx context.Context, params *ListSnapshotsParams, reqEditors ...RequestEditorFn) (*ListSnapshotsResponse, error)
// DeleteSnapshotWithResponse request
DeleteSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)
// GetSnapshotWithResponse request
GetSnapshotWithResponse(ctx context.Context, snapshotId string, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
// ForkSnapshotWithBodyWithResponse request with any body
ForkSnapshotWithBodyWithResponse(ctx context.Context, snapshotId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ForkSnapshotResponse, error)
ForkSnapshotWithResponse(ctx context.Context, snapshotId string, body ForkSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*ForkSnapshotResponse, error)
// ListVolumesWithResponse request
ListVolumesWithResponse(ctx context.Context, params *ListVolumesParams, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)
// CreateVolumeWithBodyWithResponse request with any body
CreateVolumeWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
CreateVolumeWithResponse(ctx context.Context, body CreateVolumeJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateVolumeResponse, error)
// CreateVolumeFromArchiveWithBodyWithResponse request with any body
CreateVolumeFromArchiveWithBodyWithResponse(ctx context.Context, params *CreateVolumeFromArchiveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateVolumeFromArchiveResponse, error)
// DeleteVolumeWithResponse request
DeleteVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteVolumeResponse, error)
// GetVolumeWithResponse request
GetVolumeWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetVolumeResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateBuild202JSONResponse ¶
type CreateBuild202JSONResponse Build
func (CreateBuild202JSONResponse) VisitCreateBuildResponse ¶
func (response CreateBuild202JSONResponse) VisitCreateBuildResponse(w http.ResponseWriter) error
type CreateBuild400JSONResponse ¶
type CreateBuild400JSONResponse Error
func (CreateBuild400JSONResponse) VisitCreateBuildResponse ¶
func (response CreateBuild400JSONResponse) VisitCreateBuildResponse(w http.ResponseWriter) error
type CreateBuild401JSONResponse ¶
type CreateBuild401JSONResponse Error
func (CreateBuild401JSONResponse) VisitCreateBuildResponse ¶
func (response CreateBuild401JSONResponse) VisitCreateBuildResponse(w http.ResponseWriter) error
type CreateBuild500JSONResponse ¶
type CreateBuild500JSONResponse Error
func (CreateBuild500JSONResponse) VisitCreateBuildResponse ¶
func (response CreateBuild500JSONResponse) VisitCreateBuildResponse(w http.ResponseWriter) error
type CreateBuildMultipartBody ¶
type CreateBuildMultipartBody struct {
// BaseImageDigest Optional pinned base image digest
BaseImageDigest *string `json:"base_image_digest,omitempty"`
// CacheScope Tenant-specific cache key prefix
CacheScope *string `json:"cache_scope,omitempty"`
// Cpus Number of vCPUs for builder VM (default 2)
Cpus *int `json:"cpus,omitempty"`
// Dockerfile Dockerfile content. Required if not included in the source tarball.
Dockerfile *string `json:"dockerfile,omitempty"`
// GlobalCacheKey Global cache identifier (e.g., "node", "python", "ubuntu", "browser").
// When specified, the build will import from cache/global/{key}.
// Admin builds will also export to this location.
GlobalCacheKey *string `json:"global_cache_key,omitempty"`
// ImageName Custom image name for the build output. When set, the image is pushed
// to {registry}/{image_name} instead of {registry}/builds/{id}.
ImageName *string `json:"image_name,omitempty"`
// IsAdminBuild Set to "true" to grant push access to global cache (operator-only).
// Admin builds can populate the shared global cache that all tenant builds read from.
IsAdminBuild *string `json:"is_admin_build,omitempty"`
// MemoryMb Memory limit for builder VM in MB (default 2048)
MemoryMb *int `json:"memory_mb,omitempty"`
// Secrets JSON array of secret references to inject during build.
// Each object has "id" (required) for use with --mount=type=secret,id=...
// Example: [{"id": "npm_token"}, {"id": "github_token"}]
Secrets *string `json:"secrets,omitempty"`
// Source Source tarball (tar.gz) containing application code and optionally a Dockerfile
Source openapi_types.File `json:"source"`
// Tags JSON object of tags.
// Example: {"team":"backend","env":"staging"}
Tags *string `json:"tags,omitempty"`
// TimeoutSeconds Build timeout (default 600)
TimeoutSeconds *int `json:"timeout_seconds,omitempty"`
}
CreateBuildMultipartBody defines parameters for CreateBuild.
type CreateBuildMultipartRequestBody ¶
type CreateBuildMultipartRequestBody CreateBuildMultipartBody
CreateBuildMultipartRequestBody defines body for CreateBuild for multipart/form-data ContentType.
type CreateBuildResponse ¶
type CreateBuildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *Build
JSON400 *Error
JSON401 *Error
JSON500 *Error
}
func ParseCreateBuildResponse ¶
func ParseCreateBuildResponse(rsp *http.Response) (*CreateBuildResponse, error)
ParseCreateBuildResponse parses an HTTP response from a CreateBuildWithResponse call
func (CreateBuildResponse) Status ¶
func (r CreateBuildResponse) Status() string
Status returns HTTPResponse.Status
func (CreateBuildResponse) StatusCode ¶
func (r CreateBuildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateBuildResponseObject ¶
type CreateBuildResponseObject interface {
VisitCreateBuildResponse(w http.ResponseWriter) error
}
type CreateDevice201JSONResponse ¶
type CreateDevice201JSONResponse Device
func (CreateDevice201JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice201JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDevice400JSONResponse ¶
type CreateDevice400JSONResponse Error
func (CreateDevice400JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice400JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDevice401JSONResponse ¶
type CreateDevice401JSONResponse Error
func (CreateDevice401JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice401JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDevice404JSONResponse ¶
type CreateDevice404JSONResponse Error
func (CreateDevice404JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice404JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDevice409JSONResponse ¶
type CreateDevice409JSONResponse Error
func (CreateDevice409JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice409JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDevice500JSONResponse ¶
type CreateDevice500JSONResponse Error
func (CreateDevice500JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice500JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDeviceJSONRequestBody ¶
type CreateDeviceJSONRequestBody = CreateDeviceRequest
CreateDeviceJSONRequestBody defines body for CreateDevice for application/json ContentType.
type CreateDeviceRequest ¶
type CreateDeviceRequest struct {
// Name Optional globally unique device name. If not provided, a name is auto-generated from the PCI address (e.g., "pci-0000-a2-00-0")
Name *string `json:"name,omitempty"`
// PciAddress PCI address of the device (required, e.g., "0000:a2:00.0")
PciAddress string `json:"pci_address"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
}
CreateDeviceRequest defines model for CreateDeviceRequest.
type CreateDeviceRequestObject ¶
type CreateDeviceRequestObject struct {
Body *CreateDeviceJSONRequestBody
}
type CreateDeviceResponse ¶
type CreateDeviceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Device
JSON400 *Error
JSON401 *Error
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseCreateDeviceResponse ¶
func ParseCreateDeviceResponse(rsp *http.Response) (*CreateDeviceResponse, error)
ParseCreateDeviceResponse parses an HTTP response from a CreateDeviceWithResponse call
func (CreateDeviceResponse) Status ¶
func (r CreateDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateDeviceResponse) StatusCode ¶
func (r CreateDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateDeviceResponseObject ¶
type CreateDeviceResponseObject interface {
VisitCreateDeviceResponse(w http.ResponseWriter) error
}
type CreateImage202JSONResponse ¶
type CreateImage202JSONResponse Image
func (CreateImage202JSONResponse) VisitCreateImageResponse ¶
func (response CreateImage202JSONResponse) VisitCreateImageResponse(w http.ResponseWriter) error
type CreateImage400JSONResponse ¶
type CreateImage400JSONResponse Error
func (CreateImage400JSONResponse) VisitCreateImageResponse ¶
func (response CreateImage400JSONResponse) VisitCreateImageResponse(w http.ResponseWriter) error
type CreateImage401JSONResponse ¶
type CreateImage401JSONResponse Error
func (CreateImage401JSONResponse) VisitCreateImageResponse ¶
func (response CreateImage401JSONResponse) VisitCreateImageResponse(w http.ResponseWriter) error
type CreateImage404JSONResponse ¶
type CreateImage404JSONResponse Error
func (CreateImage404JSONResponse) VisitCreateImageResponse ¶
func (response CreateImage404JSONResponse) VisitCreateImageResponse(w http.ResponseWriter) error
type CreateImage429JSONResponse ¶ added in v0.1.1
type CreateImage429JSONResponse Error
func (CreateImage429JSONResponse) VisitCreateImageResponse ¶ added in v0.1.1
func (response CreateImage429JSONResponse) VisitCreateImageResponse(w http.ResponseWriter) error
type CreateImage500JSONResponse ¶
type CreateImage500JSONResponse Error
func (CreateImage500JSONResponse) VisitCreateImageResponse ¶
func (response CreateImage500JSONResponse) VisitCreateImageResponse(w http.ResponseWriter) error
type CreateImageJSONRequestBody ¶
type CreateImageJSONRequestBody = CreateImageRequest
CreateImageJSONRequestBody defines body for CreateImage for application/json ContentType.
type CreateImageRequest ¶
type CreateImageRequest struct {
// Name OCI image reference (e.g., docker.io/library/nginx:latest)
Name string `json:"name"`
// Platform Target platform as os/arch[/variant] (e.g. "linux/amd64"), matching Docker --platform. Omit for the host platform. Not a fixed enum: the os/arch[/variant] grammar is validated server-side and invalid values return 400 invalid_platform. Only os "linux" with arch amd64 or arm64 is accepted today.
Platform *string `json:"platform,omitempty"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
}
CreateImageRequest defines model for CreateImageRequest.
type CreateImageRequestObject ¶
type CreateImageRequestObject struct {
Body *CreateImageJSONRequestBody
}
type CreateImageResponse ¶
type CreateImageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON202 *Image
JSON400 *Error
JSON401 *Error
JSON404 *Error
JSON429 *Error
JSON500 *Error
}
func ParseCreateImageResponse ¶
func ParseCreateImageResponse(rsp *http.Response) (*CreateImageResponse, error)
ParseCreateImageResponse parses an HTTP response from a CreateImageWithResponse call
func (CreateImageResponse) Status ¶
func (r CreateImageResponse) Status() string
Status returns HTTPResponse.Status
func (CreateImageResponse) StatusCode ¶
func (r CreateImageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateImageResponseObject ¶
type CreateImageResponseObject interface {
VisitCreateImageResponse(w http.ResponseWriter) error
}
type CreateIngress201JSONResponse ¶
type CreateIngress201JSONResponse Ingress
func (CreateIngress201JSONResponse) VisitCreateIngressResponse ¶
func (response CreateIngress201JSONResponse) VisitCreateIngressResponse(w http.ResponseWriter) error
type CreateIngress400JSONResponse ¶
type CreateIngress400JSONResponse Error
func (CreateIngress400JSONResponse) VisitCreateIngressResponse ¶
func (response CreateIngress400JSONResponse) VisitCreateIngressResponse(w http.ResponseWriter) error
type CreateIngress401JSONResponse ¶
type CreateIngress401JSONResponse Error
func (CreateIngress401JSONResponse) VisitCreateIngressResponse ¶
func (response CreateIngress401JSONResponse) VisitCreateIngressResponse(w http.ResponseWriter) error
type CreateIngress409JSONResponse ¶
type CreateIngress409JSONResponse Error
func (CreateIngress409JSONResponse) VisitCreateIngressResponse ¶
func (response CreateIngress409JSONResponse) VisitCreateIngressResponse(w http.ResponseWriter) error
type CreateIngress500JSONResponse ¶
type CreateIngress500JSONResponse Error
func (CreateIngress500JSONResponse) VisitCreateIngressResponse ¶
func (response CreateIngress500JSONResponse) VisitCreateIngressResponse(w http.ResponseWriter) error
type CreateIngressJSONRequestBody ¶
type CreateIngressJSONRequestBody = CreateIngressRequest
CreateIngressJSONRequestBody defines body for CreateIngress for application/json ContentType.
type CreateIngressRequest ¶
type CreateIngressRequest struct {
// Name Human-readable name (lowercase letters, digits, and dashes only; cannot start or end with a dash)
Name string `json:"name"`
// Rules Routing rules for this ingress
Rules []IngressRule `json:"rules"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
}
CreateIngressRequest defines model for CreateIngressRequest.
type CreateIngressRequestObject ¶
type CreateIngressRequestObject struct {
Body *CreateIngressJSONRequestBody
}
type CreateIngressResponse ¶
type CreateIngressResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Ingress
JSON400 *Error
JSON401 *Error
JSON409 *Error
JSON500 *Error
}
func ParseCreateIngressResponse ¶
func ParseCreateIngressResponse(rsp *http.Response) (*CreateIngressResponse, error)
ParseCreateIngressResponse parses an HTTP response from a CreateIngressWithResponse call
func (CreateIngressResponse) Status ¶
func (r CreateIngressResponse) Status() string
Status returns HTTPResponse.Status
func (CreateIngressResponse) StatusCode ¶
func (r CreateIngressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateIngressResponseObject ¶
type CreateIngressResponseObject interface {
VisitCreateIngressResponse(w http.ResponseWriter) error
}
type CreateInstance201JSONResponse ¶
type CreateInstance201JSONResponse Instance
func (CreateInstance201JSONResponse) VisitCreateInstanceResponse ¶
func (response CreateInstance201JSONResponse) VisitCreateInstanceResponse(w http.ResponseWriter) error
type CreateInstance400JSONResponse ¶
type CreateInstance400JSONResponse Error
func (CreateInstance400JSONResponse) VisitCreateInstanceResponse ¶
func (response CreateInstance400JSONResponse) VisitCreateInstanceResponse(w http.ResponseWriter) error
type CreateInstance401JSONResponse ¶
type CreateInstance401JSONResponse Error
func (CreateInstance401JSONResponse) VisitCreateInstanceResponse ¶
func (response CreateInstance401JSONResponse) VisitCreateInstanceResponse(w http.ResponseWriter) error
type CreateInstance404JSONResponse ¶ added in v0.1.1
type CreateInstance404JSONResponse Error
func (CreateInstance404JSONResponse) VisitCreateInstanceResponse ¶ added in v0.1.1
func (response CreateInstance404JSONResponse) VisitCreateInstanceResponse(w http.ResponseWriter) error
type CreateInstance409JSONResponse ¶ added in v0.0.6
type CreateInstance409JSONResponse Error
func (CreateInstance409JSONResponse) VisitCreateInstanceResponse ¶ added in v0.0.6
func (response CreateInstance409JSONResponse) VisitCreateInstanceResponse(w http.ResponseWriter) error
type CreateInstance429JSONResponse ¶ added in v0.1.1
type CreateInstance429JSONResponse Error
func (CreateInstance429JSONResponse) VisitCreateInstanceResponse ¶ added in v0.1.1
func (response CreateInstance429JSONResponse) VisitCreateInstanceResponse(w http.ResponseWriter) error
type CreateInstance500JSONResponse ¶
type CreateInstance500JSONResponse Error
func (CreateInstance500JSONResponse) VisitCreateInstanceResponse ¶
func (response CreateInstance500JSONResponse) VisitCreateInstanceResponse(w http.ResponseWriter) error
type CreateInstanceJSONRequestBody ¶
type CreateInstanceJSONRequestBody = CreateInstanceRequest
CreateInstanceJSONRequestBody defines body for CreateInstance for application/json ContentType.
type CreateInstanceRequest ¶
type CreateInstanceRequest struct {
// AutoStandby Linux-only automatic standby policy based on active inbound TCP connections
// observed from the host conntrack table.
AutoStandby *AutoStandbyPolicy `json:"auto_standby,omitempty"`
// Cmd Override image CMD (like docker run <image> <command>). Omit to use image default.
Cmd *[]string `json:"cmd,omitempty"`
// Credentials Host-managed credential brokering policies keyed by guest-visible env var name.
// Those guest env vars receive mock placeholder values, while the real values remain
// host-scoped in the request `env` map and are only materialized on the mediated
// egress path according to each credential's `source` and `inject` rules.
Credentials *map[string]CreateInstanceRequestCredential `json:"credentials,omitempty"`
// Devices Device IDs or names to attach for GPU/PCI passthrough
Devices *[]string `json:"devices,omitempty"`
// DiskIoBps Disk I/O rate limit (e.g., "100MB/s", "500MB/s"). Defaults to proportional share based on CPU allocation if configured.
DiskIoBps *string `json:"disk_io_bps,omitempty"`
// Entrypoint Override image entrypoint (like docker run --entrypoint). Omit to use image default.
Entrypoint *[]string `json:"entrypoint,omitempty"`
// Env Environment variables
Env *map[string]string `json:"env,omitempty"`
// Gpu GPU configuration for the instance
Gpu *GPUConfig `json:"gpu,omitempty"`
// HealthCheck Workload health check policy. Health is reported separately from instance lifecycle state.
HealthCheck *HealthCheck `json:"health_check,omitempty"`
// HotplugSize Additional memory for hotplug (human-readable format like "3GB", "1G"). Omit to disable hotplug memory.
HotplugSize *string `json:"hotplug_size,omitempty"`
// Hypervisor Hypervisor to use for this instance. Defaults to server configuration.
Hypervisor *CreateInstanceRequestHypervisor `json:"hypervisor,omitempty"`
// Image OCI image reference
Image string `json:"image"`
// Name Human-readable name (lowercase letters, digits, and dashes only; cannot start or end with a dash)
Name string `json:"name"`
// Network Network configuration for the instance
Network *struct {
// BandwidthDownload Download bandwidth limit (external→VM, e.g., "1Gbps", "125MB/s"). Defaults to proportional share based on CPU allocation.
BandwidthDownload *string `json:"bandwidth_download,omitempty"`
// BandwidthUpload Upload bandwidth limit (VM→external, e.g., "1Gbps", "125MB/s"). Defaults to proportional share based on CPU allocation.
BandwidthUpload *string `json:"bandwidth_upload,omitempty"`
// Egress Host-mediated outbound network policy.
// Omit this object, or set `enabled: false`, to preserve normal direct outbound networking
// when `network.enabled` is true.
Egress *CreateInstanceRequestNetworkEgress `json:"egress,omitempty"`
// Enabled Whether to attach instance to the default network
Enabled *bool `json:"enabled,omitempty"`
} `json:"network,omitempty"`
// OverlaySize Writable overlay disk size (human-readable format like "10GB", "50G")
OverlaySize *string `json:"overlay_size,omitempty"`
// Platform Target platform as os/arch[/variant] (e.g. "linux/amd64"), matching Docker --platform. Omit for the host platform. Not a fixed enum: the os/arch[/variant] grammar is validated server-side and invalid values return 400 invalid_platform. Only os "linux" with arch amd64 or arm64 is accepted today.
Platform *string `json:"platform,omitempty"`
// RestartPolicy Whole-instance restart supervision policy.
RestartPolicy *RestartPolicy `json:"restart_policy,omitempty"`
// Size Base memory size (human-readable format like "1GB", "512MB", "2G")
Size *string `json:"size,omitempty"`
// SkipGuestAgent Skip guest-agent installation during boot.
// When true, the exec and stat APIs will not work for this instance.
// The instance will still run, but remote command execution will be unavailable.
SkipGuestAgent *bool `json:"skip_guest_agent,omitempty"`
// SkipKernelHeaders Skip kernel headers installation during boot for faster startup.
// When true, DKMS (Dynamic Kernel Module Support) will not work,
// preventing compilation of out-of-tree kernel modules (e.g., NVIDIA vGPU drivers).
// Recommended for workloads that don't need kernel module compilation.
SkipKernelHeaders *bool `json:"skip_kernel_headers,omitempty"`
SnapshotPolicy *SnapshotPolicy `json:"snapshot_policy,omitempty"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
// Vcpus Number of virtual CPUs
Vcpus *int `json:"vcpus,omitempty"`
// Volumes Volumes to attach to the instance at creation time
Volumes *[]VolumeMount `json:"volumes,omitempty"`
}
CreateInstanceRequest defines model for CreateInstanceRequest.
type CreateInstanceRequestCredential ¶ added in v0.1.0
type CreateInstanceRequestCredential struct {
Inject []CreateInstanceRequestCredentialInject `json:"inject"`
Source CreateInstanceRequestCredentialSource `json:"source"`
}
CreateInstanceRequestCredential defines model for CreateInstanceRequestCredential.
type CreateInstanceRequestCredentialInject ¶ added in v0.1.0
type CreateInstanceRequestCredentialInject struct {
// As Current v1 transform shape. Header templating is supported now; other transform
// types (for example request signing) can be added in future revisions.
As CreateInstanceRequestCredentialInjectAs `json:"as"`
// Hosts Optional destination host patterns (`api.example.com`, `*.example.com`).
// Omit to allow injection on all destinations.
Hosts *[]string `json:"hosts,omitempty"`
}
CreateInstanceRequestCredentialInject defines model for CreateInstanceRequestCredentialInject.
type CreateInstanceRequestCredentialInjectAs ¶ added in v0.1.0
type CreateInstanceRequestCredentialInjectAs struct {
// Format Template that must include `${value}`.
Format string `json:"format"`
// Header Header name to set/mutate for matching outbound requests.
Header string `json:"header"`
}
CreateInstanceRequestCredentialInjectAs Current v1 transform shape. Header templating is supported now; other transform types (for example request signing) can be added in future revisions.
type CreateInstanceRequestCredentialSource ¶ added in v0.1.0
type CreateInstanceRequestCredentialSource struct {
// Env Name of the real credential in the request `env` map.
// The guest-visible env var key can receive a mock placeholder, while the mediated
// egress path resolves that placeholder back to this real value only on the host.
Env string `json:"env"`
}
CreateInstanceRequestCredentialSource defines model for CreateInstanceRequestCredentialSource.
type CreateInstanceRequestHypervisor ¶
type CreateInstanceRequestHypervisor string
CreateInstanceRequestHypervisor Hypervisor to use for this instance. Defaults to server configuration.
const ( CreateInstanceRequestHypervisorCloudHypervisor CreateInstanceRequestHypervisor = "cloud-hypervisor" CreateInstanceRequestHypervisorFirecracker CreateInstanceRequestHypervisor = "firecracker" CreateInstanceRequestHypervisorQemu CreateInstanceRequestHypervisor = "qemu" CreateInstanceRequestHypervisorVz CreateInstanceRequestHypervisor = "vz" )
Defines values for CreateInstanceRequestHypervisor.
type CreateInstanceRequestNetworkEgress ¶ added in v0.1.0
type CreateInstanceRequestNetworkEgress struct {
// Enabled Whether to enable the mediated egress path.
// When false or omitted, the instance keeps normal direct outbound networking and
// host-managed credential rewriting is disabled.
Enabled *bool `json:"enabled,omitempty"`
// Enforcement Egress enforcement policy applied when mediation is enabled.
Enforcement *CreateInstanceRequestNetworkEgressEnforcement `json:"enforcement,omitempty"`
}
CreateInstanceRequestNetworkEgress Host-mediated outbound network policy. Omit this object, or set `enabled: false`, to preserve normal direct outbound networking when `network.enabled` is true.
type CreateInstanceRequestNetworkEgressEnforcement ¶ added in v0.1.0
type CreateInstanceRequestNetworkEgressEnforcement struct {
// Mode `all` (default) rejects direct non-mediated TCP egress from the VM,
// while `http_https_only` rejects direct egress only on TCP ports 80 and 443.
Mode *CreateInstanceRequestNetworkEgressEnforcementMode `json:"mode,omitempty"`
}
CreateInstanceRequestNetworkEgressEnforcement Egress enforcement policy applied when mediation is enabled.
type CreateInstanceRequestNetworkEgressEnforcementMode ¶ added in v0.1.0
type CreateInstanceRequestNetworkEgressEnforcementMode string
CreateInstanceRequestNetworkEgressEnforcementMode `all` (default) rejects direct non-mediated TCP egress from the VM, while `http_https_only` rejects direct egress only on TCP ports 80 and 443.
const ( All CreateInstanceRequestNetworkEgressEnforcementMode = "all" HttpHttpsOnly CreateInstanceRequestNetworkEgressEnforcementMode = "http_https_only" )
Defines values for CreateInstanceRequestNetworkEgressEnforcementMode.
type CreateInstanceRequestObject ¶
type CreateInstanceRequestObject struct {
Body *CreateInstanceJSONRequestBody
}
type CreateInstanceResponse ¶
type CreateInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Instance
JSON400 *Error
JSON401 *Error
JSON404 *Error
JSON409 *Error
JSON429 *Error
JSON500 *Error
}
func ParseCreateInstanceResponse ¶
func ParseCreateInstanceResponse(rsp *http.Response) (*CreateInstanceResponse, error)
ParseCreateInstanceResponse parses an HTTP response from a CreateInstanceWithResponse call
func (CreateInstanceResponse) Status ¶
func (r CreateInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInstanceResponse) StatusCode ¶
func (r CreateInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInstanceResponseObject ¶
type CreateInstanceResponseObject interface {
VisitCreateInstanceResponse(w http.ResponseWriter) error
}
type CreateInstanceSnapshot201JSONResponse ¶ added in v0.1.0
type CreateInstanceSnapshot201JSONResponse Snapshot
func (CreateInstanceSnapshot201JSONResponse) VisitCreateInstanceSnapshotResponse ¶ added in v0.1.0
func (response CreateInstanceSnapshot201JSONResponse) VisitCreateInstanceSnapshotResponse(w http.ResponseWriter) error
type CreateInstanceSnapshot400JSONResponse ¶ added in v0.1.0
type CreateInstanceSnapshot400JSONResponse Error
func (CreateInstanceSnapshot400JSONResponse) VisitCreateInstanceSnapshotResponse ¶ added in v0.1.0
func (response CreateInstanceSnapshot400JSONResponse) VisitCreateInstanceSnapshotResponse(w http.ResponseWriter) error
type CreateInstanceSnapshot404JSONResponse ¶ added in v0.1.0
type CreateInstanceSnapshot404JSONResponse Error
func (CreateInstanceSnapshot404JSONResponse) VisitCreateInstanceSnapshotResponse ¶ added in v0.1.0
func (response CreateInstanceSnapshot404JSONResponse) VisitCreateInstanceSnapshotResponse(w http.ResponseWriter) error
type CreateInstanceSnapshot409JSONResponse ¶ added in v0.1.0
type CreateInstanceSnapshot409JSONResponse Error
func (CreateInstanceSnapshot409JSONResponse) VisitCreateInstanceSnapshotResponse ¶ added in v0.1.0
func (response CreateInstanceSnapshot409JSONResponse) VisitCreateInstanceSnapshotResponse(w http.ResponseWriter) error
type CreateInstanceSnapshot500JSONResponse ¶ added in v0.1.0
type CreateInstanceSnapshot500JSONResponse Error
func (CreateInstanceSnapshot500JSONResponse) VisitCreateInstanceSnapshotResponse ¶ added in v0.1.0
func (response CreateInstanceSnapshot500JSONResponse) VisitCreateInstanceSnapshotResponse(w http.ResponseWriter) error
type CreateInstanceSnapshot501JSONResponse ¶ added in v0.1.0
type CreateInstanceSnapshot501JSONResponse Error
func (CreateInstanceSnapshot501JSONResponse) VisitCreateInstanceSnapshotResponse ¶ added in v0.1.0
func (response CreateInstanceSnapshot501JSONResponse) VisitCreateInstanceSnapshotResponse(w http.ResponseWriter) error
type CreateInstanceSnapshotJSONRequestBody ¶ added in v0.1.0
type CreateInstanceSnapshotJSONRequestBody = CreateSnapshotRequest
CreateInstanceSnapshotJSONRequestBody defines body for CreateInstanceSnapshot for application/json ContentType.
type CreateInstanceSnapshotRequestObject ¶ added in v0.1.0
type CreateInstanceSnapshotRequestObject struct {
Id string `json:"id"`
Body *CreateInstanceSnapshotJSONRequestBody
}
type CreateInstanceSnapshotResponse ¶ added in v0.1.0
type CreateInstanceSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Snapshot
JSON400 *Error
JSON404 *Error
JSON409 *Error
JSON500 *Error
JSON501 *Error
}
func ParseCreateInstanceSnapshotResponse ¶ added in v0.1.0
func ParseCreateInstanceSnapshotResponse(rsp *http.Response) (*CreateInstanceSnapshotResponse, error)
ParseCreateInstanceSnapshotResponse parses an HTTP response from a CreateInstanceSnapshotWithResponse call
func (CreateInstanceSnapshotResponse) Status ¶ added in v0.1.0
func (r CreateInstanceSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInstanceSnapshotResponse) StatusCode ¶ added in v0.1.0
func (r CreateInstanceSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInstanceSnapshotResponseObject ¶ added in v0.1.0
type CreateInstanceSnapshotResponseObject interface {
VisitCreateInstanceSnapshotResponse(w http.ResponseWriter) error
}
type CreateSnapshotRequest ¶ added in v0.1.0
type CreateSnapshotRequest struct {
Compression *SnapshotCompressionConfig `json:"compression,omitempty"`
// Kind Snapshot capture kind
Kind SnapshotKind `json:"kind"`
// Name Optional snapshot name (lowercase letters, digits, and dashes only; cannot start or end with a dash)
Name *string `json:"name,omitempty"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
}
CreateSnapshotRequest defines model for CreateSnapshotRequest.
type CreateVolume201JSONResponse ¶
type CreateVolume201JSONResponse Volume
func (CreateVolume201JSONResponse) VisitCreateVolumeResponse ¶
func (response CreateVolume201JSONResponse) VisitCreateVolumeResponse(w http.ResponseWriter) error
type CreateVolume400JSONResponse ¶
type CreateVolume400JSONResponse Error
func (CreateVolume400JSONResponse) VisitCreateVolumeResponse ¶
func (response CreateVolume400JSONResponse) VisitCreateVolumeResponse(w http.ResponseWriter) error
type CreateVolume401JSONResponse ¶
type CreateVolume401JSONResponse Error
func (CreateVolume401JSONResponse) VisitCreateVolumeResponse ¶
func (response CreateVolume401JSONResponse) VisitCreateVolumeResponse(w http.ResponseWriter) error
type CreateVolume409JSONResponse ¶
type CreateVolume409JSONResponse Error
func (CreateVolume409JSONResponse) VisitCreateVolumeResponse ¶
func (response CreateVolume409JSONResponse) VisitCreateVolumeResponse(w http.ResponseWriter) error
type CreateVolume500JSONResponse ¶
type CreateVolume500JSONResponse Error
func (CreateVolume500JSONResponse) VisitCreateVolumeResponse ¶
func (response CreateVolume500JSONResponse) VisitCreateVolumeResponse(w http.ResponseWriter) error
type CreateVolumeFromArchive201JSONResponse ¶ added in v0.0.6
type CreateVolumeFromArchive201JSONResponse Volume
func (CreateVolumeFromArchive201JSONResponse) VisitCreateVolumeFromArchiveResponse ¶ added in v0.0.6
func (response CreateVolumeFromArchive201JSONResponse) VisitCreateVolumeFromArchiveResponse(w http.ResponseWriter) error
type CreateVolumeFromArchive400JSONResponse ¶ added in v0.0.6
type CreateVolumeFromArchive400JSONResponse Error
func (CreateVolumeFromArchive400JSONResponse) VisitCreateVolumeFromArchiveResponse ¶ added in v0.0.6
func (response CreateVolumeFromArchive400JSONResponse) VisitCreateVolumeFromArchiveResponse(w http.ResponseWriter) error
type CreateVolumeFromArchive401JSONResponse ¶ added in v0.0.6
type CreateVolumeFromArchive401JSONResponse Error
func (CreateVolumeFromArchive401JSONResponse) VisitCreateVolumeFromArchiveResponse ¶ added in v0.0.6
func (response CreateVolumeFromArchive401JSONResponse) VisitCreateVolumeFromArchiveResponse(w http.ResponseWriter) error
type CreateVolumeFromArchive409JSONResponse ¶ added in v0.0.6
type CreateVolumeFromArchive409JSONResponse Error
func (CreateVolumeFromArchive409JSONResponse) VisitCreateVolumeFromArchiveResponse ¶ added in v0.0.6
func (response CreateVolumeFromArchive409JSONResponse) VisitCreateVolumeFromArchiveResponse(w http.ResponseWriter) error
type CreateVolumeFromArchive500JSONResponse ¶ added in v0.0.6
type CreateVolumeFromArchive500JSONResponse Error
func (CreateVolumeFromArchive500JSONResponse) VisitCreateVolumeFromArchiveResponse ¶ added in v0.0.6
func (response CreateVolumeFromArchive500JSONResponse) VisitCreateVolumeFromArchiveResponse(w http.ResponseWriter) error
type CreateVolumeFromArchiveParams ¶ added in v0.0.6
type CreateVolumeFromArchiveParams struct {
// Name Volume name
Name string `form:"name" json:"name"`
// SizeGb Maximum size in GB (extraction fails if content exceeds this)
SizeGb int `form:"size_gb" json:"size_gb"`
// Id Optional custom volume ID (auto-generated if not provided)
Id *string `form:"id,omitempty" json:"id,omitempty"`
// Tags Tags for the created volume.
Tags *Tags `json:"tags,omitempty"`
}
CreateVolumeFromArchiveParams defines parameters for CreateVolumeFromArchive.
type CreateVolumeFromArchiveRequestObject ¶ added in v0.0.6
type CreateVolumeFromArchiveRequestObject struct {
Params CreateVolumeFromArchiveParams
Body io.Reader
}
type CreateVolumeFromArchiveResponse ¶ added in v0.0.6
type CreateVolumeFromArchiveResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Volume
JSON400 *Error
JSON401 *Error
JSON409 *Error
JSON500 *Error
}
func ParseCreateVolumeFromArchiveResponse ¶ added in v0.0.6
func ParseCreateVolumeFromArchiveResponse(rsp *http.Response) (*CreateVolumeFromArchiveResponse, error)
ParseCreateVolumeFromArchiveResponse parses an HTTP response from a CreateVolumeFromArchiveWithResponse call
func (CreateVolumeFromArchiveResponse) Status ¶ added in v0.0.6
func (r CreateVolumeFromArchiveResponse) Status() string
Status returns HTTPResponse.Status
func (CreateVolumeFromArchiveResponse) StatusCode ¶ added in v0.0.6
func (r CreateVolumeFromArchiveResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateVolumeFromArchiveResponseObject ¶ added in v0.0.6
type CreateVolumeFromArchiveResponseObject interface {
VisitCreateVolumeFromArchiveResponse(w http.ResponseWriter) error
}
type CreateVolumeJSONRequestBody ¶
type CreateVolumeJSONRequestBody = CreateVolumeRequest
CreateVolumeJSONRequestBody defines body for CreateVolume for application/json ContentType.
type CreateVolumeRequest ¶
type CreateVolumeRequest struct {
// Id Optional custom identifier (auto-generated if not provided)
Id *string `json:"id,omitempty"`
// Name Volume name
Name string `json:"name"`
// SizeGb Size in gigabytes
SizeGb int `json:"size_gb"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
}
CreateVolumeRequest defines model for CreateVolumeRequest.
type CreateVolumeRequestObject ¶
type CreateVolumeRequestObject struct {
Body *CreateVolumeJSONRequestBody
}
type CreateVolumeResponse ¶
type CreateVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Volume
JSON400 *Error
JSON401 *Error
JSON409 *Error
JSON500 *Error
}
func ParseCreateVolumeResponse ¶
func ParseCreateVolumeResponse(rsp *http.Response) (*CreateVolumeResponse, error)
ParseCreateVolumeResponse parses an HTTP response from a CreateVolumeWithResponse call
func (CreateVolumeResponse) Status ¶
func (r CreateVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (CreateVolumeResponse) StatusCode ¶
func (r CreateVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateVolumeResponseObject ¶
type CreateVolumeResponseObject interface {
VisitCreateVolumeResponse(w http.ResponseWriter) error
}
type DeleteDevice204Response ¶
type DeleteDevice204Response struct {
}
func (DeleteDevice204Response) VisitDeleteDeviceResponse ¶
func (response DeleteDevice204Response) VisitDeleteDeviceResponse(w http.ResponseWriter) error
type DeleteDevice404JSONResponse ¶
type DeleteDevice404JSONResponse Error
func (DeleteDevice404JSONResponse) VisitDeleteDeviceResponse ¶
func (response DeleteDevice404JSONResponse) VisitDeleteDeviceResponse(w http.ResponseWriter) error
type DeleteDevice409JSONResponse ¶
type DeleteDevice409JSONResponse Error
func (DeleteDevice409JSONResponse) VisitDeleteDeviceResponse ¶
func (response DeleteDevice409JSONResponse) VisitDeleteDeviceResponse(w http.ResponseWriter) error
type DeleteDevice500JSONResponse ¶
type DeleteDevice500JSONResponse Error
func (DeleteDevice500JSONResponse) VisitDeleteDeviceResponse ¶
func (response DeleteDevice500JSONResponse) VisitDeleteDeviceResponse(w http.ResponseWriter) error
type DeleteDeviceRequestObject ¶
type DeleteDeviceRequestObject struct {
Id string `json:"id"`
}
type DeleteDeviceResponse ¶
type DeleteDeviceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseDeleteDeviceResponse ¶
func ParseDeleteDeviceResponse(rsp *http.Response) (*DeleteDeviceResponse, error)
ParseDeleteDeviceResponse parses an HTTP response from a DeleteDeviceWithResponse call
func (DeleteDeviceResponse) Status ¶
func (r DeleteDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteDeviceResponse) StatusCode ¶
func (r DeleteDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteDeviceResponseObject ¶
type DeleteDeviceResponseObject interface {
VisitDeleteDeviceResponse(w http.ResponseWriter) error
}
type DeleteImage204Response ¶
type DeleteImage204Response struct {
}
func (DeleteImage204Response) VisitDeleteImageResponse ¶
func (response DeleteImage204Response) VisitDeleteImageResponse(w http.ResponseWriter) error
type DeleteImage404JSONResponse ¶
type DeleteImage404JSONResponse Error
func (DeleteImage404JSONResponse) VisitDeleteImageResponse ¶
func (response DeleteImage404JSONResponse) VisitDeleteImageResponse(w http.ResponseWriter) error
type DeleteImage500JSONResponse ¶
type DeleteImage500JSONResponse Error
func (DeleteImage500JSONResponse) VisitDeleteImageResponse ¶
func (response DeleteImage500JSONResponse) VisitDeleteImageResponse(w http.ResponseWriter) error
type DeleteImageRequestObject ¶
type DeleteImageRequestObject struct {
Name string `json:"name"`
}
type DeleteImageResponse ¶
type DeleteImageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseDeleteImageResponse ¶
func ParseDeleteImageResponse(rsp *http.Response) (*DeleteImageResponse, error)
ParseDeleteImageResponse parses an HTTP response from a DeleteImageWithResponse call
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 DeleteImageResponseObject ¶
type DeleteImageResponseObject interface {
VisitDeleteImageResponse(w http.ResponseWriter) error
}
type DeleteIngress204Response ¶
type DeleteIngress204Response struct {
}
func (DeleteIngress204Response) VisitDeleteIngressResponse ¶
func (response DeleteIngress204Response) VisitDeleteIngressResponse(w http.ResponseWriter) error
type DeleteIngress404JSONResponse ¶
type DeleteIngress404JSONResponse Error
func (DeleteIngress404JSONResponse) VisitDeleteIngressResponse ¶
func (response DeleteIngress404JSONResponse) VisitDeleteIngressResponse(w http.ResponseWriter) error
type DeleteIngress409JSONResponse ¶
type DeleteIngress409JSONResponse Error
func (DeleteIngress409JSONResponse) VisitDeleteIngressResponse ¶
func (response DeleteIngress409JSONResponse) VisitDeleteIngressResponse(w http.ResponseWriter) error
type DeleteIngress500JSONResponse ¶
type DeleteIngress500JSONResponse Error
func (DeleteIngress500JSONResponse) VisitDeleteIngressResponse ¶
func (response DeleteIngress500JSONResponse) VisitDeleteIngressResponse(w http.ResponseWriter) error
type DeleteIngressRequestObject ¶
type DeleteIngressRequestObject struct {
Id string `json:"id"`
}
type DeleteIngressResponse ¶
type DeleteIngressResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseDeleteIngressResponse ¶
func ParseDeleteIngressResponse(rsp *http.Response) (*DeleteIngressResponse, error)
ParseDeleteIngressResponse parses an HTTP response from a DeleteIngressWithResponse call
func (DeleteIngressResponse) Status ¶
func (r DeleteIngressResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteIngressResponse) StatusCode ¶
func (r DeleteIngressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteIngressResponseObject ¶
type DeleteIngressResponseObject interface {
VisitDeleteIngressResponse(w http.ResponseWriter) error
}
type DeleteInstance204Response ¶
type DeleteInstance204Response struct {
}
func (DeleteInstance204Response) VisitDeleteInstanceResponse ¶
func (response DeleteInstance204Response) VisitDeleteInstanceResponse(w http.ResponseWriter) error
type DeleteInstance404JSONResponse ¶
type DeleteInstance404JSONResponse Error
func (DeleteInstance404JSONResponse) VisitDeleteInstanceResponse ¶
func (response DeleteInstance404JSONResponse) VisitDeleteInstanceResponse(w http.ResponseWriter) error
type DeleteInstance500JSONResponse ¶
type DeleteInstance500JSONResponse Error
func (DeleteInstance500JSONResponse) VisitDeleteInstanceResponse ¶
func (response DeleteInstance500JSONResponse) VisitDeleteInstanceResponse(w http.ResponseWriter) error
type DeleteInstanceRequestObject ¶
type DeleteInstanceRequestObject struct {
Id string `json:"id"`
}
type DeleteInstanceResponse ¶
type DeleteInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseDeleteInstanceResponse ¶
func ParseDeleteInstanceResponse(rsp *http.Response) (*DeleteInstanceResponse, error)
ParseDeleteInstanceResponse parses an HTTP response from a DeleteInstanceWithResponse call
func (DeleteInstanceResponse) Status ¶
func (r DeleteInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteInstanceResponse) StatusCode ¶
func (r DeleteInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteInstanceResponseObject ¶
type DeleteInstanceResponseObject interface {
VisitDeleteInstanceResponse(w http.ResponseWriter) error
}
type DeleteInstanceSnapshotSchedule204Response ¶ added in v0.1.0
type DeleteInstanceSnapshotSchedule204Response struct {
}
func (DeleteInstanceSnapshotSchedule204Response) VisitDeleteInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response DeleteInstanceSnapshotSchedule204Response) VisitDeleteInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type DeleteInstanceSnapshotSchedule404JSONResponse ¶ added in v0.1.0
type DeleteInstanceSnapshotSchedule404JSONResponse Error
func (DeleteInstanceSnapshotSchedule404JSONResponse) VisitDeleteInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response DeleteInstanceSnapshotSchedule404JSONResponse) VisitDeleteInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type DeleteInstanceSnapshotSchedule500JSONResponse ¶ added in v0.1.0
type DeleteInstanceSnapshotSchedule500JSONResponse Error
func (DeleteInstanceSnapshotSchedule500JSONResponse) VisitDeleteInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response DeleteInstanceSnapshotSchedule500JSONResponse) VisitDeleteInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type DeleteInstanceSnapshotScheduleRequestObject ¶ added in v0.1.0
type DeleteInstanceSnapshotScheduleRequestObject struct {
Id string `json:"id"`
}
type DeleteInstanceSnapshotScheduleResponse ¶ added in v0.1.0
type DeleteInstanceSnapshotScheduleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseDeleteInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func ParseDeleteInstanceSnapshotScheduleResponse(rsp *http.Response) (*DeleteInstanceSnapshotScheduleResponse, error)
ParseDeleteInstanceSnapshotScheduleResponse parses an HTTP response from a DeleteInstanceSnapshotScheduleWithResponse call
func (DeleteInstanceSnapshotScheduleResponse) Status ¶ added in v0.1.0
func (r DeleteInstanceSnapshotScheduleResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteInstanceSnapshotScheduleResponse) StatusCode ¶ added in v0.1.0
func (r DeleteInstanceSnapshotScheduleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteInstanceSnapshotScheduleResponseObject ¶ added in v0.1.0
type DeleteInstanceSnapshotScheduleResponseObject interface {
VisitDeleteInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
}
type DeleteSnapshot204Response ¶ added in v0.1.0
type DeleteSnapshot204Response struct {
}
func (DeleteSnapshot204Response) VisitDeleteSnapshotResponse ¶ added in v0.1.0
func (response DeleteSnapshot204Response) VisitDeleteSnapshotResponse(w http.ResponseWriter) error
type DeleteSnapshot404JSONResponse ¶ added in v0.1.0
type DeleteSnapshot404JSONResponse Error
func (DeleteSnapshot404JSONResponse) VisitDeleteSnapshotResponse ¶ added in v0.1.0
func (response DeleteSnapshot404JSONResponse) VisitDeleteSnapshotResponse(w http.ResponseWriter) error
type DeleteSnapshot500JSONResponse ¶ added in v0.1.0
type DeleteSnapshot500JSONResponse Error
func (DeleteSnapshot500JSONResponse) VisitDeleteSnapshotResponse ¶ added in v0.1.0
func (response DeleteSnapshot500JSONResponse) VisitDeleteSnapshotResponse(w http.ResponseWriter) error
type DeleteSnapshotRequestObject ¶ added in v0.1.0
type DeleteSnapshotRequestObject struct {
SnapshotId string `json:"snapshotId"`
}
type DeleteSnapshotResponse ¶ added in v0.1.0
type DeleteSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseDeleteSnapshotResponse ¶ added in v0.1.0
func ParseDeleteSnapshotResponse(rsp *http.Response) (*DeleteSnapshotResponse, error)
ParseDeleteSnapshotResponse parses an HTTP response from a DeleteSnapshotWithResponse call
func (DeleteSnapshotResponse) Status ¶ added in v0.1.0
func (r DeleteSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSnapshotResponse) StatusCode ¶ added in v0.1.0
func (r DeleteSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSnapshotResponseObject ¶ added in v0.1.0
type DeleteSnapshotResponseObject interface {
VisitDeleteSnapshotResponse(w http.ResponseWriter) error
}
type DeleteVolume204Response ¶
type DeleteVolume204Response struct {
}
func (DeleteVolume204Response) VisitDeleteVolumeResponse ¶
func (response DeleteVolume204Response) VisitDeleteVolumeResponse(w http.ResponseWriter) error
type DeleteVolume404JSONResponse ¶
type DeleteVolume404JSONResponse Error
func (DeleteVolume404JSONResponse) VisitDeleteVolumeResponse ¶
func (response DeleteVolume404JSONResponse) VisitDeleteVolumeResponse(w http.ResponseWriter) error
type DeleteVolume409JSONResponse ¶
type DeleteVolume409JSONResponse Error
func (DeleteVolume409JSONResponse) VisitDeleteVolumeResponse ¶
func (response DeleteVolume409JSONResponse) VisitDeleteVolumeResponse(w http.ResponseWriter) error
type DeleteVolume500JSONResponse ¶
type DeleteVolume500JSONResponse Error
func (DeleteVolume500JSONResponse) VisitDeleteVolumeResponse ¶
func (response DeleteVolume500JSONResponse) VisitDeleteVolumeResponse(w http.ResponseWriter) error
type DeleteVolumeRequestObject ¶
type DeleteVolumeRequestObject struct {
Id string `json:"id"`
}
type DeleteVolumeResponse ¶
type DeleteVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseDeleteVolumeResponse ¶
func ParseDeleteVolumeResponse(rsp *http.Response) (*DeleteVolumeResponse, error)
ParseDeleteVolumeResponse parses an HTTP response from a DeleteVolumeWithResponse call
func (DeleteVolumeResponse) Status ¶
func (r DeleteVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteVolumeResponse) StatusCode ¶
func (r DeleteVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteVolumeResponseObject ¶
type DeleteVolumeResponseObject interface {
VisitDeleteVolumeResponse(w http.ResponseWriter) error
}
type DetachVolume200JSONResponse ¶
type DetachVolume200JSONResponse Instance
func (DetachVolume200JSONResponse) VisitDetachVolumeResponse ¶
func (response DetachVolume200JSONResponse) VisitDetachVolumeResponse(w http.ResponseWriter) error
type DetachVolume404JSONResponse ¶
type DetachVolume404JSONResponse Error
func (DetachVolume404JSONResponse) VisitDetachVolumeResponse ¶
func (response DetachVolume404JSONResponse) VisitDetachVolumeResponse(w http.ResponseWriter) error
type DetachVolume500JSONResponse ¶
type DetachVolume500JSONResponse Error
func (DetachVolume500JSONResponse) VisitDetachVolumeResponse ¶
func (response DetachVolume500JSONResponse) VisitDetachVolumeResponse(w http.ResponseWriter) error
type DetachVolumeResponse ¶
type DetachVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Instance
JSON404 *Error
JSON500 *Error
}
func ParseDetachVolumeResponse ¶
func ParseDetachVolumeResponse(rsp *http.Response) (*DetachVolumeResponse, error)
ParseDetachVolumeResponse parses an HTTP response from a DetachVolumeWithResponse call
func (DetachVolumeResponse) Status ¶
func (r DetachVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (DetachVolumeResponse) StatusCode ¶
func (r DetachVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DetachVolumeResponseObject ¶
type DetachVolumeResponseObject interface {
VisitDetachVolumeResponse(w http.ResponseWriter) error
}
type Device ¶
type Device struct {
// AttachedTo Instance ID if attached
AttachedTo *string `json:"attached_to"`
// BoundToVfio Whether the device is currently bound to the vfio-pci driver, which is required for VM passthrough.
// - true: Device is bound to vfio-pci and ready for (or currently in use by) a VM. The device's native driver has been unloaded.
// - false: Device is using its native driver (e.g., nvidia) or no driver. Hypeman will automatically bind to vfio-pci when attaching to an instance.
BoundToVfio bool `json:"bound_to_vfio"`
// CreatedAt Registration timestamp (RFC3339)
CreatedAt time.Time `json:"created_at"`
// DeviceId PCI device ID (hex)
DeviceId string `json:"device_id"`
// Id Auto-generated unique identifier (CUID2 format)
Id string `json:"id"`
// IommuGroup IOMMU group number
IommuGroup int `json:"iommu_group"`
// Name Device name (user-provided or auto-generated from PCI address)
Name *string `json:"name,omitempty"`
// PciAddress PCI address
PciAddress string `json:"pci_address"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
// Type Type of PCI device
Type DeviceType `json:"type"`
// VendorId PCI vendor ID (hex)
VendorId string `json:"vendor_id"`
}
Device defines model for Device.
type DeviceType ¶
type DeviceType string
DeviceType Type of PCI device
const ( Gpu DeviceType = "gpu" Pci DeviceType = "pci" )
Defines values for DeviceType.
type DiskBreakdown ¶
type DiskBreakdown struct {
// ImagesBytes Disk used by exported rootfs images
ImagesBytes *int64 `json:"images_bytes,omitempty"`
// OciCacheBytes Disk used by OCI layer cache (shared blobs)
OciCacheBytes *int64 `json:"oci_cache_bytes,omitempty"`
// OverlaysBytes Disk used by instance overlays (rootfs + volume overlays)
OverlaysBytes *int64 `json:"overlays_bytes,omitempty"`
// VolumesBytes Disk used by volumes
VolumesBytes *int64 `json:"volumes_bytes,omitempty"`
}
DiskBreakdown defines model for DiskBreakdown.
type Error ¶
type Error struct {
// Code Application-specific error code (machine-readable)
Code string `json:"code"`
// Details Additional error details (for multiple errors)
Details *[]ErrorDetail `json:"details,omitempty"`
InnerError *ErrorDetail `json:"inner_error,omitempty"`
// Message Human-readable error description for debugging
Message string `json:"message"`
}
Error defines model for Error.
type ErrorDetail ¶
type ErrorDetail struct {
// Code Lower-level error code providing more specific detail
Code *string `json:"code,omitempty"`
// Message Further detail about the error
Message *string `json:"message,omitempty"`
}
ErrorDetail defines model for ErrorDetail.
type ForkInstance201JSONResponse ¶ added in v0.0.7
type ForkInstance201JSONResponse Instance
func (ForkInstance201JSONResponse) VisitForkInstanceResponse ¶ added in v0.0.7
func (response ForkInstance201JSONResponse) VisitForkInstanceResponse(w http.ResponseWriter) error
type ForkInstance400JSONResponse ¶ added in v0.0.7
type ForkInstance400JSONResponse Error
func (ForkInstance400JSONResponse) VisitForkInstanceResponse ¶ added in v0.0.7
func (response ForkInstance400JSONResponse) VisitForkInstanceResponse(w http.ResponseWriter) error
type ForkInstance404JSONResponse ¶ added in v0.0.7
type ForkInstance404JSONResponse Error
func (ForkInstance404JSONResponse) VisitForkInstanceResponse ¶ added in v0.0.7
func (response ForkInstance404JSONResponse) VisitForkInstanceResponse(w http.ResponseWriter) error
type ForkInstance409JSONResponse ¶ added in v0.0.7
type ForkInstance409JSONResponse Error
func (ForkInstance409JSONResponse) VisitForkInstanceResponse ¶ added in v0.0.7
func (response ForkInstance409JSONResponse) VisitForkInstanceResponse(w http.ResponseWriter) error
type ForkInstance500JSONResponse ¶ added in v0.0.7
type ForkInstance500JSONResponse Error
func (ForkInstance500JSONResponse) VisitForkInstanceResponse ¶ added in v0.0.7
func (response ForkInstance500JSONResponse) VisitForkInstanceResponse(w http.ResponseWriter) error
type ForkInstance501JSONResponse ¶ added in v0.0.7
type ForkInstance501JSONResponse Error
func (ForkInstance501JSONResponse) VisitForkInstanceResponse ¶ added in v0.0.7
func (response ForkInstance501JSONResponse) VisitForkInstanceResponse(w http.ResponseWriter) error
type ForkInstanceJSONRequestBody ¶ added in v0.0.7
type ForkInstanceJSONRequestBody = ForkInstanceRequest
ForkInstanceJSONRequestBody defines body for ForkInstance for application/json ContentType.
type ForkInstanceRequest ¶ added in v0.0.7
type ForkInstanceRequest struct {
// FromRunning Allow forking from a running source instance.
// When true and source is Running, the source is put into standby, forked, then restored back to Running.
FromRunning *bool `json:"from_running,omitempty"`
// Name Name for the forked instance (lowercase letters, digits, and dashes only; cannot start or end with a dash)
Name string `json:"name"`
// TargetState Target state for the forked instance after fork completes
TargetState *ForkTargetState `json:"target_state,omitempty"`
}
ForkInstanceRequest defines model for ForkInstanceRequest.
type ForkInstanceRequestObject ¶ added in v0.0.7
type ForkInstanceRequestObject struct {
Id string `json:"id"`
Body *ForkInstanceJSONRequestBody
}
type ForkInstanceResponse ¶ added in v0.0.7
type ForkInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Instance
JSON400 *Error
JSON404 *Error
JSON409 *Error
JSON500 *Error
JSON501 *Error
}
func ParseForkInstanceResponse ¶ added in v0.0.7
func ParseForkInstanceResponse(rsp *http.Response) (*ForkInstanceResponse, error)
ParseForkInstanceResponse parses an HTTP response from a ForkInstanceWithResponse call
func (ForkInstanceResponse) Status ¶ added in v0.0.7
func (r ForkInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (ForkInstanceResponse) StatusCode ¶ added in v0.0.7
func (r ForkInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ForkInstanceResponseObject ¶ added in v0.0.7
type ForkInstanceResponseObject interface {
VisitForkInstanceResponse(w http.ResponseWriter) error
}
type ForkSnapshot201JSONResponse ¶ added in v0.1.0
type ForkSnapshot201JSONResponse Instance
func (ForkSnapshot201JSONResponse) VisitForkSnapshotResponse ¶ added in v0.1.0
func (response ForkSnapshot201JSONResponse) VisitForkSnapshotResponse(w http.ResponseWriter) error
type ForkSnapshot400JSONResponse ¶ added in v0.1.0
type ForkSnapshot400JSONResponse Error
func (ForkSnapshot400JSONResponse) VisitForkSnapshotResponse ¶ added in v0.1.0
func (response ForkSnapshot400JSONResponse) VisitForkSnapshotResponse(w http.ResponseWriter) error
type ForkSnapshot404JSONResponse ¶ added in v0.1.0
type ForkSnapshot404JSONResponse Error
func (ForkSnapshot404JSONResponse) VisitForkSnapshotResponse ¶ added in v0.1.0
func (response ForkSnapshot404JSONResponse) VisitForkSnapshotResponse(w http.ResponseWriter) error
type ForkSnapshot409JSONResponse ¶ added in v0.1.0
type ForkSnapshot409JSONResponse Error
func (ForkSnapshot409JSONResponse) VisitForkSnapshotResponse ¶ added in v0.1.0
func (response ForkSnapshot409JSONResponse) VisitForkSnapshotResponse(w http.ResponseWriter) error
type ForkSnapshot500JSONResponse ¶ added in v0.1.0
type ForkSnapshot500JSONResponse Error
func (ForkSnapshot500JSONResponse) VisitForkSnapshotResponse ¶ added in v0.1.0
func (response ForkSnapshot500JSONResponse) VisitForkSnapshotResponse(w http.ResponseWriter) error
type ForkSnapshot501JSONResponse ¶ added in v0.1.0
type ForkSnapshot501JSONResponse Error
func (ForkSnapshot501JSONResponse) VisitForkSnapshotResponse ¶ added in v0.1.0
func (response ForkSnapshot501JSONResponse) VisitForkSnapshotResponse(w http.ResponseWriter) error
type ForkSnapshotJSONRequestBody ¶ added in v0.1.0
type ForkSnapshotJSONRequestBody = ForkSnapshotRequest
ForkSnapshotJSONRequestBody defines body for ForkSnapshot for application/json ContentType.
type ForkSnapshotRequest ¶ added in v0.1.0
type ForkSnapshotRequest struct {
// Name Name for the new instance (lowercase letters, digits, and dashes only; cannot start or end with a dash)
Name string `json:"name"`
// TargetHypervisor Optional hypervisor override. Allowed only when forking from a Stopped snapshot.
// Standby snapshots must fork with their original hypervisor.
TargetHypervisor *ForkSnapshotRequestTargetHypervisor `json:"target_hypervisor,omitempty"`
// TargetState Target state when restoring or forking from a snapshot
TargetState *SnapshotTargetState `json:"target_state,omitempty"`
}
ForkSnapshotRequest defines model for ForkSnapshotRequest.
type ForkSnapshotRequestObject ¶ added in v0.1.0
type ForkSnapshotRequestObject struct {
SnapshotId string `json:"snapshotId"`
Body *ForkSnapshotJSONRequestBody
}
type ForkSnapshotRequestTargetHypervisor ¶ added in v0.1.0
type ForkSnapshotRequestTargetHypervisor string
ForkSnapshotRequestTargetHypervisor Optional hypervisor override. Allowed only when forking from a Stopped snapshot. Standby snapshots must fork with their original hypervisor.
const ( ForkSnapshotRequestTargetHypervisorCloudHypervisor ForkSnapshotRequestTargetHypervisor = "cloud-hypervisor" ForkSnapshotRequestTargetHypervisorFirecracker ForkSnapshotRequestTargetHypervisor = "firecracker" ForkSnapshotRequestTargetHypervisorQemu ForkSnapshotRequestTargetHypervisor = "qemu" ForkSnapshotRequestTargetHypervisorVz ForkSnapshotRequestTargetHypervisor = "vz" )
Defines values for ForkSnapshotRequestTargetHypervisor.
type ForkSnapshotResponse ¶ added in v0.1.0
type ForkSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Instance
JSON400 *Error
JSON404 *Error
JSON409 *Error
JSON500 *Error
JSON501 *Error
}
func ParseForkSnapshotResponse ¶ added in v0.1.0
func ParseForkSnapshotResponse(rsp *http.Response) (*ForkSnapshotResponse, error)
ParseForkSnapshotResponse parses an HTTP response from a ForkSnapshotWithResponse call
func (ForkSnapshotResponse) Status ¶ added in v0.1.0
func (r ForkSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (ForkSnapshotResponse) StatusCode ¶ added in v0.1.0
func (r ForkSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ForkSnapshotResponseObject ¶ added in v0.1.0
type ForkSnapshotResponseObject interface {
VisitForkSnapshotResponse(w http.ResponseWriter) error
}
type ForkTargetState ¶ added in v0.0.7
type ForkTargetState string
ForkTargetState Target state for the forked instance after fork completes
const ( ForkTargetStateRunning ForkTargetState = "Running" ForkTargetStateStandby ForkTargetState = "Standby" ForkTargetStateStopped ForkTargetState = "Stopped" )
Defines values for ForkTargetState.
type GPUConfig ¶ added in v0.0.5
type GPUConfig struct {
// Profile vGPU profile name (e.g., "L40S-1Q"). Only used in vGPU mode.
Profile *string `json:"profile,omitempty"`
}
GPUConfig GPU configuration for the instance
type GPUProfile ¶ added in v0.0.5
type GPUProfile struct {
// Available Number of instances that can be created with this profile
Available int `json:"available"`
// FramebufferMb Frame buffer size in MB
FramebufferMb int `json:"framebuffer_mb"`
// Name Profile name (user-facing)
Name string `json:"name"`
}
GPUProfile Available vGPU profile
type GPUResourceStatus ¶ added in v0.0.5
type GPUResourceStatus struct {
// Devices Physical GPUs (only in passthrough mode)
Devices *[]PassthroughDevice `json:"devices,omitempty"`
// Mode GPU mode (vgpu for SR-IOV/mdev, passthrough for whole GPU)
Mode GPUResourceStatusMode `json:"mode"`
// Profiles Available vGPU profiles (only in vGPU mode)
Profiles *[]GPUProfile `json:"profiles,omitempty"`
// TotalSlots Total slots (VFs for vGPU, physical GPUs for passthrough)
TotalSlots int `json:"total_slots"`
// UsedSlots Slots currently in use
UsedSlots int `json:"used_slots"`
}
GPUResourceStatus GPU resource status. Null if no GPUs available.
type GPUResourceStatusMode ¶ added in v0.0.5
type GPUResourceStatusMode string
GPUResourceStatusMode GPU mode (vgpu for SR-IOV/mdev, passthrough for whole GPU)
const ( Passthrough GPUResourceStatusMode = "passthrough" Vgpu GPUResourceStatusMode = "vgpu" )
Defines values for GPUResourceStatusMode.
type GetAutoStandbyStatus200JSONResponse ¶ added in v0.1.0
type GetAutoStandbyStatus200JSONResponse AutoStandbyStatus
func (GetAutoStandbyStatus200JSONResponse) VisitGetAutoStandbyStatusResponse ¶ added in v0.1.0
func (response GetAutoStandbyStatus200JSONResponse) VisitGetAutoStandbyStatusResponse(w http.ResponseWriter) error
type GetAutoStandbyStatus404JSONResponse ¶ added in v0.1.0
type GetAutoStandbyStatus404JSONResponse Error
func (GetAutoStandbyStatus404JSONResponse) VisitGetAutoStandbyStatusResponse ¶ added in v0.1.0
func (response GetAutoStandbyStatus404JSONResponse) VisitGetAutoStandbyStatusResponse(w http.ResponseWriter) error
type GetAutoStandbyStatus500JSONResponse ¶ added in v0.1.0
type GetAutoStandbyStatus500JSONResponse Error
func (GetAutoStandbyStatus500JSONResponse) VisitGetAutoStandbyStatusResponse ¶ added in v0.1.0
func (response GetAutoStandbyStatus500JSONResponse) VisitGetAutoStandbyStatusResponse(w http.ResponseWriter) error
type GetAutoStandbyStatusRequestObject ¶ added in v0.1.0
type GetAutoStandbyStatusRequestObject struct {
Id string `json:"id"`
}
type GetAutoStandbyStatusResponse ¶ added in v0.1.0
type GetAutoStandbyStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *AutoStandbyStatus
JSON404 *Error
JSON500 *Error
}
func ParseGetAutoStandbyStatusResponse ¶ added in v0.1.0
func ParseGetAutoStandbyStatusResponse(rsp *http.Response) (*GetAutoStandbyStatusResponse, error)
ParseGetAutoStandbyStatusResponse parses an HTTP response from a GetAutoStandbyStatusWithResponse call
func (GetAutoStandbyStatusResponse) Status ¶ added in v0.1.0
func (r GetAutoStandbyStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetAutoStandbyStatusResponse) StatusCode ¶ added in v0.1.0
func (r GetAutoStandbyStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetAutoStandbyStatusResponseObject ¶ added in v0.1.0
type GetAutoStandbyStatusResponseObject interface {
VisitGetAutoStandbyStatusResponse(w http.ResponseWriter) error
}
type GetBuild200JSONResponse ¶
type GetBuild200JSONResponse Build
func (GetBuild200JSONResponse) VisitGetBuildResponse ¶
func (response GetBuild200JSONResponse) VisitGetBuildResponse(w http.ResponseWriter) error
type GetBuild404JSONResponse ¶
type GetBuild404JSONResponse Error
func (GetBuild404JSONResponse) VisitGetBuildResponse ¶
func (response GetBuild404JSONResponse) VisitGetBuildResponse(w http.ResponseWriter) error
type GetBuild500JSONResponse ¶
type GetBuild500JSONResponse Error
func (GetBuild500JSONResponse) VisitGetBuildResponse ¶
func (response GetBuild500JSONResponse) VisitGetBuildResponse(w http.ResponseWriter) error
type GetBuildEvents200TexteventStreamResponse ¶
func (GetBuildEvents200TexteventStreamResponse) VisitGetBuildEventsResponse ¶
func (response GetBuildEvents200TexteventStreamResponse) VisitGetBuildEventsResponse(w http.ResponseWriter) error
type GetBuildEvents404JSONResponse ¶
type GetBuildEvents404JSONResponse Error
func (GetBuildEvents404JSONResponse) VisitGetBuildEventsResponse ¶
func (response GetBuildEvents404JSONResponse) VisitGetBuildEventsResponse(w http.ResponseWriter) error
type GetBuildEvents500JSONResponse ¶
type GetBuildEvents500JSONResponse Error
func (GetBuildEvents500JSONResponse) VisitGetBuildEventsResponse ¶
func (response GetBuildEvents500JSONResponse) VisitGetBuildEventsResponse(w http.ResponseWriter) error
type GetBuildEventsParams ¶
type GetBuildEventsParams struct {
// Follow Continue streaming new events after initial output
Follow *bool `form:"follow,omitempty" json:"follow,omitempty"`
}
GetBuildEventsParams defines parameters for GetBuildEvents.
type GetBuildEventsRequestObject ¶
type GetBuildEventsRequestObject struct {
Id string `json:"id"`
Params GetBuildEventsParams
}
type GetBuildEventsResponse ¶
type GetBuildEventsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseGetBuildEventsResponse ¶
func ParseGetBuildEventsResponse(rsp *http.Response) (*GetBuildEventsResponse, error)
ParseGetBuildEventsResponse parses an HTTP response from a GetBuildEventsWithResponse call
func (GetBuildEventsResponse) Status ¶
func (r GetBuildEventsResponse) Status() string
Status returns HTTPResponse.Status
func (GetBuildEventsResponse) StatusCode ¶
func (r GetBuildEventsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBuildEventsResponseObject ¶
type GetBuildEventsResponseObject interface {
VisitGetBuildEventsResponse(w http.ResponseWriter) error
}
type GetBuildRequestObject ¶
type GetBuildRequestObject struct {
Id string `json:"id"`
}
type GetBuildResponse ¶
type GetBuildResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Build
JSON404 *Error
JSON500 *Error
}
func ParseGetBuildResponse ¶
func ParseGetBuildResponse(rsp *http.Response) (*GetBuildResponse, error)
ParseGetBuildResponse parses an HTTP response from a GetBuildWithResponse call
func (GetBuildResponse) Status ¶
func (r GetBuildResponse) Status() string
Status returns HTTPResponse.Status
func (GetBuildResponse) StatusCode ¶
func (r GetBuildResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetBuildResponseObject ¶
type GetBuildResponseObject interface {
VisitGetBuildResponse(w http.ResponseWriter) error
}
type GetDevice200JSONResponse ¶
type GetDevice200JSONResponse Device
func (GetDevice200JSONResponse) VisitGetDeviceResponse ¶
func (response GetDevice200JSONResponse) VisitGetDeviceResponse(w http.ResponseWriter) error
type GetDevice404JSONResponse ¶
type GetDevice404JSONResponse Error
func (GetDevice404JSONResponse) VisitGetDeviceResponse ¶
func (response GetDevice404JSONResponse) VisitGetDeviceResponse(w http.ResponseWriter) error
type GetDevice500JSONResponse ¶
type GetDevice500JSONResponse Error
func (GetDevice500JSONResponse) VisitGetDeviceResponse ¶
func (response GetDevice500JSONResponse) VisitGetDeviceResponse(w http.ResponseWriter) error
type GetDeviceRequestObject ¶
type GetDeviceRequestObject struct {
Id string `json:"id"`
}
type GetDeviceResponse ¶
type GetDeviceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Device
JSON404 *Error
JSON500 *Error
}
func ParseGetDeviceResponse ¶
func ParseGetDeviceResponse(rsp *http.Response) (*GetDeviceResponse, error)
ParseGetDeviceResponse parses an HTTP response from a GetDeviceWithResponse call
func (GetDeviceResponse) Status ¶
func (r GetDeviceResponse) Status() string
Status returns HTTPResponse.Status
func (GetDeviceResponse) StatusCode ¶
func (r GetDeviceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetDeviceResponseObject ¶
type GetDeviceResponseObject interface {
VisitGetDeviceResponse(w http.ResponseWriter) error
}
type GetHealth200JSONResponse ¶
type GetHealth200JSONResponse Health
func (GetHealth200JSONResponse) VisitGetHealthResponse ¶
func (response GetHealth200JSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error
type GetHealthRequestObject ¶
type GetHealthRequestObject struct {
}
type GetHealthResponse ¶
func ParseGetHealthResponse ¶
func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)
ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call
func (GetHealthResponse) Status ¶
func (r GetHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthResponse) StatusCode ¶
func (r GetHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetHealthResponseObject ¶
type GetHealthResponseObject interface {
VisitGetHealthResponse(w http.ResponseWriter) error
}
type GetImage200JSONResponse ¶
type GetImage200JSONResponse Image
func (GetImage200JSONResponse) VisitGetImageResponse ¶
func (response GetImage200JSONResponse) VisitGetImageResponse(w http.ResponseWriter) error
type GetImage404JSONResponse ¶
type GetImage404JSONResponse Error
func (GetImage404JSONResponse) VisitGetImageResponse ¶
func (response GetImage404JSONResponse) VisitGetImageResponse(w http.ResponseWriter) error
type GetImage500JSONResponse ¶
type GetImage500JSONResponse Error
func (GetImage500JSONResponse) VisitGetImageResponse ¶
func (response GetImage500JSONResponse) VisitGetImageResponse(w http.ResponseWriter) error
type GetImageRequestObject ¶
type GetImageRequestObject struct {
Name string `json:"name"`
}
type GetImageResponse ¶
type GetImageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Image
JSON404 *Error
JSON500 *Error
}
func ParseGetImageResponse ¶
func ParseGetImageResponse(rsp *http.Response) (*GetImageResponse, error)
ParseGetImageResponse parses an HTTP response from a GetImageWithResponse call
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 GetImageResponseObject ¶
type GetImageResponseObject interface {
VisitGetImageResponse(w http.ResponseWriter) error
}
type GetIngress200JSONResponse ¶
type GetIngress200JSONResponse Ingress
func (GetIngress200JSONResponse) VisitGetIngressResponse ¶
func (response GetIngress200JSONResponse) VisitGetIngressResponse(w http.ResponseWriter) error
type GetIngress404JSONResponse ¶
type GetIngress404JSONResponse Error
func (GetIngress404JSONResponse) VisitGetIngressResponse ¶
func (response GetIngress404JSONResponse) VisitGetIngressResponse(w http.ResponseWriter) error
type GetIngress409JSONResponse ¶
type GetIngress409JSONResponse Error
func (GetIngress409JSONResponse) VisitGetIngressResponse ¶
func (response GetIngress409JSONResponse) VisitGetIngressResponse(w http.ResponseWriter) error
type GetIngress500JSONResponse ¶
type GetIngress500JSONResponse Error
func (GetIngress500JSONResponse) VisitGetIngressResponse ¶
func (response GetIngress500JSONResponse) VisitGetIngressResponse(w http.ResponseWriter) error
type GetIngressRequestObject ¶
type GetIngressRequestObject struct {
Id string `json:"id"`
}
type GetIngressResponse ¶
type GetIngressResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Ingress
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseGetIngressResponse ¶
func ParseGetIngressResponse(rsp *http.Response) (*GetIngressResponse, error)
ParseGetIngressResponse parses an HTTP response from a GetIngressWithResponse call
func (GetIngressResponse) Status ¶
func (r GetIngressResponse) Status() string
Status returns HTTPResponse.Status
func (GetIngressResponse) StatusCode ¶
func (r GetIngressResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetIngressResponseObject ¶
type GetIngressResponseObject interface {
VisitGetIngressResponse(w http.ResponseWriter) error
}
type GetInstance200JSONResponse ¶
type GetInstance200JSONResponse Instance
func (GetInstance200JSONResponse) VisitGetInstanceResponse ¶
func (response GetInstance200JSONResponse) VisitGetInstanceResponse(w http.ResponseWriter) error
type GetInstance404JSONResponse ¶
type GetInstance404JSONResponse Error
func (GetInstance404JSONResponse) VisitGetInstanceResponse ¶
func (response GetInstance404JSONResponse) VisitGetInstanceResponse(w http.ResponseWriter) error
type GetInstance500JSONResponse ¶
type GetInstance500JSONResponse Error
func (GetInstance500JSONResponse) VisitGetInstanceResponse ¶
func (response GetInstance500JSONResponse) VisitGetInstanceResponse(w http.ResponseWriter) error
type GetInstanceLogs200TexteventStreamResponse ¶
func (GetInstanceLogs200TexteventStreamResponse) VisitGetInstanceLogsResponse ¶
func (response GetInstanceLogs200TexteventStreamResponse) VisitGetInstanceLogsResponse(w http.ResponseWriter) error
type GetInstanceLogs404JSONResponse ¶
type GetInstanceLogs404JSONResponse Error
func (GetInstanceLogs404JSONResponse) VisitGetInstanceLogsResponse ¶
func (response GetInstanceLogs404JSONResponse) VisitGetInstanceLogsResponse(w http.ResponseWriter) error
type GetInstanceLogs500JSONResponse ¶
type GetInstanceLogs500JSONResponse Error
func (GetInstanceLogs500JSONResponse) VisitGetInstanceLogsResponse ¶
func (response GetInstanceLogs500JSONResponse) VisitGetInstanceLogsResponse(w http.ResponseWriter) error
type GetInstanceLogsParams ¶
type GetInstanceLogsParams struct {
// Tail Number of lines to return from end
Tail *int `form:"tail,omitempty" json:"tail,omitempty"`
// Follow Continue streaming new lines after initial output
Follow *bool `form:"follow,omitempty" json:"follow,omitempty"`
// Source Log source to stream:
// - app: Guest application logs (serial console output)
// - vmm: Cloud Hypervisor VMM logs (hypervisor stdout+stderr)
// - hypeman: Hypeman operations log (actions taken on this instance)
Source *GetInstanceLogsParamsSource `form:"source,omitempty" json:"source,omitempty"`
}
GetInstanceLogsParams defines parameters for GetInstanceLogs.
type GetInstanceLogsParamsSource ¶
type GetInstanceLogsParamsSource string
GetInstanceLogsParamsSource defines parameters for GetInstanceLogs.
const ( App GetInstanceLogsParamsSource = "app" Hypeman GetInstanceLogsParamsSource = "hypeman" Vmm GetInstanceLogsParamsSource = "vmm" )
Defines values for GetInstanceLogsParamsSource.
type GetInstanceLogsRequestObject ¶
type GetInstanceLogsRequestObject struct {
Id string `json:"id"`
Params GetInstanceLogsParams
}
type GetInstanceLogsResponse ¶
type GetInstanceLogsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON404 *Error
JSON500 *Error
}
func ParseGetInstanceLogsResponse ¶
func ParseGetInstanceLogsResponse(rsp *http.Response) (*GetInstanceLogsResponse, error)
ParseGetInstanceLogsResponse parses an HTTP response from a GetInstanceLogsWithResponse call
func (GetInstanceLogsResponse) Status ¶
func (r GetInstanceLogsResponse) Status() string
Status returns HTTPResponse.Status
func (GetInstanceLogsResponse) StatusCode ¶
func (r GetInstanceLogsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInstanceLogsResponseObject ¶
type GetInstanceLogsResponseObject interface {
VisitGetInstanceLogsResponse(w http.ResponseWriter) error
}
type GetInstanceRequestObject ¶
type GetInstanceRequestObject struct {
Id string `json:"id"`
}
type GetInstanceResponse ¶
type GetInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Instance
JSON404 *Error
JSON500 *Error
}
func ParseGetInstanceResponse ¶
func ParseGetInstanceResponse(rsp *http.Response) (*GetInstanceResponse, error)
ParseGetInstanceResponse parses an HTTP response from a GetInstanceWithResponse call
func (GetInstanceResponse) Status ¶
func (r GetInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (GetInstanceResponse) StatusCode ¶
func (r GetInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInstanceResponseObject ¶
type GetInstanceResponseObject interface {
VisitGetInstanceResponse(w http.ResponseWriter) error
}
type GetInstanceSnapshotSchedule200JSONResponse ¶ added in v0.1.0
type GetInstanceSnapshotSchedule200JSONResponse SnapshotSchedule
func (GetInstanceSnapshotSchedule200JSONResponse) VisitGetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response GetInstanceSnapshotSchedule200JSONResponse) VisitGetInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type GetInstanceSnapshotSchedule404JSONResponse ¶ added in v0.1.0
type GetInstanceSnapshotSchedule404JSONResponse Error
func (GetInstanceSnapshotSchedule404JSONResponse) VisitGetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response GetInstanceSnapshotSchedule404JSONResponse) VisitGetInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type GetInstanceSnapshotSchedule500JSONResponse ¶ added in v0.1.0
type GetInstanceSnapshotSchedule500JSONResponse Error
func (GetInstanceSnapshotSchedule500JSONResponse) VisitGetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response GetInstanceSnapshotSchedule500JSONResponse) VisitGetInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type GetInstanceSnapshotScheduleRequestObject ¶ added in v0.1.0
type GetInstanceSnapshotScheduleRequestObject struct {
Id string `json:"id"`
}
type GetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
type GetInstanceSnapshotScheduleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SnapshotSchedule
JSON404 *Error
JSON500 *Error
}
func ParseGetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func ParseGetInstanceSnapshotScheduleResponse(rsp *http.Response) (*GetInstanceSnapshotScheduleResponse, error)
ParseGetInstanceSnapshotScheduleResponse parses an HTTP response from a GetInstanceSnapshotScheduleWithResponse call
func (GetInstanceSnapshotScheduleResponse) Status ¶ added in v0.1.0
func (r GetInstanceSnapshotScheduleResponse) Status() string
Status returns HTTPResponse.Status
func (GetInstanceSnapshotScheduleResponse) StatusCode ¶ added in v0.1.0
func (r GetInstanceSnapshotScheduleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInstanceSnapshotScheduleResponseObject ¶ added in v0.1.0
type GetInstanceSnapshotScheduleResponseObject interface {
VisitGetInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
}
type GetInstanceStats200JSONResponse ¶ added in v0.0.6
type GetInstanceStats200JSONResponse InstanceStats
func (GetInstanceStats200JSONResponse) VisitGetInstanceStatsResponse ¶ added in v0.0.6
func (response GetInstanceStats200JSONResponse) VisitGetInstanceStatsResponse(w http.ResponseWriter) error
type GetInstanceStats404JSONResponse ¶ added in v0.0.6
type GetInstanceStats404JSONResponse Error
func (GetInstanceStats404JSONResponse) VisitGetInstanceStatsResponse ¶ added in v0.0.6
func (response GetInstanceStats404JSONResponse) VisitGetInstanceStatsResponse(w http.ResponseWriter) error
type GetInstanceStats500JSONResponse ¶ added in v0.0.6
type GetInstanceStats500JSONResponse Error
func (GetInstanceStats500JSONResponse) VisitGetInstanceStatsResponse ¶ added in v0.0.6
func (response GetInstanceStats500JSONResponse) VisitGetInstanceStatsResponse(w http.ResponseWriter) error
type GetInstanceStatsRequestObject ¶ added in v0.0.6
type GetInstanceStatsRequestObject struct {
Id string `json:"id"`
}
type GetInstanceStatsResponse ¶ added in v0.0.6
type GetInstanceStatsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InstanceStats
JSON404 *Error
JSON500 *Error
}
func ParseGetInstanceStatsResponse ¶ added in v0.0.6
func ParseGetInstanceStatsResponse(rsp *http.Response) (*GetInstanceStatsResponse, error)
ParseGetInstanceStatsResponse parses an HTTP response from a GetInstanceStatsWithResponse call
func (GetInstanceStatsResponse) Status ¶ added in v0.0.6
func (r GetInstanceStatsResponse) Status() string
Status returns HTTPResponse.Status
func (GetInstanceStatsResponse) StatusCode ¶ added in v0.0.6
func (r GetInstanceStatsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInstanceStatsResponseObject ¶ added in v0.0.6
type GetInstanceStatsResponseObject interface {
VisitGetInstanceStatsResponse(w http.ResponseWriter) error
}
type GetResources200JSONResponse ¶
type GetResources200JSONResponse Resources
func (GetResources200JSONResponse) VisitGetResourcesResponse ¶
func (response GetResources200JSONResponse) VisitGetResourcesResponse(w http.ResponseWriter) error
type GetResources500JSONResponse ¶
type GetResources500JSONResponse Error
func (GetResources500JSONResponse) VisitGetResourcesResponse ¶
func (response GetResources500JSONResponse) VisitGetResourcesResponse(w http.ResponseWriter) error
type GetResourcesRequestObject ¶
type GetResourcesRequestObject struct {
}
type GetResourcesResponse ¶
type GetResourcesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Resources
JSON500 *Error
}
func ParseGetResourcesResponse ¶
func ParseGetResourcesResponse(rsp *http.Response) (*GetResourcesResponse, error)
ParseGetResourcesResponse parses an HTTP response from a GetResourcesWithResponse call
func (GetResourcesResponse) Status ¶
func (r GetResourcesResponse) Status() string
Status returns HTTPResponse.Status
func (GetResourcesResponse) StatusCode ¶
func (r GetResourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetResourcesResponseObject ¶
type GetResourcesResponseObject interface {
VisitGetResourcesResponse(w http.ResponseWriter) error
}
type GetSnapshot200JSONResponse ¶ added in v0.1.0
type GetSnapshot200JSONResponse Snapshot
func (GetSnapshot200JSONResponse) VisitGetSnapshotResponse ¶ added in v0.1.0
func (response GetSnapshot200JSONResponse) VisitGetSnapshotResponse(w http.ResponseWriter) error
type GetSnapshot404JSONResponse ¶ added in v0.1.0
type GetSnapshot404JSONResponse Error
func (GetSnapshot404JSONResponse) VisitGetSnapshotResponse ¶ added in v0.1.0
func (response GetSnapshot404JSONResponse) VisitGetSnapshotResponse(w http.ResponseWriter) error
type GetSnapshot500JSONResponse ¶ added in v0.1.0
type GetSnapshot500JSONResponse Error
func (GetSnapshot500JSONResponse) VisitGetSnapshotResponse ¶ added in v0.1.0
func (response GetSnapshot500JSONResponse) VisitGetSnapshotResponse(w http.ResponseWriter) error
type GetSnapshotRequestObject ¶ added in v0.1.0
type GetSnapshotRequestObject struct {
SnapshotId string `json:"snapshotId"`
}
type GetSnapshotResponse ¶ added in v0.1.0
type GetSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Snapshot
JSON404 *Error
JSON500 *Error
}
func ParseGetSnapshotResponse ¶ added in v0.1.0
func ParseGetSnapshotResponse(rsp *http.Response) (*GetSnapshotResponse, error)
ParseGetSnapshotResponse parses an HTTP response from a GetSnapshotWithResponse call
func (GetSnapshotResponse) Status ¶ added in v0.1.0
func (r GetSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (GetSnapshotResponse) StatusCode ¶ added in v0.1.0
func (r GetSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSnapshotResponseObject ¶ added in v0.1.0
type GetSnapshotResponseObject interface {
VisitGetSnapshotResponse(w http.ResponseWriter) error
}
type GetVolume200JSONResponse ¶
type GetVolume200JSONResponse Volume
func (GetVolume200JSONResponse) VisitGetVolumeResponse ¶
func (response GetVolume200JSONResponse) VisitGetVolumeResponse(w http.ResponseWriter) error
type GetVolume404JSONResponse ¶
type GetVolume404JSONResponse Error
func (GetVolume404JSONResponse) VisitGetVolumeResponse ¶
func (response GetVolume404JSONResponse) VisitGetVolumeResponse(w http.ResponseWriter) error
type GetVolume500JSONResponse ¶
type GetVolume500JSONResponse Error
func (GetVolume500JSONResponse) VisitGetVolumeResponse ¶
func (response GetVolume500JSONResponse) VisitGetVolumeResponse(w http.ResponseWriter) error
type GetVolumeRequestObject ¶
type GetVolumeRequestObject struct {
Id string `json:"id"`
}
type GetVolumeResponse ¶
type GetVolumeResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Volume
JSON404 *Error
JSON500 *Error
}
func ParseGetVolumeResponse ¶
func ParseGetVolumeResponse(rsp *http.Response) (*GetVolumeResponse, error)
ParseGetVolumeResponse parses an HTTP response from a GetVolumeWithResponse call
func (GetVolumeResponse) Status ¶
func (r GetVolumeResponse) Status() string
Status returns HTTPResponse.Status
func (GetVolumeResponse) StatusCode ¶
func (r GetVolumeResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetVolumeResponseObject ¶
type GetVolumeResponseObject interface {
VisitGetVolumeResponse(w http.ResponseWriter) error
}
type Health ¶
type Health struct {
Status HealthStatus `json:"status"`
}
Health defines model for Health.
type HealthCheck ¶ added in v0.1.0
type HealthCheck struct {
Exec *HealthCheckExec `json:"exec,omitempty"`
// FailureThreshold Consecutive failed checks required to mark the workload unhealthy.
FailureThreshold *int `json:"failure_threshold,omitempty"`
Http *HealthCheckHTTP `json:"http,omitempty"`
// Interval Delay between checks as a Go duration.
Interval *string `json:"interval,omitempty"`
// StartPeriod Startup grace period before failures can mark the workload unhealthy.
StartPeriod *string `json:"start_period,omitempty"`
// SuccessThreshold Consecutive successful checks required to mark the workload healthy.
SuccessThreshold *int `json:"success_threshold,omitempty"`
Tcp *HealthCheckTCP `json:"tcp,omitempty"`
// Timeout Per-check timeout as a Go duration.
Timeout *string `json:"timeout,omitempty"`
// Type Probe type. Omit health_check or set type=none to disable health checks.
Type *HealthCheckType `json:"type,omitempty"`
}
HealthCheck Workload health check policy. Health is reported separately from instance lifecycle state.
type HealthCheckExec ¶ added in v0.1.0
type HealthCheckExec struct {
// Command Command and arguments to run inside the guest after guest-agent readiness.
Command []string `json:"command"`
// WorkingDir Optional working directory for the command.
WorkingDir *string `json:"working_dir,omitempty"`
}
HealthCheckExec defines model for HealthCheckExec.
type HealthCheckHTTP ¶ added in v0.1.0
type HealthCheckHTTP struct {
// ExpectedStatus Exact status code required for a successful probe.
ExpectedStatus *int `json:"expected_status,omitempty"`
// Path HTTP path to request.
Path *string `json:"path,omitempty"`
// Port Port to probe on the instance network address.
Port int `json:"port"`
// Scheme HTTP scheme to use for the probe.
Scheme *HealthCheckHTTPScheme `json:"scheme,omitempty"`
}
HealthCheckHTTP defines model for HealthCheckHTTP.
type HealthCheckHTTPScheme ¶ added in v0.1.0
type HealthCheckHTTPScheme string
HealthCheckHTTPScheme HTTP scheme to use for the probe.
const ( HealthCheckHTTPSchemeHttp HealthCheckHTTPScheme = "http" HealthCheckHTTPSchemeHttps HealthCheckHTTPScheme = "https" )
Defines values for HealthCheckHTTPScheme.
type HealthCheckTCP ¶ added in v0.1.0
type HealthCheckTCP struct {
// Port Port to open on the instance network address.
Port int `json:"port"`
}
HealthCheckTCP defines model for HealthCheckTCP.
type HealthCheckType ¶ added in v0.1.0
type HealthCheckType string
HealthCheckType Probe type. Omit health_check or set type=none to disable health checks.
const ( HealthCheckTypeExec HealthCheckType = "exec" HealthCheckTypeHttp HealthCheckType = "http" HealthCheckTypeNone HealthCheckType = "none" HealthCheckTypeTcp HealthCheckType = "tcp" )
Defines values for HealthCheckType.
type HealthStatus ¶
type HealthStatus string
HealthStatus defines model for Health.Status.
const (
Ok HealthStatus = "ok"
)
Defines values for HealthStatus.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Image ¶
type Image struct {
// Cmd CMD from container metadata
Cmd *[]string `json:"cmd"`
// CreatedAt Creation timestamp (RFC3339)
CreatedAt time.Time `json:"created_at"`
// Digest Resolved manifest digest
Digest string `json:"digest"`
// Entrypoint Entrypoint from container metadata
Entrypoint *[]string `json:"entrypoint"`
// Env Environment variables from container metadata
Env *map[string]string `json:"env,omitempty"`
// Error Error message if status is failed
Error *string `json:"error"`
// Name Normalized OCI image reference (tag or digest)
Name string `json:"name"`
// Platform Resolved image platform as os/arch[/variant] (e.g. "linux/amd64")
Platform *string `json:"platform,omitempty"`
// QueuePosition Position in build queue (null if not queued)
QueuePosition *int `json:"queue_position"`
// SizeBytes Disk size in bytes (null until ready)
SizeBytes *int64 `json:"size_bytes"`
// Status Build status
Status ImageStatus `json:"status"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
// WorkingDir Working directory from container metadata
WorkingDir *string `json:"working_dir"`
}
Image defines model for Image.
type ImageStatus ¶
type ImageStatus string
ImageStatus Build status
const ( ImageStatusConverting ImageStatus = "converting" ImageStatusFailed ImageStatus = "failed" ImageStatusPending ImageStatus = "pending" ImageStatusPulling ImageStatus = "pulling" ImageStatusReady ImageStatus = "ready" )
Defines values for ImageStatus.
type Ingress ¶
type Ingress struct {
// CreatedAt Creation timestamp (RFC3339)
CreatedAt time.Time `json:"created_at"`
// Id Auto-generated unique identifier
Id string `json:"id"`
// Name Human-readable name
Name string `json:"name"`
// Rules Routing rules for this ingress
Rules []IngressRule `json:"rules"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
}
Ingress defines model for Ingress.
type IngressMatch ¶
type IngressMatch struct {
// Hostname Hostname to match. Can be:
// - Literal: "api.example.com" (exact match on Host header)
// - Pattern: "{instance}.example.com" (dynamic routing based on subdomain)
//
// Pattern hostnames use named captures in curly braces (e.g., {instance}, {app})
// that extract parts of the hostname for routing. The extracted values can be
// referenced in the target.instance field.
Hostname string `json:"hostname"`
// Port Host port to listen on for this rule (default 80)
Port *int `json:"port,omitempty"`
}
IngressMatch defines model for IngressMatch.
type IngressRule ¶
type IngressRule struct {
Match IngressMatch `json:"match"`
// RedirectHttp Auto-create HTTP to HTTPS redirect for this hostname (only applies when tls is enabled)
RedirectHttp *bool `json:"redirect_http,omitempty"`
Target IngressTarget `json:"target"`
// Tls Enable TLS termination (certificate auto-issued via ACME).
Tls *bool `json:"tls,omitempty"`
}
IngressRule defines model for IngressRule.
type IngressTarget ¶
type IngressTarget struct {
// Instance Target instance name, ID, or capture reference.
// - For literal hostnames: Use the instance name or ID directly (e.g., "my-api")
// - For pattern hostnames: Reference a capture from the hostname (e.g., "{instance}")
//
// When using pattern hostnames, the instance is resolved dynamically at request time.
Instance string `json:"instance"`
// Port Target port on the instance
Port int `json:"port"`
}
IngressTarget defines model for IngressTarget.
type Instance ¶
type Instance struct {
// AutoStandby Linux-only automatic standby policy based on active inbound TCP connections
// observed from the host conntrack table.
AutoStandby *AutoStandbyPolicy `json:"auto_standby,omitempty"`
// CreatedAt Creation timestamp (RFC3339)
CreatedAt time.Time `json:"created_at"`
// CurrentPhase The lifecycle phase the instance is currently in.
CurrentPhase *string `json:"current_phase,omitempty"`
// CurrentPhaseSince When the instance entered current_phase.
CurrentPhaseSince *time.Time `json:"current_phase_since,omitempty"`
// DiskIoBps Disk I/O rate limit (human-readable, e.g., "100MB/s")
DiskIoBps *string `json:"disk_io_bps,omitempty"`
// Env Environment variables
Env *map[string]string `json:"env,omitempty"`
// ExitCode App exit code (null if VM hasn't exited)
ExitCode *int `json:"exit_code"`
// ExitMessage Human-readable description of exit (e.g., "command not found", "killed by signal 9 (SIGKILL) - OOM")
ExitMessage *string `json:"exit_message,omitempty"`
// Gpu GPU information attached to the instance
Gpu *InstanceGPU `json:"gpu,omitempty"`
// HasSnapshot Whether a snapshot exists for this instance
HasSnapshot *bool `json:"has_snapshot,omitempty"`
// HealthCheck Workload health check policy. Health is reported separately from instance lifecycle state.
HealthCheck *HealthCheck `json:"health_check,omitempty"`
HealthStatus *InstanceHealthStatus `json:"health_status,omitempty"`
// HotplugSize Hotplug memory size (human-readable)
HotplugSize *string `json:"hotplug_size,omitempty"`
// Hypervisor Hypervisor running this instance
Hypervisor *InstanceHypervisor `json:"hypervisor,omitempty"`
// Id Auto-generated unique identifier (CUID2 format)
Id string `json:"id"`
// Image OCI image reference
Image string `json:"image"`
// Name Human-readable name
Name string `json:"name"`
// Network Network configuration of the instance
Network *struct {
// BandwidthDownload Download bandwidth limit (human-readable, e.g., "1Gbps", "125MB/s")
BandwidthDownload *string `json:"bandwidth_download,omitempty"`
// BandwidthUpload Upload bandwidth limit (human-readable, e.g., "1Gbps", "125MB/s")
BandwidthUpload *string `json:"bandwidth_upload,omitempty"`
// Enabled Whether instance is attached to the default network
Enabled *bool `json:"enabled,omitempty"`
// Ip Assigned IP address (null if no network)
Ip *string `json:"ip"`
// Mac Assigned MAC address (null if no network)
Mac *string `json:"mac"`
// Name Network name (always "default" when enabled)
Name *string `json:"name,omitempty"`
} `json:"network,omitempty"`
// OverlaySize Writable overlay disk size (human-readable)
OverlaySize *string `json:"overlay_size,omitempty"`
// PhaseDurationsMs Cumulative milliseconds the instance has spent in each lifecycle
// phase, including time accrued in the current phase up to the
// response time. Keys mirror instance states lowercased
// (running, standby, paused, stopped, created, initializing,
// shutdown). Consumers (e.g. billing) sum the phases they consider
// billable.
PhaseDurationsMs *map[string]int64 `json:"phase_durations_ms,omitempty"`
// Platform Resolved image platform as os/arch[/variant] (e.g. "linux/amd64"). amd64 images on an arm64 host run under Rosetta emulation.
Platform *string `json:"platform,omitempty"`
// RestartPolicy Whole-instance restart supervision policy.
RestartPolicy *RestartPolicy `json:"restart_policy,omitempty"`
// RestartStatus Runtime status for restart policy decisions.
RestartStatus *RestartStatus `json:"restart_status,omitempty"`
// Size Base memory size (human-readable)
Size *string `json:"size,omitempty"`
SnapshotPolicy *SnapshotPolicy `json:"snapshot_policy,omitempty"`
// StartedAt Start timestamp (RFC3339)
StartedAt *time.Time `json:"started_at"`
// State Instance state:
// - Created: VMM created but not started (Cloud Hypervisor native)
// - Initializing: VM is running while guest init is still in progress
// - Running: Guest program has started and instance is ready
// - Paused: VM is paused (Cloud Hypervisor native)
// - Shutdown: VM shut down but VMM exists (Cloud Hypervisor native)
// - Stopped: No VMM running, no snapshot exists
// - Standby: No VMM running, snapshot exists (can be restored)
// - Unknown: Failed to determine state (see state_error for details)
State InstanceState `json:"state"`
// StateError Error message if state couldn't be determined (only set when state is Unknown)
StateError *string `json:"state_error"`
// StoppedAt Stop timestamp (RFC3339)
StoppedAt *time.Time `json:"stopped_at"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
// Vcpus Number of virtual CPUs
Vcpus *int `json:"vcpus,omitempty"`
// Volumes Volumes attached to the instance
Volumes *[]VolumeMount `json:"volumes,omitempty"`
}
Instance defines model for Instance.
type InstanceGPU ¶ added in v0.0.5
type InstanceGPU struct {
// MdevUuid mdev device UUID
MdevUuid *string `json:"mdev_uuid,omitempty"`
// Profile vGPU profile name
Profile *string `json:"profile,omitempty"`
}
InstanceGPU GPU information attached to the instance
type InstanceHealthStatus ¶ added in v0.1.0
type InstanceHealthStatus struct {
// ConsecutiveFailures Consecutive failed checks in the current health window.
ConsecutiveFailures int `json:"consecutive_failures"`
// ConsecutiveSuccesses Consecutive successful checks in the current health window.
ConsecutiveSuccesses int `json:"consecutive_successes"`
// LastCheckedAt Most recent check completion time.
LastCheckedAt *time.Time `json:"last_checked_at"`
// LastError Truncated error from the most recent failed check.
LastError *string `json:"last_error"`
// LastFailureAt Most recent failed check completion time.
LastFailureAt *time.Time `json:"last_failure_at"`
// LastSuccessAt Most recent successful check completion time.
LastSuccessAt *time.Time `json:"last_success_at"`
// Status Current workload health status.
Status InstanceHealthStatusStatus `json:"status"`
}
InstanceHealthStatus defines model for InstanceHealthStatus.
type InstanceHealthStatusStatus ¶ added in v0.1.0
type InstanceHealthStatusStatus string
InstanceHealthStatusStatus Current workload health status.
const ( InstanceHealthStatusStatusDisabled InstanceHealthStatusStatus = "disabled" InstanceHealthStatusStatusHealthy InstanceHealthStatusStatus = "healthy" InstanceHealthStatusStatusStarting InstanceHealthStatusStatus = "starting" InstanceHealthStatusStatusUnhealthy InstanceHealthStatusStatus = "unhealthy" InstanceHealthStatusStatusUnknown InstanceHealthStatusStatus = "unknown" )
Defines values for InstanceHealthStatusStatus.
type InstanceHypervisor ¶
type InstanceHypervisor string
InstanceHypervisor Hypervisor running this instance
const ( InstanceHypervisorCloudHypervisor InstanceHypervisor = "cloud-hypervisor" InstanceHypervisorFirecracker InstanceHypervisor = "firecracker" InstanceHypervisorQemu InstanceHypervisor = "qemu" InstanceHypervisorVz InstanceHypervisor = "vz" )
Defines values for InstanceHypervisor.
type InstanceState ¶
type InstanceState string
InstanceState Instance state: - Created: VMM created but not started (Cloud Hypervisor native) - Initializing: VM is running while guest init is still in progress - Running: Guest program has started and instance is ready - Paused: VM is paused (Cloud Hypervisor native) - Shutdown: VM shut down but VMM exists (Cloud Hypervisor native) - Stopped: No VMM running, no snapshot exists - Standby: No VMM running, snapshot exists (can be restored) - Unknown: Failed to determine state (see state_error for details)
const ( InstanceStateCreated InstanceState = "Created" InstanceStateInitializing InstanceState = "Initializing" InstanceStatePaused InstanceState = "Paused" InstanceStateRunning InstanceState = "Running" InstanceStateShutdown InstanceState = "Shutdown" InstanceStateStandby InstanceState = "Standby" InstanceStateStopped InstanceState = "Stopped" InstanceStateUnknown InstanceState = "Unknown" )
Defines values for InstanceState.
type InstanceStats ¶ added in v0.0.6
type InstanceStats struct {
// AllocatedMemoryBytes Total memory allocated to the VM (Size + HotplugSize) in bytes
AllocatedMemoryBytes int64 `json:"allocated_memory_bytes"`
// AllocatedVcpus Number of vCPUs allocated to the VM
AllocatedVcpus int `json:"allocated_vcpus"`
// CpuSeconds Total CPU time consumed by the VM hypervisor process in seconds
CpuSeconds float64 `json:"cpu_seconds"`
// InstanceId Instance identifier
InstanceId string `json:"instance_id"`
// InstanceName Instance name
InstanceName string `json:"instance_name"`
// MemoryRssBytes Resident Set Size - actual physical memory used by the VM in bytes
MemoryRssBytes int64 `json:"memory_rss_bytes"`
// MemoryUtilizationRatio Memory utilization ratio (RSS / allocated memory). Only present when allocated_memory_bytes > 0.
MemoryUtilizationRatio *float64 `json:"memory_utilization_ratio"`
// MemoryVmsBytes Virtual Memory Size - total virtual memory allocated in bytes
MemoryVmsBytes int64 `json:"memory_vms_bytes"`
// NetworkRxBytes Total network bytes received by the VM (from TAP interface)
NetworkRxBytes int64 `json:"network_rx_bytes"`
// NetworkTxBytes Total network bytes transmitted by the VM (from TAP interface)
NetworkTxBytes int64 `json:"network_tx_bytes"`
}
InstanceStats Real-time resource utilization statistics for a VM instance
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type ListAvailableDevices200JSONResponse ¶
type ListAvailableDevices200JSONResponse []AvailableDevice
func (ListAvailableDevices200JSONResponse) VisitListAvailableDevicesResponse ¶
func (response ListAvailableDevices200JSONResponse) VisitListAvailableDevicesResponse(w http.ResponseWriter) error
type ListAvailableDevices401JSONResponse ¶
type ListAvailableDevices401JSONResponse Error
func (ListAvailableDevices401JSONResponse) VisitListAvailableDevicesResponse ¶
func (response ListAvailableDevices401JSONResponse) VisitListAvailableDevicesResponse(w http.ResponseWriter) error
type ListAvailableDevices500JSONResponse ¶
type ListAvailableDevices500JSONResponse Error
func (ListAvailableDevices500JSONResponse) VisitListAvailableDevicesResponse ¶
func (response ListAvailableDevices500JSONResponse) VisitListAvailableDevicesResponse(w http.ResponseWriter) error
type ListAvailableDevicesRequestObject ¶
type ListAvailableDevicesRequestObject struct {
}
type ListAvailableDevicesResponse ¶
type ListAvailableDevicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]AvailableDevice
JSON401 *Error
JSON500 *Error
}
func ParseListAvailableDevicesResponse ¶
func ParseListAvailableDevicesResponse(rsp *http.Response) (*ListAvailableDevicesResponse, error)
ParseListAvailableDevicesResponse parses an HTTP response from a ListAvailableDevicesWithResponse call
func (ListAvailableDevicesResponse) Status ¶
func (r ListAvailableDevicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListAvailableDevicesResponse) StatusCode ¶
func (r ListAvailableDevicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAvailableDevicesResponseObject ¶
type ListAvailableDevicesResponseObject interface {
VisitListAvailableDevicesResponse(w http.ResponseWriter) error
}
type ListBuilds200JSONResponse ¶
type ListBuilds200JSONResponse []Build
func (ListBuilds200JSONResponse) VisitListBuildsResponse ¶
func (response ListBuilds200JSONResponse) VisitListBuildsResponse(w http.ResponseWriter) error
type ListBuilds401JSONResponse ¶
type ListBuilds401JSONResponse Error
func (ListBuilds401JSONResponse) VisitListBuildsResponse ¶
func (response ListBuilds401JSONResponse) VisitListBuildsResponse(w http.ResponseWriter) error
type ListBuilds500JSONResponse ¶
type ListBuilds500JSONResponse Error
func (ListBuilds500JSONResponse) VisitListBuildsResponse ¶
func (response ListBuilds500JSONResponse) VisitListBuildsResponse(w http.ResponseWriter) error
type ListBuildsParams ¶ added in v0.1.0
type ListBuildsParams struct {
// Tags Filter builds by tag key-value pairs.
Tags *Tags `json:"tags,omitempty"`
}
ListBuildsParams defines parameters for ListBuilds.
type ListBuildsRequestObject ¶
type ListBuildsRequestObject struct {
Params ListBuildsParams
}
type ListBuildsResponse ¶
type ListBuildsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Build
JSON401 *Error
JSON500 *Error
}
func ParseListBuildsResponse ¶
func ParseListBuildsResponse(rsp *http.Response) (*ListBuildsResponse, error)
ParseListBuildsResponse parses an HTTP response from a ListBuildsWithResponse call
func (ListBuildsResponse) Status ¶
func (r ListBuildsResponse) Status() string
Status returns HTTPResponse.Status
func (ListBuildsResponse) StatusCode ¶
func (r ListBuildsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListBuildsResponseObject ¶
type ListBuildsResponseObject interface {
VisitListBuildsResponse(w http.ResponseWriter) error
}
type ListDevices200JSONResponse ¶
type ListDevices200JSONResponse []Device
func (ListDevices200JSONResponse) VisitListDevicesResponse ¶
func (response ListDevices200JSONResponse) VisitListDevicesResponse(w http.ResponseWriter) error
type ListDevices401JSONResponse ¶
type ListDevices401JSONResponse Error
func (ListDevices401JSONResponse) VisitListDevicesResponse ¶
func (response ListDevices401JSONResponse) VisitListDevicesResponse(w http.ResponseWriter) error
type ListDevices500JSONResponse ¶
type ListDevices500JSONResponse Error
func (ListDevices500JSONResponse) VisitListDevicesResponse ¶
func (response ListDevices500JSONResponse) VisitListDevicesResponse(w http.ResponseWriter) error
type ListDevicesParams ¶ added in v0.1.0
type ListDevicesParams struct {
// Tags Filter devices by tag key-value pairs.
Tags *Tags `json:"tags,omitempty"`
}
ListDevicesParams defines parameters for ListDevices.
type ListDevicesRequestObject ¶
type ListDevicesRequestObject struct {
Params ListDevicesParams
}
type ListDevicesResponse ¶
type ListDevicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Device
JSON401 *Error
JSON500 *Error
}
func ParseListDevicesResponse ¶
func ParseListDevicesResponse(rsp *http.Response) (*ListDevicesResponse, error)
ParseListDevicesResponse parses an HTTP response from a ListDevicesWithResponse call
func (ListDevicesResponse) Status ¶
func (r ListDevicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListDevicesResponse) StatusCode ¶
func (r ListDevicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDevicesResponseObject ¶
type ListDevicesResponseObject interface {
VisitListDevicesResponse(w http.ResponseWriter) error
}
type ListImages200JSONResponse ¶
type ListImages200JSONResponse []Image
func (ListImages200JSONResponse) VisitListImagesResponse ¶
func (response ListImages200JSONResponse) VisitListImagesResponse(w http.ResponseWriter) error
type ListImages401JSONResponse ¶
type ListImages401JSONResponse Error
func (ListImages401JSONResponse) VisitListImagesResponse ¶
func (response ListImages401JSONResponse) VisitListImagesResponse(w http.ResponseWriter) error
type ListImages500JSONResponse ¶
type ListImages500JSONResponse Error
func (ListImages500JSONResponse) VisitListImagesResponse ¶
func (response ListImages500JSONResponse) VisitListImagesResponse(w http.ResponseWriter) error
type ListImagesParams ¶ added in v0.1.0
type ListImagesParams struct {
// Tags Filter images by tag key-value pairs.
Tags *Tags `json:"tags,omitempty"`
}
ListImagesParams defines parameters for ListImages.
type ListImagesRequestObject ¶
type ListImagesRequestObject struct {
Params ListImagesParams
}
type ListImagesResponse ¶
type ListImagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Image
JSON401 *Error
JSON500 *Error
}
func ParseListImagesResponse ¶
func ParseListImagesResponse(rsp *http.Response) (*ListImagesResponse, error)
ParseListImagesResponse parses an HTTP response from a ListImagesWithResponse call
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 ListImagesResponseObject ¶
type ListImagesResponseObject interface {
VisitListImagesResponse(w http.ResponseWriter) error
}
type ListIngresses200JSONResponse ¶
type ListIngresses200JSONResponse []Ingress
func (ListIngresses200JSONResponse) VisitListIngressesResponse ¶
func (response ListIngresses200JSONResponse) VisitListIngressesResponse(w http.ResponseWriter) error
type ListIngresses401JSONResponse ¶
type ListIngresses401JSONResponse Error
func (ListIngresses401JSONResponse) VisitListIngressesResponse ¶
func (response ListIngresses401JSONResponse) VisitListIngressesResponse(w http.ResponseWriter) error
type ListIngresses500JSONResponse ¶
type ListIngresses500JSONResponse Error
func (ListIngresses500JSONResponse) VisitListIngressesResponse ¶
func (response ListIngresses500JSONResponse) VisitListIngressesResponse(w http.ResponseWriter) error
type ListIngressesParams ¶ added in v0.1.0
type ListIngressesParams struct {
// Tags Filter ingresses by tag key-value pairs.
Tags *Tags `json:"tags,omitempty"`
}
ListIngressesParams defines parameters for ListIngresses.
type ListIngressesRequestObject ¶
type ListIngressesRequestObject struct {
Params ListIngressesParams
}
type ListIngressesResponse ¶
type ListIngressesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Ingress
JSON401 *Error
JSON500 *Error
}
func ParseListIngressesResponse ¶
func ParseListIngressesResponse(rsp *http.Response) (*ListIngressesResponse, error)
ParseListIngressesResponse parses an HTTP response from a ListIngressesWithResponse call
func (ListIngressesResponse) Status ¶
func (r ListIngressesResponse) Status() string
Status returns HTTPResponse.Status
func (ListIngressesResponse) StatusCode ¶
func (r ListIngressesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListIngressesResponseObject ¶
type ListIngressesResponseObject interface {
VisitListIngressesResponse(w http.ResponseWriter) error
}
type ListInstances200JSONResponse ¶
type ListInstances200JSONResponse []Instance
func (ListInstances200JSONResponse) VisitListInstancesResponse ¶
func (response ListInstances200JSONResponse) VisitListInstancesResponse(w http.ResponseWriter) error
type ListInstances401JSONResponse ¶
type ListInstances401JSONResponse Error
func (ListInstances401JSONResponse) VisitListInstancesResponse ¶
func (response ListInstances401JSONResponse) VisitListInstancesResponse(w http.ResponseWriter) error
type ListInstances500JSONResponse ¶
type ListInstances500JSONResponse Error
func (ListInstances500JSONResponse) VisitListInstancesResponse ¶
func (response ListInstances500JSONResponse) VisitListInstancesResponse(w http.ResponseWriter) error
type ListInstancesParams ¶ added in v0.0.7
type ListInstancesParams struct {
// State Filter instances by state (e.g., Running, Stopped)
State *InstanceState `form:"state,omitempty" json:"state,omitempty"`
// Tags Filter instances by tag key-value pairs. Uses deepObject style:
// ?tags[team]=backend&tags[env]=staging
// Multiple entries are ANDed together. All specified key-value pairs must match.
Tags *Tags `json:"tags,omitempty"`
}
ListInstancesParams defines parameters for ListInstances.
type ListInstancesRequestObject ¶
type ListInstancesRequestObject struct {
Params ListInstancesParams
}
type ListInstancesResponse ¶
type ListInstancesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Instance
JSON401 *Error
JSON500 *Error
}
func ParseListInstancesResponse ¶
func ParseListInstancesResponse(rsp *http.Response) (*ListInstancesResponse, error)
ParseListInstancesResponse parses an HTTP response from a ListInstancesWithResponse call
func (ListInstancesResponse) Status ¶
func (r ListInstancesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInstancesResponse) StatusCode ¶
func (r ListInstancesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInstancesResponseObject ¶
type ListInstancesResponseObject interface {
VisitListInstancesResponse(w http.ResponseWriter) error
}
type ListSnapshots200JSONResponse ¶ added in v0.1.0
type ListSnapshots200JSONResponse []Snapshot
func (ListSnapshots200JSONResponse) VisitListSnapshotsResponse ¶ added in v0.1.0
func (response ListSnapshots200JSONResponse) VisitListSnapshotsResponse(w http.ResponseWriter) error
type ListSnapshots500JSONResponse ¶ added in v0.1.0
type ListSnapshots500JSONResponse Error
func (ListSnapshots500JSONResponse) VisitListSnapshotsResponse ¶ added in v0.1.0
func (response ListSnapshots500JSONResponse) VisitListSnapshotsResponse(w http.ResponseWriter) error
type ListSnapshotsParams ¶ added in v0.1.0
type ListSnapshotsParams struct {
// SourceInstanceId Filter snapshots by source instance ID
SourceInstanceId *string `form:"source_instance_id,omitempty" json:"source_instance_id,omitempty"`
// Kind Filter snapshots by kind
Kind *SnapshotKind `form:"kind,omitempty" json:"kind,omitempty"`
// Name Filter snapshots by snapshot name
Name *string `form:"name,omitempty" json:"name,omitempty"`
// Tags Filter snapshots by tag key-value pairs.
Tags *Tags `json:"tags,omitempty"`
}
ListSnapshotsParams defines parameters for ListSnapshots.
type ListSnapshotsRequestObject ¶ added in v0.1.0
type ListSnapshotsRequestObject struct {
Params ListSnapshotsParams
}
type ListSnapshotsResponse ¶ added in v0.1.0
type ListSnapshotsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Snapshot
JSON500 *Error
}
func ParseListSnapshotsResponse ¶ added in v0.1.0
func ParseListSnapshotsResponse(rsp *http.Response) (*ListSnapshotsResponse, error)
ParseListSnapshotsResponse parses an HTTP response from a ListSnapshotsWithResponse call
func (ListSnapshotsResponse) Status ¶ added in v0.1.0
func (r ListSnapshotsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSnapshotsResponse) StatusCode ¶ added in v0.1.0
func (r ListSnapshotsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSnapshotsResponseObject ¶ added in v0.1.0
type ListSnapshotsResponseObject interface {
VisitListSnapshotsResponse(w http.ResponseWriter) error
}
type ListVolumes200JSONResponse ¶
type ListVolumes200JSONResponse []Volume
func (ListVolumes200JSONResponse) VisitListVolumesResponse ¶
func (response ListVolumes200JSONResponse) VisitListVolumesResponse(w http.ResponseWriter) error
type ListVolumes401JSONResponse ¶
type ListVolumes401JSONResponse Error
func (ListVolumes401JSONResponse) VisitListVolumesResponse ¶
func (response ListVolumes401JSONResponse) VisitListVolumesResponse(w http.ResponseWriter) error
type ListVolumes500JSONResponse ¶
type ListVolumes500JSONResponse Error
func (ListVolumes500JSONResponse) VisitListVolumesResponse ¶
func (response ListVolumes500JSONResponse) VisitListVolumesResponse(w http.ResponseWriter) error
type ListVolumesParams ¶ added in v0.1.0
type ListVolumesParams struct {
// Tags Filter volumes by tag key-value pairs.
Tags *Tags `json:"tags,omitempty"`
}
ListVolumesParams defines parameters for ListVolumes.
type ListVolumesRequestObject ¶
type ListVolumesRequestObject struct {
Params ListVolumesParams
}
type ListVolumesResponse ¶
type ListVolumesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Volume
JSON401 *Error
JSON500 *Error
}
func ParseListVolumesResponse ¶
func ParseListVolumesResponse(rsp *http.Response) (*ListVolumesResponse, error)
ParseListVolumesResponse parses an HTTP response from a ListVolumesWithResponse call
func (ListVolumesResponse) Status ¶
func (r ListVolumesResponse) Status() string
Status returns HTTPResponse.Status
func (ListVolumesResponse) StatusCode ¶
func (r ListVolumesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListVolumesResponseObject ¶
type ListVolumesResponseObject interface {
VisitListVolumesResponse(w http.ResponseWriter) error
}
type MemoryReclaimAction ¶ added in v0.1.0
type MemoryReclaimAction struct {
AppliedReclaimBytes int64 `json:"applied_reclaim_bytes"`
AssignedMemoryBytes int64 `json:"assigned_memory_bytes"`
// Error Error message when status is error or unsupported.
Error *string `json:"error,omitempty"`
Hypervisor MemoryReclaimActionHypervisor `json:"hypervisor"`
InstanceId string `json:"instance_id"`
InstanceName string `json:"instance_name"`
PlannedTargetGuestMemoryBytes int64 `json:"planned_target_guest_memory_bytes"`
PreviousTargetGuestMemoryBytes int64 `json:"previous_target_guest_memory_bytes"`
ProtectedFloorBytes int64 `json:"protected_floor_bytes"`
// Status Result of this VM's reclaim step.
Status string `json:"status"`
TargetGuestMemoryBytes int64 `json:"target_guest_memory_bytes"`
}
MemoryReclaimAction defines model for MemoryReclaimAction.
type MemoryReclaimActionHypervisor ¶ added in v0.1.0
type MemoryReclaimActionHypervisor string
MemoryReclaimActionHypervisor defines model for MemoryReclaimAction.Hypervisor.
const ( MemoryReclaimActionHypervisorCloudHypervisor MemoryReclaimActionHypervisor = "cloud-hypervisor" MemoryReclaimActionHypervisorFirecracker MemoryReclaimActionHypervisor = "firecracker" MemoryReclaimActionHypervisorQemu MemoryReclaimActionHypervisor = "qemu" MemoryReclaimActionHypervisorVz MemoryReclaimActionHypervisor = "vz" )
Defines values for MemoryReclaimActionHypervisor.
type MemoryReclaimRequest ¶ added in v0.1.0
type MemoryReclaimRequest struct {
// DryRun Calculate a reclaim plan without applying balloon changes or creating a hold.
DryRun *bool `json:"dry_run,omitempty"`
// HoldFor How long to keep the reclaim hold active (Go duration string). Defaults to 5m when omitted.
HoldFor *string `json:"hold_for,omitempty"`
// Reason Optional operator-provided reason attached to logs and traces.
Reason *string `json:"reason,omitempty"`
// ReclaimBytes Total bytes of guest memory to reclaim across eligible VMs.
ReclaimBytes int64 `json:"reclaim_bytes"`
}
MemoryReclaimRequest defines model for MemoryReclaimRequest.
type MemoryReclaimResponse ¶ added in v0.1.0
type MemoryReclaimResponse struct {
Actions []MemoryReclaimAction `json:"actions"`
AppliedReclaimBytes int64 `json:"applied_reclaim_bytes"`
// HoldUntil When the current manual reclaim hold expires.
HoldUntil *time.Time `json:"hold_until,omitempty"`
HostAvailableBytes int64 `json:"host_available_bytes"`
HostPressureState MemoryReclaimResponseHostPressureState `json:"host_pressure_state"`
PlannedReclaimBytes int64 `json:"planned_reclaim_bytes"`
RequestedReclaimBytes int64 `json:"requested_reclaim_bytes"`
}
MemoryReclaimResponse defines model for MemoryReclaimResponse.
type MemoryReclaimResponseHostPressureState ¶ added in v0.1.0
type MemoryReclaimResponseHostPressureState string
MemoryReclaimResponseHostPressureState defines model for MemoryReclaimResponse.HostPressureState.
const ( MemoryReclaimResponseHostPressureStateHealthy MemoryReclaimResponseHostPressureState = "healthy" MemoryReclaimResponseHostPressureStatePressure MemoryReclaimResponseHostPressureState = "pressure" )
Defines values for MemoryReclaimResponseHostPressureState.
type PassthroughDevice ¶ added in v0.0.5
type PassthroughDevice struct {
// Available Whether this GPU is available (not attached to an instance)
Available bool `json:"available"`
// Name GPU name
Name string `json:"name"`
}
PassthroughDevice Physical GPU available for passthrough
type PathInfo ¶
type PathInfo struct {
// Error Error message if stat failed (e.g., permission denied). Only set when exists is false due to an error rather than the path not existing.
Error *string `json:"error"`
// Exists Whether the path exists
Exists bool `json:"exists"`
// IsDir True if this is a directory
IsDir *bool `json:"is_dir,omitempty"`
// IsFile True if this is a regular file
IsFile *bool `json:"is_file,omitempty"`
// IsSymlink True if this is a symbolic link (only set when follow_links=false)
IsSymlink *bool `json:"is_symlink,omitempty"`
// LinkTarget Symlink target path (only set when is_symlink=true)
LinkTarget *string `json:"link_target"`
// Mode File mode (Unix permissions)
Mode *int `json:"mode,omitempty"`
// Size File size in bytes
Size *int64 `json:"size,omitempty"`
}
PathInfo defines model for PathInfo.
type ReclaimMemory200JSONResponse ¶ added in v0.1.0
type ReclaimMemory200JSONResponse MemoryReclaimResponse
func (ReclaimMemory200JSONResponse) VisitReclaimMemoryResponse ¶ added in v0.1.0
func (response ReclaimMemory200JSONResponse) VisitReclaimMemoryResponse(w http.ResponseWriter) error
type ReclaimMemory400JSONResponse ¶ added in v0.1.0
type ReclaimMemory400JSONResponse Error
func (ReclaimMemory400JSONResponse) VisitReclaimMemoryResponse ¶ added in v0.1.0
func (response ReclaimMemory400JSONResponse) VisitReclaimMemoryResponse(w http.ResponseWriter) error
type ReclaimMemory401JSONResponse ¶ added in v0.1.0
type ReclaimMemory401JSONResponse Error
func (ReclaimMemory401JSONResponse) VisitReclaimMemoryResponse ¶ added in v0.1.0
func (response ReclaimMemory401JSONResponse) VisitReclaimMemoryResponse(w http.ResponseWriter) error
type ReclaimMemory500JSONResponse ¶ added in v0.1.0
type ReclaimMemory500JSONResponse Error
func (ReclaimMemory500JSONResponse) VisitReclaimMemoryResponse ¶ added in v0.1.0
func (response ReclaimMemory500JSONResponse) VisitReclaimMemoryResponse(w http.ResponseWriter) error
type ReclaimMemoryJSONRequestBody ¶ added in v0.1.0
type ReclaimMemoryJSONRequestBody = MemoryReclaimRequest
ReclaimMemoryJSONRequestBody defines body for ReclaimMemory for application/json ContentType.
type ReclaimMemoryRequestObject ¶ added in v0.1.0
type ReclaimMemoryRequestObject struct {
Body *ReclaimMemoryJSONRequestBody
}
type ReclaimMemoryResponse ¶ added in v0.1.0
type ReclaimMemoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *MemoryReclaimResponse
JSON400 *Error
JSON401 *Error
JSON500 *Error
}
func ParseReclaimMemoryResponse ¶ added in v0.1.0
func ParseReclaimMemoryResponse(rsp *http.Response) (*ReclaimMemoryResponse, error)
ParseReclaimMemoryResponse parses an HTTP response from a ReclaimMemoryWithResponse call
func (ReclaimMemoryResponse) Status ¶ added in v0.1.0
func (r ReclaimMemoryResponse) Status() string
Status returns HTTPResponse.Status
func (ReclaimMemoryResponse) StatusCode ¶ added in v0.1.0
func (r ReclaimMemoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ReclaimMemoryResponseObject ¶ added in v0.1.0
type ReclaimMemoryResponseObject interface {
VisitReclaimMemoryResponse(w http.ResponseWriter) error
}
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ResourceAllocation ¶
type ResourceAllocation struct {
// Cpu vCPUs allocated
Cpu *int `json:"cpu,omitempty"`
// DiskBytes Disk allocated in bytes (overlay + volumes)
DiskBytes *int64 `json:"disk_bytes,omitempty"`
// DiskIoBps Disk I/O bandwidth limit in bytes/sec
DiskIoBps *int64 `json:"disk_io_bps,omitempty"`
// InstanceId Instance identifier
InstanceId *string `json:"instance_id,omitempty"`
// InstanceName Instance name
InstanceName *string `json:"instance_name,omitempty"`
// MemoryBytes Memory allocated in bytes
MemoryBytes *int64 `json:"memory_bytes,omitempty"`
// NetworkDownloadBps Download bandwidth limit in bytes/sec (external→VM)
NetworkDownloadBps *int64 `json:"network_download_bps,omitempty"`
// NetworkUploadBps Upload bandwidth limit in bytes/sec (VM→external)
NetworkUploadBps *int64 `json:"network_upload_bps,omitempty"`
}
ResourceAllocation defines model for ResourceAllocation.
type ResourceStatus ¶
type ResourceStatus struct {
// Allocated Currently allocated resources
Allocated int64 `json:"allocated"`
// Available Available for allocation (effective_limit - allocated)
Available int64 `json:"available"`
// Capacity Raw host capacity
Capacity int64 `json:"capacity"`
// EffectiveLimit Capacity after oversubscription (capacity * ratio)
EffectiveLimit int64 `json:"effective_limit"`
// OversubRatio Oversubscription ratio applied
OversubRatio float64 `json:"oversub_ratio"`
// Source How capacity was determined (detected, configured)
Source *string `json:"source,omitempty"`
// Type Resource type
Type string `json:"type"`
}
ResourceStatus defines model for ResourceStatus.
type Resources ¶
type Resources struct {
Allocations []ResourceAllocation `json:"allocations"`
Cpu ResourceStatus `json:"cpu"`
Disk ResourceStatus `json:"disk"`
DiskBreakdown *DiskBreakdown `json:"disk_breakdown,omitempty"`
DiskIo *ResourceStatus `json:"disk_io,omitempty"`
// Gpu GPU resource status. Null if no GPUs available.
Gpu *GPUResourceStatus `json:"gpu"`
Memory ResourceStatus `json:"memory"`
Network ResourceStatus `json:"network"`
}
Resources defines model for Resources.
type RestartPolicy ¶ added in v0.1.0
type RestartPolicy struct {
// Backoff Delay before each restart attempt, expressed as a Go duration like "5s" or "1m".
Backoff *string `json:"backoff,omitempty"`
// MaxAttempts Consecutive automatic restart attempts before blocking retries. 0 means unlimited.
MaxAttempts *int `json:"max_attempts,omitempty"`
// Policy Restart behavior when the guest program exits:
// - never: do not automatically restart
// - always: restart after any guest exit
// - on_failure: restart only for nonzero, signaled, OOM, or unknown exits
Policy *RestartPolicyPolicy `json:"policy,omitempty"`
// StableAfter Running this long resets the consecutive restart attempt count.
StableAfter *string `json:"stable_after,omitempty"`
}
RestartPolicy Whole-instance restart supervision policy.
type RestartPolicyPolicy ¶ added in v0.1.0
type RestartPolicyPolicy string
RestartPolicyPolicy Restart behavior when the guest program exits: - never: do not automatically restart - always: restart after any guest exit - on_failure: restart only for nonzero, signaled, OOM, or unknown exits
const ( Always RestartPolicyPolicy = "always" Never RestartPolicyPolicy = "never" OnFailure RestartPolicyPolicy = "on_failure" )
Defines values for RestartPolicyPolicy.
type RestartStatus ¶ added in v0.1.0
type RestartStatus struct {
// Attempts Consecutive automatic restart attempts in the current failure window.
Attempts *int `json:"attempts,omitempty"`
// BlockedReason Reason automatic restarts are currently blocked.
BlockedReason *RestartStatusBlockedReason `json:"blocked_reason"`
// LastAttemptAt Last time Hypeman attempted an automatic restart.
LastAttemptAt *time.Time `json:"last_attempt_at"`
// LastReason Most recent non-exit failure signal that entered restart policy.
LastReason *RestartStatusLastReason `json:"last_reason"`
// NextAttemptAt Next scheduled automatic restart attempt after backoff.
NextAttemptAt *time.Time `json:"next_attempt_at"`
}
RestartStatus Runtime status for restart policy decisions.
type RestartStatusBlockedReason ¶ added in v0.1.0
type RestartStatusBlockedReason string
RestartStatusBlockedReason Reason automatic restarts are currently blocked.
const ( ManualStop RestartStatusBlockedReason = "manual_stop" MaxAttemptsExceeded RestartStatusBlockedReason = "max_attempts_exceeded" )
Defines values for RestartStatusBlockedReason.
type RestartStatusLastReason ¶ added in v0.1.0
type RestartStatusLastReason string
RestartStatusLastReason Most recent non-exit failure signal that entered restart policy.
const (
HealthCheckFailed RestartStatusLastReason = "health_check_failed"
)
Defines values for RestartStatusLastReason.
type RestoreInstance200JSONResponse ¶
type RestoreInstance200JSONResponse Instance
func (RestoreInstance200JSONResponse) VisitRestoreInstanceResponse ¶
func (response RestoreInstance200JSONResponse) VisitRestoreInstanceResponse(w http.ResponseWriter) error
type RestoreInstance404JSONResponse ¶
type RestoreInstance404JSONResponse Error
func (RestoreInstance404JSONResponse) VisitRestoreInstanceResponse ¶
func (response RestoreInstance404JSONResponse) VisitRestoreInstanceResponse(w http.ResponseWriter) error
type RestoreInstance409JSONResponse ¶
type RestoreInstance409JSONResponse Error
func (RestoreInstance409JSONResponse) VisitRestoreInstanceResponse ¶
func (response RestoreInstance409JSONResponse) VisitRestoreInstanceResponse(w http.ResponseWriter) error
type RestoreInstance500JSONResponse ¶
type RestoreInstance500JSONResponse Error
func (RestoreInstance500JSONResponse) VisitRestoreInstanceResponse ¶
func (response RestoreInstance500JSONResponse) VisitRestoreInstanceResponse(w http.ResponseWriter) error
type RestoreInstanceRequestObject ¶
type RestoreInstanceRequestObject struct {
Id string `json:"id"`
}
type RestoreInstanceResponse ¶
type RestoreInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Instance
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseRestoreInstanceResponse ¶
func ParseRestoreInstanceResponse(rsp *http.Response) (*RestoreInstanceResponse, error)
ParseRestoreInstanceResponse parses an HTTP response from a RestoreInstanceWithResponse call
func (RestoreInstanceResponse) Status ¶
func (r RestoreInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (RestoreInstanceResponse) StatusCode ¶
func (r RestoreInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RestoreInstanceResponseObject ¶
type RestoreInstanceResponseObject interface {
VisitRestoreInstanceResponse(w http.ResponseWriter) error
}
type RestoreInstanceSnapshot200JSONResponse ¶ added in v0.1.0
type RestoreInstanceSnapshot200JSONResponse Instance
func (RestoreInstanceSnapshot200JSONResponse) VisitRestoreInstanceSnapshotResponse ¶ added in v0.1.0
func (response RestoreInstanceSnapshot200JSONResponse) VisitRestoreInstanceSnapshotResponse(w http.ResponseWriter) error
type RestoreInstanceSnapshot400JSONResponse ¶ added in v0.1.0
type RestoreInstanceSnapshot400JSONResponse Error
func (RestoreInstanceSnapshot400JSONResponse) VisitRestoreInstanceSnapshotResponse ¶ added in v0.1.0
func (response RestoreInstanceSnapshot400JSONResponse) VisitRestoreInstanceSnapshotResponse(w http.ResponseWriter) error
type RestoreInstanceSnapshot404JSONResponse ¶ added in v0.1.0
type RestoreInstanceSnapshot404JSONResponse Error
func (RestoreInstanceSnapshot404JSONResponse) VisitRestoreInstanceSnapshotResponse ¶ added in v0.1.0
func (response RestoreInstanceSnapshot404JSONResponse) VisitRestoreInstanceSnapshotResponse(w http.ResponseWriter) error
type RestoreInstanceSnapshot409JSONResponse ¶ added in v0.1.0
type RestoreInstanceSnapshot409JSONResponse Error
func (RestoreInstanceSnapshot409JSONResponse) VisitRestoreInstanceSnapshotResponse ¶ added in v0.1.0
func (response RestoreInstanceSnapshot409JSONResponse) VisitRestoreInstanceSnapshotResponse(w http.ResponseWriter) error
type RestoreInstanceSnapshot500JSONResponse ¶ added in v0.1.0
type RestoreInstanceSnapshot500JSONResponse Error
func (RestoreInstanceSnapshot500JSONResponse) VisitRestoreInstanceSnapshotResponse ¶ added in v0.1.0
func (response RestoreInstanceSnapshot500JSONResponse) VisitRestoreInstanceSnapshotResponse(w http.ResponseWriter) error
type RestoreInstanceSnapshot501JSONResponse ¶ added in v0.1.0
type RestoreInstanceSnapshot501JSONResponse Error
func (RestoreInstanceSnapshot501JSONResponse) VisitRestoreInstanceSnapshotResponse ¶ added in v0.1.0
func (response RestoreInstanceSnapshot501JSONResponse) VisitRestoreInstanceSnapshotResponse(w http.ResponseWriter) error
type RestoreInstanceSnapshotJSONRequestBody ¶ added in v0.1.0
type RestoreInstanceSnapshotJSONRequestBody = RestoreSnapshotRequest
RestoreInstanceSnapshotJSONRequestBody defines body for RestoreInstanceSnapshot for application/json ContentType.
type RestoreInstanceSnapshotRequestObject ¶ added in v0.1.0
type RestoreInstanceSnapshotRequestObject struct {
Id string `json:"id"`
SnapshotId string `json:"snapshotId"`
Body *RestoreInstanceSnapshotJSONRequestBody
}
type RestoreInstanceSnapshotResponse ¶ added in v0.1.0
type RestoreInstanceSnapshotResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Instance
JSON400 *Error
JSON404 *Error
JSON409 *Error
JSON500 *Error
JSON501 *Error
}
func ParseRestoreInstanceSnapshotResponse ¶ added in v0.1.0
func ParseRestoreInstanceSnapshotResponse(rsp *http.Response) (*RestoreInstanceSnapshotResponse, error)
ParseRestoreInstanceSnapshotResponse parses an HTTP response from a RestoreInstanceSnapshotWithResponse call
func (RestoreInstanceSnapshotResponse) Status ¶ added in v0.1.0
func (r RestoreInstanceSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (RestoreInstanceSnapshotResponse) StatusCode ¶ added in v0.1.0
func (r RestoreInstanceSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RestoreInstanceSnapshotResponseObject ¶ added in v0.1.0
type RestoreInstanceSnapshotResponseObject interface {
VisitRestoreInstanceSnapshotResponse(w http.ResponseWriter) error
}
type RestoreSnapshotRequest ¶ added in v0.1.0
type RestoreSnapshotRequest struct {
// TargetHypervisor Optional hypervisor override. Allowed only when restoring from a Stopped snapshot.
// Standby snapshots must restore with their original hypervisor.
TargetHypervisor *RestoreSnapshotRequestTargetHypervisor `json:"target_hypervisor,omitempty"`
// TargetState Target state when restoring or forking from a snapshot
TargetState *SnapshotTargetState `json:"target_state,omitempty"`
}
RestoreSnapshotRequest defines model for RestoreSnapshotRequest.
type RestoreSnapshotRequestTargetHypervisor ¶ added in v0.1.0
type RestoreSnapshotRequestTargetHypervisor string
RestoreSnapshotRequestTargetHypervisor Optional hypervisor override. Allowed only when restoring from a Stopped snapshot. Standby snapshots must restore with their original hypervisor.
const ( RestoreSnapshotRequestTargetHypervisorCloudHypervisor RestoreSnapshotRequestTargetHypervisor = "cloud-hypervisor" RestoreSnapshotRequestTargetHypervisorFirecracker RestoreSnapshotRequestTargetHypervisor = "firecracker" RestoreSnapshotRequestTargetHypervisorQemu RestoreSnapshotRequestTargetHypervisor = "qemu" RestoreSnapshotRequestTargetHypervisorVz RestoreSnapshotRequestTargetHypervisor = "vz" )
Defines values for RestoreSnapshotRequestTargetHypervisor.
type ServerInterface ¶
type ServerInterface interface {
// List builds
// (GET /builds)
ListBuilds(w http.ResponseWriter, r *http.Request, params ListBuildsParams)
// Create a new build
// (POST /builds)
CreateBuild(w http.ResponseWriter, r *http.Request)
// Cancel build
// (DELETE /builds/{id})
CancelBuild(w http.ResponseWriter, r *http.Request, id string)
// Get build details
// (GET /builds/{id})
GetBuild(w http.ResponseWriter, r *http.Request, id string)
// Stream build events (SSE)
// (GET /builds/{id}/events)
GetBuildEvents(w http.ResponseWriter, r *http.Request, id string, params GetBuildEventsParams)
// List registered devices
// (GET /devices)
ListDevices(w http.ResponseWriter, r *http.Request, params ListDevicesParams)
// Register a device for passthrough
// (POST /devices)
CreateDevice(w http.ResponseWriter, r *http.Request)
// Discover passthrough-capable devices on host
// (GET /devices/available)
ListAvailableDevices(w http.ResponseWriter, r *http.Request)
// Unregister device
// (DELETE /devices/{id})
DeleteDevice(w http.ResponseWriter, r *http.Request, id string)
// Get device details
// (GET /devices/{id})
GetDevice(w http.ResponseWriter, r *http.Request, id string)
// Health check
// (GET /health)
GetHealth(w http.ResponseWriter, r *http.Request)
// List images
// (GET /images)
ListImages(w http.ResponseWriter, r *http.Request, params ListImagesParams)
// Pull and convert OCI image
// (POST /images)
CreateImage(w http.ResponseWriter, r *http.Request)
// Delete image
// (DELETE /images/{name})
DeleteImage(w http.ResponseWriter, r *http.Request, name string)
// Get image details
// (GET /images/{name})
GetImage(w http.ResponseWriter, r *http.Request, name string)
// List ingresses
// (GET /ingresses)
ListIngresses(w http.ResponseWriter, r *http.Request, params ListIngressesParams)
// Create ingress
// (POST /ingresses)
CreateIngress(w http.ResponseWriter, r *http.Request)
// Delete ingress
// (DELETE /ingresses/{id})
DeleteIngress(w http.ResponseWriter, r *http.Request, id string)
// Get ingress details
// (GET /ingresses/{id})
GetIngress(w http.ResponseWriter, r *http.Request, id string)
// List instances
// (GET /instances)
ListInstances(w http.ResponseWriter, r *http.Request, params ListInstancesParams)
// Create and start instance
// (POST /instances)
CreateInstance(w http.ResponseWriter, r *http.Request)
// Stop and delete instance
// (DELETE /instances/{id})
DeleteInstance(w http.ResponseWriter, r *http.Request, id string)
// Get instance details
// (GET /instances/{id})
GetInstance(w http.ResponseWriter, r *http.Request, id string)
// Update instance properties
// (PATCH /instances/{id})
UpdateInstance(w http.ResponseWriter, r *http.Request, id string)
// Get auto-standby diagnostic status
// (GET /instances/{id}/auto-standby/status)
GetAutoStandbyStatus(w http.ResponseWriter, r *http.Request, id string)
// Fork an instance from stopped, standby, or running (with from_running=true)
// (POST /instances/{id}/fork)
ForkInstance(w http.ResponseWriter, r *http.Request, id string)
// Stream instance logs (SSE)
// (GET /instances/{id}/logs)
GetInstanceLogs(w http.ResponseWriter, r *http.Request, id string, params GetInstanceLogsParams)
// Restore instance from standby
// (POST /instances/{id}/restore)
RestoreInstance(w http.ResponseWriter, r *http.Request, id string)
// Delete snapshot schedule for an instance
// (DELETE /instances/{id}/snapshot-schedule)
DeleteInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request, id string)
// Get snapshot schedule for an instance
// (GET /instances/{id}/snapshot-schedule)
GetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request, id string)
// Create or update snapshot schedule for an instance
// (PUT /instances/{id}/snapshot-schedule)
SetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request, id string)
// Create a snapshot for an instance
// (POST /instances/{id}/snapshots)
CreateInstanceSnapshot(w http.ResponseWriter, r *http.Request, id string)
// Restore an instance from a snapshot in-place
// (POST /instances/{id}/snapshots/{snapshotId}/restore)
RestoreInstanceSnapshot(w http.ResponseWriter, r *http.Request, id string, snapshotId string)
// Put instance in standby (pause, snapshot, delete VMM)
// (POST /instances/{id}/standby)
StandbyInstance(w http.ResponseWriter, r *http.Request, id string)
// Start a stopped instance
// (POST /instances/{id}/start)
StartInstance(w http.ResponseWriter, r *http.Request, id string)
// Get filesystem path info
// (GET /instances/{id}/stat)
StatInstancePath(w http.ResponseWriter, r *http.Request, id string, params StatInstancePathParams)
// Get instance resource utilization stats
// (GET /instances/{id}/stats)
GetInstanceStats(w http.ResponseWriter, r *http.Request, id string)
// Stop instance (graceful shutdown)
// (POST /instances/{id}/stop)
StopInstance(w http.ResponseWriter, r *http.Request, id string)
// Detach volume from instance
// (DELETE /instances/{id}/volumes/{volumeId})
DetachVolume(w http.ResponseWriter, r *http.Request, id string, volumeId string)
// Attach volume to instance
// (POST /instances/{id}/volumes/{volumeId})
AttachVolume(w http.ResponseWriter, r *http.Request, id string, volumeId string)
// Wait for instance to reach a target state
// (GET /instances/{id}/wait)
WaitForInstanceState(w http.ResponseWriter, r *http.Request, id string, params WaitForInstanceStateParams)
// Get host resource capacity and allocations
// (GET /resources)
GetResources(w http.ResponseWriter, r *http.Request)
// Trigger proactive guest memory reclaim
// (POST /resources/memory/reclaim)
ReclaimMemory(w http.ResponseWriter, r *http.Request)
// List snapshots
// (GET /snapshots)
ListSnapshots(w http.ResponseWriter, r *http.Request, params ListSnapshotsParams)
// Delete a snapshot
// (DELETE /snapshots/{snapshotId})
DeleteSnapshot(w http.ResponseWriter, r *http.Request, snapshotId string)
// Get snapshot details
// (GET /snapshots/{snapshotId})
GetSnapshot(w http.ResponseWriter, r *http.Request, snapshotId string)
// Fork a new instance from a snapshot
// (POST /snapshots/{snapshotId}/fork)
ForkSnapshot(w http.ResponseWriter, r *http.Request, snapshotId string)
// List volumes
// (GET /volumes)
ListVolumes(w http.ResponseWriter, r *http.Request, params ListVolumesParams)
// Create empty volume
// (POST /volumes)
CreateVolume(w http.ResponseWriter, r *http.Request)
// Create volume from archive
// (POST /volumes/from-archive)
CreateVolumeFromArchive(w http.ResponseWriter, r *http.Request, params CreateVolumeFromArchiveParams)
// Delete volume
// (DELETE /volumes/{id})
DeleteVolume(w http.ResponseWriter, r *http.Request, id string)
// Get volume details
// (GET /volumes/{id})
GetVolume(w http.ResponseWriter, r *http.Request, id string)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AttachVolume ¶
func (siw *ServerInterfaceWrapper) AttachVolume(w http.ResponseWriter, r *http.Request)
AttachVolume operation middleware
func (*ServerInterfaceWrapper) CancelBuild ¶
func (siw *ServerInterfaceWrapper) CancelBuild(w http.ResponseWriter, r *http.Request)
CancelBuild operation middleware
func (*ServerInterfaceWrapper) CreateBuild ¶
func (siw *ServerInterfaceWrapper) CreateBuild(w http.ResponseWriter, r *http.Request)
CreateBuild operation middleware
func (*ServerInterfaceWrapper) CreateDevice ¶
func (siw *ServerInterfaceWrapper) CreateDevice(w http.ResponseWriter, r *http.Request)
CreateDevice operation middleware
func (*ServerInterfaceWrapper) CreateImage ¶
func (siw *ServerInterfaceWrapper) CreateImage(w http.ResponseWriter, r *http.Request)
CreateImage operation middleware
func (*ServerInterfaceWrapper) CreateIngress ¶
func (siw *ServerInterfaceWrapper) CreateIngress(w http.ResponseWriter, r *http.Request)
CreateIngress operation middleware
func (*ServerInterfaceWrapper) CreateInstance ¶
func (siw *ServerInterfaceWrapper) CreateInstance(w http.ResponseWriter, r *http.Request)
CreateInstance operation middleware
func (*ServerInterfaceWrapper) CreateInstanceSnapshot ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) CreateInstanceSnapshot(w http.ResponseWriter, r *http.Request)
CreateInstanceSnapshot operation middleware
func (*ServerInterfaceWrapper) CreateVolume ¶
func (siw *ServerInterfaceWrapper) CreateVolume(w http.ResponseWriter, r *http.Request)
CreateVolume operation middleware
func (*ServerInterfaceWrapper) CreateVolumeFromArchive ¶ added in v0.0.6
func (siw *ServerInterfaceWrapper) CreateVolumeFromArchive(w http.ResponseWriter, r *http.Request)
CreateVolumeFromArchive operation middleware
func (*ServerInterfaceWrapper) DeleteDevice ¶
func (siw *ServerInterfaceWrapper) DeleteDevice(w http.ResponseWriter, r *http.Request)
DeleteDevice operation middleware
func (*ServerInterfaceWrapper) DeleteImage ¶
func (siw *ServerInterfaceWrapper) DeleteImage(w http.ResponseWriter, r *http.Request)
DeleteImage operation middleware
func (*ServerInterfaceWrapper) DeleteIngress ¶
func (siw *ServerInterfaceWrapper) DeleteIngress(w http.ResponseWriter, r *http.Request)
DeleteIngress operation middleware
func (*ServerInterfaceWrapper) DeleteInstance ¶
func (siw *ServerInterfaceWrapper) DeleteInstance(w http.ResponseWriter, r *http.Request)
DeleteInstance operation middleware
func (*ServerInterfaceWrapper) DeleteInstanceSnapshotSchedule ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) DeleteInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request)
DeleteInstanceSnapshotSchedule operation middleware
func (*ServerInterfaceWrapper) DeleteSnapshot ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) DeleteSnapshot(w http.ResponseWriter, r *http.Request)
DeleteSnapshot operation middleware
func (*ServerInterfaceWrapper) DeleteVolume ¶
func (siw *ServerInterfaceWrapper) DeleteVolume(w http.ResponseWriter, r *http.Request)
DeleteVolume operation middleware
func (*ServerInterfaceWrapper) DetachVolume ¶
func (siw *ServerInterfaceWrapper) DetachVolume(w http.ResponseWriter, r *http.Request)
DetachVolume operation middleware
func (*ServerInterfaceWrapper) ForkInstance ¶ added in v0.0.7
func (siw *ServerInterfaceWrapper) ForkInstance(w http.ResponseWriter, r *http.Request)
ForkInstance operation middleware
func (*ServerInterfaceWrapper) ForkSnapshot ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) ForkSnapshot(w http.ResponseWriter, r *http.Request)
ForkSnapshot operation middleware
func (*ServerInterfaceWrapper) GetAutoStandbyStatus ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) GetAutoStandbyStatus(w http.ResponseWriter, r *http.Request)
GetAutoStandbyStatus operation middleware
func (*ServerInterfaceWrapper) GetBuild ¶
func (siw *ServerInterfaceWrapper) GetBuild(w http.ResponseWriter, r *http.Request)
GetBuild operation middleware
func (*ServerInterfaceWrapper) GetBuildEvents ¶
func (siw *ServerInterfaceWrapper) GetBuildEvents(w http.ResponseWriter, r *http.Request)
GetBuildEvents operation middleware
func (*ServerInterfaceWrapper) GetDevice ¶
func (siw *ServerInterfaceWrapper) GetDevice(w http.ResponseWriter, r *http.Request)
GetDevice operation middleware
func (*ServerInterfaceWrapper) GetHealth ¶
func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
GetHealth operation middleware
func (*ServerInterfaceWrapper) GetImage ¶
func (siw *ServerInterfaceWrapper) GetImage(w http.ResponseWriter, r *http.Request)
GetImage operation middleware
func (*ServerInterfaceWrapper) GetIngress ¶
func (siw *ServerInterfaceWrapper) GetIngress(w http.ResponseWriter, r *http.Request)
GetIngress operation middleware
func (*ServerInterfaceWrapper) GetInstance ¶
func (siw *ServerInterfaceWrapper) GetInstance(w http.ResponseWriter, r *http.Request)
GetInstance operation middleware
func (*ServerInterfaceWrapper) GetInstanceLogs ¶
func (siw *ServerInterfaceWrapper) GetInstanceLogs(w http.ResponseWriter, r *http.Request)
GetInstanceLogs operation middleware
func (*ServerInterfaceWrapper) GetInstanceSnapshotSchedule ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) GetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request)
GetInstanceSnapshotSchedule operation middleware
func (*ServerInterfaceWrapper) GetInstanceStats ¶ added in v0.0.6
func (siw *ServerInterfaceWrapper) GetInstanceStats(w http.ResponseWriter, r *http.Request)
GetInstanceStats operation middleware
func (*ServerInterfaceWrapper) GetResources ¶
func (siw *ServerInterfaceWrapper) GetResources(w http.ResponseWriter, r *http.Request)
GetResources operation middleware
func (*ServerInterfaceWrapper) GetSnapshot ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) GetSnapshot(w http.ResponseWriter, r *http.Request)
GetSnapshot operation middleware
func (*ServerInterfaceWrapper) GetVolume ¶
func (siw *ServerInterfaceWrapper) GetVolume(w http.ResponseWriter, r *http.Request)
GetVolume operation middleware
func (*ServerInterfaceWrapper) ListAvailableDevices ¶
func (siw *ServerInterfaceWrapper) ListAvailableDevices(w http.ResponseWriter, r *http.Request)
ListAvailableDevices operation middleware
func (*ServerInterfaceWrapper) ListBuilds ¶
func (siw *ServerInterfaceWrapper) ListBuilds(w http.ResponseWriter, r *http.Request)
ListBuilds operation middleware
func (*ServerInterfaceWrapper) ListDevices ¶
func (siw *ServerInterfaceWrapper) ListDevices(w http.ResponseWriter, r *http.Request)
ListDevices operation middleware
func (*ServerInterfaceWrapper) ListImages ¶
func (siw *ServerInterfaceWrapper) ListImages(w http.ResponseWriter, r *http.Request)
ListImages operation middleware
func (*ServerInterfaceWrapper) ListIngresses ¶
func (siw *ServerInterfaceWrapper) ListIngresses(w http.ResponseWriter, r *http.Request)
ListIngresses operation middleware
func (*ServerInterfaceWrapper) ListInstances ¶
func (siw *ServerInterfaceWrapper) ListInstances(w http.ResponseWriter, r *http.Request)
ListInstances operation middleware
func (*ServerInterfaceWrapper) ListSnapshots ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) ListSnapshots(w http.ResponseWriter, r *http.Request)
ListSnapshots operation middleware
func (*ServerInterfaceWrapper) ListVolumes ¶
func (siw *ServerInterfaceWrapper) ListVolumes(w http.ResponseWriter, r *http.Request)
ListVolumes operation middleware
func (*ServerInterfaceWrapper) ReclaimMemory ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) ReclaimMemory(w http.ResponseWriter, r *http.Request)
ReclaimMemory operation middleware
func (*ServerInterfaceWrapper) RestoreInstance ¶
func (siw *ServerInterfaceWrapper) RestoreInstance(w http.ResponseWriter, r *http.Request)
RestoreInstance operation middleware
func (*ServerInterfaceWrapper) RestoreInstanceSnapshot ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) RestoreInstanceSnapshot(w http.ResponseWriter, r *http.Request)
RestoreInstanceSnapshot operation middleware
func (*ServerInterfaceWrapper) SetInstanceSnapshotSchedule ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) SetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request)
SetInstanceSnapshotSchedule operation middleware
func (*ServerInterfaceWrapper) StandbyInstance ¶
func (siw *ServerInterfaceWrapper) StandbyInstance(w http.ResponseWriter, r *http.Request)
StandbyInstance operation middleware
func (*ServerInterfaceWrapper) StartInstance ¶
func (siw *ServerInterfaceWrapper) StartInstance(w http.ResponseWriter, r *http.Request)
StartInstance operation middleware
func (*ServerInterfaceWrapper) StatInstancePath ¶
func (siw *ServerInterfaceWrapper) StatInstancePath(w http.ResponseWriter, r *http.Request)
StatInstancePath operation middleware
func (*ServerInterfaceWrapper) StopInstance ¶
func (siw *ServerInterfaceWrapper) StopInstance(w http.ResponseWriter, r *http.Request)
StopInstance operation middleware
func (*ServerInterfaceWrapper) UpdateInstance ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) UpdateInstance(w http.ResponseWriter, r *http.Request)
UpdateInstance operation middleware
func (*ServerInterfaceWrapper) WaitForInstanceState ¶ added in v0.1.0
func (siw *ServerInterfaceWrapper) WaitForInstanceState(w http.ResponseWriter, r *http.Request)
WaitForInstanceState operation middleware
type SetInstanceSnapshotSchedule200JSONResponse ¶ added in v0.1.0
type SetInstanceSnapshotSchedule200JSONResponse SnapshotSchedule
func (SetInstanceSnapshotSchedule200JSONResponse) VisitSetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response SetInstanceSnapshotSchedule200JSONResponse) VisitSetInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type SetInstanceSnapshotSchedule400JSONResponse ¶ added in v0.1.0
type SetInstanceSnapshotSchedule400JSONResponse Error
func (SetInstanceSnapshotSchedule400JSONResponse) VisitSetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response SetInstanceSnapshotSchedule400JSONResponse) VisitSetInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type SetInstanceSnapshotSchedule404JSONResponse ¶ added in v0.1.0
type SetInstanceSnapshotSchedule404JSONResponse Error
func (SetInstanceSnapshotSchedule404JSONResponse) VisitSetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response SetInstanceSnapshotSchedule404JSONResponse) VisitSetInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type SetInstanceSnapshotSchedule500JSONResponse ¶ added in v0.1.0
type SetInstanceSnapshotSchedule500JSONResponse Error
func (SetInstanceSnapshotSchedule500JSONResponse) VisitSetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func (response SetInstanceSnapshotSchedule500JSONResponse) VisitSetInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
type SetInstanceSnapshotScheduleJSONRequestBody ¶ added in v0.1.0
type SetInstanceSnapshotScheduleJSONRequestBody = SetSnapshotScheduleRequest
SetInstanceSnapshotScheduleJSONRequestBody defines body for SetInstanceSnapshotSchedule for application/json ContentType.
type SetInstanceSnapshotScheduleRequestObject ¶ added in v0.1.0
type SetInstanceSnapshotScheduleRequestObject struct {
Id string `json:"id"`
Body *SetInstanceSnapshotScheduleJSONRequestBody
}
type SetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
type SetInstanceSnapshotScheduleResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *SnapshotSchedule
JSON400 *Error
JSON404 *Error
JSON500 *Error
}
func ParseSetInstanceSnapshotScheduleResponse ¶ added in v0.1.0
func ParseSetInstanceSnapshotScheduleResponse(rsp *http.Response) (*SetInstanceSnapshotScheduleResponse, error)
ParseSetInstanceSnapshotScheduleResponse parses an HTTP response from a SetInstanceSnapshotScheduleWithResponse call
func (SetInstanceSnapshotScheduleResponse) Status ¶ added in v0.1.0
func (r SetInstanceSnapshotScheduleResponse) Status() string
Status returns HTTPResponse.Status
func (SetInstanceSnapshotScheduleResponse) StatusCode ¶ added in v0.1.0
func (r SetInstanceSnapshotScheduleResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SetInstanceSnapshotScheduleResponseObject ¶ added in v0.1.0
type SetInstanceSnapshotScheduleResponseObject interface {
VisitSetInstanceSnapshotScheduleResponse(w http.ResponseWriter) error
}
type SetSnapshotScheduleRequest ¶ added in v0.1.0
type SetSnapshotScheduleRequest struct {
// Interval Snapshot interval (Go duration format, minimum 1m).
Interval string `json:"interval"`
// Metadata User-defined key-value tags.
Metadata *Tags `json:"metadata,omitempty"`
// NamePrefix Optional prefix for auto-generated scheduled snapshot names (max 47 chars).
NamePrefix *string `json:"name_prefix"`
// Retention Automatic cleanup policy for scheduled snapshots.
Retention SnapshotScheduleRetention `json:"retention"`
}
SetSnapshotScheduleRequest defines model for SetSnapshotScheduleRequest.
type Snapshot ¶ added in v0.1.0
type Snapshot struct {
// CompressedSizeBytes Compressed memory payload size in bytes
CompressedSizeBytes *int64 `json:"compressed_size_bytes"`
Compression *SnapshotCompressionConfig `json:"compression,omitempty"`
// CompressionError Compression error message when compression_state is error
CompressionError *string `json:"compression_error"`
// CompressionState Compression status of the snapshot payload memory file
CompressionState *SnapshotCompressionState `json:"compression_state,omitempty"`
// CreatedAt Snapshot creation timestamp
CreatedAt time.Time `json:"created_at"`
// Id Auto-generated unique snapshot identifier
Id string `json:"id"`
// Kind Snapshot capture kind
Kind SnapshotKind `json:"kind"`
// Name Optional human-readable snapshot name (unique per source instance)
Name *string `json:"name"`
// SizeBytes Total payload size in bytes
SizeBytes int64 `json:"size_bytes"`
// SourceHypervisor Source instance hypervisor at snapshot creation time
SourceHypervisor SnapshotSourceHypervisor `json:"source_hypervisor"`
// SourceInstanceId Source instance ID at snapshot creation time
SourceInstanceId string `json:"source_instance_id"`
// SourceInstanceName Source instance name at snapshot creation time
SourceInstanceName string `json:"source_instance_name"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
// UncompressedSizeBytes Uncompressed memory payload size in bytes
UncompressedSizeBytes *int64 `json:"uncompressed_size_bytes"`
}
Snapshot defines model for Snapshot.
type SnapshotCompressionConfig ¶ added in v0.1.0
type SnapshotCompressionConfig struct {
// Algorithm Compression algorithm (defaults to zstd when enabled). Ignored when enabled is false.
Algorithm *SnapshotCompressionConfigAlgorithm `json:"algorithm,omitempty"`
// Enabled Enable snapshot memory compression
Enabled bool `json:"enabled"`
// Level Compression level. Allowed ranges are zstd=1-19 and lz4=0-9. When omitted, zstd defaults to 1 and lz4 defaults to 0. Ignored when enabled is false.
Level *int `json:"level,omitempty"`
}
SnapshotCompressionConfig defines model for SnapshotCompressionConfig.
type SnapshotCompressionConfigAlgorithm ¶ added in v0.1.0
type SnapshotCompressionConfigAlgorithm string
SnapshotCompressionConfigAlgorithm Compression algorithm (defaults to zstd when enabled). Ignored when enabled is false.
const ( Lz4 SnapshotCompressionConfigAlgorithm = "lz4" Zstd SnapshotCompressionConfigAlgorithm = "zstd" )
Defines values for SnapshotCompressionConfigAlgorithm.
type SnapshotCompressionState ¶ added in v0.1.0
type SnapshotCompressionState string
SnapshotCompressionState Compression status of the snapshot payload memory file
const ( SnapshotCompressionStateCompressed SnapshotCompressionState = "compressed" SnapshotCompressionStateCompressing SnapshotCompressionState = "compressing" SnapshotCompressionStateError SnapshotCompressionState = "error" SnapshotCompressionStateNone SnapshotCompressionState = "none" )
Defines values for SnapshotCompressionState.
type SnapshotKind ¶ added in v0.1.0
type SnapshotKind string
SnapshotKind Snapshot capture kind
const ( SnapshotKindStandby SnapshotKind = "Standby" SnapshotKindStopped SnapshotKind = "Stopped" )
Defines values for SnapshotKind.
type SnapshotPolicy ¶ added in v0.1.0
type SnapshotPolicy struct {
Compression *SnapshotCompressionConfig `json:"compression,omitempty"`
// StandbyCompressionDelay Delay before standby snapshot compression begins, expressed as a Go duration like "30s" or "5m". Applies only to standby compression and defaults to immediate start when omitted.
StandbyCompressionDelay *string `json:"standby_compression_delay,omitempty"`
}
SnapshotPolicy defines model for SnapshotPolicy.
type SnapshotSchedule ¶ added in v0.1.0
type SnapshotSchedule struct {
// CreatedAt Schedule creation timestamp.
CreatedAt time.Time `json:"created_at"`
// InstanceId Source instance ID.
InstanceId string `json:"instance_id"`
// Interval Snapshot interval (Go duration format).
Interval string `json:"interval"`
// LastError Last schedule run error, if any.
LastError *string `json:"last_error"`
// LastRunAt Last schedule execution time.
LastRunAt *time.Time `json:"last_run_at"`
// LastSnapshotId Snapshot ID produced by the last successful run.
LastSnapshotId *string `json:"last_snapshot_id"`
// Metadata User-defined key-value tags.
Metadata *Tags `json:"metadata,omitempty"`
// NamePrefix Optional prefix used for generated scheduled snapshot names.
NamePrefix *string `json:"name_prefix"`
// NextRunAt Next scheduled run time.
NextRunAt time.Time `json:"next_run_at"`
// Retention Automatic cleanup policy for scheduled snapshots.
Retention SnapshotScheduleRetention `json:"retention"`
// UpdatedAt Schedule update timestamp.
UpdatedAt time.Time `json:"updated_at"`
}
SnapshotSchedule defines model for SnapshotSchedule.
type SnapshotScheduleRetention ¶ added in v0.1.0
type SnapshotScheduleRetention struct {
// MaxAge Delete scheduled snapshots older than this duration (Go duration format).
MaxAge *string `json:"max_age,omitempty"`
// MaxCount Keep at most this many scheduled snapshots for the instance (0 disables count-based cleanup).
MaxCount *int `json:"max_count,omitempty"`
}
SnapshotScheduleRetention Automatic cleanup policy for scheduled snapshots.
type SnapshotSourceHypervisor ¶ added in v0.1.0
type SnapshotSourceHypervisor string
SnapshotSourceHypervisor Source instance hypervisor at snapshot creation time
const ( SnapshotSourceHypervisorCloudHypervisor SnapshotSourceHypervisor = "cloud-hypervisor" SnapshotSourceHypervisorFirecracker SnapshotSourceHypervisor = "firecracker" SnapshotSourceHypervisorQemu SnapshotSourceHypervisor = "qemu" SnapshotSourceHypervisorVz SnapshotSourceHypervisor = "vz" )
Defines values for SnapshotSourceHypervisor.
type SnapshotTargetState ¶ added in v0.1.0
type SnapshotTargetState string
SnapshotTargetState Target state when restoring or forking from a snapshot
const ( SnapshotTargetStateRunning SnapshotTargetState = "Running" SnapshotTargetStateStandby SnapshotTargetState = "Standby" SnapshotTargetStateStopped SnapshotTargetState = "Stopped" )
Defines values for SnapshotTargetState.
type StandbyInstance200JSONResponse ¶
type StandbyInstance200JSONResponse Instance
func (StandbyInstance200JSONResponse) VisitStandbyInstanceResponse ¶
func (response StandbyInstance200JSONResponse) VisitStandbyInstanceResponse(w http.ResponseWriter) error
type StandbyInstance400JSONResponse ¶ added in v0.1.0
type StandbyInstance400JSONResponse Error
func (StandbyInstance400JSONResponse) VisitStandbyInstanceResponse ¶ added in v0.1.0
func (response StandbyInstance400JSONResponse) VisitStandbyInstanceResponse(w http.ResponseWriter) error
type StandbyInstance404JSONResponse ¶
type StandbyInstance404JSONResponse Error
func (StandbyInstance404JSONResponse) VisitStandbyInstanceResponse ¶
func (response StandbyInstance404JSONResponse) VisitStandbyInstanceResponse(w http.ResponseWriter) error
type StandbyInstance409JSONResponse ¶
type StandbyInstance409JSONResponse Error
func (StandbyInstance409JSONResponse) VisitStandbyInstanceResponse ¶
func (response StandbyInstance409JSONResponse) VisitStandbyInstanceResponse(w http.ResponseWriter) error
type StandbyInstance500JSONResponse ¶
type StandbyInstance500JSONResponse Error
func (StandbyInstance500JSONResponse) VisitStandbyInstanceResponse ¶
func (response StandbyInstance500JSONResponse) VisitStandbyInstanceResponse(w http.ResponseWriter) error
type StandbyInstanceJSONRequestBody ¶ added in v0.1.0
type StandbyInstanceJSONRequestBody = StandbyInstanceRequest
StandbyInstanceJSONRequestBody defines body for StandbyInstance for application/json ContentType.
type StandbyInstanceRequest ¶ added in v0.1.0
type StandbyInstanceRequest struct {
Compression *SnapshotCompressionConfig `json:"compression,omitempty"`
// CompressionDelay Delay before standby snapshot compression begins, expressed as a Go duration like "30s" or "5m". Overrides the instance default for this standby operation only.
CompressionDelay *string `json:"compression_delay,omitempty"`
}
StandbyInstanceRequest defines model for StandbyInstanceRequest.
type StandbyInstanceRequestObject ¶
type StandbyInstanceRequestObject struct {
Id string `json:"id"`
Body *StandbyInstanceJSONRequestBody
}
type StandbyInstanceResponse ¶
type StandbyInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Instance
JSON400 *Error
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseStandbyInstanceResponse ¶
func ParseStandbyInstanceResponse(rsp *http.Response) (*StandbyInstanceResponse, error)
ParseStandbyInstanceResponse parses an HTTP response from a StandbyInstanceWithResponse call
func (StandbyInstanceResponse) Status ¶
func (r StandbyInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (StandbyInstanceResponse) StatusCode ¶
func (r StandbyInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StandbyInstanceResponseObject ¶
type StandbyInstanceResponseObject interface {
VisitStandbyInstanceResponse(w http.ResponseWriter) error
}
type StartInstance200JSONResponse ¶
type StartInstance200JSONResponse Instance
func (StartInstance200JSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance200JSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstance404JSONResponse ¶
type StartInstance404JSONResponse Error
func (StartInstance404JSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance404JSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstance409JSONResponse ¶
type StartInstance409JSONResponse Error
func (StartInstance409JSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance409JSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstance500JSONResponse ¶
type StartInstance500JSONResponse Error
func (StartInstance500JSONResponse) VisitStartInstanceResponse ¶
func (response StartInstance500JSONResponse) VisitStartInstanceResponse(w http.ResponseWriter) error
type StartInstanceJSONBody ¶ added in v0.0.6
type StartInstanceJSONBody struct {
// Cmd Override image CMD for this run. Omit to keep previous value.
Cmd *[]string `json:"cmd,omitempty"`
// Entrypoint Override image entrypoint for this run. Omit to keep previous value.
Entrypoint *[]string `json:"entrypoint,omitempty"`
}
StartInstanceJSONBody defines parameters for StartInstance.
type StartInstanceJSONRequestBody ¶ added in v0.0.6
type StartInstanceJSONRequestBody StartInstanceJSONBody
StartInstanceJSONRequestBody defines body for StartInstance for application/json ContentType.
type StartInstanceRequestObject ¶
type StartInstanceRequestObject struct {
Id string `json:"id"`
Body *StartInstanceJSONRequestBody
}
type StartInstanceResponse ¶
type StartInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Instance
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseStartInstanceResponse ¶
func ParseStartInstanceResponse(rsp *http.Response) (*StartInstanceResponse, error)
ParseStartInstanceResponse parses an HTTP response from a StartInstanceWithResponse call
func (StartInstanceResponse) Status ¶
func (r StartInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (StartInstanceResponse) StatusCode ¶
func (r StartInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StartInstanceResponseObject ¶
type StartInstanceResponseObject interface {
VisitStartInstanceResponse(w http.ResponseWriter) error
}
type StatInstancePath200JSONResponse ¶
type StatInstancePath200JSONResponse PathInfo
func (StatInstancePath200JSONResponse) VisitStatInstancePathResponse ¶
func (response StatInstancePath200JSONResponse) VisitStatInstancePathResponse(w http.ResponseWriter) error
type StatInstancePath404JSONResponse ¶
type StatInstancePath404JSONResponse Error
func (StatInstancePath404JSONResponse) VisitStatInstancePathResponse ¶
func (response StatInstancePath404JSONResponse) VisitStatInstancePathResponse(w http.ResponseWriter) error
type StatInstancePath409JSONResponse ¶
type StatInstancePath409JSONResponse Error
func (StatInstancePath409JSONResponse) VisitStatInstancePathResponse ¶
func (response StatInstancePath409JSONResponse) VisitStatInstancePathResponse(w http.ResponseWriter) error
type StatInstancePath500JSONResponse ¶
type StatInstancePath500JSONResponse Error
func (StatInstancePath500JSONResponse) VisitStatInstancePathResponse ¶
func (response StatInstancePath500JSONResponse) VisitStatInstancePathResponse(w http.ResponseWriter) error
type StatInstancePathParams ¶
type StatInstancePathParams struct {
// Path Path to stat in the guest filesystem
Path string `form:"path" json:"path"`
// FollowLinks Follow symbolic links (like stat vs lstat)
FollowLinks *bool `form:"follow_links,omitempty" json:"follow_links,omitempty"`
}
StatInstancePathParams defines parameters for StatInstancePath.
type StatInstancePathRequestObject ¶
type StatInstancePathRequestObject struct {
Id string `json:"id"`
Params StatInstancePathParams
}
type StatInstancePathResponse ¶
type StatInstancePathResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PathInfo
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseStatInstancePathResponse ¶
func ParseStatInstancePathResponse(rsp *http.Response) (*StatInstancePathResponse, error)
ParseStatInstancePathResponse parses an HTTP response from a StatInstancePathWithResponse call
func (StatInstancePathResponse) Status ¶
func (r StatInstancePathResponse) Status() string
Status returns HTTPResponse.Status
func (StatInstancePathResponse) StatusCode ¶
func (r StatInstancePathResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StatInstancePathResponseObject ¶
type StatInstancePathResponseObject interface {
VisitStatInstancePathResponse(w http.ResponseWriter) error
}
type StopInstance200JSONResponse ¶
type StopInstance200JSONResponse Instance
func (StopInstance200JSONResponse) VisitStopInstanceResponse ¶
func (response StopInstance200JSONResponse) VisitStopInstanceResponse(w http.ResponseWriter) error
type StopInstance404JSONResponse ¶
type StopInstance404JSONResponse Error
func (StopInstance404JSONResponse) VisitStopInstanceResponse ¶
func (response StopInstance404JSONResponse) VisitStopInstanceResponse(w http.ResponseWriter) error
type StopInstance409JSONResponse ¶
type StopInstance409JSONResponse Error
func (StopInstance409JSONResponse) VisitStopInstanceResponse ¶
func (response StopInstance409JSONResponse) VisitStopInstanceResponse(w http.ResponseWriter) error
type StopInstance500JSONResponse ¶
type StopInstance500JSONResponse Error
func (StopInstance500JSONResponse) VisitStopInstanceResponse ¶
func (response StopInstance500JSONResponse) VisitStopInstanceResponse(w http.ResponseWriter) error
type StopInstanceRequestObject ¶
type StopInstanceRequestObject struct {
Id string `json:"id"`
}
type StopInstanceResponse ¶
type StopInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Instance
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseStopInstanceResponse ¶
func ParseStopInstanceResponse(rsp *http.Response) (*StopInstanceResponse, error)
ParseStopInstanceResponse parses an HTTP response from a StopInstanceWithResponse call
func (StopInstanceResponse) Status ¶
func (r StopInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (StopInstanceResponse) StatusCode ¶
func (r StopInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type StopInstanceResponseObject ¶
type StopInstanceResponseObject interface {
VisitStopInstanceResponse(w http.ResponseWriter) error
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// List builds
// (GET /builds)
ListBuilds(ctx context.Context, request ListBuildsRequestObject) (ListBuildsResponseObject, error)
// Create a new build
// (POST /builds)
CreateBuild(ctx context.Context, request CreateBuildRequestObject) (CreateBuildResponseObject, error)
// Cancel build
// (DELETE /builds/{id})
CancelBuild(ctx context.Context, request CancelBuildRequestObject) (CancelBuildResponseObject, error)
// Get build details
// (GET /builds/{id})
GetBuild(ctx context.Context, request GetBuildRequestObject) (GetBuildResponseObject, error)
// Stream build events (SSE)
// (GET /builds/{id}/events)
GetBuildEvents(ctx context.Context, request GetBuildEventsRequestObject) (GetBuildEventsResponseObject, error)
// List registered devices
// (GET /devices)
ListDevices(ctx context.Context, request ListDevicesRequestObject) (ListDevicesResponseObject, error)
// Register a device for passthrough
// (POST /devices)
CreateDevice(ctx context.Context, request CreateDeviceRequestObject) (CreateDeviceResponseObject, error)
// Discover passthrough-capable devices on host
// (GET /devices/available)
ListAvailableDevices(ctx context.Context, request ListAvailableDevicesRequestObject) (ListAvailableDevicesResponseObject, error)
// Unregister device
// (DELETE /devices/{id})
DeleteDevice(ctx context.Context, request DeleteDeviceRequestObject) (DeleteDeviceResponseObject, error)
// Get device details
// (GET /devices/{id})
GetDevice(ctx context.Context, request GetDeviceRequestObject) (GetDeviceResponseObject, error)
// Health check
// (GET /health)
GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
// List images
// (GET /images)
ListImages(ctx context.Context, request ListImagesRequestObject) (ListImagesResponseObject, error)
// Pull and convert OCI image
// (POST /images)
CreateImage(ctx context.Context, request CreateImageRequestObject) (CreateImageResponseObject, error)
// Delete image
// (DELETE /images/{name})
DeleteImage(ctx context.Context, request DeleteImageRequestObject) (DeleteImageResponseObject, error)
// Get image details
// (GET /images/{name})
GetImage(ctx context.Context, request GetImageRequestObject) (GetImageResponseObject, error)
// List ingresses
// (GET /ingresses)
ListIngresses(ctx context.Context, request ListIngressesRequestObject) (ListIngressesResponseObject, error)
// Create ingress
// (POST /ingresses)
CreateIngress(ctx context.Context, request CreateIngressRequestObject) (CreateIngressResponseObject, error)
// Delete ingress
// (DELETE /ingresses/{id})
DeleteIngress(ctx context.Context, request DeleteIngressRequestObject) (DeleteIngressResponseObject, error)
// Get ingress details
// (GET /ingresses/{id})
GetIngress(ctx context.Context, request GetIngressRequestObject) (GetIngressResponseObject, error)
// List instances
// (GET /instances)
ListInstances(ctx context.Context, request ListInstancesRequestObject) (ListInstancesResponseObject, error)
// Create and start instance
// (POST /instances)
CreateInstance(ctx context.Context, request CreateInstanceRequestObject) (CreateInstanceResponseObject, error)
// Stop and delete instance
// (DELETE /instances/{id})
DeleteInstance(ctx context.Context, request DeleteInstanceRequestObject) (DeleteInstanceResponseObject, error)
// Get instance details
// (GET /instances/{id})
GetInstance(ctx context.Context, request GetInstanceRequestObject) (GetInstanceResponseObject, error)
// Update instance properties
// (PATCH /instances/{id})
UpdateInstance(ctx context.Context, request UpdateInstanceRequestObject) (UpdateInstanceResponseObject, error)
// Get auto-standby diagnostic status
// (GET /instances/{id}/auto-standby/status)
GetAutoStandbyStatus(ctx context.Context, request GetAutoStandbyStatusRequestObject) (GetAutoStandbyStatusResponseObject, error)
// Fork an instance from stopped, standby, or running (with from_running=true)
// (POST /instances/{id}/fork)
ForkInstance(ctx context.Context, request ForkInstanceRequestObject) (ForkInstanceResponseObject, error)
// Stream instance logs (SSE)
// (GET /instances/{id}/logs)
GetInstanceLogs(ctx context.Context, request GetInstanceLogsRequestObject) (GetInstanceLogsResponseObject, error)
// Restore instance from standby
// (POST /instances/{id}/restore)
RestoreInstance(ctx context.Context, request RestoreInstanceRequestObject) (RestoreInstanceResponseObject, error)
// Delete snapshot schedule for an instance
// (DELETE /instances/{id}/snapshot-schedule)
DeleteInstanceSnapshotSchedule(ctx context.Context, request DeleteInstanceSnapshotScheduleRequestObject) (DeleteInstanceSnapshotScheduleResponseObject, error)
// Get snapshot schedule for an instance
// (GET /instances/{id}/snapshot-schedule)
GetInstanceSnapshotSchedule(ctx context.Context, request GetInstanceSnapshotScheduleRequestObject) (GetInstanceSnapshotScheduleResponseObject, error)
// Create or update snapshot schedule for an instance
// (PUT /instances/{id}/snapshot-schedule)
SetInstanceSnapshotSchedule(ctx context.Context, request SetInstanceSnapshotScheduleRequestObject) (SetInstanceSnapshotScheduleResponseObject, error)
// Create a snapshot for an instance
// (POST /instances/{id}/snapshots)
CreateInstanceSnapshot(ctx context.Context, request CreateInstanceSnapshotRequestObject) (CreateInstanceSnapshotResponseObject, error)
// Restore an instance from a snapshot in-place
// (POST /instances/{id}/snapshots/{snapshotId}/restore)
RestoreInstanceSnapshot(ctx context.Context, request RestoreInstanceSnapshotRequestObject) (RestoreInstanceSnapshotResponseObject, error)
// Put instance in standby (pause, snapshot, delete VMM)
// (POST /instances/{id}/standby)
StandbyInstance(ctx context.Context, request StandbyInstanceRequestObject) (StandbyInstanceResponseObject, error)
// Start a stopped instance
// (POST /instances/{id}/start)
StartInstance(ctx context.Context, request StartInstanceRequestObject) (StartInstanceResponseObject, error)
// Get filesystem path info
// (GET /instances/{id}/stat)
StatInstancePath(ctx context.Context, request StatInstancePathRequestObject) (StatInstancePathResponseObject, error)
// Get instance resource utilization stats
// (GET /instances/{id}/stats)
GetInstanceStats(ctx context.Context, request GetInstanceStatsRequestObject) (GetInstanceStatsResponseObject, error)
// Stop instance (graceful shutdown)
// (POST /instances/{id}/stop)
StopInstance(ctx context.Context, request StopInstanceRequestObject) (StopInstanceResponseObject, error)
// Detach volume from instance
// (DELETE /instances/{id}/volumes/{volumeId})
DetachVolume(ctx context.Context, request DetachVolumeRequestObject) (DetachVolumeResponseObject, error)
// Attach volume to instance
// (POST /instances/{id}/volumes/{volumeId})
AttachVolume(ctx context.Context, request AttachVolumeRequestObject) (AttachVolumeResponseObject, error)
// Wait for instance to reach a target state
// (GET /instances/{id}/wait)
WaitForInstanceState(ctx context.Context, request WaitForInstanceStateRequestObject) (WaitForInstanceStateResponseObject, error)
// Get host resource capacity and allocations
// (GET /resources)
GetResources(ctx context.Context, request GetResourcesRequestObject) (GetResourcesResponseObject, error)
// Trigger proactive guest memory reclaim
// (POST /resources/memory/reclaim)
ReclaimMemory(ctx context.Context, request ReclaimMemoryRequestObject) (ReclaimMemoryResponseObject, error)
// List snapshots
// (GET /snapshots)
ListSnapshots(ctx context.Context, request ListSnapshotsRequestObject) (ListSnapshotsResponseObject, error)
// Delete a snapshot
// (DELETE /snapshots/{snapshotId})
DeleteSnapshot(ctx context.Context, request DeleteSnapshotRequestObject) (DeleteSnapshotResponseObject, error)
// Get snapshot details
// (GET /snapshots/{snapshotId})
GetSnapshot(ctx context.Context, request GetSnapshotRequestObject) (GetSnapshotResponseObject, error)
// Fork a new instance from a snapshot
// (POST /snapshots/{snapshotId}/fork)
ForkSnapshot(ctx context.Context, request ForkSnapshotRequestObject) (ForkSnapshotResponseObject, error)
// List volumes
// (GET /volumes)
ListVolumes(ctx context.Context, request ListVolumesRequestObject) (ListVolumesResponseObject, error)
// Create empty volume
// (POST /volumes)
CreateVolume(ctx context.Context, request CreateVolumeRequestObject) (CreateVolumeResponseObject, error)
// Create volume from archive
// (POST /volumes/from-archive)
CreateVolumeFromArchive(ctx context.Context, request CreateVolumeFromArchiveRequestObject) (CreateVolumeFromArchiveResponseObject, error)
// Delete volume
// (DELETE /volumes/{id})
DeleteVolume(ctx context.Context, request DeleteVolumeRequestObject) (DeleteVolumeResponseObject, error)
// Get volume details
// (GET /volumes/{id})
GetVolume(ctx context.Context, request GetVolumeRequestObject) (GetVolumeResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) AttachVolume ¶
func (_ Unimplemented) AttachVolume(w http.ResponseWriter, r *http.Request, id string, volumeId string)
Attach volume to instance (POST /instances/{id}/volumes/{volumeId})
func (Unimplemented) CancelBuild ¶
func (_ Unimplemented) CancelBuild(w http.ResponseWriter, r *http.Request, id string)
Cancel build (DELETE /builds/{id})
func (Unimplemented) CreateBuild ¶
func (_ Unimplemented) CreateBuild(w http.ResponseWriter, r *http.Request)
Create a new build (POST /builds)
func (Unimplemented) CreateDevice ¶
func (_ Unimplemented) CreateDevice(w http.ResponseWriter, r *http.Request)
Register a device for passthrough (POST /devices)
func (Unimplemented) CreateImage ¶
func (_ Unimplemented) CreateImage(w http.ResponseWriter, r *http.Request)
Pull and convert OCI image (POST /images)
func (Unimplemented) CreateIngress ¶
func (_ Unimplemented) CreateIngress(w http.ResponseWriter, r *http.Request)
Create ingress (POST /ingresses)
func (Unimplemented) CreateInstance ¶
func (_ Unimplemented) CreateInstance(w http.ResponseWriter, r *http.Request)
Create and start instance (POST /instances)
func (Unimplemented) CreateInstanceSnapshot ¶ added in v0.1.0
func (_ Unimplemented) CreateInstanceSnapshot(w http.ResponseWriter, r *http.Request, id string)
Create a snapshot for an instance (POST /instances/{id}/snapshots)
func (Unimplemented) CreateVolume ¶
func (_ Unimplemented) CreateVolume(w http.ResponseWriter, r *http.Request)
Create empty volume (POST /volumes)
func (Unimplemented) CreateVolumeFromArchive ¶ added in v0.0.6
func (_ Unimplemented) CreateVolumeFromArchive(w http.ResponseWriter, r *http.Request, params CreateVolumeFromArchiveParams)
Create volume from archive (POST /volumes/from-archive)
func (Unimplemented) DeleteDevice ¶
func (_ Unimplemented) DeleteDevice(w http.ResponseWriter, r *http.Request, id string)
Unregister device (DELETE /devices/{id})
func (Unimplemented) DeleteImage ¶
func (_ Unimplemented) DeleteImage(w http.ResponseWriter, r *http.Request, name string)
Delete image (DELETE /images/{name})
func (Unimplemented) DeleteIngress ¶
func (_ Unimplemented) DeleteIngress(w http.ResponseWriter, r *http.Request, id string)
Delete ingress (DELETE /ingresses/{id})
func (Unimplemented) DeleteInstance ¶
func (_ Unimplemented) DeleteInstance(w http.ResponseWriter, r *http.Request, id string)
Stop and delete instance (DELETE /instances/{id})
func (Unimplemented) DeleteInstanceSnapshotSchedule ¶ added in v0.1.0
func (_ Unimplemented) DeleteInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request, id string)
Delete snapshot schedule for an instance (DELETE /instances/{id}/snapshot-schedule)
func (Unimplemented) DeleteSnapshot ¶ added in v0.1.0
func (_ Unimplemented) DeleteSnapshot(w http.ResponseWriter, r *http.Request, snapshotId string)
Delete a snapshot (DELETE /snapshots/{snapshotId})
func (Unimplemented) DeleteVolume ¶
func (_ Unimplemented) DeleteVolume(w http.ResponseWriter, r *http.Request, id string)
Delete volume (DELETE /volumes/{id})
func (Unimplemented) DetachVolume ¶
func (_ Unimplemented) DetachVolume(w http.ResponseWriter, r *http.Request, id string, volumeId string)
Detach volume from instance (DELETE /instances/{id}/volumes/{volumeId})
func (Unimplemented) ForkInstance ¶ added in v0.0.7
func (_ Unimplemented) ForkInstance(w http.ResponseWriter, r *http.Request, id string)
Fork an instance from stopped, standby, or running (with from_running=true) (POST /instances/{id}/fork)
func (Unimplemented) ForkSnapshot ¶ added in v0.1.0
func (_ Unimplemented) ForkSnapshot(w http.ResponseWriter, r *http.Request, snapshotId string)
Fork a new instance from a snapshot (POST /snapshots/{snapshotId}/fork)
func (Unimplemented) GetAutoStandbyStatus ¶ added in v0.1.0
func (_ Unimplemented) GetAutoStandbyStatus(w http.ResponseWriter, r *http.Request, id string)
Get auto-standby diagnostic status (GET /instances/{id}/auto-standby/status)
func (Unimplemented) GetBuild ¶
func (_ Unimplemented) GetBuild(w http.ResponseWriter, r *http.Request, id string)
Get build details (GET /builds/{id})
func (Unimplemented) GetBuildEvents ¶
func (_ Unimplemented) GetBuildEvents(w http.ResponseWriter, r *http.Request, id string, params GetBuildEventsParams)
Stream build events (SSE) (GET /builds/{id}/events)
func (Unimplemented) GetDevice ¶
func (_ Unimplemented) GetDevice(w http.ResponseWriter, r *http.Request, id string)
Get device details (GET /devices/{id})
func (Unimplemented) GetHealth ¶
func (_ Unimplemented) GetHealth(w http.ResponseWriter, r *http.Request)
Health check (GET /health)
func (Unimplemented) GetImage ¶
func (_ Unimplemented) GetImage(w http.ResponseWriter, r *http.Request, name string)
Get image details (GET /images/{name})
func (Unimplemented) GetIngress ¶
func (_ Unimplemented) GetIngress(w http.ResponseWriter, r *http.Request, id string)
Get ingress details (GET /ingresses/{id})
func (Unimplemented) GetInstance ¶
func (_ Unimplemented) GetInstance(w http.ResponseWriter, r *http.Request, id string)
Get instance details (GET /instances/{id})
func (Unimplemented) GetInstanceLogs ¶
func (_ Unimplemented) GetInstanceLogs(w http.ResponseWriter, r *http.Request, id string, params GetInstanceLogsParams)
Stream instance logs (SSE) (GET /instances/{id}/logs)
func (Unimplemented) GetInstanceSnapshotSchedule ¶ added in v0.1.0
func (_ Unimplemented) GetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request, id string)
Get snapshot schedule for an instance (GET /instances/{id}/snapshot-schedule)
func (Unimplemented) GetInstanceStats ¶ added in v0.0.6
func (_ Unimplemented) GetInstanceStats(w http.ResponseWriter, r *http.Request, id string)
Get instance resource utilization stats (GET /instances/{id}/stats)
func (Unimplemented) GetResources ¶
func (_ Unimplemented) GetResources(w http.ResponseWriter, r *http.Request)
Get host resource capacity and allocations (GET /resources)
func (Unimplemented) GetSnapshot ¶ added in v0.1.0
func (_ Unimplemented) GetSnapshot(w http.ResponseWriter, r *http.Request, snapshotId string)
Get snapshot details (GET /snapshots/{snapshotId})
func (Unimplemented) GetVolume ¶
func (_ Unimplemented) GetVolume(w http.ResponseWriter, r *http.Request, id string)
Get volume details (GET /volumes/{id})
func (Unimplemented) ListAvailableDevices ¶
func (_ Unimplemented) ListAvailableDevices(w http.ResponseWriter, r *http.Request)
Discover passthrough-capable devices on host (GET /devices/available)
func (Unimplemented) ListBuilds ¶
func (_ Unimplemented) ListBuilds(w http.ResponseWriter, r *http.Request, params ListBuildsParams)
List builds (GET /builds)
func (Unimplemented) ListDevices ¶
func (_ Unimplemented) ListDevices(w http.ResponseWriter, r *http.Request, params ListDevicesParams)
List registered devices (GET /devices)
func (Unimplemented) ListImages ¶
func (_ Unimplemented) ListImages(w http.ResponseWriter, r *http.Request, params ListImagesParams)
List images (GET /images)
func (Unimplemented) ListIngresses ¶
func (_ Unimplemented) ListIngresses(w http.ResponseWriter, r *http.Request, params ListIngressesParams)
List ingresses (GET /ingresses)
func (Unimplemented) ListInstances ¶
func (_ Unimplemented) ListInstances(w http.ResponseWriter, r *http.Request, params ListInstancesParams)
List instances (GET /instances)
func (Unimplemented) ListSnapshots ¶ added in v0.1.0
func (_ Unimplemented) ListSnapshots(w http.ResponseWriter, r *http.Request, params ListSnapshotsParams)
List snapshots (GET /snapshots)
func (Unimplemented) ListVolumes ¶
func (_ Unimplemented) ListVolumes(w http.ResponseWriter, r *http.Request, params ListVolumesParams)
List volumes (GET /volumes)
func (Unimplemented) ReclaimMemory ¶ added in v0.1.0
func (_ Unimplemented) ReclaimMemory(w http.ResponseWriter, r *http.Request)
Trigger proactive guest memory reclaim (POST /resources/memory/reclaim)
func (Unimplemented) RestoreInstance ¶
func (_ Unimplemented) RestoreInstance(w http.ResponseWriter, r *http.Request, id string)
Restore instance from standby (POST /instances/{id}/restore)
func (Unimplemented) RestoreInstanceSnapshot ¶ added in v0.1.0
func (_ Unimplemented) RestoreInstanceSnapshot(w http.ResponseWriter, r *http.Request, id string, snapshotId string)
Restore an instance from a snapshot in-place (POST /instances/{id}/snapshots/{snapshotId}/restore)
func (Unimplemented) SetInstanceSnapshotSchedule ¶ added in v0.1.0
func (_ Unimplemented) SetInstanceSnapshotSchedule(w http.ResponseWriter, r *http.Request, id string)
Create or update snapshot schedule for an instance (PUT /instances/{id}/snapshot-schedule)
func (Unimplemented) StandbyInstance ¶
func (_ Unimplemented) StandbyInstance(w http.ResponseWriter, r *http.Request, id string)
Put instance in standby (pause, snapshot, delete VMM) (POST /instances/{id}/standby)
func (Unimplemented) StartInstance ¶
func (_ Unimplemented) StartInstance(w http.ResponseWriter, r *http.Request, id string)
Start a stopped instance (POST /instances/{id}/start)
func (Unimplemented) StatInstancePath ¶
func (_ Unimplemented) StatInstancePath(w http.ResponseWriter, r *http.Request, id string, params StatInstancePathParams)
Get filesystem path info (GET /instances/{id}/stat)
func (Unimplemented) StopInstance ¶
func (_ Unimplemented) StopInstance(w http.ResponseWriter, r *http.Request, id string)
Stop instance (graceful shutdown) (POST /instances/{id}/stop)
func (Unimplemented) UpdateInstance ¶ added in v0.1.0
func (_ Unimplemented) UpdateInstance(w http.ResponseWriter, r *http.Request, id string)
Update instance properties (PATCH /instances/{id})
func (Unimplemented) WaitForInstanceState ¶ added in v0.1.0
func (_ Unimplemented) WaitForInstanceState(w http.ResponseWriter, r *http.Request, id string, params WaitForInstanceStateParams)
Wait for instance to reach a target state (GET /instances/{id}/wait)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateInstance200JSONResponse ¶ added in v0.1.0
type UpdateInstance200JSONResponse Instance
func (UpdateInstance200JSONResponse) VisitUpdateInstanceResponse ¶ added in v0.1.0
func (response UpdateInstance200JSONResponse) VisitUpdateInstanceResponse(w http.ResponseWriter) error
type UpdateInstance400JSONResponse ¶ added in v0.1.0
type UpdateInstance400JSONResponse Error
func (UpdateInstance400JSONResponse) VisitUpdateInstanceResponse ¶ added in v0.1.0
func (response UpdateInstance400JSONResponse) VisitUpdateInstanceResponse(w http.ResponseWriter) error
type UpdateInstance404JSONResponse ¶ added in v0.1.0
type UpdateInstance404JSONResponse Error
func (UpdateInstance404JSONResponse) VisitUpdateInstanceResponse ¶ added in v0.1.0
func (response UpdateInstance404JSONResponse) VisitUpdateInstanceResponse(w http.ResponseWriter) error
type UpdateInstance409JSONResponse ¶ added in v0.1.0
type UpdateInstance409JSONResponse Error
func (UpdateInstance409JSONResponse) VisitUpdateInstanceResponse ¶ added in v0.1.0
func (response UpdateInstance409JSONResponse) VisitUpdateInstanceResponse(w http.ResponseWriter) error
type UpdateInstance500JSONResponse ¶ added in v0.1.0
type UpdateInstance500JSONResponse Error
func (UpdateInstance500JSONResponse) VisitUpdateInstanceResponse ¶ added in v0.1.0
func (response UpdateInstance500JSONResponse) VisitUpdateInstanceResponse(w http.ResponseWriter) error
type UpdateInstanceJSONRequestBody ¶ added in v0.1.0
type UpdateInstanceJSONRequestBody = UpdateInstanceRequest
UpdateInstanceJSONRequestBody defines body for UpdateInstance for application/json ContentType.
type UpdateInstanceRequest ¶ added in v0.1.0
type UpdateInstanceRequest struct {
// AutoStandby Linux-only automatic standby policy based on active inbound TCP connections
// observed from the host conntrack table.
AutoStandby *AutoStandbyPolicy `json:"auto_standby,omitempty"`
// Env Environment variables to update (merged with existing).
// Only keys referenced by the instance's existing credential `source.env` bindings
// are accepted. Use this to rotate real credential values without restarting the VM.
Env *map[string]string `json:"env,omitempty"`
// HealthCheck Workload health check policy. Health is reported separately from instance lifecycle state.
HealthCheck *HealthCheck `json:"health_check,omitempty"`
// RestartPolicy Whole-instance restart supervision policy.
RestartPolicy *RestartPolicy `json:"restart_policy,omitempty"`
}
UpdateInstanceRequest defines model for UpdateInstanceRequest.
type UpdateInstanceRequestObject ¶ added in v0.1.0
type UpdateInstanceRequestObject struct {
Id string `json:"id"`
Body *UpdateInstanceJSONRequestBody
}
type UpdateInstanceResponse ¶ added in v0.1.0
type UpdateInstanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Instance
JSON400 *Error
JSON404 *Error
JSON409 *Error
JSON500 *Error
}
func ParseUpdateInstanceResponse ¶ added in v0.1.0
func ParseUpdateInstanceResponse(rsp *http.Response) (*UpdateInstanceResponse, error)
ParseUpdateInstanceResponse parses an HTTP response from a UpdateInstanceWithResponse call
func (UpdateInstanceResponse) Status ¶ added in v0.1.0
func (r UpdateInstanceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInstanceResponse) StatusCode ¶ added in v0.1.0
func (r UpdateInstanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateInstanceResponseObject ¶ added in v0.1.0
type UpdateInstanceResponseObject interface {
VisitUpdateInstanceResponse(w http.ResponseWriter) error
}
type Volume ¶
type Volume struct {
// Attachments List of current attachments (empty if not attached)
Attachments *[]VolumeAttachment `json:"attachments,omitempty"`
// CreatedAt Creation timestamp (RFC3339)
CreatedAt time.Time `json:"created_at"`
// Id Unique identifier
Id string `json:"id"`
// Name Volume name
Name string `json:"name"`
// SizeGb Size in gigabytes
SizeGb int `json:"size_gb"`
// Tags User-defined key-value tags.
Tags *Tags `json:"tags,omitempty"`
}
Volume defines model for Volume.
type VolumeAttachment ¶
type VolumeAttachment struct {
// InstanceId ID of the instance this volume is attached to
InstanceId string `json:"instance_id"`
// MountPath Mount path in the guest
MountPath string `json:"mount_path"`
// Readonly Whether the attachment is read-only
Readonly bool `json:"readonly"`
}
VolumeAttachment defines model for VolumeAttachment.
type VolumeMount ¶
type VolumeMount struct {
// MountPath Path where volume is mounted in the guest
MountPath string `json:"mount_path"`
// Overlay Create per-instance overlay for writes (requires readonly=true)
Overlay *bool `json:"overlay,omitempty"`
// OverlaySize Max overlay size as human-readable string (e.g., "1GB"). Required if overlay=true.
OverlaySize *string `json:"overlay_size,omitempty"`
// Readonly Whether volume is mounted read-only
Readonly *bool `json:"readonly,omitempty"`
// VolumeId Volume identifier
VolumeId string `json:"volume_id"`
}
VolumeMount defines model for VolumeMount.
type WaitForInstanceState200JSONResponse ¶ added in v0.1.0
type WaitForInstanceState200JSONResponse WaitForStateResponse
func (WaitForInstanceState200JSONResponse) VisitWaitForInstanceStateResponse ¶ added in v0.1.0
func (response WaitForInstanceState200JSONResponse) VisitWaitForInstanceStateResponse(w http.ResponseWriter) error
type WaitForInstanceState400JSONResponse ¶ added in v0.1.0
type WaitForInstanceState400JSONResponse Error
func (WaitForInstanceState400JSONResponse) VisitWaitForInstanceStateResponse ¶ added in v0.1.0
func (response WaitForInstanceState400JSONResponse) VisitWaitForInstanceStateResponse(w http.ResponseWriter) error
type WaitForInstanceState404JSONResponse ¶ added in v0.1.0
type WaitForInstanceState404JSONResponse Error
func (WaitForInstanceState404JSONResponse) VisitWaitForInstanceStateResponse ¶ added in v0.1.0
func (response WaitForInstanceState404JSONResponse) VisitWaitForInstanceStateResponse(w http.ResponseWriter) error
type WaitForInstanceState500JSONResponse ¶ added in v0.1.0
type WaitForInstanceState500JSONResponse Error
func (WaitForInstanceState500JSONResponse) VisitWaitForInstanceStateResponse ¶ added in v0.1.0
func (response WaitForInstanceState500JSONResponse) VisitWaitForInstanceStateResponse(w http.ResponseWriter) error
type WaitForInstanceStateParams ¶ added in v0.1.0
type WaitForInstanceStateParams struct {
// State Target state to wait for
State InstanceState `form:"state" json:"state"`
// Timeout Maximum duration to wait (Go duration format, e.g. "30s", "2m").
// Capped at 5 minutes. Defaults to 60 seconds.
Timeout *string `form:"timeout,omitempty" json:"timeout,omitempty"`
}
WaitForInstanceStateParams defines parameters for WaitForInstanceState.
type WaitForInstanceStateRequestObject ¶ added in v0.1.0
type WaitForInstanceStateRequestObject struct {
Id string `json:"id"`
Params WaitForInstanceStateParams
}
type WaitForInstanceStateResponse ¶ added in v0.1.0
type WaitForInstanceStateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *WaitForStateResponse
JSON400 *Error
JSON404 *Error
JSON500 *Error
}
func ParseWaitForInstanceStateResponse ¶ added in v0.1.0
func ParseWaitForInstanceStateResponse(rsp *http.Response) (*WaitForInstanceStateResponse, error)
ParseWaitForInstanceStateResponse parses an HTTP response from a WaitForInstanceStateWithResponse call
func (WaitForInstanceStateResponse) Status ¶ added in v0.1.0
func (r WaitForInstanceStateResponse) Status() string
Status returns HTTPResponse.Status
func (WaitForInstanceStateResponse) StatusCode ¶ added in v0.1.0
func (r WaitForInstanceStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type WaitForInstanceStateResponseObject ¶ added in v0.1.0
type WaitForInstanceStateResponseObject interface {
VisitWaitForInstanceStateResponse(w http.ResponseWriter) error
}
type WaitForStateResponse ¶ added in v0.1.0
type WaitForStateResponse struct {
// State Instance state:
// - Created: VMM created but not started (Cloud Hypervisor native)
// - Initializing: VM is running while guest init is still in progress
// - Running: Guest program has started and instance is ready
// - Paused: VM is paused (Cloud Hypervisor native)
// - Shutdown: VM shut down but VMM exists (Cloud Hypervisor native)
// - Stopped: No VMM running, no snapshot exists
// - Standby: No VMM running, snapshot exists (can be restored)
// - Unknown: Failed to determine state (see state_error for details)
State InstanceState `json:"state"`
// StateError Error message when derived state is Unknown
StateError *string `json:"state_error"`
// TimedOut Whether the timeout expired before the target state was reached
TimedOut bool `json:"timed_out"`
}
WaitForStateResponse defines model for WaitForStateResponse.