Versions in this module Expand all Collapse all v0 v0.2.10 May 26, 2021 Changes in this version type SSHKey + func (s *SSHKey) GenerateNewKey(publicKeyPath string) error type VMManager + FindAuthToken func() string + UploadSSHKey func(keyName string, sshKey SSHKey) (string, error) v0.2.9 Mar 29, 2021 Changes in this version + func GetPingTimes(ipAddressList []IPPingTime) (closestRegion string, err error) + type IPPingTime struct + Address string + ID string + Time int type VMManager + GetAuthToken func() string v0.2.8 Feb 24, 2021 v0.2.7 Nov 2, 2020 Changes in this version + func GetPingTime(ipAddress string) (pingTime int64, err error) + type PingTime struct + IPAddress string + Name string + Result int64 + type SSHKey struct + Name string + PublicKey ssh.PublicKey + func (s *SSHKey) Fingerprint() string + func (s *SSHKey) GetPublicKey() string + func (s *SSHKey) LoadPublicKey(filename string) error + type VMManager interface + CreateVM func(name string, image string, size string, region string, sshKey SSHKey) (VMInfo, error) + DeleteVM func(ID int) error + GetVMInfo func(vmID int) (vmInfo VMInfo, err error) + IsSSHKeyUploaded func(sshKey SSHKey) (string, error) + ListVMs func() (vmInfo []VMInfo, err error) + SelectClosestRegion func() (closestRegion string, err error) v0.2.6 Oct 25, 2020 Changes in this version + type DNSProvider interface + DeleteHostRecord func(*HostInfo) error + GetHostRecord func(host string) *HostInfo + Init func() bool + UpdateHostRecord func(*HostInfo) error + type HostInfo struct + ID string + IP string + Name string + type ImageInfo struct + CreatedAt string + Description string + Distrubution string + ID int + MinDiskSize int + Name string + Public bool + Regions []string + SizeGigabytes float64 + Slug string + Status string + Type string + type NetworkInfo struct + V4Info []V4NetworkInfo + V6Info []V6NetworkInfo + type RegionInfo struct + Available bool + Country string + Features []string + Name string + Sizes []string + Slug string + State string + type Regions interface + GetClosestByCountry func(country string) ([]RegionInfo, error) + GetClosestByLatLong func(lat float32, long float32) ([]RegionInfo, error) + GetClosestByPing func() ([]RegionInfo, error) + GetList func() ([]RegionInfo, error) + type SSHKeys struct + Fingerprint string + ID int + Name string + PublicKey string + type SizeInfo struct + Available bool + Disk int + Memory int + PriceHourly float32 + PriceMonthly float32 + Regions []string + Slug string + Transfer int + VCPUs int + type V4NetworkInfo struct + Gateway string + IPAddress string + Netmask string + Type string + type V6NetworkInfo struct + Gateway string + IPAddress string + Netmask int + Type string + type VMInfo struct + CreatedAt string + Disk int + ID int + Image ImageInfo + Memory int + Name string + Networks NetworkInfo + Region RegionInfo + Size SizeInfo + SizeSlug string + Status string + Tags []string + VCPUs int + VPCUUID string + func (v *VMInfo) GetPublicIP() (publicIP string, err error) + type VMProvider interface + CreateVM func() + DeleteVM func() + GetVMInfo func() + Int func() bool + IsSSHKeyUploaded func(fingerprint string) (bool, error) + ListVMs func() + SelectClosestRegion func() + UploadSSHKey func() + type VMSizes interface + GetInfo func(size string) (SizeInfo, error) + GetLargerSize func() + GetList func() ([]SizeInfo, error) + GetSmallerSize func() v0.2.5 Oct 22, 2020