Skip to content

Commit

Permalink
Revert "Rename agent/proxy package to reflect that it is limited to m…
Browse files Browse the repository at this point in the history
…anaged proxy processes. (#4550)"

This reverts commit e7e7c7d.
  • Loading branch information
banks authored Aug 23, 2018
1 parent e7e7c7d commit 5d152aa
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/hashicorp/consul/agent/config"
"github.com/hashicorp/consul/agent/consul"
"github.com/hashicorp/consul/agent/local"
"github.com/hashicorp/consul/agent/proxyprocess"
"github.com/hashicorp/consul/agent/proxy"
"github.com/hashicorp/consul/agent/structs"
"github.com/hashicorp/consul/agent/systemd"
"github.com/hashicorp/consul/agent/token"
Expand Down Expand Up @@ -210,7 +210,7 @@ type Agent struct {
tokens *token.Store

// proxyManager is the proxy process manager for managed Connect proxies.
proxyManager *proxyprocess.Manager
proxyManager *proxy.Manager

// proxyLock protects proxy information in the local state from concurrent modification
proxyLock sync.Mutex
Expand Down Expand Up @@ -372,7 +372,7 @@ func (a *Agent) Start() error {
// done here after the local state above is loaded in so we can have
// a more accurate initial state view.
if !c.ConnectTestDisableManagedProxies {
a.proxyManager = proxyprocess.NewManager()
a.proxyManager = proxy.NewManager()
a.proxyManager.AllowRoot = a.config.ConnectProxyAllowManagedRoot
a.proxyManager.State = a.State
a.proxyManager.Logger = a.logger
Expand Down
2 changes: 1 addition & 1 deletion agent/proxyprocess/daemon.go → agent/proxy/daemon.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

import (
"io/ioutil"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !darwin,!linux,!windows

package proxyprocess
package proxy

import "os"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build darwin linux windows

package proxyprocess
package proxy

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion agent/proxyprocess/manager.go → agent/proxy/manager.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

import (
"io/ioutil"
Expand Down
2 changes: 1 addition & 1 deletion agent/proxyprocess/noop.go → agent/proxy/noop.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

// Noop implements Proxy and does nothing.
type Noop struct{}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

import (
"testing"
Expand Down
2 changes: 1 addition & 1 deletion agent/proxyprocess/process.go → agent/proxy/process.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

import (
"strings"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build !windows

package proxyprocess
package proxy

import (
"fmt"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// +build windows

package proxyprocess
package proxy

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion agent/proxyprocess/proxy.go → agent/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//
// This package does not contain the built-in proxy for Connect. The source
// for that is available in the "connect/proxy" package.
package proxyprocess
package proxy

import (
"github.com/hashicorp/consul/agent/structs"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion agent/proxyprocess/root.go → agent/proxy/root.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

import (
"os"
Expand Down
2 changes: 1 addition & 1 deletion agent/proxyprocess/snapshot.go → agent/proxy/snapshot.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

import (
"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion agent/proxyprocess/test.go → agent/proxy/test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package proxyprocess
package proxy

// defaultTestProxy is the test proxy that is instantiated for proxies with
// an execution mode of ProxyExecModeTest.
Expand Down
2 changes: 1 addition & 1 deletion command/connect/proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"sort"
"strconv"

proxyAgent "github.com/hashicorp/consul/agent/proxyprocess"
proxyAgent "github.com/hashicorp/consul/agent/proxy"
"github.com/hashicorp/consul/api"
"github.com/hashicorp/consul/command/flags"
proxyImpl "github.com/hashicorp/consul/connect/proxy"
Expand Down

0 comments on commit 5d152aa

Please sign in to comment.