chore: rename imports from platform to influxdb

I did this with a dumb editor macro, so some comments changed too.

Also rename root package from platform to influxdb.

In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.

Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
pull/10616/head
Mark Rushakoff 2019-01-07 16:37:16 -08:00
parent c1975c2020
commit d73d73c0d4
730 changed files with 1568 additions and 1624 deletions

View File

@ -3,7 +3,7 @@ jobs:
jstest:
docker:
- image: circleci/golang:1.11-node-browsers
working_directory: /go/src/github.com/influxdata/platform
working_directory: /go/src/github.com/influxdata/influxdb
steps:
- checkout
@ -29,7 +29,7 @@ jobs:
environment:
GOCACHE: /tmp/go-cache
GOFLAGS: "-mod=readonly -p=4" # Go on Circle thinks 32 CPUs are available, but there aren't.
working_directory: /go/src/github.com/influxdata/platform
working_directory: /go/src/github.com/influxdata/influxdb
steps:
- checkout
@ -81,7 +81,7 @@ jobs:
environment:
GOCACHE: /tmp/go-cache
GOFLAGS: "-mod=readonly -p=4" # Go on Circle thinks 32 CPUs are available, but there aren't.
working_directory: /go/src/github.com/influxdata/platform
working_directory: /go/src/github.com/influxdata/influxdb
steps:
- checkout
@ -107,7 +107,7 @@ jobs:
environment:
GOCACHE: /tmp/go-cache
GOFLAGS: "-mod=readonly -p=4" # Go on Circle thinks 32 CPUs are available, but there aren't.
working_directory: /go/src/github.com/influxdata/platform
working_directory: /go/src/github.com/influxdata/influxdb
steps:
- checkout

View File

