api

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const AllowedKeyspaceNameRegex = "[a-zA-Z0-9_]+"
View Source
const ProhibitedKeyspaceNameRegex = "^system"

Variables

This section is empty.

Functions

func DropKeyspace

func DropKeyspace(logger *l.Logger, cqlSession *gocql.Session, keyspace string) error

Used by Toolbelt and Webapi

func GetBatchHistory

func GetBatchHistory(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runIds []int16, scriptNodes []string) ([]*wfmodel.BatchHistoryEvent, error)

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 GetRunHistory(logger *l.Logger, cqlSession *gocql.Session, keyspace string) ([]*wfmodel.RunHistoryEvent, error)

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 GetRunsNodeHistory(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runIds []int16) ([]*wfmodel.NodeHistoryEvent, error)

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

func IsSystemKeyspaceName(keyspace string) bool

func RunNode

func RunNode(envConfig *env.EnvConfig, logger *l.Logger, nodeName string, runId int16, scriptFilePath string, paramsFilePath string, cqlSession *gocql.Session, keyspace string) (int16, error)

func StartRun

func StartRun(envConfig *env.EnvConfig, logger *l.Logger, amqpChannel *amqp.Channel, scriptFilePath string, paramsFilePath string, cqlSession *gocql.Session, keyspace string, startNodes []string, desc string) (int16, error)

func StopRun

func StopRun(logger *l.Logger, cqlSession *gocql.Session, keyspace string, runId int16, comment string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL