diff --git a/droplet.proto b/droplet.proto index d7b8e07..ba00237 100644 --- a/droplet.proto +++ b/droplet.proto @@ -32,6 +32,7 @@ message Droplet { int64 starts = 17; // how many times a start has been attempted string current_hypervisor = 18; // the current hypervisor the droplet is running on google.protobuf.Timestamp last_poll = 19; // the last time we heard anything from this droplet + string force_hypervisor = 20; // use this hypervisor and this hypervisor only } enum DropletState { diff --git a/helpers.go b/helpers.go index 25486f1..96df708 100644 --- a/helpers.go +++ b/helpers.go @@ -124,3 +124,7 @@ func (c *Cluster) BlankFields() { d.CurrentState = 0 } } + +func (c *Cluster) AppendEvent(e *Event) { + c.Events = append(c.Events, e) +}