summaryrefslogtreecommitdiff
path: root/sampleData.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-24 17:50:50 -0500
committerJeff Carr <[email protected]>2024-10-24 17:50:50 -0500
commit6de8328027d5d50e417ddae275a0358873293b00 (patch)
treef31c96ba856fb0500024ac7cc497189959425255 /sampleData.go
parent68ffae38b71a46a7963ee77c21632a92a9eabe2b (diff)
just make a .proto file for experiments
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'sampleData.go')
-rw-r--r--sampleData.go16
1 files changed, 11 insertions, 5 deletions
diff --git a/sampleData.go b/sampleData.go
index d0388aa..990eeb7 100644
--- a/sampleData.go
+++ b/sampleData.go
@@ -40,19 +40,25 @@ func CreateSampleHypervisor(hostname string, mem int) *Hypervisor {
return h
}
-func CreateSampleEvents(total int) *Events {
- var e *Events
- e = new(Events)
+func CreateExperiment(total int) *WhatsThis {
+ var e *WhatsThis
+ e = new(WhatsThis)
// info := StorageInfo{Capacity: 64}
// e.Humantest = &info
if e.Humantest == nil {
- var newInfo StorageInfo
- newInfo = StorageInfo{Capacity: 64}
+ var newInfo WhatInfo
+ newInfo = WhatInfo{Capacity: 64}
e.Humantest = &newInfo
} else {
e.Humantest.Capacity = SetGB(total * 32)
}
+ return e
+}
+
+func CreateSampleEvents(total int) *Events {
+ var e *Events
+ e = new(Events)
for i := 0; i < total; i++ {
var newe *Event