Documentation ¶
Overview ¶
Package wfdb contains functions for saving/retrieving workflow model classes to/from the database
Index ¶
- func BuildDependencyNodeEventLists(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, ...) (map[string][]wfmodel.DependencyNodeEvent, error)
- func GetCurrentRunStatus(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext) (wfmodel.RunStatusType, error)
- func GetNextRunCounter(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string) (int16, error)
- func GetNodeHistoryForRun(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runId int16) ([]*wfmodel.NodeHistoryEvent, error)
- func GetRunAffectedNodes(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runId int16) ([]string, error)
- func GetRunNodeBatchHistory(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runId int16, ...) ([]*wfmodel.BatchHistoryEvent, error)
- func GetRunProperties(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runId int16) ([]*wfmodel.RunProperties, error)
- func HarvestBatchStatusesForNode(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext) (wfmodel.NodeBatchStatusType, error)
- func HarvestLastStatusForBatch(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext) (wfmodel.NodeBatchStatusType, error)
- func HarvestNodeLifespans(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, ...) (wfmodel.RunNodeLifespanMap, error)
- func HarvestNodeStatusesForRun(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, ...) (wfmodel.NodeBatchStatusType, string, error)
- func HarvestRunIdsByAffectedNodes(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext) ([]int16, map[string][]int16, error)
- func HarvestRunLifespans(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, ...) (wfmodel.RunLifespanMap, error)
- func SetBatchStatus(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, ...) error
- func SetNodeStatus(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, ...) (bool, error)
- func SetRunStatus(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runId int16, ...) error
- func WriteRunProperties(cqlSession *gocql.Session, keyspace string, runId int16, startNodes []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildDependencyNodeEventLists ¶
func BuildDependencyNodeEventLists(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, depNodeNames []string) (map[string][]wfmodel.DependencyNodeEvent, error)
func GetCurrentRunStatus ¶
func GetCurrentRunStatus(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext) (wfmodel.RunStatusType, error)
func GetNextRunCounter ¶
func GetNodeHistoryForRun ¶ added in v1.1.0
func GetNodeHistoryForRun(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runId int16) ([]*wfmodel.NodeHistoryEvent, error)
func GetRunAffectedNodes ¶
func GetRunNodeBatchHistory ¶ added in v1.1.0
func GetRunNodeBatchHistory(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runId int16, nodeName string) ([]*wfmodel.BatchHistoryEvent, error)
func GetRunProperties ¶ added in v1.1.0
func GetRunProperties(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runId int16) ([]*wfmodel.RunProperties, error)
func HarvestBatchStatusesForNode ¶
func HarvestBatchStatusesForNode(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext) (wfmodel.NodeBatchStatusType, error)
func HarvestLastStatusForBatch ¶
func HarvestLastStatusForBatch(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext) (wfmodel.NodeBatchStatusType, error)
func HarvestNodeLifespans ¶
func HarvestNodeLifespans(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, affectingRuns []int16, affectedNodes []string) (wfmodel.RunNodeLifespanMap, error)
func HarvestNodeStatusesForRun ¶
func HarvestNodeStatusesForRun(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, affectedNodes []string) (wfmodel.NodeBatchStatusType, string, error)
func HarvestRunIdsByAffectedNodes ¶
func HarvestRunIdsByAffectedNodes(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext) ([]int16, map[string][]int16, error)
func HarvestRunLifespans ¶
func HarvestRunLifespans(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runIds []int16) (wfmodel.RunLifespanMap, error)
func SetBatchStatus ¶
func SetBatchStatus(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, status wfmodel.NodeBatchStatusType, comment string) error
func SetNodeStatus ¶
func SetNodeStatus(logger *l.CapiLogger, pCtx *ctx.MessageProcessingContext, status wfmodel.NodeBatchStatusType, comment string) (bool, error)
func SetRunStatus ¶
func SetRunStatus(logger *l.CapiLogger, cqlSession *gocql.Session, keyspace string, runId int16, status wfmodel.RunStatusType, comment string, ifNotExistsFlag cql.IfNotExistsType) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.