Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PanelRun ¶
type PanelRun struct { Name string `json:"name"` Title string `json:"title,omitempty"` Text string `json:"text,omitempty"` Type string `json:"type,omitempty"` Width int `json:"width,omitempty"` Height int `json:"height,omitempty"` Source string `json:"source,omitempty"` SQL string `json:"sql,omitempty"` Data [][]interface{} `json:"data,omitempty"` Error error `json:"error,omitempty"` // children PanelRuns []*PanelRun `json:"panels,omitempty"` ReportRuns []*ReportRun `json:"reports,omitempty"` // contains filtered or unexported fields }
PanelRun is a struct representing a a panel run - will contain one or more result items (i.e. for one or more resources)
func NewPanelRun ¶
func NewPanelRun(panel *modconfig.Panel, executionTree *ReportExecutionTree) *PanelRun
func (*PanelRun) ChildrenComplete ¶
ChildrenComplete implements ReportNodeRun
func (*PanelRun) GetRunStatus ¶
func (r *PanelRun) GetRunStatus() reportinterfaces.ReportRunStatus
GetRunStatus implements ReportNodeRun
func (*PanelRun) RunComplete ¶
RunComplete implements ReportNodeRun
func (*PanelRun) SetComplete ¶
func (r *PanelRun) SetComplete()
SetComplete implements ReportNodeRun
type ReportExecutionTree ¶
type ReportExecutionTree struct { Root reportinterfaces.ReportNodeRun // contains filtered or unexported fields }
ReportExecutionTree is a structure representing the control result hierarchy
func NewReportExecutionTree ¶
func NewReportExecutionTree(reportName string, client db_common.Client, workspace *workspace.Workspace) (*ReportExecutionTree, error)
NewReportExecutionTree creates a result group from a ModTreeItem
func (*ReportExecutionTree) AddDependency ¶
func (e *ReportExecutionTree) AddDependency(resource, dependency string)
AddDependency adds a dependency relationship to our dependency graph the resource has a dependency on an incomplete child resource
func (*ReportExecutionTree) Execute ¶
func (e *ReportExecutionTree) Execute(ctx context.Context) error
func (*ReportExecutionTree) ExecuteNode ¶
func (e *ReportExecutionTree) ExecuteNode(ctx context.Context, name string) error
type ReportRun ¶
type ReportRun struct { Name string `json:"name"` Title string `json:"title,omitempty"` // children PanelRuns []*PanelRun `json:"panels,omitempty"` ReportRuns []*ReportRun `json:"reports,omitempty"` Error error `json:"error,omitempty"` // contains filtered or unexported fields }
ReportRun is a struct representing a a report run - will contain one or more result items (i.e. for one or more resources)
func NewReportRun ¶
func NewReportRun(report *modconfig.Report, executionTree *ReportExecutionTree) *ReportRun
func (*ReportRun) ChildrenComplete ¶
ChildrenComplete implements ReportNodeRun
func (*ReportRun) GetRunStatus ¶
func (r *ReportRun) GetRunStatus() reportinterfaces.ReportRunStatus
GetRunStatus implements ReportNodeRun
func (*ReportRun) RunComplete ¶
RunComplete implements ReportNodeRun
func (*ReportRun) SetComplete ¶
func (r *ReportRun) SetComplete()
SetComplete implements ReportNodeRun