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
parent
91067f2188
commit
d36fe120a4
File diff suppressed because it is too large
Load Diff
|
@ -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/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.
|
||||
|
@ -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/chronograf
|
||||
cd $GOPATH/src/github.com/influxdata/platform/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/chronograf
|
||||
cd $GOPATH/src/github.com/influxdata/platform/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/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.
|
||||
|
|
|
@ -267,7 +267,7 @@
|
|||
* charm 1.0.2 [MIT](ssh://git@github.com/substack/node-charm)
|
||||
* cheerio 0.22.0 [MIT](http://github.com/cheeriojs/cheerio)
|
||||
* 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)
|
||||
* clap 1.1.2 [MIT](https://github.com/lahmatiy/clap)
|
||||
* classnames 2.2.5 [MIT](https://github.com/JedWatson/classnames)
|
||||
|
|
|
@ -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/chronograf/blob/master/docs/images/overview-readme.png"/>
|
||||
<img src="https://github.com/influxdata/platform/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/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
|
||||
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/chronograf/blob/master/docs/tls.md)
|
||||
[Chronograf with TLS](https://github.com/influxdata/platform/chronograf/blob/master/docs/tls.md)
|
||||
for more information.
|
||||
|
||||
### OAuth Login
|
||||
|
||||
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.
|
||||
|
||||
### 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/chronograf/issues/new)!
|
||||
[an issue](https://github.com/influxdata/platform/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/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.
|
||||
|
||||
## Installation
|
||||
|
@ -193,13 +193,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/chronograf
|
||||
cd $GOPATH/src/github.com/influxdata/chronograf
|
||||
go get github.com/influxdata/platform/chronograf
|
||||
cd $GOPATH/src/github.com/influxdata/platform/chronograf
|
||||
make
|
||||
```
|
||||
1. Install the newly built Chronograf package:
|
||||
```bash
|
||||
go install github.com/influxdata/chronograf/cmd/chronograf
|
||||
go install github.com/influxdata/platform/chronograf/cmd/chronograf
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt"
|
||||
"github.com/influxdata/chronograf/mocks"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt"
|
||||
"github.com/influxdata/platform/chronograf/mocks"
|
||||
)
|
||||
|
||||
// TestNow is a set time for testing.
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"context"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
)
|
||||
|
||||
// Ensure BuildStore struct implements chronograf.BuildStore interface
|
||||
|
|
|
@ -4,7 +4,7 @@ package bolt_test
|
|||
// "testing"
|
||||
|
||||
// "github.com/google/go-cmp/cmp"
|
||||
// "github.com/influxdata/chronograf"
|
||||
// "github.com/influxdata/platform/chronograf"
|
||||
// )
|
||||
|
||||
// func
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strconv"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf/v2"
|
||||
"github.com/influxdata/platform/chronograf/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/id"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/id"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
)
|
||||
|
||||
// Ensure ConfigStore implements chronograf.ConfigStore.
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestConfig_Get(t *testing.T) {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"strconv"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
)
|
||||
|
||||
// Ensure DashboardsStore implements chronograf.DashboardsStore.
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strconv"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
platform "github.com/influxdata/chronograf/v2"
|
||||
platform "github.com/influxdata/platform/chronograf/v2"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/gogo/protobuf/proto"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
//go:generate protoc --gogo_out=. internal.proto
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
)
|
||||
|
||||
func TestMarshalSource(t *testing.T) {
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"context"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
)
|
||||
|
||||
// Ensure LayoutsStore implements chronograf.LayoutsStore.
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
)
|
||||
|
||||
// Ensure MappingsStore implements chronograf.MappingsStore.
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/google/go-cmp/cmp/cmpopts"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
var mappingCmpOptions = cmp.Options{
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
)
|
||||
|
||||
// Ensure OrganizationConfigStore implements chronograf.OrganizationConfigStore.
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestOrganizationConfig_FindOrCreate(t *testing.T) {
|
||||
|
|
|
@ -5,9 +5,9 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/chronograf/organizations"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf/organizations"
|
||||
)
|
||||
|
||||
// Ensure OrganizationsStore implements chronograf.OrganizationsStore.
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/google/go-cmp/cmp/cmpopts"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt"
|
||||
"github.com/influxdata/chronograf/roles"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt"
|
||||
"github.com/influxdata/platform/chronograf/roles"
|
||||
)
|
||||
|
||||
var orgCmpOptions = cmp.Options{
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"context"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
)
|
||||
|
||||
// Ensure ServersStore implements chronograf.ServersStore.
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// Ensure an ServerStore can store, retrieve, update, and delete servers.
|
||||
|
|
|
@ -4,9 +4,9 @@ import (
|
|||
"context"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/chronograf/roles"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf/roles"
|
||||
)
|
||||
|
||||
// Ensure SourcesStore implements chronograf.SourcesStore.
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt"
|
||||
)
|
||||
|
||||
// Ensure an SourceStore can store, retrieve, update, and delete sources.
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/boltdb/bolt"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt/internal"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt/internal"
|
||||
)
|
||||
|
||||
// Ensure UsersStore implements chronograf.UsersStore.
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"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
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"encoding/json"
|
||||
"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 .
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"strings"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
type AddCommand struct {
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"strings"
|
||||
"text/tabwriter"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt"
|
||||
"github.com/influxdata/chronograf/mocks"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt"
|
||||
"github.com/influxdata/platform/chronograf/mocks"
|
||||
)
|
||||
|
||||
func NewBoltClient(path string) (*bolt.Client, error) {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/server"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/server"
|
||||
flags "github.com/jessevdk/go-flags"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
## 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
|
||||
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/chronograf/releases)
|
||||
You can create a release tag from [Github](https://github.com/influxdata/platform/chronograf/releases)
|
||||
or create an annotated tag:
|
||||
|
||||
```sh
|
||||
|
|
|
@ -9,7 +9,7 @@ chris@influxdb.com
|
|||
@goller
|
||||
|
||||
* Demo
|
||||
- Source: [[https://github.com/influxdata/chronograf]]
|
||||
- Source: [[https://github.com/influxdata/platform/chronograf]]
|
||||
- [[http://localhost:8888]]
|
||||
|
||||
* Chronograf Goals
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
|
||||
"github.com/NYTimes/gziphandler"
|
||||
"github.com/bouk/httprouter"
|
||||
"github.com/influxdata/chronograf" // When julienschmidt/httprouter v2 w/ context is out, switch
|
||||
"github.com/influxdata/chronograf/oauth2"
|
||||
"github.com/influxdata/platform/chronograf" // When julienschmidt/httprouter v2 w/ context is out, switch
|
||||
"github.com/influxdata/platform/chronograf/oauth2"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"io"
|
||||
"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
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
|
||||
"context"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/influx"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/influx"
|
||||
)
|
||||
|
||||
var _ chronograf.TimeSeries = &Client{}
|
||||
|
|
|
@ -7,10 +7,10 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/enterprise"
|
||||
"github.com/influxdata/chronograf/influx"
|
||||
"github.com/influxdata/chronograf/log"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/enterprise"
|
||||
"github.com/influxdata/platform/chronograf/influx"
|
||||
"github.com/influxdata/platform/chronograf/log"
|
||||
)
|
||||
|
||||
func Test_Enterprise_FetchesDataNodes(t *testing.T) {
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"net/url"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/influx"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/influx"
|
||||
)
|
||||
|
||||
// Shared transports for all clients to prevent leaking connections
|
||||
|
|
|
@ -13,7 +13,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf/influx"
|
||||
"github.com/influxdata/platform/chronograf/influx"
|
||||
)
|
||||
|
||||
func TestMetaClient_ShowCluster(t *testing.T) {
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
"encoding/json"
|
||||
"net/url"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/enterprise"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/enterprise"
|
||||
)
|
||||
|
||||
type ControlClient struct {
|
||||
|
|
|
@ -3,7 +3,7 @@ package enterprise
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// RolesStore uses a control client operate on Influx Enterprise roles. Roles are
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestRoles_ToChronograf(t *testing.T) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// UserStore uses a control client operate on Influx Enterprise users
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/enterprise"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/enterprise"
|
||||
)
|
||||
|
||||
func TestClient_Add(t *testing.T) {
|
||||
|
|
|
@ -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
|
||||
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
|
||||
RUN mkdir -p $PROJECT_DIR
|
||||
WORKDIR $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" ]
|
||||
|
|
|
@ -41,7 +41,7 @@ CONFIGURATION_FILES = [
|
|||
]
|
||||
|
||||
PACKAGE_LICENSE = "AGPLv3"
|
||||
PACKAGE_URL = "https://github.com/influxdata/chronograf"
|
||||
PACKAGE_URL = "https://github.com/influxdata/platform/chronograf"
|
||||
MAINTAINER = "contact@influxdb.com"
|
||||
VENDOR = "InfluxData"
|
||||
DESCRIPTION = "Open source monitoring and visualization UI for the entire TICK stack."
|
||||
|
|
|
@ -21,6 +21,6 @@ docker run \
|
|||
-e AWS_SECRET_ACCESS_KEY \
|
||||
-v $SSH_KEY_PATH:/root/.ssh/id_rsa \
|
||||
-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 \
|
||||
"$@"
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// AppExt is the the file extension searched for in the directory for layout files
|
||||
|
|
|
@ -12,9 +12,9 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/filestore"
|
||||
clog "github.com/influxdata/chronograf/log"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/filestore"
|
||||
clog "github.com/influxdata/platform/chronograf/log"
|
||||
)
|
||||
|
||||
func TestAll(t *testing.T) {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"path"
|
||||
"strconv"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// DashExt is the the file extension searched for in the directory for dashboard files
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"path"
|
||||
"strconv"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// KapExt is the the file extension searched for in the directory for kapacitor files
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"os"
|
||||
"path"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// OrgExt is the the file extension searched for in the directory for org files
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"path"
|
||||
"strconv"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// SrcExt is the the file extension searched for in the directory for source files
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// tm generates an id based on current time
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package id
|
||||
|
||||
import (
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
uuid "github.com/satori/go.uuid"
|
||||
)
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@ import (
|
|||
"sort"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf/id"
|
||||
"github.com/influxdata/platform/chronograf/id"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/mocks"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/mocks"
|
||||
)
|
||||
|
||||
func Test_toPoint(t *testing.T) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"time"
|
||||
|
||||
jwt "github.com/dgrijalva/jwt-go"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// Authorizer adds optional authorization header to request
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// AllDB returns all databases from within Influx
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
var _ chronograf.TimeSeries = &Client{}
|
||||
|
|
|
@ -11,10 +11,10 @@ import (
|
|||
"time"
|
||||
|
||||
gojwt "github.com/dgrijalva/jwt-go"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/influx"
|
||||
"github.com/influxdata/chronograf/log"
|
||||
"github.com/influxdata/chronograf/mocks"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/influx"
|
||||
"github.com/influxdata/platform/chronograf/log"
|
||||
"github.com/influxdata/platform/chronograf/mocks"
|
||||
)
|
||||
|
||||
// NewClient initializes an HTTP Client for InfluxDB.
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func Test_toLineProtocol(t *testing.T) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestDifference(t *testing.T) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/influxdb/influxql"
|
||||
)
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestConvert(t *testing.T) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// Add a new User in InfluxDB
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/log"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/log"
|
||||
)
|
||||
|
||||
func TestClient_userPermissions(t *testing.T) {
|
||||
|
|
|
@ -15,12 +15,12 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/bolt"
|
||||
"github.com/influxdata/chronograf/log"
|
||||
"github.com/influxdata/chronograf/oauth2"
|
||||
"github.com/influxdata/chronograf/roles"
|
||||
"github.com/influxdata/chronograf/server"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/bolt"
|
||||
"github.com/influxdata/platform/chronograf/log"
|
||||
"github.com/influxdata/platform/chronograf/oauth2"
|
||||
"github.com/influxdata/platform/chronograf/roles"
|
||||
"github.com/influxdata/platform/chronograf/server"
|
||||
)
|
||||
|
||||
func TestServer(t *testing.T) {
|
||||
|
@ -1649,7 +1649,7 @@ func TestServer(t *testing.T) {
|
|||
body: `
|
||||
{
|
||||
"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."
|
||||
}`,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/kapacitor/pipeline"
|
||||
"github.com/influxdata/kapacitor/pipeline/tick"
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@ package kapacitor
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestAlertServices(t *testing.T) {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/kapacitor/pipeline"
|
||||
"github.com/influxdata/kapacitor/tick"
|
||||
"github.com/influxdata/kapacitor/tick/ast"
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestReverse(t *testing.T) {
|
||||
|
|
|
@ -4,8 +4,8 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/chronograf/id"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/platform/chronograf/id"
|
||||
client "github.com/influxdata/kapacitor/client/v1"
|
||||
)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/google/go-cmp/cmp/cmpopts"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
client "github.com/influxdata/kapacitor/client/v1"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package kapacitor
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// Data returns the tickscript data section for querying
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
var config = `{
|
||||
|
|
|
@ -3,7 +3,7 @@ package kapacitor
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// HTTPEndpoint is the default location of the tickscript output
|
||||
|
|
|
@ -3,7 +3,7 @@ package kapacitor
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// InfluxOut creates a kapacitor influxDBOut node to write alert data to Database, RP, Measurement.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package kapacitor
|
||||
|
||||
import "testing"
|
||||
import "github.com/influxdata/chronograf"
|
||||
import "github.com/influxdata/platform/chronograf"
|
||||
|
||||
func TestInfluxOut(t *testing.T) {
|
||||
tests := []struct {
|
||||
|
|
|
@ -3,8 +3,8 @@ package kapacitor_test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf/kapacitor"
|
||||
"github.com/influxdata/chronograf/mocks"
|
||||
"github.com/influxdata/platform/chronograf/kapacitor"
|
||||
"github.com/influxdata/platform/chronograf/mocks"
|
||||
client "github.com/influxdata/kapacitor/client/v1"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ package kapacitor_test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf/kapacitor"
|
||||
"github.com/influxdata/chronograf/mocks"
|
||||
"github.com/influxdata/platform/chronograf/kapacitor"
|
||||
"github.com/influxdata/platform/chronograf/mocks"
|
||||
client "github.com/influxdata/kapacitor/client/v1"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"bytes"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/kapacitor/pipeline"
|
||||
totick "github.com/influxdata/kapacitor/pipeline/tick"
|
||||
)
|
||||
|
|
|
@ -3,7 +3,7 @@ package kapacitor
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
var _ chronograf.Ticker = &Alert{}
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/sergi/go-diff/diffmatchpatch"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package kapacitor
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -3,7 +3,7 @@ package kapacitor
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestTrigger(t *testing.T) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
"github.com/influxdata/kapacitor/pipeline"
|
||||
"github.com/influxdata/kapacitor/tick"
|
||||
"github.com/influxdata/kapacitor/tick/ast"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package kapacitor
|
||||
|
||||
import "testing"
|
||||
import "github.com/influxdata/chronograf"
|
||||
import "github.com/influxdata/platform/chronograf"
|
||||
|
||||
func TestValidateAlert(t *testing.T) {
|
||||
tests := []struct {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestVarsCritStringEqual(t *testing.T) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// Level type
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// Ensure KapacitorStore implements chronograf.ServersStore.
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestInterfaceImplementation(t *testing.T) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
// Ensure SourcesStore implements chronograf.SourcesStore.
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/influxdata/chronograf"
|
||||
"github.com/influxdata/platform/chronograf"
|
||||
)
|
||||
|
||||
func TestSourcesStore(t *testing.T) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/influxdata/chronograf/oauth2"
|
||||
"github.com/influxdata/platform/chronograf/oauth2"
|
||||
)
|
||||
|
||||
// Authenticator implements a OAuth2 authenticator
|
||||
|
|
|
@ -3,7 +3,7 @@ package mocks
|
|||
import (
|
||||
"context"
|
||||
|
||||
"github.com/influxdata/chronograf/v2"
|
||||
"github.com/influxdata/platform/chronograf/v2"
|
||||
)
|
||||
|
||||
var _ platform.CellService = &CellService{}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue