Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var SteampipeSnapshotSchemaVersion int64 = 20221222
Functions ¶
func StripSnapshot ¶ added in v0.17.0
func StripSnapshot(snapshot *steampipecloud.WorkspaceSnapshotData) error
Types ¶
type DashboardParent ¶ added in v0.19.0
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 ¶ added in v0.19.0
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() *SnapshotTreeNode GetResource() modconfig.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
type ResolvedRuntimeDependency ¶ added in v0.19.0
type ResolvedRuntimeDependency struct { Dependency *modconfig.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 ¶ added in v0.19.0
func NewResolvedRuntimeDependency(dep *modconfig.RuntimeDependency, valueChannel chan *ResolvedRuntimeDependencyValue, publisherName string) *ResolvedRuntimeDependency
func (*ResolvedRuntimeDependency) IsResolved ¶ added in v0.19.0
func (d *ResolvedRuntimeDependency) IsResolved() bool
func (*ResolvedRuntimeDependency) Resolve ¶ added in v0.19.0
func (d *ResolvedRuntimeDependency) Resolve() error
func (*ResolvedRuntimeDependency) ScopedName ¶ added in v0.19.0
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
type ResolvedRuntimeDependencyValue ¶ added in v0.19.0
type RunStatus ¶ added in v0.19.0
type RunStatus string
func (RunStatus) IsFinished ¶ added in v0.19.0
type SnapshotPanel ¶
type SnapshotPanel interface {
IsSnapshotPanel()
}
SnapshotPanel is an interface implemented by all nodes which are to be included in the Snapshot Panels map this consists of all 'Run' types - LeafRun, DashboardRun, etc.
type SnapshotTreeNode ¶
type SnapshotTreeNode struct { Name string `json:"name"` Children []*SnapshotTreeNode `json:"children,omitempty"` NodeType string `json:"panel_type"` }
SnapshotTreeNode is a struct used to store the dashboard structure in the snapshot
type SteampipeSnapshot ¶ added in v0.17.0
type SteampipeSnapshot struct { SchemaVersion string `json:"schema_version"` Panels map[string]SnapshotPanel `json:"panels"` Inputs map[string]interface{} `json:"inputs"` Variables map[string]string `json:"variables"` SearchPath []string `json:"search_path"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` Layout *SnapshotTreeNode `json:"layout"` FileNameRoot string `json:"-"` Title string `json:"-"` }
func (*SteampipeSnapshot) AsCloudSnapshot ¶ added in v0.17.0
func (s *SteampipeSnapshot) AsCloudSnapshot() (*steampipecloud.WorkspaceSnapshotData, error)
func (*SteampipeSnapshot) AsStrippedJson ¶ added in v0.17.0
func (s *SteampipeSnapshot) AsStrippedJson(indent bool) ([]byte, error)
func (*SteampipeSnapshot) IsExportSourceData ¶ added in v0.17.0
func (*SteampipeSnapshot) IsExportSourceData()
IsExportSourceData implements ExportSourceData