chore: run goimports on 1.8 branch to bring it up to new check-in standards (#20907)
Also manually edit imports section to meet our more granular conventions within the strictures of goimports.pull/20910/head
parent
b2cb862484
commit
54d8d0180d
_tools/tmpl
cmd
influx_tools/internal/format/binary
influx_tsm/tsdb/internal
influxd/backup_util
internal
flux/stdlib/influxdata/influxdb/v1
pkg/tracing/wire
prometheus/remote
query/internal
services
meta/internal
storage
storage/reads/datatypes
tsdb
engine/tsm1
internal
|
@ -248,4 +248,4 @@ func StripComments(raw []byte) []byte {
|
|||
}
|
||||
|
||||
return buf.Bytes()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,4 +54,4 @@ func TestStripComments(t *testing.T) {
|
|||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,14 +21,19 @@
|
|||
*/
|
||||
package binary
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
import time "time"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
import io "io"
|
||||
math "math"
|
||||
|
||||
_ "github.com/gogo/protobuf/gogoproto"
|
||||
|
||||
time "time"
|
||||
|
||||
io "io"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
|
|
@ -15,9 +15,13 @@ It has these top-level messages:
|
|||
*/
|
||||
package internal
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
|
|
@ -6,15 +6,15 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/gogo/protobuf/proto"
|
||||
internal "github.com/influxdata/influxdb/cmd/influxd/backup_util/internal"
|
||||
"github.com/influxdata/influxdb/services/snapshotter"
|
||||
"io/ioutil"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
//go:generate protoc --gogo_out=. internal/data.proto
|
||||
|
|
|
@ -13,9 +13,13 @@ It has these top-level messages:
|
|||
*/
|
||||
package backup_util
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/influxdata/flux/execute"
|
||||
"github.com/influxdata/flux/memory"
|
||||
"github.com/influxdata/flux/plan"
|
||||
"github.com/influxdata/flux/stdlib/influxdata/influxdb/v1"
|
||||
v1 "github.com/influxdata/flux/stdlib/influxdata/influxdb/v1"
|
||||
"github.com/influxdata/flux/values"
|
||||
"github.com/influxdata/influxdb/flux/stdlib/influxdata/influxdb"
|
||||
"github.com/influxdata/influxdb/services/meta"
|
||||
|
|
|
@ -15,17 +15,23 @@
|
|||
*/
|
||||
package wire
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
import _ "github.com/gogo/protobuf/types"
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
import time "time"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
import github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
|
||||
math "math"
|
||||
|
||||
import io "io"
|
||||
_ "github.com/gogo/protobuf/gogoproto"
|
||||
|
||||
_ "github.com/gogo/protobuf/types"
|
||||
|
||||
time "time"
|
||||
|
||||
github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
|
||||
|
||||
io "io"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
|
|
@ -21,11 +21,15 @@
|
|||
*/
|
||||
package remote
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
import io "io"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
math "math"
|
||||
|
||||
io "io"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
|
|
@ -19,9 +19,13 @@ It has these top-level messages:
|
|||
*/
|
||||
package query
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
|
|
@ -55,9 +55,13 @@ It has these top-level messages:
|
|||
*/
|
||||
package meta
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
|
|
@ -12,12 +12,17 @@
|
|||
*/
|
||||
package storage
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "github.com/gogo/protobuf/gogoproto"
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
import io "io"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
math "math"
|
||||
|
||||
_ "github.com/gogo/protobuf/gogoproto"
|
||||
|
||||
io "io"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
|
|
@ -6,10 +6,11 @@ package datatypes
|
|||
import (
|
||||
encoding_binary "encoding/binary"
|
||||
fmt "fmt"
|
||||
_ "github.com/gogo/protobuf/gogoproto"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
io "io"
|
||||
math "math"
|
||||
|
||||
_ "github.com/gogo/protobuf/gogoproto"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
|
|
@ -7,12 +7,13 @@ import (
|
|||
context "context"
|
||||
encoding_binary "encoding/binary"
|
||||
fmt "fmt"
|
||||
io "io"
|
||||
math "math"
|
||||
|
||||
_ "github.com/gogo/protobuf/gogoproto"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
types "github.com/gogo/protobuf/types"
|
||||
grpc "google.golang.org/grpc"
|
||||
io "io"
|
||||
math "math"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
influx "github.com/influxdata/influxdb/client/v2"
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
"github.com/influxdata/influxdb/stress/v2/stressql"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package statement
|
|||
import (
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
// ExecStatement run outside scripts. This functionality is not built out
|
||||
|
|
|
@ -3,7 +3,7 @@ package statement
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
func TestExecSetID(t *testing.T) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
// GoStatement is a Statement Implementation to allow other statements to be run concurrently
|
||||
|
|
|
@ -3,7 +3,7 @@ package statement
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
func TestGoSetID(t *testing.T) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
// InfluxqlStatement is a Statement Implementation that allows statements that parse in InfluxQL to be passed directly to the target instance
|
||||
|
|
|
@ -3,7 +3,7 @@ package statement
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
func TestInfluxQlSetID(t *testing.T) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
// InsertStatement is a Statement Implementation that creates points to be written to the target InfluxDB instance
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
func TestInsertSetID(t *testing.T) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
// QueryStatement is a Statement Implementation to run queries on the target InfluxDB instance
|
||||
|
|
|
@ -3,7 +3,7 @@ package statement
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
func TestQuerySetID(t *testing.T) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
// SetStatement set state variables for the test
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
func TestSetSetID(t *testing.T) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"log"
|
||||
"strconv"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
// Statement is the common interface to shape the testing environment and prepare database requests
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
// WaitStatement is a Statement Implementation to prevent the test from returning to early when running GoStatements
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
stressClient "github.com/influxdata/influxdb/stress/v2/stress_client"
|
||||
)
|
||||
|
||||
func TestWaitSetID(t *testing.T) {
|
||||
|
|
|
@ -1,19 +1,18 @@
|
|||
package tests
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/influxdb/cmd/influxd/backup"
|
||||
"github.com/influxdata/influxdb/cmd/influxd/restore"
|
||||
"github.com/influxdata/influxdb/toml"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func TestServer_BackupAndRestore(t *testing.T) {
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
package tsm1
|
||||
|
||||
import (
|
||||
"github.com/influxdata/influxdb/logger"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/influxdata/influxdb/tsdb/index/inmem"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/influxdb/logger"
|
||||
"github.com/influxdata/influxdb/models"
|
||||
"github.com/influxdata/influxdb/tsdb"
|
||||
"github.com/influxdata/influxdb/tsdb/index/inmem"
|
||||
)
|
||||
|
||||
func TestEngine_ConcurrentShardSnapshots(t *testing.T) {
|
||||
|
|
|
@ -3,11 +3,15 @@
|
|||
|
||||
package tsdb
|
||||
|
||||
import proto "github.com/gogo/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import (
|
||||
fmt "fmt"
|
||||
|
||||
import io "io"
|
||||
proto "github.com/gogo/protobuf/proto"
|
||||
|
||||
math "math"
|
||||
|
||||
io "io"
|
||||
)
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
|
|
Loading…
Reference in New Issue