mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 18:12:43 -05:00
dashboardexecute -> snapshot
This commit is contained in:
@@ -20,13 +20,13 @@ import (
|
||||
"github.com/turbot/steampipe/pkg/connection_sync"
|
||||
"github.com/turbot/steampipe/pkg/constants"
|
||||
"github.com/turbot/steampipe/pkg/contexthelpers"
|
||||
"github.com/turbot/steampipe/pkg/dashboard/dashboardexecute"
|
||||
"github.com/turbot/steampipe/pkg/dashboard/dashboardtypes"
|
||||
"github.com/turbot/steampipe/pkg/display"
|
||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
||||
"github.com/turbot/steampipe/pkg/query"
|
||||
"github.com/turbot/steampipe/pkg/query/queryexecute"
|
||||
"github.com/turbot/steampipe/pkg/query/queryresult"
|
||||
"github.com/turbot/steampipe/pkg/snapshot"
|
||||
"github.com/turbot/steampipe/pkg/statushooks"
|
||||
"github.com/turbot/steampipe/pkg/steampipeconfig/modconfig"
|
||||
"github.com/turbot/steampipe/pkg/utils"
|
||||
@@ -243,7 +243,7 @@ func executeSnapshotQuery(initData *query.InitData, ctx context.Context) int {
|
||||
baseInitData := &initData.InitData
|
||||
|
||||
// so a dashboard name was specified - just call GenerateSnapshot
|
||||
snap, err := dashboardexecute.GenerateSnapshot(ctx, queryProvider.Name(), baseInitData, nil)
|
||||
snap, err := snapshot.GenerateSnapshot(ctx, queryProvider.Name(), baseInitData, nil)
|
||||
if err != nil {
|
||||
exitCode = constants.ExitCodeSnapshotCreationFailed
|
||||
error_helpers.FailOnError(err)
|
||||
@@ -302,7 +302,7 @@ func snapshotToQueryResult(snap *dashboardtypes.SteampipeSnapshot) (*queryresult
|
||||
if !ok {
|
||||
return nil, sperr.New("dashboard does not contain table result for query")
|
||||
}
|
||||
chartRun := tablePanel.(*dashboardexecute.LeafRun)
|
||||
chartRun := tablePanel.(*snapshot.LeafRun)
|
||||
if !ok {
|
||||
return nil, sperr.New("failed to read query result from snapshot")
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,12 +1,13 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"sync"
|
||||
|
||||
"github.com/turbot/steampipe/pkg/dashboard/dashboardtypes"
|
||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
||||
"github.com/turbot/steampipe/pkg/steampipeconfig/modconfig"
|
||||
"log"
|
||||
"sync"
|
||||
)
|
||||
|
||||
type DashboardParentImpl struct {
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,12 +1,13 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
|
||||
"github.com/turbot/steampipe/pkg/dashboard/dashboardevents"
|
||||
"github.com/turbot/steampipe/pkg/dashboard/dashboardtypes"
|
||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
||||
"github.com/turbot/steampipe/pkg/steampipeconfig/modconfig"
|
||||
"log"
|
||||
)
|
||||
|
||||
type DashboardTreeRunImpl struct {
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
type LeafRunOption = func(target *LeafRun)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"github.com/turbot/steampipe/pkg/dashboard/dashboardtypes"
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"github.com/turbot/steampipe/pkg/dashboard/dashboardtypes"
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"github.com/turbot/steampipe/pkg/dashboard/dashboardtypes"
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
type RuntimeDependencySubscriber interface {
|
||||
RuntimeDependencyPublisher
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -1,4 +1,4 @@
|
||||
package dashboardexecute
|
||||
package snapshot
|
||||
|
||||
import (
|
||||
"context"
|
||||
Reference in New Issue
Block a user