summaryrefslogtreecommitdiff
path: root/helpers.go
blob: 7d0173fe8aa70b51ce139cdb5a38661c85f38c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package virtbuf

// functions to import and export the protobuf
// data to and from config files

func InitCluster() *Cluster {
	var c *Cluster
	c = new(Cluster)
	c.d = new(Droplets)
	c.H = new(Hypervisors)
	c.e = new(Events)
	return c
}

func (c *Cluster) DropletsAll() *DropletIterator {
	return c.d.All()
}