Skip to content

Commit

Permalink
Update all references to use github.com/turbot/steampipe-plugin-sdk/v2.
Browse files Browse the repository at this point in the history
Closes #272
  • Loading branch information
kaidaguerre committed Feb 14, 2022
1 parent b5e7800 commit 39eba0e
Show file tree
Hide file tree
Showing 37 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion cache/index_bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cache
import (
"log"

"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

// IndexBucket contains index items for all cache results for a given table and qual set
Expand Down
2 changes: 1 addition & 1 deletion cache/index_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

// IndexItem stores the columns and cached index for a single cached query result
Expand Down
4 changes: 2 additions & 2 deletions cache/query_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (

"github.com/dgraph-io/ristretto"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/grpc"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

// TODO do not use unsafe quals use quals map and remove key column qual logic
Expand Down
2 changes: 1 addition & 1 deletion cache/query_cache_pending.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"time"

"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

const pendingQueryTimeout = 90 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion cache/query_result.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cache

import (
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

type QueryCacheResult struct {
Expand Down
6 changes: 3 additions & 3 deletions grpc/pluginClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-plugin"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
pluginshared "github.com/turbot/steampipe-plugin-sdk/grpc/shared"
"github.com/turbot/steampipe-plugin-sdk/logging"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
pluginshared "github.com/turbot/steampipe-plugin-sdk/v2/grpc/shared"
"github.com/turbot/steampipe-plugin-sdk/v2/logging"
)

// PluginClient is the client object used by clients of the plugin
Expand Down
6 changes: 3 additions & 3 deletions grpc/pluginServer.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"github.com/turbot/go-kit/helpers"

"github.com/hashicorp/go-plugin"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
pluginshared "github.com/turbot/steampipe-plugin-sdk/grpc/shared"
"github.com/turbot/steampipe-plugin-sdk/version"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
pluginshared "github.com/turbot/steampipe-plugin-sdk/v2/grpc/shared"
"github.com/turbot/steampipe-plugin-sdk/v2/version"
)

type PluginSchema struct {
Expand Down
2 changes: 1 addition & 1 deletion grpc/quals.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion grpc/shared/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package shared
import (
"context"

"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

// GRPCClient is an implementation of
Expand Down
2 changes: 1 addition & 1 deletion grpc/shared/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"context"

"github.com/hashicorp/go-plugin"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
"google.golang.org/grpc"
)

Expand Down
4 changes: 2 additions & 2 deletions plugin/column.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package plugin

import (
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/plugin/transform"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/transform"
)

// Column is a struct representing a column defintion
Expand Down
2 changes: 1 addition & 1 deletion plugin/connection_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/hashicorp/hcl/v2/hcldec"
"github.com/hashicorp/hcl/v2/hclparse"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/plugin/schema"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/schema"
"github.com/zclconf/go-cty/cty/gocty"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
2 changes: 1 addition & 1 deletion plugin/connection_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package plugin
import (
"fmt"

"github.com/turbot/steampipe-plugin-sdk/plugin/schema"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/schema"

"reflect"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion plugin/connection_config_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/turbot/go-kit/helpers"

"github.com/turbot/steampipe-plugin-sdk/plugin/schema"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/schema"
)

// Validate validates the connection config
Expand Down
2 changes: 1 addition & 1 deletion plugin/connection_config_validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package plugin
import (
"fmt"

"github.com/turbot/steampipe-plugin-sdk/plugin/schema"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/schema"

"reflect"
"testing"
Expand Down
2 changes: 1 addition & 1 deletion plugin/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"errors"

"github.com/turbot/steampipe-plugin-sdk/plugin/context_key"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/context_key"

"github.com/hashicorp/go-hclog"
)
Expand Down
2 changes: 1 addition & 1 deletion plugin/key_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/gertd/go-pluralize"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion plugin/key_column_qual.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package plugin

import (
"github.com/turbot/steampipe-plugin-sdk/plugin/quals"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/quals"

"github.com/turbot/go-kit/helpers"
)
Expand Down
6 changes: 3 additions & 3 deletions plugin/key_column_qual_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"log"
"strings"

"github.com/turbot/steampipe-plugin-sdk/grpc"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc"

"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/plugin/quals"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/quals"
)

// KeyColumnQualMap is a map of KeyColumnQuals keyed by column name
Expand Down
4 changes: 2 additions & 2 deletions plugin/key_column_qual_value_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"strings"

"github.com/turbot/steampipe-plugin-sdk/grpc"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

// KeyColumnEqualsQualMap is a map of column name to qual value, used to represent a map of any equals quals
Expand Down
2 changes: 1 addition & 1 deletion plugin/key_column_slice.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package plugin
import (
"strings"

"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

type KeyColumnSlice []*KeyColumn
Expand Down
16 changes: 8 additions & 8 deletions plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import (

"github.com/hashicorp/go-hclog"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/cache"
connection_manager "github.com/turbot/steampipe-plugin-sdk/connection"
"github.com/turbot/steampipe-plugin-sdk/grpc"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/logging"
"github.com/turbot/steampipe-plugin-sdk/plugin/context_key"
"github.com/turbot/steampipe-plugin-sdk/plugin/os_specific"
"github.com/turbot/steampipe-plugin-sdk/plugin/transform"
"github.com/turbot/steampipe-plugin-sdk/v2/cache"
connection_manager "github.com/turbot/steampipe-plugin-sdk/v2/connection"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/logging"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/context_key"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/os_specific"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/transform"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"testing"

"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

type validateTest struct {
Expand Down
2 changes: 1 addition & 1 deletion plugin/quals/qual.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package quals

import (
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

// Qual is a struct which represents a database qual in a more easily digestible form that proto.Qual
Expand Down
2 changes: 1 addition & 1 deletion plugin/query_context.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package plugin

import (
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

type QueryContext struct {
Expand Down
10 changes: 5 additions & 5 deletions plugin/query_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (

"github.com/turbot/go-kit/helpers"
typehelpers "github.com/turbot/go-kit/types"
connection_manager "github.com/turbot/steampipe-plugin-sdk/connection"
"github.com/turbot/steampipe-plugin-sdk/grpc"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/logging"
"github.com/turbot/steampipe-plugin-sdk/plugin/quals"
connection_manager "github.com/turbot/steampipe-plugin-sdk/v2/connection"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/logging"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/quals"
)

const itemBufferSize = 100
Expand Down
6 changes: 3 additions & 3 deletions plugin/row.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"sync"
"time"

"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/logging"
"github.com/turbot/steampipe-plugin-sdk/plugin/context_key"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/logging"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/context_key"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down
6 changes: 3 additions & 3 deletions plugin/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"

"github.com/hashicorp/go-hclog"
"github.com/turbot/steampipe-plugin-sdk/grpc"
"github.com/turbot/steampipe-plugin-sdk/logging"
"github.com/turbot/steampipe-plugin-sdk/plugin/context_key"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc"
"github.com/turbot/steampipe-plugin-sdk/v2/logging"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/context_key"
)

// ServeOpts are the configurations to serve a plugin.
Expand Down
2 changes: 1 addition & 1 deletion plugin/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/plugin/transform"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/transform"
)

type MatrixItemFunc func(context.Context, *Connection) []map[string]interface{}
Expand Down
4 changes: 2 additions & 2 deletions plugin/table_column.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/golang/protobuf/ptypes"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/go-kit/types"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/plugin/transform"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/transform"
)

// get the column object with the given name
Expand Down
10 changes: 5 additions & 5 deletions plugin/table_fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (

"github.com/gertd/go-pluralize"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/grpc"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/logging"
"github.com/turbot/steampipe-plugin-sdk/plugin/context_key"
"github.com/turbot/steampipe-plugin-sdk/plugin/quals"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/logging"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/context_key"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/quals"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
2 changes: 1 addition & 1 deletion plugin/table_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package plugin
import (
"fmt"

"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

const ContextColumnName = "_ctx"
Expand Down
2 changes: 1 addition & 1 deletion plugin/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"testing"

"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

//// isGet ////
Expand Down
2 changes: 1 addition & 1 deletion plugin/table_validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/stevenle/topsort"
"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/grpc/proto"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc/proto"
)

func (t *Table) validate(name string, requiredColumns []*Column) []string {
Expand Down
2 changes: 1 addition & 1 deletion plugin/transform/column_transforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"log"

"github.com/turbot/steampipe-plugin-sdk/plugin/quals"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/quals"
)

// TransformData is the input to a transform function.
Expand Down
2 changes: 1 addition & 1 deletion plugin/transform/primitives.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"
"unicode"

"github.com/turbot/steampipe-plugin-sdk/grpc"
"github.com/turbot/steampipe-plugin-sdk/v2/grpc"

"github.com/ghodss/yaml"
"github.com/iancoleman/strcase"
Expand Down
2 changes: 1 addition & 1 deletion plugin/transform/transform_call.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"log"

"github.com/turbot/go-kit/helpers"
"github.com/turbot/steampipe-plugin-sdk/plugin/context_key"
"github.com/turbot/steampipe-plugin-sdk/v2/plugin/context_key"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
Expand Down

0 comments on commit 39eba0e

Please sign in to comment.