diff options
| author | Jeff Carr <[email protected]> | 2024-10-27 05:43:30 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-10-27 05:43:30 -0500 |
| commit | dc2dba26556d507bc929056755395cc51fcc7d9e (patch) | |
| tree | 30a97bdfd7b6289e17604b0b2c82555fb64cc325 | |
| parent | 8e33396b4afd104bc1af5265d4ab306f273af554 (diff) | |
droplet.ForceHypervisor for binding it there
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | droplet.proto | 1 | ||||
| -rw-r--r-- | helpers.go | 4 |
2 files changed, 5 insertions, 0 deletions
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 { @@ -124,3 +124,7 @@ func (c *Cluster) BlankFields() { d.CurrentState = 0 } } + +func (c *Cluster) AppendEvent(e *Event) { + c.Events = append(c.Events, e) +} |
