github.com/docker/compose-on-kubernetes@v0.5.0/cmd/e2e_benchmark/types.go (about) 1 package main 2 3 import ( 4 "sync" 5 "time" 6 ) 7 8 type options struct { 9 kubeconfig string 10 workerCount int 11 totalStacks int 12 format string 13 collectLogsNamespace string 14 maxDuration time.Duration 15 } 16 17 type phaseState struct { 18 Name string `json:"name,omitempty"` 19 DoneTime time.Time `json:"done_time,omitempty"` 20 } 21 22 type workerState struct { 23 sync.Mutex 24 ID string `json:"ID,omitempty"` 25 CurrentPhase string `json:"current_phase,omitempty"` 26 CurrentMessage string `json:"current_message,omitempty"` 27 PreviousPhases []phaseState `json:"previous_phases,omitempty"` 28 } 29 30 type timedPhase struct { 31 name string 32 duration time.Duration 33 } 34 35 type benchmarkReport struct { 36 WorkerStates []*workerState `json:"worker_states,omitempty"` 37 Error string `json:"error,omitempty"` 38 Succeeded bool `json:"succeeded,omitempty"` 39 Start time.Time `json:"start,omitempty"` 40 }