droplet.ForceHypervisor for binding it there

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-27 05:43:30 -05:00
parent 8e33396b4a
commit dc2dba2655
2 changed files with 5 additions and 0 deletions

View File

@ -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 {

View File

@ -124,3 +124,7 @@ func (c *Cluster) BlankFields() {
d.CurrentState = 0
}
}
func (c *Cluster) AppendEvent(e *Event) {
c.Events = append(c.Events, e)
}