Skip to content

Commit

Permalink
Rename repo from common to pkg, and move packages up a level.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtail committed May 13, 2019
1 parent db2ea8f commit 0187f41
Show file tree
Hide file tree
Showing 113 changed files with 46 additions and 46 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ jobs:
build:
docker:
- image: gcr.io/istio-testing/circleci:2019-04-22
working_directory: /go/src/istio.io/common
working_directory: /go/src/istio.io/pkg
steps:
- checkout
- run:
Expand All @@ -14,7 +14,7 @@ jobs:
lint:
docker:
- image: gcr.io/istio-testing/circleci:2019-04-22
working_directory: /go/src/istio.io/common
working_directory: /go/src/istio.io/pkg
steps:
- checkout
- run:
Expand All @@ -24,7 +24,7 @@ jobs:
test:
docker:
- image: gcr.io/istio-testing/circleci:2019-04-22
working_directory: /go/src/istio.io/common
working_directory: /go/src/istio.io/pkg
steps:
- checkout
- run:
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[![CircleCI](https://circleci.com/gh/istio/common.svg?style=svg)](https://circleci.com/gh/istio/common)
[![Mergify Status](https://gh.mergify.io/badges/istio/common.png?style=cut)](https://mergify.io)
[![codecov.io](https://codecov.io/gh/istio/common/branch/master/graph/badge.svg)](https://codecov.io/gh/istio/common)
[![Go Report Card](https://goreportcard.com/badge/github.com/istio/common)](https://goreportcard.com/report/github.com/istio/common)
[![CircleCI](https://circleci.com/gh/istio/pkg.svg?style=svg)](https://circleci.com/gh/istio/pkg)
[![Mergify Status](https://gh.mergify.io/badges/istio/pkg.png?style=cut)](https://mergify.io)
[![codecov.io](https://codecov.io/gh/istio/pkg/branch/master/graph/badge.svg)](https://codecov.io/gh/istio/pkg)
[![Go Report Card](https://goreportcard.com/badge/github.com/istio/pkg)](https://goreportcard.com/report/github.com/istio/pkg)
[![GoDoc](https://godoc.org/istio.io/common?status.svg)](https://godoc.org/istio.io/common)
[![GolangCI](https://golangci.com/badges/github.com/istio/common.svg)](https://golangci.com/r/github.com/istio/common)
[![GolangCI](https://golangci.com/badges/github.com/istio/pkg.svg)](https://golangci.com/r/github.com/istio/pkg)

# Istio Common Functionality
# Common Istio Packages

Common functionality leveraged by many other repos.
Common packages leveraged by other repos.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"sort"
"sync"

"istio.io/common/pkg/log"
"istio.io/pkg/log"
)

// Annotation describes a single resource annotation
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/appsignals/watcher.go → appsignals/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/howeyc/fsnotify"

"istio.io/common/pkg/log"
"istio.io/pkg/log"
)

var handlers struct {
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.
4 changes: 2 additions & 2 deletions pkg/collateral/control.go → collateral/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ import (
"github.com/spf13/cobra/doc"
"github.com/spf13/pflag"

"istio.io/common/pkg/annotations"
"istio.io/common/pkg/env"
"istio.io/pkg/annotations"
"istio.io/pkg/env"
)

// Control determines the behavior of the EmitCollateral function
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions pkg/ctrlz/ctrlz.go → ctrlz/ctrlz.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ import (

"github.com/gorilla/mux"

"istio.io/common/pkg/ctrlz/assets"
"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics"
"istio.io/common/pkg/log"
"istio.io/pkg/ctrlz/assets"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics"
"istio.io/pkg/log"
)

var coreTopics = []fw.Topic{
Expand Down
2 changes: 1 addition & 1 deletion pkg/ctrlz/ctrlz_test.go → ctrlz/ctrlz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"testing"
"time"

"istio.io/common/pkg/appsignals"
"istio.io/pkg/appsignals"
)

func TestStartStopEnabled(t *testing.T) {
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/ctrlz/home.go → ctrlz/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import (

"github.com/gorilla/mux"

"istio.io/common/pkg/ctrlz/assets"
"istio.io/common/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/assets"
"istio.io/pkg/ctrlz/fw"
)

var mimeTypes = map[string]string{
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/ctrlz/topics/args.go → ctrlz/topics/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"net/http"
"os"

"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics/assets"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics/assets"
)

type argsTopic struct {
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.
4 changes: 2 additions & 2 deletions pkg/ctrlz/topics/collection.go → ctrlz/topics/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (

yaml "gopkg.in/yaml.v2"

"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics/assets"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics/assets"
)

// ReadableCollection is a staticCollection collection of entries to be exposed via CtrlZ.
Expand Down
4 changes: 2 additions & 2 deletions pkg/ctrlz/topics/env.go → ctrlz/topics/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"sort"
"strings"

"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics/assets"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics/assets"
)

type envTopic struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/ctrlz/topics/mem.go → ctrlz/topics/mem.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"net/http"
"runtime"

"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics/assets"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics/assets"
)

type memTopic struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/ctrlz/topics/metrics.go → ctrlz/topics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/prom2json"

"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics/assets"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics/assets"
)

type metricsTopic struct {
Expand Down
4 changes: 2 additions & 2 deletions pkg/ctrlz/topics/proc.go → ctrlz/topics/proc.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"os"
"runtime"

"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics/assets"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics/assets"
)

type procTopic struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/ctrlz/topics/scopes.go → ctrlz/topics/scopes.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (

"github.com/gorilla/mux"

"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics/assets"
"istio.io/common/pkg/log"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics/assets"
"istio.io/pkg/log"
)

type scopeTopic struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/ctrlz/topics/signals.go → ctrlz/topics/signals.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"net/http"
"syscall"

"istio.io/common/pkg/appsignals"
"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics/assets"
"istio.io/pkg/appsignals"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics/assets"
)

type signalsTopic struct {
Expand Down
6 changes: 3 additions & 3 deletions pkg/ctrlz/topics/version.go → ctrlz/topics/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"html/template"
"net/http"

"istio.io/common/pkg/ctrlz/fw"
"istio.io/common/pkg/ctrlz/topics/assets"
"istio.io/common/pkg/version"
"istio.io/pkg/ctrlz/fw"
"istio.io/pkg/ctrlz/topics/assets"
"istio.io/pkg/version"
)

type versionTopic struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/env/var.go → env/var.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"sync"
"time"

"istio.io/common/pkg/log"
"istio.io/pkg/log"
)

// The type of a variable's value
Expand Down
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 go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module istio.io/common
module istio.io/pkg

go 1.12

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 pkg/probe/controller.go → probe/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

multierror "github.com/hashicorp/go-multierror"

"istio.io/common/pkg/log"
"istio.io/pkg/log"
)

// Controller provides the internal interface to handle events coming
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 pkg/version/stats_linux.go → version/stats_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"go.opencensus.io/stats/view"
"go.opencensus.io/tag"

"istio.io/common/pkg/log"
"istio.io/pkg/log"
)

// Note that this code uses go.opencensus.io/stats,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0187f41

Please sign in to comment.