summaryrefslogtreecommitdiff
path: root/droplet.go
diff options
context:
space:
mode:
Diffstat (limited to 'droplet.go')
-rw-r--r--droplet.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/droplet.go b/droplet.go
index efabe95..f4eba40 100644
--- a/droplet.go
+++ b/droplet.go
@@ -87,8 +87,8 @@ func (d *Droplet) Active() bool {
if !d.Ready() {
return false
}
- log.Log(POLL, "droplet.Active() status: ", d.poll.Status, "d.statusN.GetText() =", d.statusN.GetText())
- if d.statusN.GetText() == "active" {
+ log.Log(POLL, "droplet.Active() status: ", d.poll.Status, "d.statusN.String() =", d.statusN.String())
+ if d.statusN.String() == "active" {
return true
}
return false
@@ -114,7 +114,7 @@ func (d *Droplet) HasIPv4() bool {
if !d.Ready() {
return false
}
- if d.ipv4.GetText() == "" {
+ if d.ipv4.String() == "" {
return false
}
return true
@@ -123,7 +123,7 @@ func (d *Droplet) HasIPv6() bool {
if !d.Ready() {
return false
}
- if d.ipv6.GetText() == "" {
+ if d.ipv6.String() == "" {
return false
}
return true
@@ -133,15 +133,15 @@ func (d *Droplet) GetIPv4() string {
if !d.Ready() {
return ""
}
- return d.ipv4.GetText()
+ return d.ipv4.String()
}
func (d *Droplet) GetIPv6() string {
if !d.Ready() {
return ""
}
- log.Info("droplet GetIPv6 has: n.GetText()", d.ipv6.GetText())
- return d.ipv6.GetText()
+ log.Info("droplet GetIPv6 has: n.String()", d.ipv6.String())
+ return d.ipv6.String()
}
func (d *Droplet) Connect() {
@@ -204,7 +204,7 @@ func (d *Droplet) Destroy() {
if !d.Exists() {
return
}
- log.Info("droplet.Destroy() ID =", d.ID, "Name =", d.nameN.GetText())
+ log.Info("droplet.Destroy() ID =", d.ID, "Name =", d.nameN.String())
myDo.deleteDroplet(d)
}
@@ -276,14 +276,14 @@ func (d *Droplet) GetName() string {
if !d.Ready() {
return ""
}
- return d.nameN.GetText()
+ return d.nameN.String()
}
func (d *Droplet) GetSize() string {
if !d.Ready() {
return ""
}
- return d.sizeSlugN.GetText()
+ return d.sizeSlugN.String()
}
func (d *Droplet) GetMemory() string {
@@ -304,12 +304,12 @@ func (d *Droplet) GetImage() string {
if !d.Ready() {
return ""
}
- return d.imageN.GetText()
+ return d.imageN.String()
}
func (d *Droplet) GetStatus() string {
if !d.Ready() {
return ""
}
- return d.statusN.GetText()
+ return d.statusN.String()
}