chore: update module to v2 and bump Go version to 1.24 (#4597)

This commit is contained in:
Puskar Basu
2025-07-07 16:03:56 +05:30
committed by GitHub
parent 1c9f3ac9fc
commit e19d35c457
127 changed files with 343 additions and 362 deletions

View File

@@ -22,29 +22,8 @@ updates:
pull-request-branch-name:
separator: "-"
assignees:
- "binaek"
- "pskrbasu"
- "kaidaguerre"
labels:
- "dependencies"
- "house-keeping"
# Commenting out since we don't want dependabot PRs for the ui package right now.
# We can add back when we need them.
# - package-ecosystem: "npm"
# directory: "/ui/dashboard"
# schedule:
# interval: "daily"
# commit-message:
# prefix: "[dep][dash]"
# include: "scope"
# pull-request-branch-name:
# separator: "-"
# assignees:
# - "MichaelBurgess"
# - "binaek"
# - "kaidaguerre"
# labels:
# - "dependencies"
# - "dashboards"
# - "house-keeping"

View File

@@ -111,7 +111,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: 1.23
go-version: 1.24
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0

View File

@@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: 1.22
go-version: 1.24
- name: golangci-lint
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0

View File

@@ -29,7 +29,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: 1.22
go-version: 1.24
- name: Fetching Go Cache Paths
id: go-cache-paths
@@ -132,7 +132,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
with:
go-version: 1.22
go-version: 1.24
- name: Prepare for downloads
id: prepare-for-downloads

View File

@@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra"
"github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
)
func generateCompletionScriptsCmd() *cobra.Command {

View File

@@ -12,9 +12,9 @@ import (
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/pipes"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
func loginCmd() *cobra.Command {

View File

@@ -22,15 +22,15 @@ import (
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/pipe-fittings/v2/versionfile"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_local"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/installationstate"
"github.com/turbot/steampipe/pkg/ociinstaller"
"github.com/turbot/steampipe/pkg/plugin"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_local"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/installationstate"
"github.com/turbot/steampipe/v2/pkg/ociinstaller"
"github.com/turbot/steampipe/v2/pkg/plugin"
"github.com/turbot/steampipe/v2/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
type installedPlugin struct {

View File

@@ -16,12 +16,12 @@ import (
"github.com/turbot/go-kit/types"
sdklogging "github.com/turbot/steampipe-plugin-sdk/v5/logging"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/connection"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/pkg/pluginmanager_service"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/connection"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/pluginmanager_service"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
func pluginManagerCmd() *cobra.Command {

View File

@@ -16,12 +16,12 @@ import (
"github.com/turbot/pipe-fittings/v2/contexthelpers"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/constants"
"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/statushooks"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/query"
"github.com/turbot/steampipe/v2/pkg/query/queryexecute"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
// variable used to assign the timing mode flag

View File

@@ -11,8 +11,8 @@ import (
"github.com/turbot/pipe-fittings/v2/app_specific"
"github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
var exitCode int

View File

@@ -18,14 +18,14 @@ import (
"github.com/turbot/pipe-fittings/v2/querydisplay"
putils "github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_local"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/pkg/pluginmanager"
pb "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/proto"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_local"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/pluginmanager"
pb "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/proto"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
func serviceCmd() *cobra.Command {

6
go.mod
View File

@@ -1,6 +1,6 @@
module github.com/turbot/steampipe
module github.com/turbot/steampipe/v2
go 1.23.2
go 1.24
toolchain go1.24.0
@@ -33,7 +33,6 @@ require (
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/olekukonko/tablewriter v0.0.5
github.com/opencontainers/image-spec v1.1.1
github.com/otiai10/copy v1.14.1
github.com/pkg/errors v0.9.1
github.com/sethvargo/go-retry v0.3.0
github.com/shiena/ansicolor v0.0.0-20230509054315-a9deabde6e02
@@ -212,7 +211,6 @@ require (
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/otiai10/mint v1.6.3 // indirect
github.com/pkg/term v1.1.0 // indirect
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
github.com/prometheus/client_golang v1.21.1 // indirect

4
go.sum
View File

@@ -1149,10 +1149,6 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
github.com/otiai10/copy v1.14.1 h1:5/7E6qsUMBaH5AnQ0sSLzzTg1oTECmcCmT6lvF45Na8=
github.com/otiai10/copy v1.14.1/go.mod h1:oQwrEDDOci3IM8dJF0d8+jnbfPDllW6vUjNc3DoZm9I=
github.com/otiai10/mint v1.6.3 h1:87qsV/aw1F5as1eH1zS/yqHY85ANKVMgkDrf9rcxbQs=
github.com/otiai10/mint v1.6.3/go.mod h1:MJm72SBthJjz8qhefc4z1PYEieWmy8Bku7CjcAqyUSM=
github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M=
github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc=
github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY=

10
main.go
View File

@@ -14,11 +14,11 @@ import (
"github.com/spf13/viper"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/cmd"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/constants"
localconstants "github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/cmd"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
localconstants "github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
var exitCode int = constants.ExitCodeSuccessful

View File

@@ -10,7 +10,7 @@ import (
"github.com/turbot/go-kit/files"
"github.com/turbot/pipe-fittings/v2/app_specific"
"github.com/turbot/pipe-fittings/v2/error_helpers"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
// SetAppSpecificConstants sets app specific constants defined in pipe-fittings

View File

@@ -8,7 +8,7 @@ import (
"github.com/spf13/viper"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
type CmdBuilder struct {

View File

@@ -6,7 +6,7 @@ import (
"github.com/fatih/color"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
var requiredColor = color.New(color.Bold).SprintfFunc()

View File

@@ -32,12 +32,12 @@ import (
sdklogging "github.com/turbot/steampipe-plugin-sdk/v5/logging"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/constants/runtime"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/pkg/task"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/task"
)
var waitForTasksChannel chan struct{}

View File

@@ -9,8 +9,8 @@ import (
"strings"
"github.com/spf13/viper"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
// DisplayConfig prints all config set via WorkspaceProfile or HCL options

View File

@@ -10,7 +10,7 @@ import (
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/pipes"
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
func ValidateSnapshotArgs(ctx context.Context) error {

View File

@@ -14,7 +14,7 @@ import (
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/parse"
"github.com/turbot/pipe-fittings/v2/workspace_profile"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
// Viper fetches the global viper instance

View File

@@ -6,11 +6,11 @@ import (
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/db/db_local"
"github.com/turbot/steampipe/pkg/introspection"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/db/db_local"
"github.com/turbot/steampipe/v2/pkg/introspection"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
type connectionStateTableUpdater struct {

View File

@@ -9,9 +9,9 @@ import (
"github.com/turbot/go-kit/filewatcher"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/pipe-fittings/v2/filepaths"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
type ConnectionWatcher struct {

View File

@@ -7,7 +7,7 @@ import (
"github.com/turbot/pipe-fittings/v2/error_helpers"
"github.com/turbot/pipe-fittings/v2/plugin"
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
"github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/shared"
"github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/shared"
)
type pluginManager interface {

View File

@@ -7,7 +7,7 @@ import (
"time"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
// only allow one execution of refresh connections

View File

@@ -21,12 +21,12 @@ import (
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/db/db_local"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/introspection"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/db/db_local"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/introspection"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
"golang.org/x/exp/maps"
"golang.org/x/sync/semaphore"
)
@@ -204,7 +204,7 @@ func (s *refreshConnectionState) setFailedConnectionsToError(ctx context.Context
for _, c := range s.connectionUpdates.FinalConnectionState {
if c.State == constants.ConnectionStateError {
if err := s.tableUpdater.onConnectionError(ctx, conn.Conn(), c.ConnectionName, fmt.Errorf(c.Error())); err != nil {
if err := s.tableUpdater.onConnectionError(ctx, conn.Conn(), c.ConnectionName, fmt.Errorf("%s", c.Error())); err != nil {
return sperr.WrapWithMessage(err, "failed to update connection state table")
}
}

View File

@@ -3,8 +3,8 @@ package connection_sync
import (
"context"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
// WaitForSearchPathSchemas identifies the first connection in the search path for each plugin,

View File

@@ -5,7 +5,7 @@ import (
"time"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
var (

View File

@@ -12,10 +12,10 @@ import (
"github.com/spf13/viper"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/serversettings"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/serversettings"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
"golang.org/x/exp/maps"
"golang.org/x/sync/semaphore"
)

View File

@@ -10,9 +10,9 @@ import (
"github.com/spf13/viper"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/constants/runtime"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
)
const (

View File

@@ -17,11 +17,11 @@ import (
pconstants "github.com/turbot/pipe-fittings/v2/constants"
pqueryresult "github.com/turbot/pipe-fittings/v2/queryresult"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/query/queryresult"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/query/queryresult"
"github.com/turbot/steampipe/v2/pkg/statushooks"
"golang.org/x/text/language"
"golang.org/x/text/message"
)

View File

@@ -9,10 +9,10 @@ import (
"github.com/jackc/pgx/v5"
"github.com/sethvargo/go-retry"
typehelpers "github.com/turbot/go-kit/types"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
// execute query - if it fails with a "relation not found" error, determine whether this is because the required schema

View File

@@ -10,7 +10,7 @@ import (
"github.com/spf13/viper"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
)
// SetRequiredSessionSearchPath implements Client

View File

@@ -8,7 +8,7 @@ import (
"github.com/jackc/pgx/v5/pgxpool"
"github.com/spf13/viper"
"github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
)
func (c *DbClient) AcquireManagementConnection(ctx context.Context) (*pgxpool.Conn, error) {

View File

@@ -3,7 +3,7 @@ package db_common
import (
"strings"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
func IsClientAppName(appName string) bool {

View File

@@ -6,7 +6,7 @@ import (
"time"
"github.com/jackc/pgx/v5"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
// SetCacheTtl set the cache ttl on the client

View File

@@ -6,7 +6,7 @@ import (
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgxpool"
pqueryresult "github.com/turbot/pipe-fittings/v2/queryresult"
"github.com/turbot/steampipe/pkg/query/queryresult"
"github.com/turbot/steampipe/v2/pkg/query/queryresult"
)
type Client interface {

View File

@@ -4,7 +4,7 @@ import (
"context"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/query/queryresult"
"github.com/turbot/steampipe/v2/pkg/query/queryresult"
)
// ExecuteQuery executes a single query. If shutdownAfterCompletion is true, shutdown the client after completion

View File

@@ -1,6 +1,6 @@
package db_common
import "github.com/turbot/steampipe/pkg/constants"
import "github.com/turbot/steampipe/v2/pkg/constants"
// Functions is a list of SQLFunction objects that are installed in the db 'steampipe_internal' schema startup
var Functions = []SQLFunction{

View File

@@ -6,8 +6,8 @@ import (
"github.com/spf13/viper"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
type InitResult struct {

View File

@@ -3,7 +3,7 @@ package db_common
import (
"github.com/spf13/viper"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
func MaxDbConnections() int {

View File

@@ -10,8 +10,8 @@ import (
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
type NotificationListener struct {

View File

@@ -9,7 +9,7 @@ import (
"github.com/jackc/pgx/v5"
typeHelpers "github.com/turbot/go-kit/types"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
type schemaRecord struct {

View File

@@ -8,7 +8,7 @@ import (
"github.com/jackc/pgx/v5"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
func EnsureInternalSchemaSuffix(searchPath []string) []string {

View File

@@ -7,8 +7,8 @@ import (
"github.com/jackc/pgx/v5"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/constants/runtime"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
)
// SystemClientExecutor is the executor function that is called within a transaction

View File

@@ -2,7 +2,7 @@ package db_common
import (
"github.com/jackc/pgx/v5/pgconn"
"github.com/turbot/steampipe/pkg/db/sslio"
"github.com/turbot/steampipe/v2/pkg/db/sslio"
)
func AddRootCertToConfig(config *pgconn.Config, certLocation string) error {

View File

@@ -11,9 +11,9 @@ import (
"github.com/pkg/errors"
"github.com/sethvargo/go-retry"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
var ErrServiceInRecoveryMode = errors.New("service is in recovery mode")

View File

@@ -17,9 +17,9 @@ import (
"github.com/turbot/go-kit/files"
"github.com/turbot/pipe-fittings/v2/app_specific"
putils "github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/filepaths"
)
var (

View File

@@ -9,8 +9,8 @@ import (
filehelpers "github.com/turbot/go-kit/files"
"github.com/turbot/pipe-fittings/v2/app_specific"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/filepaths"
)
func TestTrimBackups(t *testing.T) {

View File

@@ -13,11 +13,11 @@ import (
pconstants "github.com/turbot/pipe-fittings/v2/constants"
putils "github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/constants/runtime"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
func getLocalSteampipeConnectionString(opts *CreateDbOptions) (string, error) {

View File

@@ -6,8 +6,8 @@ import (
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
)
func executeSqlAsRoot(ctx context.Context, statements ...string) ([]pgconn.CommandTag, error) {

View File

@@ -17,11 +17,11 @@ import (
"github.com/turbot/pipe-fittings/v2/app_specific"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
putils "github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/pkg/ociinstaller"
"github.com/turbot/steampipe/pkg/ociinstaller/versionfile"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/ociinstaller"
"github.com/turbot/steampipe/v2/pkg/ociinstaller/versionfile"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
var ensureMux sync.Mutex

View File

@@ -9,11 +9,11 @@ import (
"github.com/jackc/pgx/v5"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/introspection"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/introspection"
"github.com/turbot/steampipe/v2/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
// dropLegacyInternalSchema looks for a schema named 'internal'

View File

@@ -10,10 +10,10 @@ import (
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/error_helpers"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_client"
"github.com/turbot/steampipe/pkg/db/db_common"
pb "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/proto"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_client"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
pb "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/proto"
)
// LocalDbClient wraps over DbClient

View File

@@ -6,7 +6,7 @@ import (
"path/filepath"
"time"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/filepaths"
)
const logRetentionDays = 7

View File

@@ -8,7 +8,7 @@ import (
"github.com/jackc/pgx/v5"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
// SendPostgresNotification send a postgres notification that the schema has chganged

View File

@@ -8,7 +8,7 @@ import (
"github.com/google/uuid"
filehelpers "github.com/turbot/go-kit/files"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/filepaths"
)
// Passwords :: structure for working with DB passwords

View File

@@ -7,7 +7,7 @@ import (
"testing"
"github.com/turbot/pipe-fittings/v2/app_specific"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
// test used for debug purposes to replicate `tuple concurrently updated` DB error

View File

@@ -12,8 +12,8 @@ import (
filehelpers "github.com/turbot/go-kit/files"
"github.com/turbot/go-kit/helpers"
putils "github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/filepaths"
)
const RunningDBStructVersion = 20220411

View File

@@ -10,9 +10,9 @@ import (
"github.com/jackc/pgx/v5/pgxpool"
"github.com/spf13/viper"
"github.com/turbot/pipe-fittings/v2/modconfig"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
func SetUserSearchPath(ctx context.Context, pool *pgxpool.Pool) ([]string, error) {

View File

@@ -8,9 +8,9 @@ import (
"github.com/jackc/pgx/v5"
"github.com/spf13/viper"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/serversettings"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/serversettings"
)
// setupServerSettingsTable creates a new read-only table with information in the current

View File

@@ -10,7 +10,7 @@ import (
filehelpers "github.com/turbot/go-kit/files"
"github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/filepaths"
)
// GetState checks that the database instance is running and returns its details

View File

@@ -19,8 +19,8 @@ import (
"github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/db/sslio"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/db/sslio"
"github.com/turbot/steampipe/v2/pkg/filepaths"
)
const (

View File

@@ -21,12 +21,12 @@ import (
perror_helpers "github.com/turbot/pipe-fittings/v2/error_helpers"
putils "github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/pkg/pluginmanager"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/pluginmanager"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
// StartResult is a pseudoEnum for outcomes of StartNewInstance

View File

@@ -11,14 +11,14 @@ import (
psutils "github.com/shirou/gopsutil/process"
putils "github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/constants/runtime"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/pkg/pluginmanager"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/pkg/utils"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/pluginmanager"
"github.com/turbot/steampipe/v2/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/utils"
)
// StopStatus is a pseudoEnum for service stop result

View File

@@ -9,7 +9,7 @@ import (
"github.com/spf13/viper"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/query/queryresult"
"github.com/turbot/steampipe/v2/pkg/query/queryresult"
"golang.org/x/text/language"
"golang.org/x/text/message"
)

View File

@@ -3,13 +3,14 @@ package error_helpers
import (
"errors"
"fmt"
"github.com/jackc/pgconn"
)
func DecodePgError(err error) error {
var pgError *pgconn.PgError
if errors.As(err, &pgError) {
return fmt.Errorf(pgError.Message)
return fmt.Errorf("%s", pgError.Message)
}
return err
}

View File

@@ -13,7 +13,7 @@ import (
"github.com/shiena/ansicolor"
"github.com/spf13/viper"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
func init() {
@@ -82,7 +82,7 @@ func TransformErrorToSteampipe(err error) error {
errString = strings.TrimPrefix(errString, "rpc error: code = Unknown desc =")
}
}
return fmt.Errorf(strings.TrimSpace(errString))
return fmt.Errorf("%s", strings.TrimSpace(errString))
}
// HandleCancelError modifies a context.Canceled error into a readable error that can
@@ -138,7 +138,7 @@ func CombineErrorsWithPrefix(prefix string, errors ...error) error {
combinedErrorString[e.Error()] = struct{}{}
}
return fmt.Errorf(strings.Join(maps.Keys(combinedErrorString), "\n\t"))
return fmt.Errorf("%s", strings.Join(maps.Keys(combinedErrorString), "\n\t"))
}
func allErrorsNil(errors ...error) bool {

View File

@@ -8,8 +8,8 @@ import (
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/statushooks"
"golang.org/x/exp/maps"
"golang.org/x/exp/slices"
)

View File

@@ -4,7 +4,7 @@ import (
"context"
"testing"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
type testExporter struct {

View File

@@ -6,7 +6,7 @@ import (
"strings"
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
type SnapshotExporter struct {

View File

@@ -4,9 +4,9 @@ import (
"os"
"path/filepath"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/platform"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/platform"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
func ServiceExecutableRelativeLocation() string {

View File

@@ -7,8 +7,8 @@ import (
filehelpers "github.com/turbot/go-kit/files"
"github.com/turbot/pipe-fittings/v2/app_specific"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
// Constants for Config

View File

@@ -8,7 +8,7 @@ import (
"github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/pipes"
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
)
func getPipesMetadata(ctx context.Context) (*steampipeconfig.PipesMetadata, error) {

View File

@@ -12,12 +12,12 @@ import (
"github.com/turbot/pipe-fittings/v2/error_helpers"
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
"github.com/turbot/steampipe-plugin-sdk/v5/telemetry"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_client"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/db/db_local"
"github.com/turbot/steampipe/pkg/export"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_client"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/db/db_local"
"github.com/turbot/steampipe/v2/pkg/export"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
type InitData struct {

View File

@@ -9,7 +9,7 @@ import (
"github.com/google/uuid"
"github.com/turbot/go-kit/files"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/filepaths"
)
const StateStructVersion = 20220411

View File

@@ -23,16 +23,16 @@ import (
"github.com/turbot/pipe-fittings/v2/modconfig"
"github.com/turbot/pipe-fittings/v2/querydisplay"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/connection_sync"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/interactive/metaquery"
"github.com/turbot/steampipe/pkg/query"
"github.com/turbot/steampipe/pkg/query/queryhistory"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/connection_sync"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/interactive/metaquery"
"github.com/turbot/steampipe/v2/pkg/query"
"github.com/turbot/steampipe/v2/pkg/query/queryhistory"
"github.com/turbot/steampipe/v2/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
type AfterPromptCloseAction int

View File

@@ -9,9 +9,9 @@ import (
"github.com/c-bata/go-prompt"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
func (c *InteractiveClient) initialiseSuggestions(ctx context.Context) error {

View File

@@ -7,9 +7,9 @@ import (
"time"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/statushooks"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/statushooks"
)
// init data has arrived, handle any errors/warnings/messages

View File

@@ -2,7 +2,7 @@ package metaquery
import (
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
type metaQueryArg struct {

View File

@@ -11,7 +11,7 @@ import (
"github.com/spf13/viper"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
)
// controls the cache in the connected FDW

View File

@@ -8,7 +8,7 @@ import (
"strings"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
// .help

View File

@@ -4,8 +4,8 @@ import (
"context"
"github.com/c-bata/go-prompt"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
type ConnectionStateGetter func(context.Context) (steampipeconfig.ConnectionStateMap, error)

View File

@@ -12,9 +12,9 @@ import (
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/querydisplay"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
)
// inspect

View File

@@ -8,7 +8,7 @@ import (
"github.com/turbot/go-kit/helpers"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/querydisplay"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
func setOrGetSearchPath(ctx context.Context, input *HandlerInput) error {

View File

@@ -7,8 +7,8 @@ import (
typeHelpers "github.com/turbot/go-kit/types"
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"golang.org/x/exp/maps"
)

View File

@@ -7,7 +7,7 @@ import (
pconstants "github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/cmdconfig"
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
"golang.org/x/text/cases"
"golang.org/x/text/language"
)

View File

@@ -3,11 +3,11 @@ package interactive
import (
"context"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_local"
"github.com/turbot/steampipe/pkg/error_helpers"
"github.com/turbot/steampipe/pkg/query"
"github.com/turbot/steampipe/pkg/query/queryresult"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_local"
"github.com/turbot/steampipe/v2/pkg/error_helpers"
"github.com/turbot/steampipe/v2/pkg/query"
"github.com/turbot/steampipe/v2/pkg/query/queryresult"
)
type RunInteractivePromptResult struct {

View File

@@ -4,9 +4,9 @@ import (
"fmt"
"github.com/turbot/pipe-fittings/v2/modconfig"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/pkg/steampipeconfig"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
"golang.org/x/exp/maps"
)

View File

@@ -6,8 +6,8 @@ import (
"strings"
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
)
func GetPluginColumnTableCreateSql() db_common.QueryWithArgs {

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"github.com/turbot/pipe-fittings/v2/plugin"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
)
func GetPluginTableCreateSql() db_common.QueryWithArgs {

View File

@@ -4,8 +4,8 @@ import (
"fmt"
"github.com/turbot/pipe-fittings/v2/plugin"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/db/db_common"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/db/db_common"
)
func GetRateLimiterTableCreateSql() db_common.QueryWithArgs {

View File

@@ -3,7 +3,7 @@ package ociinstaller
import (
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/turbot/pipe-fittings/v2/ociinstaller"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
type assetsDownloader struct {

View File

@@ -8,8 +8,8 @@ import (
"github.com/turbot/pipe-fittings/v2/ociinstaller"
"github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
versionfile "github.com/turbot/steampipe/pkg/ociinstaller/versionfile"
"github.com/turbot/steampipe/v2/pkg/constants"
versionfile "github.com/turbot/steampipe/v2/pkg/ociinstaller/versionfile"
)
// InstallDB :: Install Postgres files fom OCI image

View File

@@ -5,7 +5,7 @@ import (
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/turbot/pipe-fittings/v2/ociinstaller"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
type dbDownloader struct {

View File

@@ -10,9 +10,9 @@ import (
"github.com/turbot/pipe-fittings/v2/ociinstaller"
putils "github.com/turbot/pipe-fittings/v2/utils"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/pkg/ociinstaller/versionfile"
"github.com/turbot/steampipe/v2/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/ociinstaller/versionfile"
)
// InstallFdw installs the Steampipe Postgres foreign data wrapper from an OCI image

View File

@@ -5,7 +5,7 @@ import (
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/turbot/pipe-fittings/v2/ociinstaller"
"github.com/turbot/steampipe/pkg/constants"
"github.com/turbot/steampipe/v2/pkg/constants"
)
type fdwDownloader struct {

View File

@@ -7,7 +7,7 @@ import (
filehelpers "github.com/turbot/go-kit/files"
"github.com/turbot/pipe-fittings/v2/versionfile"
"github.com/turbot/steampipe/pkg/filepaths"
"github.com/turbot/steampipe/v2/pkg/filepaths"
)
const DatabaseStructVersion = 20220411

View File

@@ -16,9 +16,9 @@ import (
"github.com/turbot/pipe-fittings/v2/constants"
"github.com/turbot/steampipe-plugin-sdk/v5/logging"
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
"github.com/turbot/steampipe/pkg/pluginmanager_service/grpc"
pb "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/proto"
pluginshared "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/shared"
"github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc"
pb "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/proto"
pluginshared "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/shared"
)
// StartNewInstance loads the plugin manager state, stops any previous instance and instantiates a new plugin manager

View File

@@ -8,8 +8,8 @@ import (
"github.com/hashicorp/go-plugin"
"github.com/turbot/steampipe-plugin-sdk/v5/grpc"
"github.com/turbot/steampipe-plugin-sdk/v5/logging"
pb "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/proto"
pluginshared "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/shared"
pb "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/proto"
pluginshared "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/shared"
)
// PluginManagerClient is the client used by steampipe to access the plugin manager

Some files were not shown because too many files have changed in this diff Show More