Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardParent ¶
type DashboardParent interface {
DashboardTreeRun
GetName() string
ChildCompleteChan() chan DashboardTreeRun
GetChildren() []DashboardTreeRun
ChildrenComplete() bool
ChildStatusChanged(context.Context)
}
DashboardParent is an interface implemented by all dashboard run nodes which have children
type DashboardTreeRun ¶
type DashboardTreeRun interface {
Initialise(ctx context.Context)
Execute(ctx context.Context)
GetName() string
GetTitle() string
GetRunStatus() RunStatus
SetError(context.Context, error)
GetError() error
GetParent() DashboardParent
SetComplete(context.Context)
RunComplete() bool
GetInputsDependingOn(string) []string
GetNodeType() string
AsTreeNode() *steampipeconfig.SnapshotTreeNode
GetResource() resources.DashboardLeafNode
}
DashboardTreeRun is an interface implemented by all dashboard run nodes
type LeafData ¶
type LeafData struct {
Columns []*queryresult.ColumnDef `json:"columns"`
Rows []map[string]interface{} `json:"rows"`
}
func NewLeafData ¶
func NewLeafData(result *queryresult.SyncQueryResult) (*LeafData, error)
type ResolvedRuntimeDependency ¶
type ResolvedRuntimeDependency struct {
Dependency *resources.RuntimeDependency
Value any
// contains filtered or unexported fields
}
ResolvedRuntimeDependency is a wrapper for RuntimeDependency which contains the resolved value we must wrap it so that we do not mutate the underlying workspace data when resolving dependency values
func NewResolvedRuntimeDependency ¶
func NewResolvedRuntimeDependency(dep *resources.RuntimeDependency, valueChannel chan *ResolvedRuntimeDependencyValue, publisherName string) *ResolvedRuntimeDependency
func (*ResolvedRuntimeDependency) IsResolved ¶
func (d *ResolvedRuntimeDependency) IsResolved() bool
func (*ResolvedRuntimeDependency) Resolve ¶
func (d *ResolvedRuntimeDependency) Resolve() error
func (*ResolvedRuntimeDependency) ScopedName ¶
func (d *ResolvedRuntimeDependency) ScopedName() string
ScopedName returns is a unique name for the dependency by prepending the publisher name this is used to uniquely identify which `with` is used - for the snapshot data
Click to show internal directories.
Click to hide internal directories.