dashboardexecute -> snapshot

This commit is contained in:
Puskar Basu
2024-07-03 19:15:37 +05:30
parent 2d687a83e3
commit e7e1184e95
17 changed files with 24 additions and 22 deletions

View File

@@ -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")
}

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"context"

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"context"

View File

@@ -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 {

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"context"

View File

@@ -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 {

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"context"

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"context"

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
type LeafRunOption = func(target *LeafRun)

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"fmt"

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"github.com/turbot/steampipe/pkg/dashboard/dashboardtypes"

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"context"

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"github.com/turbot/steampipe/pkg/dashboard/dashboardtypes"

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"github.com/turbot/steampipe/pkg/dashboard/dashboardtypes"

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
type RuntimeDependencySubscriber interface {
RuntimeDependencyPublisher

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"context"

View File

@@ -1,4 +1,4 @@
package dashboardexecute
package snapshot
import (
"context"