Documentation ¶
Index ¶
- Constants
- func VerifyFunctionSpec(funcSpec *core.FunctionSpec) error
- func VerifyWorkflowSpec(workflowSpec *core.WorkflowSpec) error
- func WaitForCluster(t *testing.T, cluster []ServerInfo)
- func WaitForProcessGraphs(t *testing.T, c *client.ColoniesClient, colonyID string, generatorID string, ...) int
- func WaitForServerToDie(t *testing.T, s ServerInfo)
- type ColoniesServer
- type ServerInfo
Constants ¶
View Source
const CRON_TRIGGER_PERIOD = 1000 // Period in milliseconds when cron is run
View Source
const EnableTLS = true
View Source
const GENERATOR_TRIGGER_PERIOD = 1000 // Period in milliseconds when generator is run
View Source
const Insecure = false
View Source
const MAX_COUNT = 100
View Source
const MAX_LOG_COUNT = 500
View Source
const MAX_PRIORITY = 50000
View Source
const MIN_PRIORITY = -50000
View Source
const RELEASE_PERIOD = 1 // Period in seconds when processes are checked for max exec time or max wait time
View Source
const SkipTLSVerify = true
View Source
const TESTHOST = "localhost"
View Source
const TESTPORT = 28088
Variables ¶
This section is empty.
Functions ¶
func VerifyFunctionSpec ¶ added in v1.0.1
func VerifyFunctionSpec(funcSpec *core.FunctionSpec) error
func VerifyWorkflowSpec ¶
func VerifyWorkflowSpec(workflowSpec *core.WorkflowSpec) error
func WaitForCluster ¶
func WaitForCluster(t *testing.T, cluster []ServerInfo)
func WaitForProcessGraphs ¶
func WaitForServerToDie ¶
func WaitForServerToDie(t *testing.T, s ServerInfo)
Types ¶
type ColoniesServer ¶
type ColoniesServer struct {
// contains filtered or unexported fields
}
func CreateColoniesServer ¶
func CreateColoniesServer(db database.Database, port int, serverID string, tls bool, tlsPrivateKeyPath string, tlsCertPath string, thisNode cluster.Node, clusterConfig cluster.Config, etcdDataPath string, generatorPeriod int, cronPeriod int, exclusiveAssign bool, allowExecutorReregister bool, retention bool, retentionPolicy int64, retentionPeriod int) *ColoniesServer
func PrepareTests ¶ added in v1.5.0
func PrepareTests(t *testing.T) (*client.ColoniesClient, *ColoniesServer, string, chan bool)
func (*ColoniesServer) ServeForever ¶
func (server *ColoniesServer) ServeForever() error
func (*ColoniesServer) Shutdown ¶
func (server *ColoniesServer) Shutdown()
type ServerInfo ¶
type ServerInfo struct { ServerID string ServerPrvKey string Server *ColoniesServer Node cluster.Node Done chan struct{} }
func StartCluster ¶
Source Files ¶
- attribute_handlers.go
- colonies_controller.go
- colonies_controller_worker.go
- colonies_server.go
- colony_handlers.go
- constants.go
- controller.go
- cron_controller.go
- cron_handler.go
- event_handler.go
- executor_handlers.go
- files_handlers.go
- function_handler.go
- generator_controller.go
- generator_handlers.go
- logs_handlers.go
- process_handlers.go
- processgraph_handlers.go
- server_handlers.go
- snapshot_handler.go
- test_utils.go
- verification.go
- ws_handler.go
- ws_subscription.go
Click to show internal directories.
Click to hide internal directories.