summaryrefslogtreecommitdiff
path: root/sampleData.go
diff options
context:
space:
mode:
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