summaryrefslogtreecommitdiff
path: root/sampleData.go
diff options
context:
space:
mode:
Diffstat (limited to 'sampleData.go')
-rw-r--r--sampleData.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/sampleData.go b/sampleData.go
index b75970b..c910200 100644
--- a/sampleData.go
+++ b/sampleData.go
@@ -18,9 +18,9 @@ func CreateSampleDroplet() *Droplet {
return e
}
-func CreateSampleDroplets(total int) []Droplet {
-
- var all []Droplet
+func CreateSampleCluster(total int) *Cluster {
+ var c *Cluster
+ c = new(Cluster)
for i := 0; i < total; i++ {
d := CreateSampleDroplet()
@@ -28,8 +28,8 @@ func CreateSampleDroplets(total int) []Droplet {
// e.Id += 1000 + int32(i)
d.Comment = "Sample Droplet " + string(i)
- all = append(all, *d)
+ c.Droplets = append(c.Droplets, d)
}
- return all
+ return c
}