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 CreateTestExecutor(colonyName string) *core.Executor
- func CreateTestExecutorWithID(colonyName string, executorID string) *core.Executor
- func CreateTestExecutorWithKey(colonyName string) (*core.Executor, string, error)
- func CreateTestExecutorWithType(colonyName string, executorType string) *core.Executor
- func CreateTestFile(colonyName string) *core.File
- func CreateTestFileWithID(id string, colonyName string, now time.Time) *core.File
- func CreateTestFunctionSpec(colonyName string) *core.FunctionSpec
- func CreateTestFunctionSpecWithEnv(colonyID string, env map[string]string) *core.FunctionSpec
- func CreateTestFunctionSpecWithTargets(colonyID string, targetExecutorNames []string) *core.FunctionSpec
- func CreateTestFunctionSpecWithType(colonyID string, executorType string) *core.FunctionSpec
- func CreateTestProcess(colonyName string) *core.Process
- func CreateTestProcessWithEnv(colonyID string, env map[string]string) *core.Process
- func CreateTestProcessWithTargets(colonyID string, targetExecutorNames []string) *core.Process
- func CreateTestProcessWithType(colonyID string, executorType string) *core.Process
- func CreateTestUser(colonyID string, name string) *core.User
- func CreateTestUserWithKey(colonyID string, name string) (*core.User, string, error)
- func Decompress(src io.Reader, dst string) error
- func FakeCron(t *testing.T, colonyID string, initiatorID string, initiatorName string) *core.Cron
- func FakeGenerator(t *testing.T, colonyID string, initiatorID string, initiatorName string) *core.Generator
- func FakeGeneratorSingleProcess(t *testing.T, colonyID string, initiatorID string, initiatorName string) *core.Generator
- func FakeSingleCron(t *testing.T, colonyID string, initiatorID string, initiatorName string) *core.Cron
- func ProgressBar(trackers int) progress.Writer
- type WorkerPool
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 CreateTestExecutor ¶ added in v1.0.1
func CreateTestExecutorWithID ¶ added in v1.0.1
func CreateTestExecutorWithKey ¶ added in v1.0.1
func CreateTestExecutorWithType ¶ added in v1.0.1
func CreateTestFile ¶ added in v1.5.0
func CreateTestFileWithID ¶ added in v1.5.0
func CreateTestFunctionSpec ¶ added in v1.0.1
func CreateTestFunctionSpec(colonyName string) *core.FunctionSpec
func CreateTestFunctionSpecWithEnv ¶ added in v1.0.1
func CreateTestFunctionSpecWithEnv(colonyID string, env map[string]string) *core.FunctionSpec
func CreateTestFunctionSpecWithTargets ¶ added in v1.0.1
func CreateTestFunctionSpecWithTargets(colonyID string, targetExecutorNames []string) *core.FunctionSpec
func CreateTestFunctionSpecWithType ¶ added in v1.0.1
func CreateTestFunctionSpecWithType(colonyID string, executorType string) *core.FunctionSpec
func CreateTestProcess ¶
func CreateTestUserWithKey ¶ added in v1.7.0
func FakeGenerator ¶
func FakeSingleCron ¶
func ProgressBar ¶ added in v1.7.7
Types ¶
type WorkerPool ¶ added in v1.7.7
type WorkerPool struct {
// contains filtered or unexported fields
}
func NewWorkerPool ¶ added in v1.7.7
func NewWorkerPool(workers int) *WorkerPool
func (*WorkerPool) Call ¶ added in v1.7.7
func (pool *WorkerPool) Call(f func(arg interface{}) error, a interface{}) chan error
func (*WorkerPool) Start ¶ added in v1.7.7
func (pool *WorkerPool) Start() *WorkerPool
func (*WorkerPool) Stop ¶ added in v1.7.7
func (pool *WorkerPool) Stop()
Click to show internal directories.
Click to hide internal directories.