Versions in this module Expand all Collapse all v0 v0.1.0 Oct 27, 2026 Changes in this version + const CodeAlreadyTerminated + const CodeCustomPortsNotSupportedForRegion + const CodeFailedToCalculateCostPerHour + const CodeInsufficientBalance + const CodeNoPublicKey + const CodeNotFound + const CodeRegionDisabled + const CodeRentalNotFound + const CodeSSHPublicKeyAlreadyExists + const CodeSSHPublicKeyInUse + const CodeSSHPublicKeyNotFound + const DefaultBaseURL + var ErrNotFound = errors.New("hyperbolic: not found") + var ErrOutcomeUnknown = errors.New("hyperbolic: outcome unknown") + func HasCode(err error, code string) bool + func IsNotFound(err error) bool + func IsOutcomeUnknown(err error) bool + func IsRateLimited(err error) bool + func IsUnauthorized(err error) bool + func Ptr[T any](v T) *T + func StatusCode(err error) int + type APIError struct + Body string + Code string + Issues []string + Message string + Method string + Path string + RetryAfter time.Duration + StatusCode int + func (e *APIError) Error() string + type APIKey struct + CreatedAt time.Time + Last4 string + OrgID nullable.Nullable[string] + OrganizationMember *OrganizationMember + PublicID string + RevokedAt nullable.Nullable[time.Time] + UserID string + type APIKeysService struct + func (s *APIKeysService) List(ctx context.Context) ([]APIKey, error) + type AccountBalance struct + BalanceCents float64 + MaxOverdraftCents float64 + type ActiveRentalLookup struct + Rental RentalWithStatus + State ActiveRentalLookupState + type ActiveRentalLookupState string + const ActiveRentalLookupStateActive + func (e ActiveRentalLookupState) Valid() bool + type ActiveRentalSummary struct + ByTermType ActiveRentalSummaryByTermType + CostPerHourCents int + Count int + type ActiveRentalSummaryByTermType struct + OnDemand RentalTermTypeSummary + PrivateCloud RentalTermTypeSummary + Reserved RentalTermTypeSummary + type ActiveRentalsPage struct + Items []RentalWithStatus + Page int + PageSize int + Total int + TotalPages int + type AttachSSHKeyParams struct + RentalID string + SSHPublicKeyID int + type AttachStorageVolumeParams struct + RentalIds []string + StorageVolumeID string + type AttachStorageVolumeResponse struct + AttachedRentalIds []string + Message string + StorageVolumeID string + type AttachedStorage struct + CostPerHourCents float64 + Label string + SizeInGb int + StorageVolumeID string + VirtualIP string + type BalancesService struct + func (s *BalancesService) Get(ctx context.Context) (*AccountBalance, error) + type BareMetalOption struct + ConnectionType ConnectionType + CostPerHourCents float64 + Enabled bool + EthernetVariant *EthernetVariant + GPUCount int + GPUFormFactor GPUFormFactor + GPUType GPUType + MachineType BareMetalOptionMachineType + Nodes []struct{ ... } + Region string + SupportsCustomPorts bool + SupportsMultipleSSHKeys bool + SupportsSSHKeyUpdates bool + TotalAvailable *int + type BareMetalOptionMachineType string + const BareMetalOptionMachineTypeBareMetal + func (e BareMetalOptionMachineType) Valid() bool + type Client struct + APIKeys *APIKeysService + Balances *BalancesService + Rentals *RentalsService + SSHKeys *SSHKeysService + StorageVolumes *StorageVolumesService + Users *UsersService + func NewClient(apiKey string, opts ...Option) (*Client, error) + func (c *Client) GoString() string + func (c *Client) String() string + type ConnectionType string + const ConnectionTypeEthernet + const ConnectionTypeInfiniband + func (e ConnectionType) Valid() bool + type ConvertRentalToReservedParams struct + ExpectedTotalPriceCents int + RentalID string + TermPeriodDays int + type CreateRentalParams struct + CUDAVersion *CreateRentalParamsCUDAVersion + ConvertToOnDemandOnExpiry *bool + CustomPorts *[]int + DiscountPercentage *float64 + GPUCount int + GPUType *GPUType + Label *string + MonitoringEnabled *bool + NetworkType *CreateRentalParamsNetworkType + Region *string + RentalType RentalType + SSHPublicKeyID *int + SSHPublicKeyIds *[]int + StorageVolume *StorageVolumeChoice + TermPeriodDays *int + TermType *TermType + type CreateRentalParamsCUDAVersion string + const CreateRentalParamsCUDAVersionCuda128 + const CreateRentalParamsCUDAVersionCuda129 + func (e CreateRentalParamsCUDAVersion) Valid() bool + type CreateRentalParamsNetworkType string + const CreateRentalParamsNetworkTypeEthernet + const CreateRentalParamsNetworkTypeInfiniband + func (e CreateRentalParamsNetworkType) Valid() bool + type CreateSSHKeyParams struct + Name *string + PublicKey string + type CreateStorageVolumeParams struct + Label string + Region string + RentalIds *[]string + SizeInGb int + type CreatedStorageVolume struct + AttachedRentalIds []string + Label string + Message string + Region string + SizeInGb int + Status StorageVolumeStatus + StorageVolumeID string + type CurrentUser struct + CompletedPromos []string + CreatedAt time.Time + Email string + EmailVerified nullable.Nullable[bool] + HasPurchasedCredits bool + ID string + IsActive nullable.Nullable[bool] + Name nullable.Nullable[string] + OnboardedAt nullable.Nullable[time.Time] + OnboardedFor nullable.Nullable[string] + Picture nullable.Nullable[string] + Provider nullable.Nullable[string] + ReferralCode nullable.Nullable[string] + ReservedRentalLimit *int + Role CurrentUserRole + type CurrentUserRole string + const CurrentUserRoleElite + const CurrentUserRolePro + const CurrentUserRoleUser + func (e CurrentUserRole) Valid() bool + type DeleteSSHKeyParams struct + ID int + type DeletedSSHKey struct + ID int + type DetachSSHKeyParams struct + RentalID string + SSHPublicKeyID int + type EthernetVariant string + const EthernetVariantNormal + const EthernetVariantRocev2 + func (e EthernetVariant) Valid() bool + type ExistingStorageVolume struct + ID string + IsNew ExistingStorageVolumeIsNew + type ExistingStorageVolumeIsNew bool + const ExistingStorageVolumeIsNewFalse + func (e ExistingStorageVolumeIsNew) Valid() bool + type ExtendReservedRentalParams struct + ExpectedReservedUntil time.Time + ExpectedTotalPriceCents int + RentalID string + TermPeriodDays int + type GPUFormFactor string + const GPUFormFactorPCIE + const GPUFormFactorSxm5 + const GPUFormFactorSxm6 + func (e GPUFormFactor) Valid() bool + type GPUType string + const GPUTypeB200 + const GPUTypeH100 + const GPUTypeH200 + const GPUTypeRtx6000Pro + func (e GPUType) Valid() bool + type GetRentalParams struct + RentalID string + type GetReservationExtensionQuoteParams struct + RentalID string + TermPeriodDays *int + type GetReservedConversionQuoteParams struct + RentalID string + type HasRentalHistoryParams struct + IncludePrivateCloud *bool + type HistoricalRental struct + AttachedStorage []AttachedStorage + ConnectionType ConnectionType + ConvertToOnDemandOnExpiry nullable.Nullable[bool] + CreatedAt time.Time + CreatedBy RentalCreator + CurrentTerm RentalTerm + EthernetVariant nullable.Nullable[EthernetVariant] + ExposedPorts []int + GPUCount int + GPUFormFactor GPUFormFactor + GPUType GPUType + Label nullable.Nullable[string] + ManagedCluster nullable.Nullable[ManagedClusterRef] + MonitoringEnabled bool + Name nullable.Nullable[string] + NetworkInterfaces []NetworkInterface + Nodes []RentalNode + OrgID nullable.Nullable[string] + PortMappings []PortMapping + PrivateCluster nullable.Nullable[PrivateCluster] + Region string + RentalID string + RentalType RentalType + SSHEndpoints []SSHEndpoint + StartedAt nullable.Nullable[time.Time] + Status RentalStatus + SupportsAttachedStorage bool + SupportsCustomPorts bool + SupportsMultipleSSHKeys bool + SupportsPortForwarding bool + SupportsSSHKeyUpdates bool + TerminatedAt time.Time + TerminationReason nullable.Nullable[string] + TotalCost float64 + UpdatedAt nullable.Nullable[time.Time] + UserID string + type ListActiveRentalsParams struct + GPUType *GPUType + IncludeClusterPools *bool + IncludePrivateCloud *bool + Page *int + PageSize *int + Region *string + RentalType *RentalType + TermType *TermType + type ListRentalHistoryParams struct + Cursor *string + GPUType *GPUType + IncludePrivateCloud *bool + Limit *int + Region *string + RentalType *RentalType + TermType *TermType + type ListRentalSSHKeysParams struct + RentalID string + type ListReserveOptionsParams struct + TermPeriodDays *int + type ManagedClusterRef struct + Label nullable.Nullable[string] + Name string + type NetworkInterface struct + PrivateIP string + PublicIP string + type NewStorageVolume struct + IsNew NewStorageVolumeIsNew + Label string + SizeInGb int + type NewStorageVolumeIsNew bool + const NewStorageVolumeIsNewTrue + func (e NewStorageVolumeIsNew) Valid() bool + type OnDemandTerm struct + CostPerHour float64 + DiscountPercentage nullable.Nullable[any] + EffectiveAt time.Time + OriginalCostPerHour nullable.Nullable[any] + ReservationEndsAt nullable.Nullable[any] + ReservedUntil nullable.Nullable[any] + TermPeriodDays nullable.Nullable[any] + TermType OnDemandTermTermType + type OnDemandTermTermType string + const OnDemandTermTermTypeOnDemand + func (e OnDemandTermTermType) Valid() bool + type Option func(*transport) error + func WithBaseURL(raw string) Option + func WithHTTPClient(h *http.Client) Option + func WithRetryPolicy(p RetryPolicy) Option + func WithUserAgent(product string) Option + type OrganizationMember struct + Email string + FullName *string + ImageURL *string + Role OrganizationMemberRole + type OrganizationMemberRole string + const OrganizationMemberRoleOrgAdmin + const OrganizationMemberRoleOrgMember + func (e OrganizationMemberRole) Valid() bool + type OutcomeUnknownError struct + Err error + Method string + Path string + func (e *OutcomeUnknownError) Error() string + func (e *OutcomeUnknownError) Is(target error) bool + func (e *OutcomeUnknownError) Unwrap() error + type PortMapping struct + ExternalPort int + InternalPort int + type PrivateCloudTerm struct + CostPerHour float64 + DiscountPercentage nullable.Nullable[any] + EffectiveAt time.Time + OriginalCostPerHour nullable.Nullable[any] + ReservationEndsAt nullable.Nullable[any] + ReservedUntil nullable.Nullable[any] + TermPeriodDays nullable.Nullable[any] + TermType PrivateCloudTermTermType + type PrivateCloudTermTermType string + const PrivateCloudTermTermTypePrivateCloud + func (e PrivateCloudTermTermType) Valid() bool + type PrivateCluster struct + GPUModel nullable.Nullable[string] + Handover map[string]interface{} + Location nullable.Nullable[string] + Nodes []PrivateClusterNode + SSHPort nullable.Nullable[float64] + SSHUser string + type PrivateClusterNode struct + Hostname nullable.Nullable[string] + PrivateIP string + PublicIP nullable.Nullable[string] + Role PrivateClusterNodeRole + type PrivateClusterNodeRole string + const PrivateClusterNodeRoleCompute + const PrivateClusterNodeRoleHead + const PrivateClusterNodeRoleLogin + func (e PrivateClusterNodeRole) Valid() bool + type RebootRentalInstanceParams struct + InstanceRef string + RentalID string + type Rental struct + AttachedStorage []AttachedStorage + ConnectionType ConnectionType + ConvertToOnDemandOnExpiry nullable.Nullable[bool] + CreatedAt time.Time + CreatedBy RentalCreator + CurrentTerm RentalTerm + EthernetVariant nullable.Nullable[EthernetVariant] + ExposedPorts []int + GPUCount int + GPUFormFactor GPUFormFactor + GPUType GPUType + Label nullable.Nullable[string] + ManagedCluster nullable.Nullable[ManagedClusterRef] + MonitoringEnabled bool + Name nullable.Nullable[string] + NetworkInterfaces []NetworkInterface + Nodes []RentalNode + OrgID nullable.Nullable[string] + PortMappings []PortMapping + PrivateCluster nullable.Nullable[PrivateCluster] + Region string + RentalID string + RentalType RentalType + SSHEndpoints []SSHEndpoint + StartedAt nullable.Nullable[time.Time] + SupportsAttachedStorage bool + SupportsCustomPorts bool + SupportsMultipleSSHKeys bool + SupportsPortForwarding bool + SupportsSSHKeyUpdates bool + TerminatedAt nullable.Nullable[time.Time] + TerminationReason nullable.Nullable[string] + UpdatedAt nullable.Nullable[time.Time] + UserID string + type RentalCreator struct + Email string + ID string + Name nullable.Nullable[string] + Picture nullable.Nullable[string] + type RentalHistoryPage struct + Items []HistoricalRental + NextCursor nullable.Nullable[string] + TotalCount nullable.Nullable[int] + type RentalInstance struct + ActualResources *RentalInstanceResources + InstanceRef string + InternalIP nullable.Nullable[string] + Phase string + SSH nullable.Nullable[string] + SupportsReboot bool + type RentalInstanceReboot struct + InstanceRef string + Message string + RentalID string + type RentalInstanceResources struct + GPUCount int + GPUMemoryGb *int + GPUModel *string + NumaNodes *float64 + RAMGb int + ScratchDiskCount *int + ScratchDiskGb *int + VcpuCount int + type RentalLookup struct + func (t *RentalLookup) FromActiveRentalLookup(v ActiveRentalLookup) error + func (t *RentalLookup) FromTerminatedRentalLookup(v TerminatedRentalLookup) error + func (t *RentalLookup) MergeActiveRentalLookup(v ActiveRentalLookup) error + func (t *RentalLookup) MergeTerminatedRentalLookup(v TerminatedRentalLookup) error + func (t *RentalLookup) UnmarshalJSON(b []byte) error + func (t RentalLookup) AsActiveRentalLookup() (ActiveRentalLookup, error) + func (t RentalLookup) AsTerminatedRentalLookup() (TerminatedRentalLookup, error) + func (t RentalLookup) Discriminator() (string, error) + func (t RentalLookup) MarshalJSON() ([]byte, error) + func (t RentalLookup) ValueByDiscriminator() (interface{}, error) + type RentalNode struct + CPUCount nullable.Nullable[float64] + CPUModel string + GPUCount int + RAMGb int + StorageGb int + VcpuCount nullable.Nullable[float64] + type RentalOption struct + func (t *RentalOption) FromBareMetalOption(v BareMetalOption) error + func (t *RentalOption) FromVirtualMachineOption(v VirtualMachineOption) error + func (t *RentalOption) MergeBareMetalOption(v BareMetalOption) error + func (t *RentalOption) MergeVirtualMachineOption(v VirtualMachineOption) error + func (t *RentalOption) UnmarshalJSON(b []byte) error + func (t RentalOption) AsBareMetalOption() (BareMetalOption, error) + func (t RentalOption) AsVirtualMachineOption() (VirtualMachineOption, error) + func (t RentalOption) Discriminator() (string, error) + func (t RentalOption) MarshalJSON() ([]byte, error) + func (t RentalOption) ValueByDiscriminator() (interface{}, error) + type RentalStatus string + const RentalStatusFailed + const RentalStatusPending + const RentalStatusRebooting + const RentalStatusRunning + const RentalStatusTerminated + const RentalStatusTerminating + const RentalStatusUnknown + func (e RentalStatus) Valid() bool + type RentalTerm struct + func (t *RentalTerm) FromOnDemandTerm(v OnDemandTerm) error + func (t *RentalTerm) FromPrivateCloudTerm(v PrivateCloudTerm) error + func (t *RentalTerm) FromReservedTerm(v ReservedTerm) error + func (t *RentalTerm) MergeOnDemandTerm(v OnDemandTerm) error + func (t *RentalTerm) MergePrivateCloudTerm(v PrivateCloudTerm) error + func (t *RentalTerm) MergeReservedTerm(v ReservedTerm) error + func (t *RentalTerm) UnmarshalJSON(b []byte) error + func (t RentalTerm) AsOnDemandTerm() (OnDemandTerm, error) + func (t RentalTerm) AsPrivateCloudTerm() (PrivateCloudTerm, error) + func (t RentalTerm) AsReservedTerm() (ReservedTerm, error) + func (t RentalTerm) Discriminator() (string, error) + func (t RentalTerm) MarshalJSON() ([]byte, error) + func (t RentalTerm) ValueByDiscriminator() (interface{}, error) + type RentalTermTypeSummary struct + CostPerHourCents int + Count int + type RentalTermination struct + Message string + RentalID string + type RentalType string + const RentalTypeBareMetal + const RentalTypeVirtualMachine + func (e RentalType) Valid() bool + type RentalWithStatus struct + AttachedStorage []AttachedStorage + ConnectionType ConnectionType + ConvertToOnDemandOnExpiry nullable.Nullable[bool] + CreatedAt time.Time + CreatedBy RentalCreator + CurrentTerm RentalTerm + EthernetVariant nullable.Nullable[EthernetVariant] + ExposedPorts []int + GPUCount int + GPUFormFactor GPUFormFactor + GPUType GPUType + Instances *[]RentalInstance + Label nullable.Nullable[string] + ManagedCluster nullable.Nullable[ManagedClusterRef] + MonitoringEnabled bool + Name nullable.Nullable[string] + NetworkInterfaces []NetworkInterface + Nodes []RentalNode + OrgID nullable.Nullable[string] + PortMappings []PortMapping + PrivateCluster nullable.Nullable[PrivateCluster] + Region string + RentalID string + RentalType RentalType + SSHEndpoints []SSHEndpoint + StartedAt nullable.Nullable[time.Time] + Status RentalStatus + SupportsAttachedStorage bool + SupportsCustomPorts bool + SupportsMultipleSSHKeys bool + SupportsPortForwarding bool + SupportsSSHKeyUpdates bool + TerminatedAt nullable.Nullable[time.Time] + TerminationReason nullable.Nullable[string] + UpdatedAt nullable.Nullable[time.Time] + UserID string + type RentalsService struct + func (s *RentalsService) ActiveSummary(ctx context.Context) (*ActiveRentalSummary, error) + func (s *RentalsService) AttachSSHKey(ctx context.Context, params AttachSSHKeyParams) (*SuccessResponse, error) + func (s *RentalsService) ConversionQuote(ctx context.Context, params GetReservedConversionQuoteParams) (*ReservedConversionQuote, error) + func (s *RentalsService) ConvertToReserved(ctx context.Context, params ConvertRentalToReservedParams) (*ReservedRentalConversion, error) + func (s *RentalsService) Create(ctx context.Context, params CreateRentalParams) (*Rental, error) + func (s *RentalsService) DetachSSHKey(ctx context.Context, params DetachSSHKeyParams) (*SuccessResponse, error) + func (s *RentalsService) ExtendReserved(ctx context.Context, params ExtendReservedRentalParams) (*ReservedRentalExtension, error) + func (s *RentalsService) ExtensionQuote(ctx context.Context, params GetReservationExtensionQuoteParams) (*ReservationExtensionQuote, error) + func (s *RentalsService) Get(ctx context.Context, params GetRentalParams) (*RentalLookup, error) + func (s *RentalsService) HasHistory(ctx context.Context, params HasRentalHistoryParams) (bool, error) + func (s *RentalsService) ListActive(ctx context.Context, params ListActiveRentalsParams) (*ActiveRentalsPage, error) + func (s *RentalsService) ListActiveAll(ctx context.Context, params ListActiveRentalsParams) iter.Seq2[RentalWithStatus, error] + func (s *RentalsService) ListHistory(ctx context.Context, params ListRentalHistoryParams) (*RentalHistoryPage, error) + func (s *RentalsService) ListHistoryAll(ctx context.Context, params ListRentalHistoryParams) iter.Seq2[HistoricalRental, error] + func (s *RentalsService) Options(ctx context.Context) ([]RentalOption, error) + func (s *RentalsService) RebootInstance(ctx context.Context, params RebootRentalInstanceParams) (*RentalInstanceReboot, error) + func (s *RentalsService) RequestReservation(ctx context.Context, params RequestReservationParams) (*ReservationRequest, error) + func (s *RentalsService) ReserveOptions(ctx context.Context, params ListReserveOptionsParams) (*ReserveOptions, error) + func (s *RentalsService) Terminate(ctx context.Context, params TerminateRentalParams) (*RentalTermination, error) + func (s *RentalsService) Update(ctx context.Context, params UpdateRentalParams) (*Rental, error) + type RequestReservationParams struct + GPUCount int + type ReservationExtensionOption struct + DiscountPercentage float64 + NewReservedUntil time.Time + TermPeriodDays int + TotalPriceCents float64 + type ReservationExtensionQuote struct + CostPerHourCents float64 + Options []ReservationExtensionOption + RequestedOption *ReservationExtensionOption + ReservedUntil time.Time + type ReservationRequest struct + Message string + type ReserveOptions struct + Options []struct{ ... } + RequestedOption ... + type ReservedConversionOption struct + DiscountPercentage float64 + TermPeriodDays int + TotalPriceCents float64 + type ReservedConversionQuote struct + CostPerHourCents float64 + EstimatedUsageTailCents float64 + Options []ReservedConversionOption + type ReservedRentalConversion struct + AmountChargedCents float64 + RentalID string + ReservedUntil time.Time + UsageTailCents float64 + type ReservedRentalExtension struct + AmountChargedCents float64 + RentalID string + ReservedUntil time.Time + type ReservedTerm struct + CostPerHour float64 + DiscountPercentage float64 + EffectiveAt time.Time + OriginalCostPerHour float64 + ReservationEndsAt nullable.Nullable[time.Time] + ReservedUntil nullable.Nullable[time.Time] + TermPeriodDays int + TermType ReservedTermTermType + type ReservedTermTermType string + const ReservedTermTermTypeReserved + func (e ReservedTermTermType) Valid() bool + type RetryPolicy struct + BaseDelay time.Duration + MaxAttempts int + MaxDelay time.Duration + func DefaultRetryPolicy() RetryPolicy + func NoRetries() RetryPolicy + type SSHEndpoint struct + Host string + Port int + User string + type SSHKey struct + CreatedAt time.Time + CreatedBy SSHKeyCreator + ID int + Name nullable.Nullable[string] + OrgID nullable.Nullable[string] + PublicKey string + UserID string + type SSHKeyCreator struct + Email string + Name nullable.Nullable[string] + type SSHKeyWithLiveRentalCount struct + CreatedAt time.Time + CreatedBy SSHKeyCreator + ID int + LiveRentalCount int + Name nullable.Nullable[string] + OrgID nullable.Nullable[string] + PublicKey string + UserID string + type SSHKeysService struct + func (s *SSHKeysService) Create(ctx context.Context, params CreateSSHKeyParams) (*SSHKey, error) + func (s *SSHKeysService) Delete(ctx context.Context, params DeleteSSHKeyParams) (*DeletedSSHKey, error) + func (s *SSHKeysService) List(ctx context.Context) ([]SSHKeyWithLiveRentalCount, error) + func (s *SSHKeysService) ListForRental(ctx context.Context, params ListRentalSSHKeysParams) ([]SSHKey, error) + func (s *SSHKeysService) Update(ctx context.Context, params UpdateSSHKeyParams) (*SSHKey, error) + type StorageVolume struct + AttachedRentalIds []string + CostPerHourCents float64 + CreatedAt time.Time + Label string + OrgID nullable.Nullable[string] + Region string + SizeInGb int + StartedAt nullable.Nullable[time.Time] + Status StorageVolumeStatus + StorageVolumeID string + TerminatedAt nullable.Nullable[time.Time] + TerminationReason nullable.Nullable[string] + UpdatedAt nullable.Nullable[time.Time] + UserID string + VirtualIP string + type StorageVolumeChoice struct + func (t *StorageVolumeChoice) FromExistingStorageVolume(v ExistingStorageVolume) error + func (t *StorageVolumeChoice) FromNewStorageVolume(v NewStorageVolume) error + func (t *StorageVolumeChoice) MergeExistingStorageVolume(v ExistingStorageVolume) error + func (t *StorageVolumeChoice) MergeNewStorageVolume(v NewStorageVolume) error + func (t *StorageVolumeChoice) UnmarshalJSON(b []byte) error + func (t StorageVolumeChoice) AsExistingStorageVolume() (ExistingStorageVolume, error) + func (t StorageVolumeChoice) AsNewStorageVolume() (NewStorageVolume, error) + func (t StorageVolumeChoice) MarshalJSON() ([]byte, error) + type StorageVolumeOption struct + CostPerGbHourCents float64 + MaxSizeInGb int + Region string + type StorageVolumeStatus string + const StorageVolumeStatusActive + const StorageVolumeStatusInactive + const StorageVolumeStatusUnknown + func (e StorageVolumeStatus) Valid() bool + type StorageVolumesService struct + func (s *StorageVolumesService) Attach(ctx context.Context, params AttachStorageVolumeParams) (*AttachStorageVolumeResponse, error) + func (s *StorageVolumesService) Create(ctx context.Context, params CreateStorageVolumeParams) (*CreatedStorageVolume, error) + func (s *StorageVolumesService) List(ctx context.Context) ([]StorageVolume, error) + func (s *StorageVolumesService) Options(ctx context.Context) ([]StorageVolumeOption, error) + func (s *StorageVolumesService) Terminate(ctx context.Context, params TerminateStorageVolumeParams) (*TerminateStorageVolumeResponse, error) + func (s *StorageVolumesService) Update(ctx context.Context, params UpdateStorageVolumeParams) (*UpdateStorageVolumeResponse, error) + type SuccessResponse struct + Success bool + type TermType string + const TermTypeOnDemand + const TermTypePrivateCloud + const TermTypeReserved + func (e TermType) Valid() bool + type TerminateRentalParams struct + Reason *string + RentalID string + type TerminateStorageVolumeParams struct + Reason *string + StorageVolumeID string + type TerminateStorageVolumeResponse struct + Message string + StorageVolumeID string + type TerminatedRentalLookup struct + Rental HistoricalRental + State TerminatedRentalLookupState + type TerminatedRentalLookupState string + const TerminatedRentalLookupStateTerminated + func (e TerminatedRentalLookupState) Valid() bool + type UpdateCurrentUserParams struct + Name nullable.Nullable[string] + OnboardedFor nullable.Nullable[string] + type UpdateRentalParams struct + ConvertToOnDemandOnExpiry *bool + Label *string + RentalID string + type UpdateSSHKeyParams struct + ID int + Name string + type UpdateStorageVolumeParams struct + Label *string + RentalIds *[]string + SizeInGb *int + StorageVolumeID string + type UpdateStorageVolumeResponse struct + AttachedRentalIds []string + Message string + SizeInGb int + StorageVolumeID string + type User struct + CreatedAt time.Time + Email string + EmailVerified nullable.Nullable[bool] + ID string + IsActive nullable.Nullable[bool] + Name nullable.Nullable[string] + OnboardedAt nullable.Nullable[time.Time] + OnboardedFor nullable.Nullable[string] + Picture nullable.Nullable[string] + Provider nullable.Nullable[string] + ReferralCode nullable.Nullable[string] + type UserMutationResponse struct + Success bool + User User + type UsersService struct + func (s *UsersService) DeleteMe(ctx context.Context) (*SuccessResponse, error) + func (s *UsersService) Me(ctx context.Context) (*CurrentUser, error) + func (s *UsersService) UpdateMe(ctx context.Context, params UpdateCurrentUserParams) (*UserMutationResponse, error) + func (s *UsersService) VerifyPhoneNumber(ctx context.Context, params VerifyPhoneNumberParams) (*SuccessResponse, error) + type VerifyPhoneNumberParams struct + PhoneNumber string + type VirtualMachineOption struct + ConnectionType ConnectionType + CostPerHourCents float64 + Enabled bool + EthernetVariant *EthernetVariant + GPUCount int + GPUFormFactor GPUFormFactor + GPUType GPUType + MachineType VirtualMachineOptionMachineType + Nodes []struct{ ... } + Region string + SupportsCustomPorts bool + SupportsMultipleSSHKeys bool + SupportsSSHKeyUpdates bool + TotalAvailable *int + type VirtualMachineOptionMachineType string + const VirtualMachineOptionMachineTypeVirtualMachine + func (e VirtualMachineOptionMachineType) Valid() bool