Versions in this module Expand all Collapse all v1 v1.0.3-preview.2 Jun 27, 2026 v1.0.3-preview Jun 24, 2026 v1.0.2 Jun 22, 2026 v1.0.1 Jun 20, 2026 v1.0.0 Jun 19, 2026 Changes in this version + const DefaultBaseURL + const DefaultEnterpriseBaseURL + const DefaultTimeout + type APIError struct + Code int + Details string + Message string + func (e *APIError) Error() string + type AvailableReplica struct + AvailableCount int + HardwareID int + HardwareName string + LocationID int + LocationName string + MaxGPUs int + type AvailableReplicasResponse struct + Replicas []AvailableReplica + type Client struct + APIKey string + BaseURL string + HTTPClient HTTPClient + func NewClient(apiKey string) *Client + func NewClientWithConfig(apiKey, baseURL string, httpClient HTTPClient) *Client + func NewEnterpriseClient(apiKey string) *Client + func (c *Client) CheckClusterNameAvailability(clusterName string) (bool, error) + func (c *Client) DeleteDeployment(deploymentID string) (*UpdateDeploymentResponse, error) + func (c *Client) DeployContainer(req *DeploymentRequest) (*DeploymentResponse, error) + func (c *Client) ExecuteInContainer(deploymentID, containerID string, command []string) (string, error) + func (c *Client) ExtendDeployment(deploymentID string, req *ExtendDurationRequest) (*DeploymentDetail, error) + func (c *Client) GetAvailableReplicas(hardwareID int, gpuCount int) (*AvailableReplicasResponse, error) + func (c *Client) GetContainerDetails(deploymentID, containerID string) (*Container, error) + func (c *Client) GetContainerJobs(deploymentID, containerID string) (*ContainerList, error) + func (c *Client) GetContainerLogs(deploymentID, containerID string, opts *GetLogsOptions) (*ContainerLogs, error) + func (c *Client) GetContainerLogsRaw(deploymentID, containerID string, opts *GetLogsOptions) (string, error) + func (c *Client) GetDeployment(deploymentID string) (*DeploymentDetail, error) + func (c *Client) GetHardwareType(hardwareID int) (*HardwareType, error) + func (c *Client) GetLocation(locationID int) (*Location, error) + func (c *Client) GetLocationAvailability(locationID int) (*LocationAvailability, error) + func (c *Client) GetMaxGPUsPerContainer() (*MaxGPUResponse, error) + func (c *Client) GetPriceEstimation(req *PriceEstimationRequest) (*PriceEstimationResponse, error) + func (c *Client) ListContainers(deploymentID string) (*ContainerList, error) + func (c *Client) ListDeployments(opts *ListDeploymentsOptions) (*DeploymentList, error) + func (c *Client) ListHardwareTypes() ([]HardwareType, int, error) + func (c *Client) ListLocations() (*LocationsResponse, error) + func (c *Client) RestartContainer(deploymentID, containerID string) error + func (c *Client) StopContainer(deploymentID, containerID string) error + func (c *Client) StreamContainerLogs(deploymentID, containerID string, opts *GetLogsOptions, ...) error + func (c *Client) UpdateClusterName(clusterID string, req *UpdateClusterNameRequest) (*UpdateClusterNameResponse, error) + func (c *Client) UpdateDeployment(deploymentID string, req *UpdateDeploymentRequest) (*UpdateDeploymentResponse, error) + type Container struct + BrandName string + ContainerEvents []ContainerEvent + ContainerID string + CreatedAt time.Time + DeviceID string + GPUsPerContainer int + Hardware string + PublicURL string + Status string + UptimePercent int + type ContainerConfig struct + Args []string + Entrypoint []string + EnvVariables map[string]string + ReplicaCount int + SecretEnvVariables map[string]string + TrafficPort int + type ContainerEvent struct + Message string + Time time.Time + type ContainerList struct + Total int + Workers []Container + type ContainerLogs struct + ContainerID string + HasMore bool + Logs []LogEntry + NextCursor string + type DefaultHTTPClient struct + func NewDefaultHTTPClient(timeout time.Duration) *DefaultHTTPClient + func (c *DefaultHTTPClient) Do(req *HTTPRequest) (*HTTPResponse, error) + type Deployment struct + BrandName string + CompletedPercent float64 + ComputeMinutesRemaining int + ComputeMinutesServed int + CreatedAt time.Time + GPUCount int + HardwareName string + HardwareQuantity int + ID string + Name string + Remaining string + Replicas int + Served string + Status string + type DeploymentContainerConfig struct + Entrypoint []string + EnvVariables map[string]interface{} + ImageURL string + TrafficPort int + type DeploymentDetail struct + AmountPaid float64 + BrandName string + CompletedPercent float64 + ComputeMinutesRemaining int + ComputeMinutesServed int + ContainerConfig DeploymentContainerConfig + CreatedAt time.Time + FinishedAt *time.Time + GPUsPerContainer int + HardwareID int + HardwareName string + ID string + Locations []DeploymentLocation + StartedAt *time.Time + Status string + TotalContainers int + TotalGPUs int + type DeploymentList struct + Deployments []Deployment + Statuses []string + Total int + type DeploymentLocation struct + ID int + ISO2 string + Name string + type DeploymentRequest struct + ContainerConfig ContainerConfig + DurationHours int + GPUsPerContainer int + HardwareID int + LocationIDs []int + RegistryConfig RegistryConfig + ResourcePrivateName string + type DeploymentResponse struct + DeploymentID string + Status string + type ExtendDurationRequest struct + DurationHours int + type GetLogsOptions struct + Cursor string + EndTime *time.Time + Follow bool + Level string + Limit int + StartTime *time.Time + Stream string + type HTTPClient interface + Do func(req *HTTPRequest) (*HTTPResponse, error) + type HTTPRequest struct + Body []byte + Headers map[string]string + Method string + URL string + type HTTPResponse struct + Body []byte + Headers map[string]string + StatusCode int + type HardwareAvailability struct + AvailableCount int + HardwareID int + HardwareName string + MaxGPUs int + type HardwareType struct + Available bool + AvailableCount int + BrandName string + CPU string + Description string + GPUMemory int + GPUType string + HourlyRate float64 + ID int + MaxGPUs int + Memory int + Name string + Storage int + type ListDeploymentsOptions struct + LocationID int + Page int + PageSize int + SortBy string + SortOrder string + Status string + type Location struct + Available int + Country string + Description string + ID int + ISO2 string + Latitude float64 + Longitude float64 + Name string + Region string + type LocationAvailability struct + Available bool + HardwareAvailability []HardwareAvailability + LocationID int + LocationName string + UpdatedAt time.Time + type LocationsResponse struct + Locations []Location + Total int + type LogEntry struct + Level string + Message string + Source string + Timestamp time.Time + type MaxGPUInfo struct + Available int + BrandName string + HardwareID int + HardwareName string + MaxGPUsPerContainer int + type MaxGPUResponse struct + Hardware []MaxGPUInfo + Total int + type PriceBreakdown struct + ComputeCost float64 + HourlyRate float64 + NetworkCost float64 + StorageCost float64 + TotalCost float64 + type PriceEstimationRequest struct + Currency string + DurationHours int + DurationQty int + DurationType string + GPUsPerContainer int + HardwareID int + HardwareQty int + LocationIDs []int + ReplicaCount int + type PriceEstimationResponse struct + Currency string + EstimatedCost float64 + EstimationValid bool + PriceBreakdown PriceBreakdown + type RegistryConfig struct + ImageURL string + RegistrySecret string + RegistryUsername string + type UpdateClusterNameRequest struct + Name string + type UpdateClusterNameResponse struct + Message string + Status string + type UpdateDeploymentRequest struct + Args []string + Command string + Entrypoint []string + EnvVariables map[string]string + ImageURL string + RegistrySecret string + RegistryUsername string + SecretEnvVariables map[string]string + TrafficPort *int + type UpdateDeploymentResponse struct + DeploymentID string + Status string