From 301fbfc3b026f4035e90cc0001474ffb42e82276 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 31 Oct 2024 01:59:18 -0500 Subject: [PATCH] add droplets.LocalOnly Signed-off-by: Jeff Carr --- droplet.proto | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/droplet.proto b/droplet.proto index ba00237..b468226 100644 --- a/droplet.proto +++ b/droplet.proto @@ -11,28 +11,29 @@ message Droplets { } message Droplet { - string uuid = 1; // should be unique across the cluster - string hostname = 2; // should be unique and work in DNS - int64 cpus = 3; // what's the point of int64 vs int32 - int64 memory = 4; // in bytes - DropletState start_state = 5; // what the state of the droplet is SUPPOSED TO BE ('on' or 'off') - string notes = 6; // maybe useful for something - string preferred_hypervisor = 7; // the hypervisor to prefer to run the droplet on - string qemu_arch = 8; // what arch. example: "x86_64" or "riscv64" - string qemu_cpu = 9; // qemu-system -cpu help - string qemu_machine = 10; // qemu-system -machine help - int64 spice_port = 11; // preferred port to use for spice + string uuid = 1; // should be unique across the cluster + string hostname = 2; // should be unique and work in DNS + int64 cpus = 3; // what's the point of int64 vs int32 + int64 memory = 4; // in bytes + DropletState start_state = 5; // what the state of the droplet is SUPPOSED TO BE ('on' or 'off') + string notes = 6; // maybe useful for something + string preferred_hypervisor = 7; // the hypervisor to prefer to run the droplet on + string qemu_arch = 8; // what arch. example: "x86_64" or "riscv64" + string qemu_cpu = 9; // qemu-system -cpu help + string qemu_machine = 10; // qemu-system -machine help + int64 spice_port = 11; // preferred port to use for spice - repeated Network networks = 12; // really just mac addresses. should be unique across cluster - repeated Disk disks = 13; // disks to attach + repeated Network networks = 12; // really just mac addresses. should be unique across cluster + repeated Disk disks = 13; // disks to attach - DropletState state = 14; // if the droplet is on, off, etc - string image_url = 15; // url to the image - DropletState current_state = 16; // used to track the current state before taking any action - int64 starts = 17; // how many times a start has been attempted - string current_hypervisor = 18; // the current hypervisor the droplet is running on + DropletState state = 14; // if the droplet is on, off, etc + string image_url = 15; // url to the image + DropletState current_state = 16; // used to track the current state before taking any action + 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 + string force_hypervisor = 20; // use this hypervisor and this hypervisor only + bool local_only = 21; // this is only defined locally on the hypervisor } enum DropletState {