AddDomainLocal()
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
284e9161de
commit
2b77b8a89d
14
add.go
14
add.go
|
@ -105,6 +105,20 @@ func (c *NewCluster) AddDropletSimple(uuid string, hostname string, cpus int, me
|
||||||
return d
|
return d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This isn't for the marketing department
|
||||||
|
func (c *NewCluster) AddDropletLocal(name string, hypername string) *Droplet {
|
||||||
|
d := &Droplet{
|
||||||
|
Hostname: name,
|
||||||
|
}
|
||||||
|
d.LocalOnly = hypername
|
||||||
|
d.Current = new(Current)
|
||||||
|
d.Current.Hypervisor = hypername
|
||||||
|
d.Current.State = DropletState_OFF
|
||||||
|
|
||||||
|
c.AddDroplet(d)
|
||||||
|
return d
|
||||||
|
}
|
||||||
|
|
||||||
// This isn't for the marketing department
|
// This isn't for the marketing department
|
||||||
// so this isn't going to use 'MiB' and 'GiB'
|
// so this isn't going to use 'MiB' and 'GiB'
|
||||||
func HumanFormatBytes(b int64) string {
|
func HumanFormatBytes(b int64) string {
|
||||||
|
|
Loading…
Reference in New Issue