Versions in this module Expand all Collapse all v0 v0.3.1 Aug 21, 2026 v0.3.0 Aug 8, 2026 Changes in this version + var Version = "0.0.0-dev" type Client + func (c *Client) CreateSnapshot(deploymentID int, req CreateSnapshotRequest) (CreateSnapshotResult, error) + func (c *Client) GetIdlePolicy(deploymentID int) (*IdlePolicy, error) + func (c *Client) SetIdlePolicy(deploymentID int, req IdlePolicyUpdate) (*IdlePolicy, error) + func (c *Client) SnapshotHistory() ([]SnapshotHistoryItem, error) + type CreateSnapshotRequest struct + BackupID string + IncludeProcess bool + IncludeWorkspace bool + WorkspaceDir string + type CreateSnapshotResult struct + Message string + Size int64 + SnapshotID string + type IdlePolicy struct + ActAfterMinutes int + AutoStopEnabled bool + GPUIdleThresholdPercent int + IdleMinutes int + State string + WarnAfterMinutes int + type IdlePolicyUpdate struct + ActAfterMinutes *int + AutoStopEnabled *bool + GPUIdleThresholdPercent *int + WarnAfterMinutes *int + type SnapshotHistoryBackup struct + DeploymentID int + Path string + type SnapshotHistoryItem struct + BackupID int + Backups *SnapshotHistoryBackup + CreatedAt string + ID int + Path string + Size int64 + Status string + Type string type UpRequest + IdlePolicy *IdlePolicyUpdate v0.2.2 Aug 2, 2026 v0.2.1 Aug 2, 2026 v0.2.0 Aug 1, 2026 Changes in this version + const SSHPort type Client + func (c *Client) ListDeployments() ([]Deployment, error) type DeployRequest + Name string type Deployment + Name string + ServiceURLs json.RawMessage + func (d Deployment) SSHServiceURL() (string, bool) + type ServiceURL struct + Port portID + URL string type UpRequest + Name string v0.1.0 Jun 30, 2026 Changes in this version + type APIError struct + Data json.RawMessage + Message string + Status int + func (e *APIError) Error() string + type Client struct + APIKey string + BaseURL string + HTTP *http.Client + TeamID string + func New(baseURL string) *Client + func NewAuthed(baseURL, apiKey, teamID string) *Client + func (c *Client) CloseDeployment(deploymentID int) (*CloseResult, error) + func (c *Client) CreateSSHKey(name, publicKey string) (*SSHKey, error) + func (c *Client) Deploy(req DeployRequest) (*UpResult, error) + func (c *Client) DeploymentStatus(deploymentID int) (*DeploymentStatusResult, error) + func (c *Client) GetProjectDeployment(projectID string) (*Deployment, error) + func (c *Client) ListSSHKeys() ([]SSHKey, error) + func (c *Client) PollDevice(deviceCode string) (*DevicePoll, error) + func (c *Client) StartDevice(clientName string, scopes []string) (*DeviceStart, error) + func (c *Client) Up(req UpRequest) (*UpResult, error) + type CloseResult struct + Status string + type DeployRequest struct + GPUModel string + MaxPrice float64 + Provider string + SSHKeyID string + SnapshotSource string + Template string + type Deployment struct + AppURL string + ID int + RestoreError string + RestoreStatus string + ServiceCredentials *ServiceCredentials + Status string + type DeploymentStatusResult struct + Deployment Deployment + DeploymentID int + Status string + type DevicePoll struct + Interval int + KeyName string + Scopes []string + Status string + TeamID string + Token string + type DeviceStart struct + DeviceCode string + ExpiresIn int + Interval int + Scopes []string + UserCode string + VerificationURI string + VerificationURIComplete string + type SSHKey struct + ID string + Name string + PublicKey string + type ServiceCredentials struct + Password string + Status string + Template string + URL string + Username string + type UpRequest struct + GPUModel string + MaxPrice float64 + Provider string + SSHKeyID string + Template string + type UpResult struct + DeploymentID int + Message string + ProjectID string + Status string