mirror of
https://github.com/turbot/steampipe.git
synced 2025-12-19 09:58:53 -05:00
chore: update module to v2 and bump Go version to 1.24 (#4597)
This commit is contained in:
23
.github/dependabot.yml
vendored
23
.github/dependabot.yml
vendored
@@ -22,29 +22,8 @@ updates:
|
|||||||
pull-request-branch-name:
|
pull-request-branch-name:
|
||||||
separator: "-"
|
separator: "-"
|
||||||
assignees:
|
assignees:
|
||||||
- "binaek"
|
- "pskrbasu"
|
||||||
- "kaidaguerre"
|
- "kaidaguerre"
|
||||||
labels:
|
labels:
|
||||||
- "dependencies"
|
- "dependencies"
|
||||||
- "house-keeping"
|
- "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"
|
|
||||||
|
|||||||
2
.github/workflows/01-steampipe-release.yaml
vendored
2
.github/workflows/01-steampipe-release.yaml
vendored
@@ -111,7 +111,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||||
with:
|
with:
|
||||||
go-version: 1.23
|
go-version: 1.24
|
||||||
|
|
||||||
- name: Install GoReleaser
|
- name: Install GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
|
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552 # v6.3.0
|
||||||
|
|||||||
2
.github/workflows/10-test-lint.yaml
vendored
2
.github/workflows/10-test-lint.yaml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||||
with:
|
with:
|
||||||
go-version: 1.22
|
go-version: 1.24
|
||||||
|
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
|
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
|
||||||
|
|||||||
4
.github/workflows/11-test-acceptance.yaml
vendored
4
.github/workflows/11-test-acceptance.yaml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||||
with:
|
with:
|
||||||
go-version: 1.22
|
go-version: 1.24
|
||||||
|
|
||||||
- name: Fetching Go Cache Paths
|
- name: Fetching Go Cache Paths
|
||||||
id: go-cache-paths
|
id: go-cache-paths
|
||||||
@@ -132,7 +132,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
||||||
with:
|
with:
|
||||||
go-version: 1.22
|
go-version: 1.24
|
||||||
|
|
||||||
- name: Prepare for downloads
|
- name: Prepare for downloads
|
||||||
id: prepare-for-downloads
|
id: prepare-for-downloads
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/turbot/pipe-fittings/v2/constants"
|
"github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func generateCompletionScriptsCmd() *cobra.Command {
|
func generateCompletionScriptsCmd() *cobra.Command {
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import (
|
|||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/pipes"
|
"github.com/turbot/pipe-fittings/v2/pipes"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
func loginCmd() *cobra.Command {
|
func loginCmd() *cobra.Command {
|
||||||
|
|||||||
@@ -22,15 +22,15 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/pipe-fittings/v2/versionfile"
|
"github.com/turbot/pipe-fittings/v2/versionfile"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_local"
|
"github.com/turbot/steampipe/v2/pkg/db/db_local"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/installationstate"
|
"github.com/turbot/steampipe/v2/pkg/installationstate"
|
||||||
"github.com/turbot/steampipe/pkg/ociinstaller"
|
"github.com/turbot/steampipe/v2/pkg/ociinstaller"
|
||||||
"github.com/turbot/steampipe/pkg/plugin"
|
"github.com/turbot/steampipe/v2/pkg/plugin"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
type installedPlugin struct {
|
type installedPlugin struct {
|
||||||
|
|||||||
@@ -16,12 +16,12 @@ import (
|
|||||||
"github.com/turbot/go-kit/types"
|
"github.com/turbot/go-kit/types"
|
||||||
sdklogging "github.com/turbot/steampipe-plugin-sdk/v5/logging"
|
sdklogging "github.com/turbot/steampipe-plugin-sdk/v5/logging"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
|
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
"github.com/turbot/steampipe/pkg/connection"
|
"github.com/turbot/steampipe/v2/pkg/connection"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
"github.com/turbot/steampipe/pkg/pluginmanager_service"
|
"github.com/turbot/steampipe/v2/pkg/pluginmanager_service"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func pluginManagerCmd() *cobra.Command {
|
func pluginManagerCmd() *cobra.Command {
|
||||||
|
|||||||
12
cmd/query.go
12
cmd/query.go
@@ -16,12 +16,12 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/contexthelpers"
|
"github.com/turbot/pipe-fittings/v2/contexthelpers"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/query"
|
"github.com/turbot/steampipe/v2/pkg/query"
|
||||||
"github.com/turbot/steampipe/pkg/query/queryexecute"
|
"github.com/turbot/steampipe/v2/pkg/query/queryexecute"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
// variable used to assign the timing mode flag
|
// variable used to assign the timing mode flag
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/app_specific"
|
"github.com/turbot/pipe-fittings/v2/app_specific"
|
||||||
"github.com/turbot/pipe-fittings/v2/constants"
|
"github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
var exitCode int
|
var exitCode int
|
||||||
|
|||||||
@@ -18,14 +18,14 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/querydisplay"
|
"github.com/turbot/pipe-fittings/v2/querydisplay"
|
||||||
putils "github.com/turbot/pipe-fittings/v2/utils"
|
putils "github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_local"
|
"github.com/turbot/steampipe/v2/pkg/db/db_local"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
"github.com/turbot/steampipe/pkg/pluginmanager"
|
"github.com/turbot/steampipe/v2/pkg/pluginmanager"
|
||||||
pb "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/proto"
|
pb "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/proto"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func serviceCmd() *cobra.Command {
|
func serviceCmd() *cobra.Command {
|
||||||
|
|||||||
6
go.mod
6
go.mod
@@ -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
|
toolchain go1.24.0
|
||||||
|
|
||||||
@@ -33,7 +33,6 @@ require (
|
|||||||
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
|
||||||
github.com/olekukonko/tablewriter v0.0.5
|
github.com/olekukonko/tablewriter v0.0.5
|
||||||
github.com/opencontainers/image-spec v1.1.1
|
github.com/opencontainers/image-spec v1.1.1
|
||||||
github.com/otiai10/copy v1.14.1
|
|
||||||
github.com/pkg/errors v0.9.1
|
github.com/pkg/errors v0.9.1
|
||||||
github.com/sethvargo/go-retry v0.3.0
|
github.com/sethvargo/go-retry v0.3.0
|
||||||
github.com/shiena/ansicolor v0.0.0-20230509054315-a9deabde6e02
|
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/go-viper/mapstructure/v2 v2.2.1 // indirect
|
||||||
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
|
github.com/logrusorgru/aurora v2.0.3+incompatible // indirect
|
||||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // 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/pkg/term v1.1.0 // indirect
|
||||||
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
|
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
|
||||||
github.com/prometheus/client_golang v1.21.1 // indirect
|
github.com/prometheus/client_golang v1.21.1 // indirect
|
||||||
|
|||||||
4
go.sum
4
go.sum
@@ -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/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 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
|
||||||
github.com/opencontainers/image-spec v1.1.1/go.mod h1:qpqAh3Dmcf36wStyyWU+kCeDgrGnAve2nCC8+7h8Q0M=
|
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 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M=
|
||||||
github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc=
|
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=
|
github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY=
|
||||||
|
|||||||
10
main.go
10
main.go
@@ -14,11 +14,11 @@ import (
|
|||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/turbot/go-kit/helpers"
|
"github.com/turbot/go-kit/helpers"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/cmd"
|
"github.com/turbot/steampipe/v2/cmd"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
localconstants "github.com/turbot/steampipe/pkg/constants"
|
localconstants "github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
var exitCode int = constants.ExitCodeSuccessful
|
var exitCode int = constants.ExitCodeSuccessful
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/turbot/go-kit/files"
|
"github.com/turbot/go-kit/files"
|
||||||
"github.com/turbot/pipe-fittings/v2/app_specific"
|
"github.com/turbot/pipe-fittings/v2/app_specific"
|
||||||
"github.com/turbot/pipe-fittings/v2/error_helpers"
|
"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
|
// SetAppSpecificConstants sets app specific constants defined in pipe-fittings
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
type CmdBuilder struct {
|
type CmdBuilder struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/fatih/color"
|
"github.com/fatih/color"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/viper"
|
"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()
|
var requiredColor = color.New(color.Bold).SprintfFunc()
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ import (
|
|||||||
sdklogging "github.com/turbot/steampipe-plugin-sdk/v5/logging"
|
sdklogging "github.com/turbot/steampipe-plugin-sdk/v5/logging"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
|
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants/runtime"
|
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
"github.com/turbot/steampipe/pkg/task"
|
"github.com/turbot/steampipe/v2/pkg/task"
|
||||||
)
|
)
|
||||||
|
|
||||||
var waitForTasksChannel chan struct{}
|
var waitForTasksChannel chan struct{}
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DisplayConfig prints all config set via WorkspaceProfile or HCL options
|
// DisplayConfig prints all config set via WorkspaceProfile or HCL options
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/pipes"
|
"github.com/turbot/pipe-fittings/v2/pipes"
|
||||||
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
|
"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 {
|
func ValidateSnapshotArgs(ctx context.Context) error {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import (
|
|||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/parse"
|
"github.com/turbot/pipe-fittings/v2/parse"
|
||||||
"github.com/turbot/pipe-fittings/v2/workspace_profile"
|
"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
|
// Viper fetches the global viper instance
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ import (
|
|||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgxpool"
|
"github.com/jackc/pgx/v5/pgxpool"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_local"
|
"github.com/turbot/steampipe/v2/pkg/db/db_local"
|
||||||
"github.com/turbot/steampipe/pkg/introspection"
|
"github.com/turbot/steampipe/v2/pkg/introspection"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
type connectionStateTableUpdater struct {
|
type connectionStateTableUpdater struct {
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"github.com/turbot/go-kit/filewatcher"
|
"github.com/turbot/go-kit/filewatcher"
|
||||||
"github.com/turbot/go-kit/helpers"
|
"github.com/turbot/go-kit/helpers"
|
||||||
"github.com/turbot/pipe-fittings/v2/filepaths"
|
"github.com/turbot/pipe-fittings/v2/filepaths"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConnectionWatcher struct {
|
type ConnectionWatcher struct {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/error_helpers"
|
"github.com/turbot/pipe-fittings/v2/error_helpers"
|
||||||
"github.com/turbot/pipe-fittings/v2/plugin"
|
"github.com/turbot/pipe-fittings/v2/plugin"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
|
"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 {
|
type pluginManager interface {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/turbot/go-kit/helpers"
|
"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
|
// only allow one execution of refresh connections
|
||||||
|
|||||||
@@ -21,12 +21,12 @@ import (
|
|||||||
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
|
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
|
"github.com/turbot/steampipe-plugin-sdk/v5/plugin"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_local"
|
"github.com/turbot/steampipe/v2/pkg/db/db_local"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/introspection"
|
"github.com/turbot/steampipe/v2/pkg/introspection"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
"golang.org/x/exp/maps"
|
"golang.org/x/exp/maps"
|
||||||
"golang.org/x/sync/semaphore"
|
"golang.org/x/sync/semaphore"
|
||||||
)
|
)
|
||||||
@@ -204,7 +204,7 @@ func (s *refreshConnectionState) setFailedConnectionsToError(ctx context.Context
|
|||||||
|
|
||||||
for _, c := range s.connectionUpdates.FinalConnectionState {
|
for _, c := range s.connectionUpdates.FinalConnectionState {
|
||||||
if c.State == constants.ConnectionStateError {
|
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")
|
return sperr.WrapWithMessage(err, "failed to update connection state table")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package connection_sync
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WaitForSearchPathSchemas identifies the first connection in the search path for each plugin,
|
// WaitForSearchPathSchemas identifies the first connection in the search path for each plugin,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/turbot/go-kit/helpers"
|
"github.com/turbot/go-kit/helpers"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ import (
|
|||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/serversettings"
|
"github.com/turbot/steampipe/v2/pkg/serversettings"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
"golang.org/x/exp/maps"
|
"golang.org/x/exp/maps"
|
||||||
"golang.org/x/sync/semaphore"
|
"golang.org/x/sync/semaphore"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants/runtime"
|
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ import (
|
|||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
pqueryresult "github.com/turbot/pipe-fittings/v2/queryresult"
|
pqueryresult "github.com/turbot/pipe-fittings/v2/queryresult"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/query/queryresult"
|
"github.com/turbot/steampipe/v2/pkg/query/queryresult"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
"golang.org/x/text/language"
|
"golang.org/x/text/language"
|
||||||
"golang.org/x/text/message"
|
"golang.org/x/text/message"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -9,10 +9,10 @@ import (
|
|||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/sethvargo/go-retry"
|
"github.com/sethvargo/go-retry"
|
||||||
typehelpers "github.com/turbot/go-kit/types"
|
typehelpers "github.com/turbot/go-kit/types"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"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
|
// execute query - if it fails with a "relation not found" error, determine whether this is because the required schema
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/turbot/go-kit/helpers"
|
"github.com/turbot/go-kit/helpers"
|
||||||
"github.com/turbot/pipe-fittings/v2/constants"
|
"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
|
// SetRequiredSessionSearchPath implements Client
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/jackc/pgx/v5/pgxpool"
|
"github.com/jackc/pgx/v5/pgxpool"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/turbot/pipe-fittings/v2/constants"
|
"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) {
|
func (c *DbClient) AcquireManagementConnection(ctx context.Context) (*pgxpool.Conn, error) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package db_common
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
func IsClientAppName(appName string) bool {
|
func IsClientAppName(appName string) bool {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"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
|
// SetCacheTtl set the cache ttl on the client
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/jackc/pgx/v5/pgconn"
|
||||||
"github.com/jackc/pgx/v5/pgxpool"
|
"github.com/jackc/pgx/v5/pgxpool"
|
||||||
pqueryresult "github.com/turbot/pipe-fittings/v2/queryresult"
|
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 {
|
type Client interface {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"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
|
// ExecuteQuery executes a single query. If shutdownAfterCompletion is true, shutdown the client after completion
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
package db_common
|
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
|
// Functions is a list of SQLFunction objects that are installed in the db 'steampipe_internal' schema startup
|
||||||
var Functions = []SQLFunction{
|
var Functions = []SQLFunction{
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
type InitResult struct {
|
type InitResult struct {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package db_common
|
|||||||
import (
|
import (
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
func MaxDbConnections() int {
|
func MaxDbConnections() int {
|
||||||
|
|||||||
@@ -10,8 +10,8 @@ import (
|
|||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/jackc/pgx/v5/pgconn"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
type NotificationListener struct {
|
type NotificationListener struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
typeHelpers "github.com/turbot/go-kit/types"
|
typeHelpers "github.com/turbot/go-kit/types"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
type schemaRecord struct {
|
type schemaRecord struct {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/turbot/go-kit/helpers"
|
"github.com/turbot/go-kit/helpers"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
func EnsureInternalSchemaSuffix(searchPath []string) []string {
|
func EnsureInternalSchemaSuffix(searchPath []string) []string {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants/runtime"
|
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SystemClientExecutor is the executor function that is called within a transaction
|
// SystemClientExecutor is the executor function that is called within a transaction
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package db_common
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"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 {
|
func AddRootCertToConfig(config *pgconn.Config, certLocation string) error {
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ import (
|
|||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/sethvargo/go-retry"
|
"github.com/sethvargo/go-retry"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ErrServiceInRecoveryMode = errors.New("service is in recovery mode")
|
var ErrServiceInRecoveryMode = errors.New("service is in recovery mode")
|
||||||
|
|||||||
@@ -17,9 +17,9 @@ import (
|
|||||||
"github.com/turbot/go-kit/files"
|
"github.com/turbot/go-kit/files"
|
||||||
"github.com/turbot/pipe-fittings/v2/app_specific"
|
"github.com/turbot/pipe-fittings/v2/app_specific"
|
||||||
putils "github.com/turbot/pipe-fittings/v2/utils"
|
putils "github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
@@ -9,8 +9,8 @@ import (
|
|||||||
|
|
||||||
filehelpers "github.com/turbot/go-kit/files"
|
filehelpers "github.com/turbot/go-kit/files"
|
||||||
"github.com/turbot/pipe-fittings/v2/app_specific"
|
"github.com/turbot/pipe-fittings/v2/app_specific"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestTrimBackups(t *testing.T) {
|
func TestTrimBackups(t *testing.T) {
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ import (
|
|||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
putils "github.com/turbot/pipe-fittings/v2/utils"
|
putils "github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants/runtime"
|
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getLocalSteampipeConnectionString(opts *CreateDbOptions) (string, error) {
|
func getLocalSteampipeConnectionString(opts *CreateDbOptions) (string, error) {
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/jackc/pgx/v5/pgconn"
|
"github.com/jackc/pgx/v5/pgconn"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func executeSqlAsRoot(ctx context.Context, statements ...string) ([]pgconn.CommandTag, error) {
|
func executeSqlAsRoot(ctx context.Context, statements ...string) ([]pgconn.CommandTag, error) {
|
||||||
|
|||||||
@@ -17,11 +17,11 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/app_specific"
|
"github.com/turbot/pipe-fittings/v2/app_specific"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
putils "github.com/turbot/pipe-fittings/v2/utils"
|
putils "github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
"github.com/turbot/steampipe/pkg/ociinstaller"
|
"github.com/turbot/steampipe/v2/pkg/ociinstaller"
|
||||||
"github.com/turbot/steampipe/pkg/ociinstaller/versionfile"
|
"github.com/turbot/steampipe/v2/pkg/ociinstaller/versionfile"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ensureMux sync.Mutex
|
var ensureMux sync.Mutex
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ import (
|
|||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/introspection"
|
"github.com/turbot/steampipe/v2/pkg/introspection"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
// dropLegacyInternalSchema looks for a schema named 'internal'
|
// dropLegacyInternalSchema looks for a schema named 'internal'
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ import (
|
|||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/error_helpers"
|
"github.com/turbot/pipe-fittings/v2/error_helpers"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_client"
|
"github.com/turbot/steampipe/v2/pkg/db/db_client"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
pb "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/proto"
|
pb "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/proto"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LocalDbClient wraps over DbClient
|
// LocalDbClient wraps over DbClient
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
)
|
)
|
||||||
|
|
||||||
const logRetentionDays = 7
|
const logRetentionDays = 7
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"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
|
// SendPostgresNotification send a postgres notification that the schema has chganged
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
filehelpers "github.com/turbot/go-kit/files"
|
filehelpers "github.com/turbot/go-kit/files"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"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
|
// Passwords :: structure for working with DB passwords
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/turbot/pipe-fittings/v2/app_specific"
|
"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
|
// test used for debug purposes to replicate `tuple concurrently updated` DB error
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
filehelpers "github.com/turbot/go-kit/files"
|
filehelpers "github.com/turbot/go-kit/files"
|
||||||
"github.com/turbot/go-kit/helpers"
|
"github.com/turbot/go-kit/helpers"
|
||||||
putils "github.com/turbot/pipe-fittings/v2/utils"
|
putils "github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
)
|
)
|
||||||
|
|
||||||
const RunningDBStructVersion = 20220411
|
const RunningDBStructVersion = 20220411
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
"github.com/jackc/pgx/v5/pgxpool"
|
"github.com/jackc/pgx/v5/pgxpool"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
"github.com/turbot/pipe-fittings/v2/modconfig"
|
"github.com/turbot/pipe-fittings/v2/modconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func SetUserSearchPath(ctx context.Context, pool *pgxpool.Pool) ([]string, error) {
|
func SetUserSearchPath(ctx context.Context, pool *pgxpool.Pool) ([]string, error) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"github.com/jackc/pgx/v5"
|
"github.com/jackc/pgx/v5"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/serversettings"
|
"github.com/turbot/steampipe/v2/pkg/serversettings"
|
||||||
)
|
)
|
||||||
|
|
||||||
// setupServerSettingsTable creates a new read-only table with information in the current
|
// setupServerSettingsTable creates a new read-only table with information in the current
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
filehelpers "github.com/turbot/go-kit/files"
|
filehelpers "github.com/turbot/go-kit/files"
|
||||||
"github.com/turbot/pipe-fittings/v2/constants"
|
"github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"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
|
// GetState checks that the database instance is running and returns its details
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/constants"
|
"github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/db/sslio"
|
"github.com/turbot/steampipe/v2/pkg/db/sslio"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
@@ -21,12 +21,12 @@ import (
|
|||||||
perror_helpers "github.com/turbot/pipe-fittings/v2/error_helpers"
|
perror_helpers "github.com/turbot/pipe-fittings/v2/error_helpers"
|
||||||
putils "github.com/turbot/pipe-fittings/v2/utils"
|
putils "github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
"github.com/turbot/steampipe/pkg/pluginmanager"
|
"github.com/turbot/steampipe/v2/pkg/pluginmanager"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StartResult is a pseudoEnum for outcomes of StartNewInstance
|
// StartResult is a pseudoEnum for outcomes of StartNewInstance
|
||||||
|
|||||||
@@ -11,14 +11,14 @@ import (
|
|||||||
|
|
||||||
psutils "github.com/shirou/gopsutil/process"
|
psutils "github.com/shirou/gopsutil/process"
|
||||||
putils "github.com/turbot/pipe-fittings/v2/utils"
|
putils "github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants/runtime"
|
"github.com/turbot/steampipe/v2/pkg/constants/runtime"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
"github.com/turbot/steampipe/pkg/pluginmanager"
|
"github.com/turbot/steampipe/v2/pkg/pluginmanager"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
"github.com/turbot/steampipe/pkg/utils"
|
"github.com/turbot/steampipe/v2/pkg/utils"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StopStatus is a pseudoEnum for service stop result
|
// StopStatus is a pseudoEnum for service stop result
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
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/language"
|
||||||
"golang.org/x/text/message"
|
"golang.org/x/text/message"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,13 +3,14 @@ package error_helpers
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/jackc/pgconn"
|
"github.com/jackc/pgconn"
|
||||||
)
|
)
|
||||||
|
|
||||||
func DecodePgError(err error) error {
|
func DecodePgError(err error) error {
|
||||||
var pgError *pgconn.PgError
|
var pgError *pgconn.PgError
|
||||||
if errors.As(err, &pgError) {
|
if errors.As(err, &pgError) {
|
||||||
return fmt.Errorf(pgError.Message)
|
return fmt.Errorf("%s", pgError.Message)
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/shiena/ansicolor"
|
"github.com/shiena/ansicolor"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
@@ -82,7 +82,7 @@ func TransformErrorToSteampipe(err error) error {
|
|||||||
errString = strings.TrimPrefix(errString, "rpc error: code = Unknown desc =")
|
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
|
// 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{}{}
|
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 {
|
func allErrorsNil(errors ...error) bool {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
"golang.org/x/exp/maps"
|
"golang.org/x/exp/maps"
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
type testExporter struct {
|
type testExporter struct {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
|
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
type SnapshotExporter struct {
|
type SnapshotExporter struct {
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/platform"
|
"github.com/turbot/steampipe/v2/pkg/db/platform"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
func ServiceExecutableRelativeLocation() string {
|
func ServiceExecutableRelativeLocation() string {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
filehelpers "github.com/turbot/go-kit/files"
|
filehelpers "github.com/turbot/go-kit/files"
|
||||||
"github.com/turbot/pipe-fittings/v2/app_specific"
|
"github.com/turbot/pipe-fittings/v2/app_specific"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Constants for Config
|
// Constants for Config
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/constants"
|
"github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/pipes"
|
"github.com/turbot/pipe-fittings/v2/pipes"
|
||||||
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
|
"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) {
|
func getPipesMetadata(ctx context.Context) (*steampipeconfig.PipesMetadata, error) {
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/error_helpers"
|
"github.com/turbot/pipe-fittings/v2/error_helpers"
|
||||||
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
|
"github.com/turbot/pipe-fittings/v2/steampipeconfig"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/telemetry"
|
"github.com/turbot/steampipe-plugin-sdk/v5/telemetry"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_client"
|
"github.com/turbot/steampipe/v2/pkg/db/db_client"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_local"
|
"github.com/turbot/steampipe/v2/pkg/db/db_local"
|
||||||
"github.com/turbot/steampipe/pkg/export"
|
"github.com/turbot/steampipe/v2/pkg/export"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
type InitData struct {
|
type InitData struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
|
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/turbot/go-kit/files"
|
"github.com/turbot/go-kit/files"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
)
|
)
|
||||||
|
|
||||||
const StateStructVersion = 20220411
|
const StateStructVersion = 20220411
|
||||||
|
|||||||
@@ -23,16 +23,16 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/modconfig"
|
"github.com/turbot/pipe-fittings/v2/modconfig"
|
||||||
"github.com/turbot/pipe-fittings/v2/querydisplay"
|
"github.com/turbot/pipe-fittings/v2/querydisplay"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
"github.com/turbot/steampipe/pkg/connection_sync"
|
"github.com/turbot/steampipe/v2/pkg/connection_sync"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/interactive/metaquery"
|
"github.com/turbot/steampipe/v2/pkg/interactive/metaquery"
|
||||||
"github.com/turbot/steampipe/pkg/query"
|
"github.com/turbot/steampipe/v2/pkg/query"
|
||||||
"github.com/turbot/steampipe/pkg/query/queryhistory"
|
"github.com/turbot/steampipe/v2/pkg/query/queryhistory"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AfterPromptCloseAction int
|
type AfterPromptCloseAction int
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"github.com/c-bata/go-prompt"
|
"github.com/c-bata/go-prompt"
|
||||||
"github.com/turbot/go-kit/helpers"
|
"github.com/turbot/go-kit/helpers"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (c *InteractiveClient) initialiseSuggestions(ctx context.Context) error {
|
func (c *InteractiveClient) initialiseSuggestions(ctx context.Context) error {
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/turbot/go-kit/helpers"
|
"github.com/turbot/go-kit/helpers"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/statushooks"
|
"github.com/turbot/steampipe/v2/pkg/statushooks"
|
||||||
)
|
)
|
||||||
|
|
||||||
// init data has arrived, handle any errors/warnings/messages
|
// init data has arrived, handle any errors/warnings/messages
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package metaquery
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
type metaQueryArg struct {
|
type metaQueryArg struct {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"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
|
// controls the cache in the connected FDW
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
// .help
|
// .help
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/c-bata/go-prompt"
|
"github.com/c-bata/go-prompt"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ConnectionStateGetter func(context.Context) (steampipeconfig.ConnectionStateMap, error)
|
type ConnectionStateGetter func(context.Context) (steampipeconfig.ConnectionStateMap, error)
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ import (
|
|||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/querydisplay"
|
"github.com/turbot/pipe-fittings/v2/querydisplay"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
)
|
)
|
||||||
|
|
||||||
// inspect
|
// inspect
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"github.com/turbot/go-kit/helpers"
|
"github.com/turbot/go-kit/helpers"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/querydisplay"
|
"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 {
|
func setOrGetSearchPath(ctx context.Context, input *HandlerInput) error {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
|
|
||||||
typeHelpers "github.com/turbot/go-kit/types"
|
typeHelpers "github.com/turbot/go-kit/types"
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe/pkg/cmdconfig"
|
"github.com/turbot/steampipe/v2/pkg/cmdconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"golang.org/x/exp/maps"
|
"golang.org/x/exp/maps"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
pconstants "github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"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/cases"
|
||||||
"golang.org/x/text/language"
|
"golang.org/x/text/language"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ package interactive
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_local"
|
"github.com/turbot/steampipe/v2/pkg/db/db_local"
|
||||||
"github.com/turbot/steampipe/pkg/error_helpers"
|
"github.com/turbot/steampipe/v2/pkg/error_helpers"
|
||||||
"github.com/turbot/steampipe/pkg/query"
|
"github.com/turbot/steampipe/v2/pkg/query"
|
||||||
"github.com/turbot/steampipe/pkg/query/queryresult"
|
"github.com/turbot/steampipe/v2/pkg/query/queryresult"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RunInteractivePromptResult struct {
|
type RunInteractivePromptResult struct {
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/turbot/pipe-fittings/v2/modconfig"
|
"github.com/turbot/pipe-fittings/v2/modconfig"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
"github.com/turbot/steampipe/pkg/steampipeconfig"
|
"github.com/turbot/steampipe/v2/pkg/steampipeconfig"
|
||||||
"golang.org/x/exp/maps"
|
"golang.org/x/exp/maps"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
|
"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetPluginColumnTableCreateSql() db_common.QueryWithArgs {
|
func GetPluginColumnTableCreateSql() db_common.QueryWithArgs {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/turbot/pipe-fittings/v2/plugin"
|
"github.com/turbot/pipe-fittings/v2/plugin"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetPluginTableCreateSql() db_common.QueryWithArgs {
|
func GetPluginTableCreateSql() db_common.QueryWithArgs {
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/turbot/pipe-fittings/v2/plugin"
|
"github.com/turbot/pipe-fittings/v2/plugin"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/db/db_common"
|
"github.com/turbot/steampipe/v2/pkg/db/db_common"
|
||||||
)
|
)
|
||||||
|
|
||||||
func GetRateLimiterTableCreateSql() db_common.QueryWithArgs {
|
func GetRateLimiterTableCreateSql() db_common.QueryWithArgs {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package ociinstaller
|
|||||||
import (
|
import (
|
||||||
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
type assetsDownloader struct {
|
type assetsDownloader struct {
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
|
|
||||||
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
||||||
"github.com/turbot/pipe-fittings/v2/utils"
|
"github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
versionfile "github.com/turbot/steampipe/pkg/ociinstaller/versionfile"
|
versionfile "github.com/turbot/steampipe/v2/pkg/ociinstaller/versionfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
// InstallDB :: Install Postgres files fom OCI image
|
// InstallDB :: Install Postgres files fom OCI image
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
type dbDownloader struct {
|
type dbDownloader struct {
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ import (
|
|||||||
|
|
||||||
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
||||||
putils "github.com/turbot/pipe-fittings/v2/utils"
|
putils "github.com/turbot/pipe-fittings/v2/utils"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
"github.com/turbot/steampipe/pkg/ociinstaller/versionfile"
|
"github.com/turbot/steampipe/v2/pkg/ociinstaller/versionfile"
|
||||||
)
|
)
|
||||||
|
|
||||||
// InstallFdw installs the Steampipe Postgres foreign data wrapper from an OCI image
|
// InstallFdw installs the Steampipe Postgres foreign data wrapper from an OCI image
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
"github.com/turbot/pipe-fittings/v2/ociinstaller"
|
||||||
"github.com/turbot/steampipe/pkg/constants"
|
"github.com/turbot/steampipe/v2/pkg/constants"
|
||||||
)
|
)
|
||||||
|
|
||||||
type fdwDownloader struct {
|
type fdwDownloader struct {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
filehelpers "github.com/turbot/go-kit/files"
|
filehelpers "github.com/turbot/go-kit/files"
|
||||||
"github.com/turbot/pipe-fittings/v2/versionfile"
|
"github.com/turbot/pipe-fittings/v2/versionfile"
|
||||||
"github.com/turbot/steampipe/pkg/filepaths"
|
"github.com/turbot/steampipe/v2/pkg/filepaths"
|
||||||
)
|
)
|
||||||
|
|
||||||
const DatabaseStructVersion = 20220411
|
const DatabaseStructVersion = 20220411
|
||||||
|
|||||||
@@ -16,9 +16,9 @@ import (
|
|||||||
"github.com/turbot/pipe-fittings/v2/constants"
|
"github.com/turbot/pipe-fittings/v2/constants"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/logging"
|
"github.com/turbot/steampipe-plugin-sdk/v5/logging"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
"github.com/turbot/steampipe-plugin-sdk/v5/sperr"
|
||||||
"github.com/turbot/steampipe/pkg/pluginmanager_service/grpc"
|
"github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc"
|
||||||
pb "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/proto"
|
pb "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/proto"
|
||||||
pluginshared "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/shared"
|
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
|
// StartNewInstance loads the plugin manager state, stops any previous instance and instantiates a new plugin manager
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"github.com/hashicorp/go-plugin"
|
"github.com/hashicorp/go-plugin"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/grpc"
|
"github.com/turbot/steampipe-plugin-sdk/v5/grpc"
|
||||||
"github.com/turbot/steampipe-plugin-sdk/v5/logging"
|
"github.com/turbot/steampipe-plugin-sdk/v5/logging"
|
||||||
pb "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/proto"
|
pb "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/proto"
|
||||||
pluginshared "github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/shared"
|
pluginshared "github.com/turbot/steampipe/v2/pkg/pluginmanager_service/grpc/shared"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PluginManagerClient is the client used by steampipe to access the plugin manager
|
// 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
Reference in New Issue
Block a user