chore(chronograf): change package imports to be nested under platform

The following command it what was executed:
find . -type f |grep chronograf | xargs perl -p -i -e 's|github.com/influxdata/chronograf|github.com/influxdata/platform/chronograf|g'
pull/10616/head
Michael Desa 2018-07-19 16:52:14 -04:00
parent 91067f2188
commit d36fe120a4
224 changed files with 1031 additions and 1031 deletions

File diff suppressed because it is too large Load Diff

View File

@ -77,7 +77,7 @@ Setup the project structure and fetch the repo like so:
```bash ```bash
mkdir $HOME/go mkdir $HOME/go
export GOPATH=$HOME/go export GOPATH=$HOME/go
go get github.com/influxdata/chronograf go get github.com/influxdata/platform/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. 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: 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 ```bash
cd $GOPATH/src/github.com/influxdata/chronograf cd $GOPATH/src/github.com/influxdata/platform/chronograf
make make
``` ```
@ -109,10 +109,10 @@ The binaries will be located in `$GOPATH/bin`.
To run the tests, execute the following command: To run the tests, execute the following command:
```bash ```bash
cd $GOPATH/src/github.com/influxdata/chronograf cd $GOPATH/src/github.com/influxdata/platform/chronograf
make test make test
``` ```
## Continuous Integration testing ## 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/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/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.

View File

@ -267,7 +267,7 @@
* charm 1.0.2 [MIT](ssh://git@github.com/substack/node-charm) * charm 1.0.2 [MIT](ssh://git@github.com/substack/node-charm)
* cheerio 0.22.0 [MIT](http://github.com/cheeriojs/cheerio) * cheerio 0.22.0 [MIT](http://github.com/cheeriojs/cheerio)
* chokidar 1.6.1 [MIT](https://github.com/paulmillr/chokidar) * chokidar 1.6.1 [MIT](https://github.com/paulmillr/chokidar)
* chronograf-ui 1.2.0 [AGPL-3.0](https://github.com/influxdata/chronograf) * chronograf-ui 1.2.0 [AGPL-3.0](https://github.com/influxdata/platform/chronograf)
* circular-json 0.3.1 [MIT](http://github.com/WebReflection/circular-json) * circular-json 0.3.1 [MIT](http://github.com/WebReflection/circular-json)
* clap 1.1.2 [MIT](https://github.com/lahmatiy/clap) * clap 1.1.2 [MIT](https://github.com/lahmatiy/clap)
* classnames 2.2.5 [MIT](https://github.com/JedWatson/classnames) * classnames 2.2.5 [MIT](https://github.com/JedWatson/classnames)

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/influxdata/chronograf/v2" "github.com/influxdata/platform/chronograf/v2"
) )
var ( var (

View File

@ -9,8 +9,8 @@ import (
"time" "time"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/id" "github.com/influxdata/platform/chronograf/id"
) )
const ( const (

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
platform "github.com/influxdata/chronograf/v2" platform "github.com/influxdata/platform/chronograf/v2"
) )
var ( var (

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"github.com/boltdb/bolt" "github.com/boltdb/bolt"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/bolt/internal" "github.com/influxdata/platform/chronograf/bolt/internal"
"github.com/influxdata/chronograf/roles" "github.com/influxdata/platform/chronograf/roles"
) )
// Ensure SourcesStore implements chronograf.SourcesStore. // Ensure SourcesStore implements chronograf.SourcesStore.

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
//go:generate go-bindata -o bin_gen.go -ignore README|apps|.sh|go -pkg canned . //go:generate go-bindata -o bin_gen.go -ignore README|apps|.sh|go -pkg canned .

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
## Creating a release ## Creating a release
The release process is handled via our [circle.yml](https://github.com/influxdata/chronograf/blob/master/circle.yml). The release process is handled via our [circle.yml](https://github.com/influxdata/platform/chronograf/blob/master/circle.yml).
A release tag of the format `1.3.0.0` needs to be added. Afterwhich, circle 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. 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 The behavior of `bumpversion` is controlled by .bumpversion.cfg
### Creating Release tag ### Creating Release tag
You can create a release tag from [Github](https://github.com/influxdata/chronograf/releases) You can create a release tag from [Github](https://github.com/influxdata/platform/chronograf/releases)
or create an annotated tag: or create an annotated tag:
```sh ```sh

View File

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

View File

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

View File

@ -7,7 +7,7 @@ import (
"io" "io"
"net/http" "net/http"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// URLPrefixer is a wrapper for an http.Handler that will prefix all occurrences of a relative URL with the configured Prefix // 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" "context"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/influx" "github.com/influxdata/platform/chronograf/influx"
) )
var _ chronograf.TimeSeries = &Client{} var _ chronograf.TimeSeries = &Client{}

View File

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

View File

@ -13,8 +13,8 @@ import (
"net/url" "net/url"
"time" "time"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/influx" "github.com/influxdata/platform/chronograf/influx"
) )
// Shared transports for all clients to prevent leaking connections // Shared transports for all clients to prevent leaking connections

View File

@ -13,7 +13,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/influxdata/chronograf/influx" "github.com/influxdata/platform/chronograf/influx"
) )
func TestMetaClient_ShowCluster(t *testing.T) { func TestMetaClient_ShowCluster(t *testing.T) {

View File

@ -5,8 +5,8 @@ import (
"encoding/json" "encoding/json"
"net/url" "net/url"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/enterprise" "github.com/influxdata/platform/chronograf/enterprise"
) )
type ControlClient struct { type ControlClient struct {

View File

@ -3,7 +3,7 @@ package enterprise
import ( import (
"context" "context"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// RolesStore uses a control client operate on Influx Enterprise roles. Roles are // RolesStore uses a control client operate on Influx Enterprise roles. Roles are

View File

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

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// UserStore uses a control client operate on Influx Enterprise users // UserStore uses a control client operate on Influx Enterprise users

View File

@ -6,8 +6,8 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/enterprise" "github.com/influxdata/platform/chronograf/enterprise"
) )
func TestClient_Add(t *testing.T) { func TestClient_Add(t *testing.T) {

View File

@ -38,11 +38,11 @@ RUN wget https://storage.googleapis.com/golang/go${GO_VERSION}.linux-${GO_ARCH}.
rm /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz rm /go${GO_VERSION}.linux-${GO_ARCH}.tar.gz
ENV PATH /usr/local/go/bin:$PATH ENV PATH /usr/local/go/bin:$PATH
ENV PROJECT_DIR $GOPATH/src/github.com/influxdata/chronograf ENV PROJECT_DIR $GOPATH/src/github.com/influxdata/platform/chronograf
ENV PATH $GOPATH/bin:$PATH ENV PATH $GOPATH/bin:$PATH
RUN mkdir -p $PROJECT_DIR RUN mkdir -p $PROJECT_DIR
WORKDIR $PROJECT_DIR WORKDIR $PROJECT_DIR
VOLUME $PROJECT_DIR VOLUME $PROJECT_DIR
ENTRYPOINT [ "/root/go/src/github.com/influxdata/chronograf/etc/build.py" ] ENTRYPOINT [ "/root/go/src/github.com/influxdata/platform/chronograf/etc/build.py" ]

View File

@ -41,7 +41,7 @@ CONFIGURATION_FILES = [
] ]
PACKAGE_LICENSE = "AGPLv3" PACKAGE_LICENSE = "AGPLv3"
PACKAGE_URL = "https://github.com/influxdata/chronograf" PACKAGE_URL = "https://github.com/influxdata/platform/chronograf"
MAINTAINER = "contact@influxdb.com" MAINTAINER = "contact@influxdb.com"
VENDOR = "InfluxData" VENDOR = "InfluxData"
DESCRIPTION = "Open source monitoring and visualization UI for the entire TICK stack." DESCRIPTION = "Open source monitoring and visualization UI for the entire TICK stack."

View File

@ -21,6 +21,6 @@ docker run \
-e AWS_SECRET_ACCESS_KEY \ -e AWS_SECRET_ACCESS_KEY \
-v $SSH_KEY_PATH:/root/.ssh/id_rsa \ -v $SSH_KEY_PATH:/root/.ssh/id_rsa \
-v ~/.ssh/known_hosts:/root/.ssh/known_hosts \ -v ~/.ssh/known_hosts:/root/.ssh/known_hosts \
-v $(pwd):/root/go/src/github.com/influxdata/chronograf \ -v $(pwd):/root/go/src/github.com/influxdata/platform/chronograf \
quay.io/influxdb/builder:$DOCKER_TAG \ quay.io/influxdb/builder:$DOCKER_TAG \
"$@" "$@"

View File

@ -8,7 +8,7 @@ import (
"os" "os"
"path" "path"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// AppExt is the the file extension searched for in the directory for layout files // AppExt is the the file extension searched for in the directory for layout files

View File

@ -12,9 +12,9 @@ import (
"testing" "testing"
"time" "time"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/filestore" "github.com/influxdata/platform/chronograf/filestore"
clog "github.com/influxdata/chronograf/log" clog "github.com/influxdata/platform/chronograf/log"
) )
func TestAll(t *testing.T) { func TestAll(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
"path" "path"
"strconv" "strconv"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// DashExt is the the file extension searched for in the directory for dashboard files // DashExt is the the file extension searched for in the directory for dashboard files

View File

@ -8,7 +8,7 @@ import (
"path" "path"
"strconv" "strconv"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// KapExt is the the file extension searched for in the directory for kapacitor files // KapExt is the the file extension searched for in the directory for kapacitor files

View File

@ -7,7 +7,7 @@ import (
"os" "os"
"path" "path"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// OrgExt is the the file extension searched for in the directory for org files // OrgExt is the the file extension searched for in the directory for org files

View File

@ -8,7 +8,7 @@ import (
"path" "path"
"strconv" "strconv"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// SrcExt is the the file extension searched for in the directory for source files // SrcExt is the the file extension searched for in the directory for source files

View File

@ -4,7 +4,7 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// tm generates an id based on current time // tm generates an id based on current time

View File

@ -1,7 +1,7 @@
package id package id
import ( import (
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
uuid "github.com/satori/go.uuid" uuid "github.com/satori/go.uuid"
) )

View File

@ -8,9 +8,9 @@ import (
"sort" "sort"
"time" "time"
"github.com/influxdata/chronograf/id" "github.com/influxdata/platform/chronograf/id"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
const ( const (

View File

@ -9,8 +9,8 @@ import (
"time" "time"
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/mocks" "github.com/influxdata/platform/chronograf/mocks"
) )
func Test_toPoint(t *testing.T) { func Test_toPoint(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"time" "time"
jwt "github.com/dgrijalva/jwt-go" jwt "github.com/dgrijalva/jwt-go"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// Authorizer adds optional authorization header to request // Authorizer adds optional authorization header to request

View File

@ -6,7 +6,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// AllDB returns all databases from within Influx // AllDB returns all databases from within Influx

View File

@ -11,7 +11,7 @@ import (
"net/url" "net/url"
"strings" "strings"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
var _ chronograf.TimeSeries = &Client{} var _ chronograf.TimeSeries = &Client{}

View File

@ -11,10 +11,10 @@ import (
"time" "time"
gojwt "github.com/dgrijalva/jwt-go" gojwt "github.com/dgrijalva/jwt-go"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/influx" "github.com/influxdata/platform/chronograf/influx"
"github.com/influxdata/chronograf/log" "github.com/influxdata/platform/chronograf/log"
"github.com/influxdata/chronograf/mocks" "github.com/influxdata/platform/chronograf/mocks"
) )
// NewClient initializes an HTTP Client for InfluxDB. // NewClient initializes an HTTP Client for InfluxDB.

View File

@ -5,7 +5,7 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
var ( var (

View File

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

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
var ( var (

View File

@ -5,7 +5,7 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
func TestDifference(t *testing.T) { func TestDifference(t *testing.T) {

View File

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

View File

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

View File

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// Add a new User in InfluxDB // Add a new User in InfluxDB

View File

@ -9,8 +9,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/log" "github.com/influxdata/platform/chronograf/log"
) )
func TestClient_userPermissions(t *testing.T) { func TestClient_userPermissions(t *testing.T) {

View File

@ -15,12 +15,12 @@ import (
"testing" "testing"
"time" "time"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/chronograf/bolt" "github.com/influxdata/platform/chronograf/bolt"
"github.com/influxdata/chronograf/log" "github.com/influxdata/platform/chronograf/log"
"github.com/influxdata/chronograf/oauth2" "github.com/influxdata/platform/chronograf/oauth2"
"github.com/influxdata/chronograf/roles" "github.com/influxdata/platform/chronograf/roles"
"github.com/influxdata/chronograf/server" "github.com/influxdata/platform/chronograf/server"
) )
func TestServer(t *testing.T) { func TestServer(t *testing.T) {
@ -1649,7 +1649,7 @@ func TestServer(t *testing.T) {
body: ` body: `
{ {
"code": 401, "code": 401,
"message": "User does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/chronograf/issues/2601 for more information." "message": "User does not have authorization required to set SuperAdmin status. See https://github.com/influxdata/platform/chronograf/issues/2601 for more information."
}`, }`,
}, },
}, },

View File

@ -6,7 +6,7 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/kapacitor/pipeline" "github.com/influxdata/kapacitor/pipeline"
"github.com/influxdata/kapacitor/pipeline/tick" "github.com/influxdata/kapacitor/pipeline/tick"
) )

View File

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

View File

@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/kapacitor/pipeline" "github.com/influxdata/kapacitor/pipeline"
"github.com/influxdata/kapacitor/tick" "github.com/influxdata/kapacitor/tick"
"github.com/influxdata/kapacitor/tick/ast" "github.com/influxdata/kapacitor/tick/ast"

View File

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

View File

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

View File

@ -8,7 +8,7 @@ import (
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts" "github.com/google/go-cmp/cmp/cmpopts"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
client "github.com/influxdata/kapacitor/client/v1" client "github.com/influxdata/kapacitor/client/v1"
) )

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/kapacitor/pipeline" "github.com/influxdata/kapacitor/pipeline"
totick "github.com/influxdata/kapacitor/pipeline/tick" totick "github.com/influxdata/kapacitor/pipeline/tick"
) )

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
"github.com/influxdata/kapacitor/pipeline" "github.com/influxdata/kapacitor/pipeline"
"github.com/influxdata/kapacitor/tick" "github.com/influxdata/kapacitor/tick"
"github.com/influxdata/kapacitor/tick/ast" "github.com/influxdata/kapacitor/tick/ast"

View File

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

View File

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

View File

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

View File

@ -5,7 +5,7 @@ import (
"os" "os"
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// Level type // Level type

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// Ensure KapacitorStore implements chronograf.ServersStore. // Ensure KapacitorStore implements chronograf.ServersStore.

View File

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

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/influxdata/chronograf" "github.com/influxdata/platform/chronograf"
) )
// Ensure SourcesStore implements chronograf.SourcesStore. // Ensure SourcesStore implements chronograf.SourcesStore.

View File

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

View File

@ -4,7 +4,7 @@ import (
"context" "context"
"net/http" "net/http"
"github.com/influxdata/chronograf/oauth2" "github.com/influxdata/platform/chronograf/oauth2"
) )
// Authenticator implements a OAuth2 authenticator // Authenticator implements a OAuth2 authenticator

View File

@ -3,7 +3,7 @@ package mocks
import ( import (
"context" "context"
"github.com/influxdata/chronograf/v2" "github.com/influxdata/platform/chronograf/v2"
) )
var _ platform.CellService = &CellService{} var _ platform.CellService = &CellService{}

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