dashboardevents

package
v0.16.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerComplete

type ContainerComplete struct {
	Container   dashboardtypes.DashboardNodeRun
	Session     string
	ExecutionId string
}

func (*ContainerComplete) IsDashboardEvent

func (*ContainerComplete) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type ContainerError

type ContainerError struct {
	Container   dashboardtypes.DashboardNodeRun
	Session     string
	ExecutionId string
}

func (*ContainerError) IsDashboardEvent

func (*ContainerError) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type ControlComplete

type ControlComplete struct {
	Progress    *controlstatus.ControlProgress
	Control     controlstatus.ControlRunStatusProvider
	Name        string
	Session     string
	ExecutionId string
}

func (*ControlComplete) IsDashboardEvent

func (*ControlComplete) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type ControlError

type ControlError struct {
	Control     controlstatus.ControlRunStatusProvider
	Progress    *controlstatus.ControlProgress
	Name        string
	Session     string
	ExecutionId string
}

func (*ControlError) IsDashboardEvent

func (*ControlError) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type DashboardChanged

type DashboardChanged struct {
	ChangedDashboards  []*modconfig.DashboardTreeItemDiffs
	ChangedContainers  []*modconfig.DashboardTreeItemDiffs
	ChangedControls    []*modconfig.DashboardTreeItemDiffs
	ChangedBenchmarks  []*modconfig.DashboardTreeItemDiffs
	ChangedCards       []*modconfig.DashboardTreeItemDiffs
	ChangedCharts      []*modconfig.DashboardTreeItemDiffs
	ChangedFlows       []*modconfig.DashboardTreeItemDiffs
	ChangedHierarchies []*modconfig.DashboardTreeItemDiffs
	ChangedImages      []*modconfig.DashboardTreeItemDiffs
	ChangedInputs      []*modconfig.DashboardTreeItemDiffs
	ChangedTables      []*modconfig.DashboardTreeItemDiffs
	ChangedTexts       []*modconfig.DashboardTreeItemDiffs

	NewDashboards  []*modconfig.Dashboard
	NewContainers  []*modconfig.DashboardContainer
	NewControls    []*modconfig.Control
	NewBenchmarks  []*modconfig.Benchmark
	NewCards       []*modconfig.DashboardCard
	NewCharts      []*modconfig.DashboardChart
	NewFlows       []*modconfig.DashboardFlow
	NewHierarchies []*modconfig.DashboardHierarchy
	NewImages      []*modconfig.DashboardImage
	NewInputs      []*modconfig.DashboardInput
	NewTables      []*modconfig.DashboardTable
	NewTexts       []*modconfig.DashboardText

	DeletedDashboards  []*modconfig.Dashboard
	DeletedContainers  []*modconfig.DashboardContainer
	DeletedControls    []*modconfig.Control
	DeletedBenchmarks  []*modconfig.Benchmark
	DeletedCards       []*modconfig.DashboardCard
	DeletedCharts      []*modconfig.DashboardChart
	DeletedFlows       []*modconfig.DashboardFlow
	DeletedHierarchies []*modconfig.DashboardHierarchy
	DeletedImages      []*modconfig.DashboardImage
	DeletedInputs      []*modconfig.DashboardInput
	DeletedTables      []*modconfig.DashboardTable
	DeletedTexts       []*modconfig.DashboardText
}

func (*DashboardChanged) HasChanges

func (c *DashboardChanged) HasChanges() bool

func (*DashboardChanged) IsDashboardEvent

func (*DashboardChanged) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type DashboardComplete

type DashboardComplete struct {
	Dashboard dashboardtypes.DashboardNodeRun
}

func (*DashboardComplete) IsDashboardEvent

func (*DashboardComplete) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type DashboardError

type DashboardError struct {
	Dashboard   dashboardtypes.DashboardNodeRun
	Session     string
	ExecutionId string
}

func (*DashboardError) IsDashboardEvent

func (*DashboardError) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type DashboardEvent

type DashboardEvent interface {
	IsDashboardEvent()
}

type DashboardEventHandler

type DashboardEventHandler func(DashboardEvent)

type ExecutionComplete

type ExecutionComplete struct {
	Root        dashboardtypes.DashboardNodeRun
	Session     string
	ExecutionId string
	Panels      map[string]dashboardtypes.SnapshotPanel
	Inputs      map[string]interface{}
	Variables   map[string]string
	SearchPath  []string
	StartTime   time.Time
	EndTime     time.Time
}

func (*ExecutionComplete) IsDashboardEvent

func (*ExecutionComplete) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type ExecutionError

type ExecutionError struct {
	Error   error
	Session string
}

ExecutionError is an event which is sent if an error occusrs _before execution has started_ e.g. a failure to create the execution tree

func (*ExecutionError) IsDashboardEvent

func (*ExecutionError) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type ExecutionStarted

type ExecutionStarted struct {
	Root        dashboardtypes.DashboardNodeRun `json:"dashboard"`
	Panels      map[string]dashboardtypes.SnapshotPanel
	Session     string
	ExecutionId string
}

func (*ExecutionStarted) IsDashboardEvent

func (*ExecutionStarted) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type InputValuesCleared

type InputValuesCleared struct {
	ClearedInputs []string
	Session       string
	ExecutionId   string
}

func (*InputValuesCleared) IsDashboardEvent

func (*InputValuesCleared) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type LeafNodeComplete

type LeafNodeComplete struct {
	LeafNode    dashboardtypes.DashboardNodeRun
	Session     string
	ExecutionId string
}

func (*LeafNodeComplete) IsDashboardEvent

func (*LeafNodeComplete) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type LeafNodeError

type LeafNodeError struct {
	LeafNode    dashboardtypes.DashboardNodeRun
	Session     string
	Error       error
	ExecutionId string
}

func (*LeafNodeError) IsDashboardEvent

func (*LeafNodeError) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

type WorkspaceError

type WorkspaceError struct {
	Error error
}

func (*WorkspaceError) IsDashboardEvent

func (*WorkspaceError) IsDashboardEvent()

IsDashboardEvent implements DashboardEvent interface

Jump to

Keyboard shortcuts

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