@ -1,4 +1,4 @@
package platform
package influxdb
import (
"context"

View File

@ -1,4 +1,4 @@
package platform
package influxdb
import (
"errors"

View File

@ -1,9 +1,9 @@
package platform_test
package influxdb_test
import (
"testing"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
func TestAuthorizer_PermissionAllowed(t *testing.T) {

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initAuthorizationService(f platformtesting.AuthorizationFields, t *testing.T) (platform.AuthorizationService, string, func()) {

View File

@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initBasicAuthService(f platformtesting.UserFields, t *testing.T) (platform.BasicAuthService, func()) {

View File

@ -8,9 +8,9 @@ import (
"time"
"github.com/coreos/bbolt"
"github.com/influxdata/platform"
"github.com/influxdata/platform/rand"
"github.com/influxdata/platform/snowflake"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/rand"
"github.com/influxdata/influxdb/snowflake"
"go.uber.org/zap"
)

View File

@ -8,7 +8,7 @@ import (
"path/filepath"
"testing"
"github.com/influxdata/platform/bolt"
"github.com/influxdata/influxdb/bolt"
"golang.org/x/crypto/bcrypt"
)

View File

@ -7,8 +7,8 @@ import (
"time"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platformcontext "github.com/influxdata/platform/context"
platform "github.com/influxdata/influxdb"
platformcontext "github.com/influxdata/influxdb/context"
)
var (

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initBucketService(f platformtesting.BucketFields, t *testing.T) (platform.BucketService, string, func()) {

View File

@ -8,8 +8,8 @@ import (
"time"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platformcontext "github.com/influxdata/platform/context"
platform "github.com/influxdata/influxdb"
platformcontext "github.com/influxdata/influxdb/context"
)
var (

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initDashboardService(f platformtesting.DashboardFields, t *testing.T) (platform.DashboardService, string, func()) {

View File

@ -10,7 +10,7 @@ import (
"time"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initKeyValueLog(f platformtesting.KeyValueLogFields, t *testing.T) (platform.KeyValueLog, func()) {

View File

@ -8,7 +8,7 @@ import (
"time"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/kv"
"github.com/influxdata/influxdb/kv"
"go.uber.org/zap"
)

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/kv"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/kv"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initKVStore(f platformtesting.KVStoreFields, t *testing.T) (kv.Store, func()) {

View File

@ -6,7 +6,7 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initLabelService(f platformtesting.LabelFields, t *testing.T) (platform.LabelService, string, func()) {

View File

@ -3,7 +3,7 @@ package bolt
import (
"context"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var _ platform.LookupService = (*Client)(nil)

View File

@ -4,10 +4,10 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
"github.com/influxdata/platform/mock"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
"github.com/influxdata/influxdb/mock"
platformtesting "github.com/influxdata/influxdb/testing"
)
var (

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -2,11 +2,11 @@ package bolt_test
import (
"context"
"github.com/influxdata/platform/bolt"
"testing"
"github.com/influxdata/platform"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initMacroService(f platformtesting.MacroFields, t *testing.T) (platform.MacroService, string, func()) {

View File

@ -6,7 +6,7 @@ import (
"time"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var onboardingBucket = []byte("onboardingv1")

View File

@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initOnboardingService(f platformtesting.OnboardingFields, t *testing.T) (platform.OnboardingService, func()) {

View File

@ -7,8 +7,8 @@ import (
"time"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platformcontext "github.com/influxdata/platform/context"
platform "github.com/influxdata/influxdb"
platformcontext "github.com/influxdata/influxdb/context"
)
var (

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initOrganizationService(f platformtesting.OrganizationFields, t *testing.T) (platform.OrganizationService, string, func()) {

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initScraperTargetStoreService(f platformtesting.TargetFields, t *testing.T) (platform.ScraperTargetStoreService, string, func()) {

View File

@ -7,7 +7,7 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initSecretService(f platformtesting.SecretServiceFields, t *testing.T) (platform.SecretService, func()) {

View File

@ -6,7 +6,7 @@ import (
"time"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initSessionService(f platformtesting.SessionFields, t *testing.T) (platform.SessionService, string, func()) {

View File

@ -6,7 +6,7 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initSourceService(f platformtesting.SourceFields, t *testing.T) (platform.SourceService, string, func()) {

View File

@ -6,7 +6,7 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initTelegrafConfigStore(f platformtesting.TelegrafConfigFields, t *testing.T) (platform.TelegrafConfigStore, func()) {

View File

@ -7,8 +7,8 @@ import (
"time"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platformcontext "github.com/influxdata/platform/context"
platform "github.com/influxdata/influxdb"
platformcontext "github.com/influxdata/influxdb/context"
)
var (

View File

@ -6,7 +6,7 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initUserResourceMappingService(f platformtesting.UserResourceFields, t *testing.T) (platform.UserResourceMappingService, func()) {

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initUserService(f platformtesting.UserFields, t *testing.T) (platform.UserService, string, func()) {

View File

@ -6,7 +6,7 @@ import (
"sync"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform"
platform "github.com/influxdata/influxdb"
)
var (

View File

@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/influxdata/platform"
"github.com/influxdata/platform/bolt"
platformtesting "github.com/influxdata/platform/testing"
platform "github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
platformtesting "github.com/influxdata/influxdb/testing"
)
func initViewService(f platformtesting.ViewFields, t *testing.T) (platform.ViewService, string, func()) {

View File

@ -1,4 +1,4 @@
package platform
package influxdb
import (
"context"

View File

@ -6,9 +6,9 @@ import (
"regexp"
"strings"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/kapacitor/pipeline"
"github.com/influxdata/kapacitor/pipeline/tick"
"github.com/influxdata/platform/chronograf"
)
// AlertServices generates alert chaining methods to be attached to an alert from all rule Services

View File

@ -3,7 +3,7 @@ package kapacitor
import (
"testing"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
func TestAlertServices(t *testing.T) {

View File

@ -7,11 +7,11 @@ import (
"strings"
"time"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/kapacitor/pipeline"
"github.com/influxdata/kapacitor/tick"
"github.com/influxdata/kapacitor/tick/ast"
"github.com/influxdata/kapacitor/tick/stateful"
"github.com/influxdata/platform/chronograf"
)
func varString(kapaVar string, vars map[string]tick.Var) (string, bool) {

View File

@ -5,7 +5,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
func TestReverse(t *testing.T) {

View File

@ -4,9 +4,9 @@ import (
"context"
"fmt"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/id"
client "github.com/influxdata/kapacitor/client/v1"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/id"
)
const (

View File

@ -8,8 +8,8 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/influxdata/influxdb/chronograf"
client "github.com/influxdata/kapacitor/client/v1"
"github.com/influxdata/platform/chronograf"
)
type MockKapa struct {

View File

@ -3,7 +3,7 @@ package kapacitor
import (
"fmt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
// Data returns the tickscript data section for querying

View File

@ -5,7 +5,7 @@ import (
"fmt"
"testing"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
var config = `{

View File

@ -3,7 +3,7 @@ package kapacitor
import (
"fmt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
// HTTPEndpoint is the default location of the tickscript output

View File

@ -3,7 +3,7 @@ package kapacitor
import (
"fmt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
// InfluxOut creates a kapacitor influxDBOut node to write alert data to Database, RP, Measurement.

View File

@ -1,7 +1,7 @@
package kapacitor
import "testing"
import "github.com/influxdata/platform/chronograf"
import "github.com/influxdata/influxdb/chronograf"
func TestInfluxOut(t *testing.T) {
tests := []struct {

View File

@ -3,8 +3,8 @@ package kapacitor_test
import (
"testing"
"github.com/influxdata/platform/chronograf/kapacitor"
"github.com/influxdata/platform/chronograf/mocks"
"github.com/influxdata/influxdb/chronograf/kapacitor"
"github.com/influxdata/influxdb/chronograf/mocks"
client "github.com/influxdata/kapacitor/client/v1"
)

View File

@ -3,8 +3,8 @@ package kapacitor_test
import (
"testing"
"github.com/influxdata/platform/chronograf/kapacitor"
"github.com/influxdata/platform/chronograf/mocks"
"github.com/influxdata/influxdb/chronograf/kapacitor"
"github.com/influxdata/influxdb/chronograf/mocks"
client "github.com/influxdata/kapacitor/client/v1"
)

View File

@ -4,9 +4,9 @@ import (
"bytes"
"encoding/json"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/kapacitor/pipeline"
totick "github.com/influxdata/kapacitor/pipeline/tick"
"github.com/influxdata/platform/chronograf"
)
// MarshalTICK converts tickscript to JSON representation

View File

@ -3,7 +3,7 @@ package kapacitor
import (
"fmt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
var _ chronograf.Ticker = &Alert{}

View File

@ -5,7 +5,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
"github.com/sergi/go-diff/diffmatchpatch"
)

View File

@ -3,7 +3,7 @@ package kapacitor
import (
"fmt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
const (

View File

@ -3,7 +3,7 @@ package kapacitor
import (
"testing"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
func TestTrigger(t *testing.T) {

View File

@ -6,11 +6,11 @@ import (
"strings"
"time"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/kapacitor/pipeline"
"github.com/influxdata/kapacitor/tick"
"github.com/influxdata/kapacitor/tick/ast"
"github.com/influxdata/kapacitor/tick/stateful"
"github.com/influxdata/platform/chronograf"
)
// ValidateAlert checks if the alert is a valid kapacitor alert service.

View File

@ -1,7 +1,7 @@
package kapacitor
import "testing"
import "github.com/influxdata/platform/chronograf"
import "github.com/influxdata/influxdb/chronograf"
func TestValidateAlert(t *testing.T) {
tests := []struct {

View File

@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
var (

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
func TestVarsCritStringEqual(t *testing.T) {

View File

@ -77,7 +77,7 @@ Setup the project structure and fetch the repo like so:
```bash
mkdir $HOME/go
export GOPATH=$HOME/go
go get github.com/influxdata/platform/chronograf
go get github.com/influxdata/influxdb/chronograf
```
You can add the line `export GOPATH=$HOME/go` to your bash/zsh file to be set for every shell instead of having to manually run it everytime.
@ -100,7 +100,7 @@ Retaining the directory structure `$GOPATH/src/github.com/influxdata` is necessa
Make sure you have `go` and `yarn` installed and the project structure as shown above. We provide a `Makefile` to get up and running quickly, so all you'll need to do is run the following:
```bash
cd $GOPATH/src/github.com/influxdata/platform/chronograf
cd $GOPATH/src/github.com/influxdata/influxdb/chronograf
make
```
@ -109,10 +109,10 @@ The binaries will be located in `$GOPATH/bin`.
To run the tests, execute the following command:
```bash
cd $GOPATH/src/github.com/influxdata/platform/chronograf
cd $GOPATH/src/github.com/influxdata/influxdb/chronograf
make test
```
## Continuous Integration testing
Chronograf uses CircleCI for continuous integration testing. To see how the code is built and tested, check out [this file](https://github.com/influxdata/platform/chronograf/blob/master/Makefile). It closely follows the build and test process outlined above. You can see the exact version of Go Chronograf uses for testing by consulting that file.
Chronograf uses CircleCI for continuous integration testing. To see how the code is built and tested, check out [this file](https://github.com/influxdata/influxdb/chronograf/blob/master/Makefile). It closely follows the build and test process outlined above. You can see the exact version of Go Chronograf uses for testing by consulting that file.

View File

@ -5,7 +5,7 @@ provides the tools to visualize your monitoring data and easily create alerting
and automation rules.
<p align="left">
<img src="https://github.com/influxdata/platform/chronograf/blob/master/docs/images/overview-readme.png"/>
<img src="https://github.com/influxdata/influxdb/chronograf/blob/master/docs/images/overview-readme.png"/>
</p>
## Features
@ -19,7 +19,7 @@ and automation rules.
### Dashboard Templates
Chronograf's
[pre-canned dashboards](https://github.com/influxdata/platform/chronograf/tree/master/canned)
[pre-canned dashboards](https://github.com/influxdata/influxdb/chronograf/tree/master/canned)
for the supported [Telegraf](https://github.com/influxdata/telegraf) input
plugins. Currently, Chronograf offers dashboard templates for the following
Telegraf input plugins:
@ -119,13 +119,13 @@ page.
### TLS/HTTPS Support
See
[Chronograf with TLS](https://github.com/influxdata/platform/chronograf/blob/master/docs/tls.md)
[Chronograf with TLS](https://github.com/influxdata/influxdb/chronograf/blob/master/docs/tls.md)
for more information.
### OAuth Login
See
[Chronograf with OAuth 2.0](https://github.com/influxdata/platform/chronograf/blob/master/docs/auth.md)
[Chronograf with OAuth 2.0](https://github.com/influxdata/influxdb/chronograf/blob/master/docs/auth.md)
for more information.
### Advanced Routing
@ -139,7 +139,7 @@ The most recent version of Chronograf is
[v1.5.0.0](https://www.influxdata.com/downloads/).
Spotted a bug or have a feature request? Please open
[an issue](https://github.com/influxdata/platform/chronograf/issues/new)!
[an issue](https://github.com/influxdata/influxdb/chronograf/issues/new)!
### Known Issues
@ -150,7 +150,7 @@ The Chronograf team has identified and is working on the following issues:
and
[system](https://github.com/influxdata/telegraf/blob/master/plugins/inputs/system/SYSTEM_README.md)
plugins to ensure that all Apps appear on the
[HOST LIST](https://github.com/influxdata/platform/chronograf/blob/master/docs/GETTING_STARTED.md#host-list)
[HOST LIST](https://github.com/influxdata/influxdb/chronograf/blob/master/docs/GETTING_STARTED.md#host-list)
page.
## Installation
@ -192,13 +192,13 @@ docker pull chronograf:1.5.0.0
1. [Setup your GOPATH](https://golang.org/doc/code.html#GOPATH)
1. Build the Chronograf package:
```bash
go get github.com/influxdata/platform/chronograf
cd $GOPATH/src/github.com/influxdata/platform/chronograf
go get github.com/influxdata/influxdb/chronograf
cd $GOPATH/src/github.com/influxdata/influxdb/chronograf
make
```
1. Install the newly built Chronograf package:
```bash
go install github.com/influxdata/platform/chronograf/cmd/chronograf
go install github.com/influxdata/influxdb/chronograf/cmd/chronograf
```
## Documentation

View File

@ -7,9 +7,9 @@ import (
"os"
"time"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt"
"github.com/influxdata/platform/chronograf/mocks"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt"
"github.com/influxdata/influxdb/chronograf/mocks"
)
// TestNow is a set time for testing.

View File

@ -4,8 +4,8 @@ import (
"context"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
)
// Ensure BuildStore struct implements chronograf.BuildStore interface

View File

@ -4,7 +4,7 @@ package bolt_test
// "testing"
// "github.com/google/go-cmp/cmp"
// "github.com/influxdata/platform/chronograf"
// "github.com/influxdata/influxdb/chronograf"
// )
// func

View File

@ -9,8 +9,8 @@ import (
"time"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/id"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/id"
)
// Client is a client for the boltDB data store.

View File

@ -5,8 +5,8 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
)
// Ensure ConfigStore implements chronograf.ConfigStore.

View File

@ -5,7 +5,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
func TestConfig_Get(t *testing.T) {

View File

@ -5,8 +5,8 @@ import (
"strconv"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
)
// Ensure DashboardsStore implements chronograf.DashboardsStore.

View File

@ -5,7 +5,7 @@ import (
"fmt"
"github.com/gogo/protobuf/proto"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
//go:generate protoc --plugin ../../../scripts/protoc-gen-gogo --gogo_out=. internal.proto

View File

@ -5,8 +5,8 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
)
func TestMarshalSource(t *testing.T) {

View File

@ -4,8 +4,8 @@ import (
"context"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
)
// Ensure LayoutsStore implements chronograf.LayoutsStore.

View File

@ -5,8 +5,8 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
)
// Ensure MappingsStore implements chronograf.MappingsStore.

View File

@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
var mappingCmpOptions = cmp.Options{

View File

@ -5,8 +5,8 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
)
// Ensure OrganizationConfigStore implements chronograf.OrganizationConfigStore.

View File

@ -5,7 +5,7 @@ import (
"testing"
"github.com/google/go-cmp/cmp"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
func TestOrganizationConfig_FindOrCreate(t *testing.T) {

View File

@ -5,9 +5,9 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/platform/chronograf/organizations"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf/organizations"
)
// Ensure OrganizationsStore implements chronograf.OrganizationsStore.

View File

@ -6,9 +6,9 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt"
"github.com/influxdata/platform/chronograf/roles"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt"
"github.com/influxdata/influxdb/chronograf/roles"
)
var orgCmpOptions = cmp.Options{

View File

@ -4,8 +4,8 @@ import (
"context"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
)
// Ensure ServersStore implements chronograf.ServersStore.

View File

@ -5,7 +5,7 @@ import (
"reflect"
"testing"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
// Ensure an ServerStore can store, retrieve, update, and delete servers.

View File

@ -5,9 +5,9 @@ import (
"math"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/platform/chronograf/roles"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf/roles"
)
// Ensure SourcesStore implements chronograf.SourcesStore.

View File

@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt"
)
// Ensure an SourceStore can store, retrieve, update, and delete sources.

View File

@ -5,8 +5,8 @@ import (
"fmt"
bolt "github.com/coreos/bbolt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt/internal"
)
// Ensure UsersStore implements chronograf.UsersStore.

View File

@ -6,7 +6,7 @@ import (
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
// IgnoreFields is used because ID is created by BoltDB and cannot be predicted reliably

View File

@ -5,7 +5,7 @@ import (
"encoding/json"
"fmt"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
//go:generate env GO111MODULE=on go run github.com/kevinburke/go-bindata/go-bindata -o bin_gen.go -tags assets -ignore README|apps|.sh|go -pkg canned .

View File

@ -4,7 +4,7 @@ import (
"context"
"strings"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
type AddCommand struct {

View File

@ -8,9 +8,9 @@ import (
"strings"
"text/tabwriter"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/bolt"
"github.com/influxdata/platform/chronograf/mocks"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/bolt"
"github.com/influxdata/influxdb/chronograf/mocks"
)
func NewBoltClient(path string) (*bolt.Client, error) {

View File

@ -5,8 +5,8 @@ import (
"log"
"os"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/server"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/server"
flags "github.com/jessevdk/go-flags"
)

View File

@ -1,5 +1,5 @@
## Creating a release
The release process is handled via our [circle.yml](https://github.com/influxdata/platform/chronograf/blob/master/circle.yml).
The release process is handled via our [circle.yml](https://github.com/influxdata/influxdb/chronograf/blob/master/circle.yml).
A release tag of the format `1.3.0.0` needs to be added. Afterwhich, circle
will build our packages for all of our platforms.
@ -30,7 +30,7 @@ bumpversion --allow-dirty --new-version=1.4.0.0 minor
The behavior of `bumpversion` is controlled by .bumpversion.cfg
### Creating Release tag
You can create a release tag from [Github](https://github.com/influxdata/platform/chronograf/releases)
You can create a release tag from [Github](https://github.com/influxdata/influxdb/chronograf/releases)
or create an annotated tag:
```sh

View File

@ -9,7 +9,7 @@ chris@influxdb.com
@goller
* Demo
- Source: [[https://github.com/influxdata/platform/chronograf]]
- Source: [[https://github.com/influxdata/influxdb/chronograf]]
- [[http://localhost:8888]]
* Chronograf Goals

View File

@ -10,8 +10,8 @@ import (
"github.com/NYTimes/gziphandler"
"github.com/bouk/httprouter"
"github.com/influxdata/platform/chronograf" // When julienschmidt/httprouter v2 w/ context is out, switch
"github.com/influxdata/platform/chronograf/oauth2"
"github.com/influxdata/influxdb/chronograf" // When julienschmidt/httprouter v2 w/ context is out, switch
"github.com/influxdata/influxdb/chronograf/oauth2"
)
const (

View File

@ -7,7 +7,7 @@ import (
"io"
"net/http"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/influxdb/chronograf"
)
// URLPrefixer is a wrapper for an http.Handler that will prefix all occurrences of a relative URL with the configured Prefix

View File

@ -7,8 +7,8 @@ import (
"context"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/influx"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/influx"
)
var _ chronograf.TimeSeries = &Client{}

View File

@ -7,9 +7,9 @@ import (
"reflect"
"testing"
"github.com/influxdata/platform/chronograf"
"github.com/influxdata/platform/chronograf/enterprise"
"github.com/influxdata/platform/chronograf/influx"
"github.com/influxdata/influxdb/chronograf"
"github.com/influxdata/influxdb/chronograf/enterprise"
"github.com/influxdata/influxdb/chronograf/influx"
)
func Test_Enterprise_FetchesDataNodes(t *testing.T) {

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