Skip to content

Commit

Permalink
Move procspy out of vendor into probe/endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwilkie committed Dec 9, 2015
1 parent 8db21fb commit b94751a
Show file tree
Hide file tree
Showing 20 changed files with 13 additions and 121 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ func TestLSOFParsing(t *testing.T) {
"p25196\n" +
"ccello-app\n" +
"n127.0.0.1:48094->127.0.0.1:4039\n" +
"n*:4040\n": map[string]Proc{
"127.0.0.1:48094": Proc{
"n*:4040\n": {
"127.0.0.1:48094": {
PID: 25196,
Name: "cello-app",
},
Expand All @@ -23,7 +23,7 @@ func TestLSOFParsing(t *testing.T) {
"cdhclient\n" +
"n*:68\n" +
"n*:38282\n" +
"n*:40625\n": map[string]Proc{},
"n*:40625\n": {},

// A bunch
"p13100\n" +
Expand All @@ -39,28 +39,28 @@ func TestLSOFParsing(t *testing.T) {
"n192.168.2.111:56385->74.201.105.31:443\n" +
"p21356\n" +
"cssh\n" +
"n192.168.2.111:33963->192.168.2.71:22\n": map[string]Proc{
"[::1]:6600": Proc{
"n192.168.2.111:33963->192.168.2.71:22\n": {
"[::1]:6600": {
PID: 13100,
Name: "mpd",
},
"[2003:45:2b57:8900:1869:2947:f942:aba7]:55711": Proc{
"[2003:45:2b57:8900:1869:2947:f942:aba7]:55711": {
PID: 14612,
Name: "chromium",
},
"192.168.2.111:37158": Proc{
"192.168.2.111:37158": {
PID: 14612,
Name: "chromium",
},
"192.168.2.111:44013": Proc{
"192.168.2.111:44013": {
PID: 14612,
Name: "chromium",
},
"192.168.2.111:56385": Proc{
"192.168.2.111:56385": {
PID: 14612,
Name: "chromium",
},
"192.168.2.111:33963": Proc{
"192.168.2.111:33963": {
PID: 21356,
Name: "ssh",
},
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.
2 changes: 1 addition & 1 deletion probe/endpoint/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/prometheus/client_golang/prometheus"

"github.com/weaveworks/procspy"
"github.com/weaveworks/scope/probe/endpoint/procspy"
"github.com/weaveworks/scope/probe/process"
"github.com/weaveworks/scope/report"
)
Expand Down
2 changes: 1 addition & 1 deletion probe/endpoint/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"strconv"
"testing"

"github.com/weaveworks/procspy"
"github.com/weaveworks/scope/probe/docker"
"github.com/weaveworks/scope/probe/endpoint"
"github.com/weaveworks/scope/probe/endpoint/procspy"
"github.com/weaveworks/scope/report"
)

Expand Down
20 changes: 0 additions & 20 deletions vendor/github.com/weaveworks/procspy/Makefile

This file was deleted.

64 changes: 0 additions & 64 deletions vendor/github.com/weaveworks/procspy/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions vendor/github.com/weaveworks/procspy/lsproc/lsproc.go

This file was deleted.

8 changes: 1 addition & 7 deletions vendor/manifest
Original file line number Diff line number Diff line change
Expand Up @@ -723,12 +723,6 @@
"branch": "master",
"path": "/odp"
},
{
"importpath": "github.com/weaveworks/procspy",
"repository": "https://github.com/weaveworks/procspy",
"revision": "cb970aa190c374d1e47711dbffb3c2c6e9ef0dd1",
"branch": "master"
},
{
"importpath": "github.com/weaveworks/weave/common",
"repository": "https://github.com/weaveworks/weave",
Expand Down Expand Up @@ -931,4 +925,4 @@
"branch": "master"
}
]
}
}

0 comments on commit b94751a

Please sign in to comment.