summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-23 04:57:07 -0600
committerJeff Carr <[email protected]>2025-02-23 13:13:30 -0600
commit0f546d57fc49cba346d02873800a5898f7113f86 (patch)
tree987700481d0fe44dd56244782f1d67a4e54f2b64
parent13159b5b6435c95de7257faa539064f4b9fa4a12 (diff)
set uuid
-rw-r--r--droplet.update.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/droplet.update.go b/droplet.update.go
index 8619df2..4e1ffa2 100644
--- a/droplet.update.go
+++ b/droplet.update.go
@@ -11,11 +11,28 @@
package virtpb
import (
+ "github.com/google/uuid"
"go.wit.com/lib/protobuf/guipb"
"go.wit.com/log"
"google.golang.org/protobuf/types/known/timestamppb"
)
+func (mt *DropletsTable) NewUuid() {
+ mt.pb.Uuid = uuid.New().String()
+}
+
+func (mt *HypervisorsTable) NewUuid() {
+ mt.pb.Uuid = uuid.New().String()
+}
+
+func (mt *EventsTable) NewUuid() {
+ mt.pb.Uuid = uuid.New().String()
+}
+
+func (mt *HypervisorsTable) Update() {
+ log.Info("now what hyper?")
+}
+
func (mt *DropletsTable) Update() {
log.Info("now what?")
for _, name := range mt.pb.Order {