oapi

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 18 Imported by: 0

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

View Source
const (
	BearerAuthScopes = "bearerAuth.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

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 HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler

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

func NewCancelBuildRequest(server string, id string) (*http.Request, error)

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 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

func NewDeleteDeviceRequest(server string, id string) (*http.Request, error)

NewDeleteDeviceRequest generates requests for DeleteDevice

func NewDeleteImageRequest

func NewDeleteImageRequest(server string, name string) (*http.Request, error)

NewDeleteImageRequest generates requests for DeleteImage

func NewDeleteIngressRequest

func NewDeleteIngressRequest(server string, id string) (*http.Request, error)

NewDeleteIngressRequest generates requests for DeleteIngress

func NewDeleteInstanceRequest

func NewDeleteInstanceRequest(server string, id string) (*http.Request, error)

NewDeleteInstanceRequest generates requests for DeleteInstance

func NewDeleteVolumeRequest

func NewDeleteVolumeRequest(server string, id string) (*http.Request, error)

NewDeleteVolumeRequest generates requests for DeleteVolume

func NewDetachVolumeRequest

func NewDetachVolumeRequest(server string, id string, volumeId string) (*http.Request, error)

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 NewGetBuildEventsRequest

func NewGetBuildEventsRequest(server string, id string, params *GetBuildEventsParams) (*http.Request, error)

NewGetBuildEventsRequest generates requests for GetBuildEvents

func NewGetBuildRequest

func NewGetBuildRequest(server string, id string) (*http.Request, error)

NewGetBuildRequest generates requests for GetBuild

func NewGetDeviceRequest

func NewGetDeviceRequest(server string, id string) (*http.Request, error)

NewGetDeviceRequest generates requests for GetDevice

func NewGetHealthRequest

func NewGetHealthRequest(server string) (*http.Request, error)

NewGetHealthRequest generates requests for GetHealth

func NewGetImageRequest

func NewGetImageRequest(server string, name string) (*http.Request, error)

NewGetImageRequest generates requests for GetImage

func NewGetIngressRequest

func NewGetIngressRequest(server string, id string) (*http.Request, error)

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

func NewGetInstanceRequest(server string, id string) (*http.Request, error)

NewGetInstanceRequest generates requests for GetInstance

func NewGetInstanceStatsRequest added in v0.0.6

func NewGetInstanceStatsRequest(server string, id string) (*http.Request, error)

NewGetInstanceStatsRequest generates requests for GetInstanceStats

func NewGetResourcesRequest

func NewGetResourcesRequest(server string) (*http.Request, error)

NewGetResourcesRequest generates requests for GetResources

func NewGetVolumeRequest

func NewGetVolumeRequest(server string, id string) (*http.Request, error)

NewGetVolumeRequest generates requests for GetVolume

func NewListAvailableDevicesRequest

func NewListAvailableDevicesRequest(server string) (*http.Request, error)

NewListAvailableDevicesRequest generates requests for ListAvailableDevices

func NewListBuildsRequest

func NewListBuildsRequest(server string) (*http.Request, error)

NewListBuildsRequest generates requests for ListBuilds

func NewListDevicesRequest

func NewListDevicesRequest(server string) (*http.Request, error)

NewListDevicesRequest generates requests for ListDevices

func NewListImagesRequest

func NewListImagesRequest(server string) (*http.Request, error)

NewListImagesRequest generates requests for ListImages

func NewListIngressesRequest

func NewListIngressesRequest(server string) (*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 NewListVolumesRequest

func NewListVolumesRequest(server string) (*http.Request, error)

NewListVolumesRequest generates requests for ListVolumes

func NewRestoreInstanceRequest

func NewRestoreInstanceRequest(server string, id string) (*http.Request, error)

NewRestoreInstanceRequest generates requests for RestoreInstance

func NewStandbyInstanceRequest

func NewStandbyInstanceRequest(server string, id string) (*http.Request, error)

NewStandbyInstanceRequest generates requests for StandbyInstance

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

func NewStopInstanceRequest(server string, id string) (*http.Request, error)

NewStopInstanceRequest generates requests for StopInstance

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

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 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"`
}

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 (c *Client) AttachVolumeWithBody(ctx context.Context, id string, volumeId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CancelBuild

func (c *Client) CancelBuild(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateBuildWithBody

func (c *Client) CreateBuildWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateDevice

func (c *Client) CreateDevice(ctx context.Context, body CreateDeviceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateDeviceWithBody

func (c *Client) CreateDeviceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateImage

func (c *Client) CreateImage(ctx context.Context, body CreateImageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateImageWithBody

func (c *Client) CreateImageWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateIngress

func (c *Client) CreateIngress(ctx context.Context, body CreateIngressJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateIngressWithBody

func (c *Client) CreateIngressWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateInstance

func (c *Client) CreateInstance(ctx context.Context, body CreateInstanceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateInstanceWithBody

func (c *Client) CreateInstanceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) CreateVolumeFromArchiveWithBody(ctx context.Context, params *CreateVolumeFromArchiveParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateVolumeWithBody

func (c *Client) CreateVolumeWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteDevice

func (c *Client) DeleteDevice(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteImage

func (c *Client) DeleteImage(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteIngress

func (c *Client) DeleteIngress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteInstance

func (c *Client) DeleteInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteVolume

func (c *Client) DeleteVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DetachVolume

func (c *Client) DetachVolume(ctx context.Context, id string, volumeId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) ForkInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBuild

func (c *Client) GetBuild(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetBuildEvents

func (c *Client) GetBuildEvents(ctx context.Context, id string, params *GetBuildEventsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDevice

func (c *Client) GetDevice(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetImage

func (c *Client) GetImage(ctx context.Context, name string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetIngress

func (c *Client) GetIngress(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInstance

func (c *Client) GetInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInstanceLogs

func (c *Client) GetInstanceLogs(ctx context.Context, id string, params *GetInstanceLogsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetInstanceStats added in v0.0.6

func (c *Client) GetInstanceStats(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetResources

func (c *Client) GetResources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetVolume

func (c *Client) GetVolume(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListAvailableDevices

func (c *Client) ListAvailableDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListBuilds

func (c *Client) ListBuilds(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListDevices

func (c *Client) ListDevices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListImages

func (c *Client) ListImages(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListIngresses

func (c *Client) ListIngresses(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListInstances

func (c *Client) ListInstances(ctx context.Context, params *ListInstancesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListVolumes

func (c *Client) ListVolumes(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RestoreInstance

func (c *Client) RestoreInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StandbyInstance

func (c *Client) StandbyInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) StartInstanceWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StatInstancePath

func (c *Client) StatInstancePath(ctx context.Context, id string, params *StatInstancePathParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) StopInstance

func (c *Client) StopInstance(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListBuilds request
	ListBuilds(ctx context.Context, 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, 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, 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, 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)

	// 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)

	// StandbyInstance request
	StandbyInstance(ctx context.Context, id string, 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)

	// GetResources request
	GetResources(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListVolumes request
	ListVolumes(ctx context.Context, 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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) 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) DeleteInstanceWithResponse

func (c *ClientWithResponses) DeleteInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteInstanceResponse, error)

DeleteInstanceWithResponse request returning *DeleteInstanceResponse

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) 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) 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) 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, reqEditors ...RequestEditorFn) (*ListBuildsResponse, error)

ListBuildsWithResponse request returning *ListBuildsResponse

func (*ClientWithResponses) ListDevicesWithResponse

func (c *ClientWithResponses) ListDevicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListDevicesResponse, error)

ListDevicesWithResponse request returning *ListDevicesResponse

func (*ClientWithResponses) ListImagesWithResponse

func (c *ClientWithResponses) ListImagesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListImagesResponse, error)

ListImagesWithResponse request returning *ListImagesResponse

func (*ClientWithResponses) ListIngressesWithResponse

func (c *ClientWithResponses) ListIngressesWithResponse(ctx context.Context, 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) ListVolumesWithResponse

func (c *ClientWithResponses) ListVolumesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListVolumesResponse, error)

ListVolumesWithResponse request returning *ListVolumesResponse

func (*ClientWithResponses) RestoreInstanceWithResponse

func (c *ClientWithResponses) RestoreInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*RestoreInstanceResponse, error)

RestoreInstanceWithResponse request returning *RestoreInstanceResponse

func (*ClientWithResponses) StandbyInstanceWithResponse

func (c *ClientWithResponses) StandbyInstanceWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*StandbyInstanceResponse, error)

StandbyInstanceWithResponse request returning *StandbyInstanceResponse

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

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListBuildsWithResponse request
	ListBuildsWithResponse(ctx context.Context, 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, 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, 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, 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)

	// 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)

	// StandbyInstanceWithResponse request
	StandbyInstanceWithResponse(ctx context.Context, id string, 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)

	// GetResourcesWithResponse request
	GetResourcesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetResourcesResponse, error)

	// ListVolumesWithResponse request
	ListVolumesWithResponse(ctx context.Context, 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"`

	// 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 CreateBuildRequestObject

type CreateBuildRequestObject struct {
	Body *multipart.Reader
}

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"`
}

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 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"`
}

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
	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"`
}

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 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 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 {
	// Cmd Override image CMD (like docker run <image> <command>). Omit to use image default.
	Cmd *[]string `json:"cmd,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"`

	// 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"`

	// Metadata User-defined key-value metadata for the instance
	Metadata *map[string]string `json:"metadata,omitempty"`

	// 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"`

		// 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"`

	// 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"`

	// 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 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 CreateInstanceRequestObject

type CreateInstanceRequestObject struct {
	Body *CreateInstanceJSONRequestBody
}

type CreateInstanceResponse

type CreateInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON201      *Instance
	JSON400      *Error
	JSON401      *Error
	JSON409      *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 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"`
}

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

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"`
}

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 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 DetachVolumeRequestObject

type DetachVolumeRequestObject struct {
	Id       string `json:"id"`
	VolumeId string `json:"volumeId"`
}

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"`

	// 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 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 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

type GetBuildEvents200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

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

type GetHealthResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Health
}

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

type GetInstanceLogs200TexteventStreamResponse struct {
	Body          io.Reader
	ContentLength int64
}

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 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 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 HealthStatus

type HealthStatus string

HealthStatus defines model for Health.Status.

const (
	Ok HealthStatus = "ok"
)

Defines values for HealthStatus.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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"`

	// 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"`

	// 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"`
}

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 {
	// CreatedAt Creation timestamp (RFC3339)
	CreatedAt time.Time `json:"created_at"`

	// 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"`

	// 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"`

	// Metadata User-defined key-value metadata
	Metadata *map[string]string `json:"metadata,omitempty"`

	// 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"`

	// Size Base memory size (human-readable)
	Size *string `json:"size,omitempty"`

	// StartedAt Start timestamp (RFC3339)
	StartedAt *time.Time `json:"started_at"`

	// State Instance state:
	// - Created: VMM created but not started (Cloud Hypervisor native)
	// - Running: VM is actively running (Cloud Hypervisor native)
	// - 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"`

	// 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 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) - Running: VM is actively running (Cloud Hypervisor native) - 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"
	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

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

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

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 ListBuildsRequestObject

type ListBuildsRequestObject struct {
}

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 ListDevicesRequestObject

type ListDevicesRequestObject struct {
}

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 ListImagesRequestObject

type ListImagesRequestObject struct {
}

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 ListIngressesRequestObject

type ListIngressesRequestObject struct {
}

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"`

	// Metadata Filter instances by metadata key-value pairs. Uses deepObject style:
	// ?metadata[team]=backend&metadata[env]=staging
	// Multiple entries are ANDed together. All specified key-value pairs must match.
	Metadata *map[string]string `json:"metadata,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 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 ListVolumesRequestObject

type ListVolumesRequestObject struct {
}

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 MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

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 RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

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 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 ServerInterface

type ServerInterface interface {
	// List builds
	// (GET /builds)
	ListBuilds(w http.ResponseWriter, r *http.Request)
	// 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)
	// 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)
	// 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)
	// 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)
	// 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)
	// 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)
	// Get host resource capacity and allocations
	// (GET /resources)
	GetResources(w http.ResponseWriter, r *http.Request)
	// List volumes
	// (GET /volumes)
	ListVolumes(w http.ResponseWriter, r *http.Request)
	// 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) 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) 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) 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) 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) 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) ListVolumes

func (siw *ServerInterfaceWrapper) ListVolumes(w http.ResponseWriter, r *http.Request)

ListVolumes operation middleware

func (*ServerInterfaceWrapper) RestoreInstance

func (siw *ServerInterfaceWrapper) RestoreInstance(w http.ResponseWriter, r *http.Request)

RestoreInstance 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

type StandbyInstance200JSONResponse

type StandbyInstance200JSONResponse Instance

func (StandbyInstance200JSONResponse) VisitStandbyInstanceResponse

func (response StandbyInstance200JSONResponse) 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 StandbyInstanceRequestObject

type StandbyInstanceRequestObject struct {
	Id string `json:"id"`
}

type StandbyInstanceResponse

type StandbyInstanceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Instance
	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 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)
	// 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)
	// 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)
	// Get host resource capacity and allocations
	// (GET /resources)
	GetResources(ctx context.Context, request GetResourcesRequestObject) (GetResourcesResponseObject, 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

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

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) 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) 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) 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) 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) 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)

List builds (GET /builds)

func (Unimplemented) ListDevices

func (_ Unimplemented) ListDevices(w http.ResponseWriter, r *http.Request)

List registered devices (GET /devices)

func (Unimplemented) ListImages

func (_ Unimplemented) ListImages(w http.ResponseWriter, r *http.Request)

List images (GET /images)

func (Unimplemented) ListIngresses

func (_ Unimplemented) ListIngresses(w http.ResponseWriter, r *http.Request)

List ingresses (GET /ingresses)

func (Unimplemented) ListInstances

func (_ Unimplemented) ListInstances(w http.ResponseWriter, r *http.Request, params ListInstancesParams)

List instances (GET /instances)

func (Unimplemented) ListVolumes

func (_ Unimplemented) ListVolumes(w http.ResponseWriter, r *http.Request)

List volumes (GET /volumes)

func (Unimplemented) RestoreInstance

func (_ Unimplemented) RestoreInstance(w http.ResponseWriter, r *http.Request, id string)

Restore instance from standby (POST /instances/{id}/restore)

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)

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() 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"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL