mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-24 11:00:53 -05:00
32 lines
684 B
Go
32 lines
684 B
Go
package dashboardinterfaces
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type DashboardRunStatus string
|
|
|
|
// TODO [report] think about status - do we need in progress
|
|
const (
|
|
DashboardRunReady DashboardRunStatus = "ready"
|
|
DashboardRunBlocked = "blocked"
|
|
DashboardRunComplete = "complete"
|
|
DashboardRunError = "error"
|
|
)
|
|
|
|
type DashboardNodeRun interface {
|
|
Execute(ctx context.Context)
|
|
GetName() string
|
|
GetRunStatus() DashboardRunStatus
|
|
SetError(err error)
|
|
GetError() error
|
|
SetComplete()
|
|
RunComplete() bool
|
|
ChildrenComplete() bool
|
|
}
|
|
|
|
type DashboardNodeParent interface {
|
|
GetName() string
|
|
ChildCompleteChan() chan DashboardNodeRun
|
|
}
|