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

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

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

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