Skip to content

Commit

Permalink
Move pkg/ to util/
Browse files Browse the repository at this point in the history
  • Loading branch information
fabxc committed Jun 1, 2015
1 parent 027d896 commit 0de6edb
Show file tree
Hide file tree
Showing 34 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/strutil"
"github.com/prometheus/prometheus/util/strutil"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion notification/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/httputil"
"github.com/prometheus/prometheus/util/httputil"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion promql/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/stats"
"github.com/prometheus/prometheus/storage/local"
"github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/stats"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion promql/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"time"

clientmodel "github.com/prometheus/client_golang/model"
"github.com/prometheus/prometheus/pkg/strutil"
"github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/strutil"
)

type parser struct {
Expand Down
2 changes: 1 addition & 1 deletion promql/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/strutil"
"github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/strutil"
)

func (matrix Matrix) String() string {
Expand Down
4 changes: 2 additions & 2 deletions promql/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/strutil"
"github.com/prometheus/prometheus/pkg/testutil"
"github.com/prometheus/prometheus/storage"
"github.com/prometheus/prometheus/storage/local"
"github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/strutil"
"github.com/prometheus/prometheus/util/testutil"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion retrieval/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/config"
"github.com/prometheus/prometheus/pkg/httputil"
"github.com/prometheus/prometheus/storage"
"github.com/prometheus/prometheus/util/httputil"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion retrieval/target_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/httputil"
"github.com/prometheus/prometheus/util/httputil"
)

func TestBaseLabels(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion rules/alerting.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/strutil"
"github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/util/strutil"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion rules/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ import (

"github.com/prometheus/prometheus/config"
"github.com/prometheus/prometheus/notification"
"github.com/prometheus/prometheus/pkg/strutil"
"github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/storage"
"github.com/prometheus/prometheus/template"
"github.com/prometheus/prometheus/util/strutil"
)

// Constants for instrumentation.
Expand Down
2 changes: 1 addition & 1 deletion rules/recording.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/strutil"
"github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/util/strutil"
)

// A RecordingRule records its vector expression into new timeseries.
Expand Down
2 changes: 1 addition & 1 deletion storage/local/persistence.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/flock"
"github.com/prometheus/prometheus/storage/local/codable"
"github.com/prometheus/prometheus/storage/local/index"
"github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/flock"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion storage/local/persistence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/testutil"
"github.com/prometheus/prometheus/storage/local/codable"
"github.com/prometheus/prometheus/storage/local/index"
"github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/testutil"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion storage/local/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/testutil"
"github.com/prometheus/prometheus/storage/metric"
"github.com/prometheus/prometheus/util/testutil"
)

func TestFingerprintsForLabelMatchers(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion storage/local/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package local
import (
"time"

"github.com/prometheus/prometheus/pkg/testutil"
"github.com/prometheus/prometheus/util/testutil"
)

type testStorageCloser struct {
Expand Down
2 changes: 1 addition & 1 deletion storage/remote/influxdb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/httputil"
"github.com/prometheus/prometheus/util/httputil"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion storage/remote/opentsdb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/httputil"
"github.com/prometheus/prometheus/util/httputil"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/strutil"
"github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/util/strutil"
)

// A version of vector that's easier to use from templates.
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/flock/flock_test.go → util/flock/flock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"path/filepath"
"testing"

"github.com/prometheus/prometheus/pkg/testutil"
"github.com/prometheus/prometheus/util/testutil"
)

func TestLocking(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion web/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/httputil"
"github.com/prometheus/prometheus/promql"
"github.com/prometheus/prometheus/storage/local"
"github.com/prometheus/prometheus/util/httputil"
)

// MetricsService manages the /api HTTP endpoint.
Expand Down
2 changes: 1 addition & 1 deletion web/api/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

clientmodel "github.com/prometheus/client_golang/model"

"github.com/prometheus/prometheus/pkg/httputil"
"github.com/prometheus/prometheus/util/httputil"
)

// Enables cross-site script calls.
Expand Down

0 comments on commit 0de6edb

Please sign in to comment.