2024-10-30 11:06:14 -05:00
|
|
|
package virtbuf
|
|
|
|
|
|
|
|
// functions to import and export the protobuf
|
|
|
|
// data to and from config files
|
|
|
|
|
2024-11-07 05:04:11 -06:00
|
|
|
func InitCluster() *Cluster {
|
|
|
|
var c *Cluster
|
|
|
|
c = new(Cluster)
|
2024-10-31 13:12:11 -05:00
|
|
|
c.d = new(Droplets)
|
2024-10-31 13:21:10 -05:00
|
|
|
c.H = new(Hypervisors)
|
2024-10-31 13:12:11 -05:00
|
|
|
c.e = new(Events)
|
|
|
|
return c
|
|
|
|
}
|
|
|
|
|
2024-12-01 18:41:00 -06:00
|
|
|
func (c *Cluster) DropletsAll() *DropletIterator {
|
|
|
|
return c.d.All()
|
2024-10-30 18:10:40 -05:00
|
|
|
}
|