set uuid
This commit is contained in:
parent
13159b5b64
commit
0f546d57fc
|
@ -11,11 +11,28 @@
|
||||||
package virtpb
|
package virtpb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"github.com/google/uuid"
|
||||||
"go.wit.com/lib/protobuf/guipb"
|
"go.wit.com/lib/protobuf/guipb"
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
"google.golang.org/protobuf/types/known/timestamppb"
|
"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() {
|
func (mt *DropletsTable) Update() {
|
||||||
log.Info("now what?")
|
log.Info("now what?")
|
||||||
for _, name := range mt.pb.Order {
|
for _, name := range mt.pb.Order {
|
||||||
|
|
Loading…
Reference in New Issue