Versions in this module Expand all Collapse all v1 v1.17.0 Dec 20, 2025 Changes in this version + func DefaultImage(provider ProviderName) string + type CreateServerOptions struct + Image string + Name string + Region string + SSHKeyIDs []string + Size string + Tags map[string]string + type DNSProvider interface + CreateRecord func(ctx context.Context, domain string, record DNSRecord) (*DNSRecord, error) + CreateZone func(ctx context.Context, domain string) error + DeleteRecord func(ctx context.Context, domain string, recordID string) error + GetZone func(ctx context.Context, domain string) (*Zone, bool, error) + ListRecords func(ctx context.Context, domain string) ([]DNSRecord, error) + type DNSRecord struct + ID string + Name string + TTL int + Type string + Value string + type Provider interface + CreateSSHKey func(ctx context.Context, name string, publicKey string) (*SSHKey, error) + CreateServer func(ctx context.Context, opts CreateServerOptions) (*Server, error) + DisplayName func() string + GetRegions func(ctx context.Context) ([]Region, error) + GetSSHKey func(ctx context.Context, fingerprint string) (*SSHKey, error) + GetServer func(ctx context.Context, id string) (*Server, error) + GetServers func(ctx context.Context) ([]Server, error) + GetSizes func(ctx context.Context, region string) ([]Size, error) + Name func() string + WaitForServer func(ctx context.Context, id string, timeout time.Duration) (*Server, error) + type ProviderName string + const ProviderDigitalOcean + const ProviderHetzner + func SupportedProviders() []ProviderName + type ProviderWithDNS interface + type Region struct + Available bool + Country string + Name string + Slug string + type SSHKey struct + Fingerprint string + ID string + Name string + PublicKey string + type Server struct + CreatedAt time.Time + DashboardURL string + ID string + Image string + Name string + PublicIPv4 string + PublicIPv6 string + Region string + Size string + Status ServerStatus + type ServerStatus string + const ServerStatusError + const ServerStatusPending + const ServerStatusRunning + const ServerStatusStarting + const ServerStatusStopped + const ServerStatusUnknown + type Size struct + Available bool + Description string + Disk int + Memory int + Name string + PriceHourly float64 + PriceMonthly float64 + Slug string + Transfer float64 + VCPUs int + type Zone struct + ID string + Name string + TTL int