reportexecute

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

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

func (r *PanelRun) ChildrenComplete() bool

ChildrenComplete implements ReportNodeRun

func (*PanelRun) GetName

func (r *PanelRun) GetName() string

GetName implements ReportNodeRun

func (*PanelRun) GetRunStatus

func (r *PanelRun) GetRunStatus() reportinterfaces.ReportRunStatus

GetRunStatus implements ReportNodeRun

func (*PanelRun) RunComplete

func (r *PanelRun) RunComplete() bool

RunComplete implements ReportNodeRun

func (*PanelRun) SetComplete

func (r *PanelRun) SetComplete()

SetComplete implements ReportNodeRun

func (*PanelRun) SetError

func (r *PanelRun) SetError(err error)

SetError 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

func (r *ReportRun) ChildrenComplete() bool

ChildrenComplete implements ReportNodeRun

func (*ReportRun) GetName

func (r *ReportRun) GetName() string

GetName implements ReportNodeRun

func (*ReportRun) GetRunStatus

func (r *ReportRun) GetRunStatus() reportinterfaces.ReportRunStatus

GetRunStatus implements ReportNodeRun

func (*ReportRun) RunComplete

func (r *ReportRun) RunComplete() bool

RunComplete implements ReportNodeRun

func (*ReportRun) SetComplete

func (r *ReportRun) SetComplete()

SetComplete implements ReportNodeRun

func (*ReportRun) SetError

func (r *ReportRun) SetError(err error)

SetError implements ReportNodeRun

Jump to

Keyboard shortcuts

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