Versions in this module Expand all Collapse all v0 v0.1.0 May 24, 2025 Changes in this version + const HostURL + type AddSshKey struct + Name string + PublicKey string + type AdditionalResources struct + Storage []AdditionalStorage + type AdditionalStorage struct + Supply uint64 + Type string + Units string + type AdditionalSupply struct + PerVmLimit *uint64 + type AvailableHardware struct + Cpu []CpuHardware + Memory []MemoryHardware + Storage []StorageHardware + type Client struct + ApiKey string + HTTPClient *http.Client + HostURL string + func NewClient(host *string, apikey *string) (*Client, error) + func (c *Client) CreateSshKey(key AddSshKey) (*SshKey, error) + func (c *Client) CreateVmV3(reqBody CreateVmV3) ([]CreatedVm, error) + func (c *Client) EstimateDeposit(reqBody EstimateDepositRequestV3) (*EstimatedDepositV3DTO, error) + func (c *Client) GetAvailableCountries() ([]string, error) + func (c *Client) GetAvailableHardware() (*AvailableHardware, error) + func (c *Client) GetBasicConfigurations() ([]string, error) + func (c *Client) GetMarketplaceOffers(constraints *OfferConstraints) ([]MarketOffering, error) + func (c *Client) ListSshKeys() ([]SshKey, error) + func (c *Client) ListVmsV3() ([]RunningInstanceV3, error) + func (c *Client) RemoveSshKey(fingerprint string) error + func (c *Client) RemoveVms(vmIds []string) (*VmsRemoved, error) + func (c *Client) UpdateVms(updates []UpdateVm) error + type ConfigurationPrice struct + Price string + Slug string + type CpuHardware struct + Architecture string + Manufacturer string + type CreateVmV3 struct + Constraints *OfferConstraints + Instances int + VmConfiguration VmConfiguration + type CreatedVm struct + VmId string + VmName string + type Datacenter struct + Certifications []string + CityCode string + CityIndex uint32 + CountryCode string + Tier uint32 + type DatacenterConstraint struct + Countries []string + type DefaultImageDTO struct + CreatedAt string + Distribution string + DownloadUrl string + Id string + Name string + Slug string + UpdatedAt string + Username string + type ErrorBody struct + Error string + type EstimateDepositRequestV3 struct + Constraints *OfferConstraints + Instances int + type EstimatedDepositV3DTO struct + DepositAmountUsdc string + DepositEpochs uint64 + Instances int + MaxPricePerEpoch string + TotalPricePerEpoch string + type HardwareConstraints struct + Cpu []CpuHardware + Memory []MemoryHardware + Storage []StorageHardware + type MarketOffering struct + Configuration ConfigurationPrice + Datacenter Datacenter + MaxAdditionalSupply []AdditionalSupply + Resources []Resource + Servers []ServerOffering + type MemoryHardware struct + Generation string + Type string + type OfferConstraints struct + AdditionalResources *AdditionalResources + BasicConfiguration *string + Datacenter *DatacenterConstraint + Hardware *HardwareConstraints + MaxTotalPricePerEpochUsd *string + type OpenPorts struct + Port uint16 + Protocol string + type PortSpec struct + Port uint16 + Protocol string + type RemoveSshKey struct + Fingerprint string + type RemoveVms struct + VmIds []string + type Resource struct + Metadata ResourceMetadata + Price string + Type string + type ResourceMetadata map[string]interface + type RunningInstanceV3 struct + CreatedAt string + Datacenter *Datacenter + Id string + NextBillingAt string + OsImage *string + Ports *[]PortSpec + PricePerEpoch string + PublicIp *string + ReservedBalance string + Resources []VmResource + Status string + TotalSpent string + VmName *string + type ServerOffering struct + AdditionalResources []AdditionalSupply + AvailableBasicInstances uint64 + type SshKey struct + Active bool + Algorithm string + Comment string + CreatedAt string + Fingerprint string + Name string + PublicKey string + type StorageHardware struct + Type string + type String string + type Supply struct + Supply uint64 + Units string + type UpdateVm struct + Id string + OpenPorts *[]OpenPorts + VmName *string + type UpdateVms struct + Updates []UpdateVm + type VmConfiguration struct + Hostname *string + Name string + OpenPorts []OpenPorts + OsImage string + SshKeys []string + type VmResource struct + Details interface{} + Metadata ResourceMetadata + Type string + type VmsRemoved struct + Transactions []string