Documentation ¶
Index ¶
- Constants
- func DropKeyspace(logger *l.Logger, cqlSession *gocql.Session, keyspace string) error
- func GetBatchHistory(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runIds []int16, ...) ([]*wfmodel.BatchHistoryEvent, error)
- func GetNodeHistoryForRun(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runId int16) ([]*wfmodel.NodeHistoryEvent, error)
- func GetRunHistory(logger *l.Logger, cqlSession *gocql.Session, keyspace string) ([]*wfmodel.RunHistoryEvent, error)
- func GetRunNodeBatchHistory(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runId int16, ...) ([]*wfmodel.BatchHistoryEvent, error)
- func GetRunProperties(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runId int16) ([]*wfmodel.RunProperties, error)
- func GetRunsNodeHistory(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runIds []int16) ([]*wfmodel.NodeHistoryEvent, error)
- func GetTablesCql(script *sc.ScriptDef, keyspace string, runId int16, startNodeNames []string) string
- func HarvestRunLifespans(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runIds []int16) (wfmodel.RunLifespanMap, error)
- func IsSystemKeyspaceName(keyspace string) bool
- func RunNode(envConfig *env.EnvConfig, logger *l.Logger, nodeName string, runId int16, ...) (int16, error)
- func StartRun(envConfig *env.EnvConfig, logger *l.Logger, amqpChannel *amqp.Channel, ...) (int16, error)
- func StopRun(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runId int16, ...) error
Constants ¶
View Source
const AllowedKeyspaceNameRegex = "[a-zA-Z0-9_]+"
View Source
const ProhibitedKeyspaceNameRegex = "^system"
Variables ¶
This section is empty.
Functions ¶
func DropKeyspace ¶
Used by Toolbelt and Webapi
func GetBatchHistory ¶
func GetNodeHistoryForRun ¶ added in v1.1.0
func GetNodeHistoryForRun(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runId int16) ([]*wfmodel.NodeHistoryEvent, error)
wfdb wrapper for webapi use
func GetRunHistory ¶
func GetRunNodeBatchHistory ¶ added in v1.1.0
func GetRunNodeBatchHistory(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runId int16, nodeName string) ([]*wfmodel.BatchHistoryEvent, error)
wfdb wrapper for webapi use
func GetRunProperties ¶ added in v1.1.0
func GetRunProperties(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runId int16) ([]*wfmodel.RunProperties, error)
wfdb wrapper for webapi use
func GetRunsNodeHistory ¶ added in v1.1.0
func GetTablesCql ¶
func GetTablesCql(script *sc.ScriptDef, keyspace string, runId int16, startNodeNames []string) string
A helper used by Toolbelt get_table_cql cmd, no logging needed
func HarvestRunLifespans ¶ added in v1.1.0
func HarvestRunLifespans(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runIds []int16) (wfmodel.RunLifespanMap, error)
wfdb wrapper for webapi use
func IsSystemKeyspaceName ¶ added in v1.1.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.