Documentation ¶
Index ¶
- func CalcAvgProcessingTime(processes []*core.Process) float64
- func CalcAvgWaitingTime(processes []*core.Process) float64
- func CalcRetries(processes []*core.Process) int
- func CalcUtilization(processes []*core.Process) float64
- func Compress(rootDir string, src string, buf io.Writer) error
- func CreateTestColonyWithKey() (*core.Colony, string, error)
- func CreateTestProcess(colonyID string) *core.Process
- func CreateTestProcessSpec(colonyID string) *core.ProcessSpec
- func CreateTestProcessSpecWithEnv(colonyID string, env map[string]string) *core.ProcessSpec
- func CreateTestProcessSpecWithTargets(colonyID string, targetRuntimeIDs []string) *core.ProcessSpec
- func CreateTestProcessSpecWithType(colonyID string, runtimeType string) *core.ProcessSpec
- func CreateTestProcessWithEnv(colonyID string, env map[string]string) *core.Process
- func CreateTestProcessWithTargets(colonyID string, targetRuntimeIDs []string) *core.Process
- func CreateTestProcessWithType(colonyID string, runtimeType string) *core.Process
- func CreateTestRuntime(colonyID string) *core.Runtime
- func CreateTestRuntimeWithID(colonyID string, runtimeID string) *core.Runtime
- func CreateTestRuntimeWithKey(colonyID string) (*core.Runtime, string, error)
- func CreateTestRuntimeWithType(colonyID string, runtimeType string) *core.Runtime
- func Decompress(src io.Reader, dst string) error
- func FakeCron(t *testing.T, colonyID string) *core.Cron
- func FakeGenerator(t *testing.T, colonyID string) *core.Generator
- func FakeSingleCron(t *testing.T, colonyID string) *core.Cron
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcAvgProcessingTime ¶
func CalcAvgWaitingTime ¶
func CalcRetries ¶
func CalcUtilization ¶
This function assumes that the processes are sorted so that the oldest process is at index 0
func CreateTestProcess ¶
func CreateTestProcessSpec ¶
func CreateTestProcessSpec(colonyID string) *core.ProcessSpec
func CreateTestProcessSpecWithEnv ¶
func CreateTestProcessSpecWithEnv(colonyID string, env map[string]string) *core.ProcessSpec
func CreateTestProcessSpecWithTargets ¶
func CreateTestProcessSpecWithTargets(colonyID string, targetRuntimeIDs []string) *core.ProcessSpec
func CreateTestProcessSpecWithType ¶
func CreateTestProcessSpecWithType(colonyID string, runtimeType string) *core.ProcessSpec
func CreateTestRuntime ¶
func CreateTestRuntimeWithID ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.