Skip to content

Commit 0bbfd15

Browse files
authored
Merge pull request #289 from dokku/288-remove-the-unmaintained-plugn-gateway-path
feat!: remove unmaintained plugn gateway path
2 parents 96ad492 + 57a26be commit 0bbfd15

8 files changed

Lines changed: 15 additions & 212 deletions

File tree

bashenv/plugn.bash

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,23 +118,20 @@ trigger() {
118118
fi
119119
done
120120
shopt -u nullglob
121-
trigger-gateway $hook "$@"
122121
}
123122

124123
enable() {
125124
declare desc="Enable a plugin"
126125
declare plugin="$1"
127126
mkdir -p "$PLUGIN_PATH/enabled"
128127
ln -fs "$PLUGIN_PATH/available/$plugin" "$PLUGIN_PATH/enabled/$plugin"
129-
reload-gateway
130128
}
131129

132130
disable() {
133131
declare desc="Disable a plugin"
134132
declare plugin="$1"
135133
mkdir -p "$PLUGIN_PATH/enabled"
136134
rm "$PLUGIN_PATH/enabled/$plugin"
137-
reload-gateway
138135
}
139136

140137
config-get() {

example/plugins/available/remote/plugin.toml

Lines changed: 0 additions & 11 deletions
This file was deleted.

example/plugins/available/remote/remote.go

Lines changed: 0 additions & 30 deletions
This file was deleted.

gateway.go

Lines changed: 0 additions & 134 deletions
This file was deleted.

go.mod

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ toolchain go1.24.1
66

77
require (
88
github.com/BurntSushi/toml v1.6.0
9-
github.com/dokku/duplex v0.0.0-20160916172127-5bc6cb8042f7
109
github.com/progrium/go-basher v5.1.8+incompatible
11-
github.com/progrium/plugin-demo v0.0.0-20160206152045-d94df2206a64
1210
)
1311

1412
require (
15-
github.com/google/uuid v1.1.4 // indirect
1613
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
1714
github.com/mitchellh/go-homedir v1.1.0 // indirect
18-
github.com/pborman/uuid v1.2.1 // indirect
19-
github.com/progrium/crypto v0.0.0-20141231035031-e04455474e32 // indirect
20-
golang.org/x/crypto v0.45.0 // indirect
2115
)

go.sum

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,8 @@
11
github.com/BurntSushi/toml v1.6.0 h1:dRaEfpa2VI55EwlIW72hMRHdWouJeRF7TPYhI+AUQjk=
22
github.com/BurntSushi/toml v1.6.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
3-
github.com/dokku/duplex v0.0.0-20160916172127-5bc6cb8042f7 h1:BBMM8QczgTcNTM6axgZA2pdR5SG0eePSh2GeOLpkgRw=
4-
github.com/dokku/duplex v0.0.0-20160916172127-5bc6cb8042f7/go.mod h1:FagtW/LftfcKQuBjdmKHdhxCbTU7Gdv87BIOQ6dgAk4=
5-
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
6-
github.com/google/uuid v1.1.4 h1:0ecGp3skIrHWPNGPJDaBIghfA6Sp7Ruo2Io8eLKzWm0=
7-
github.com/google/uuid v1.1.4/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
83
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 h1:iQTw/8FWTuc7uiaSepXwyf3o52HaUYcV+Tu66S3F5GA=
94
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8=
105
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
116
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
12-
github.com/pborman/uuid v1.2.1 h1:+ZZIw58t/ozdjRaXh/3awHfmWRbzYxJoAdNJxe/3pvw=
13-
github.com/pborman/uuid v1.2.1/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
14-
github.com/progrium/crypto v0.0.0-20141231035031-e04455474e32 h1:TazRiCelU8NoJMn2z0/RIzv4lUUkp5YwAunbjUsODHQ=
15-
github.com/progrium/crypto v0.0.0-20141231035031-e04455474e32/go.mod h1:spjB7wUvxDfIjoK9jtlCu07B/QaZwjtKlQeM3njS9QA=
16-
github.com/progrium/go-basher v5.1.7+incompatible h1:0ezYhhUW4Ie0h5faBKZWq+Ajn9VyR7mGI3ayi7khS7c=
17-
github.com/progrium/go-basher v5.1.7+incompatible/go.mod h1:Oiy7jZEU1mm+gI1dt5MKYwxptmD37q8/UupxnwhMHtI=
187
github.com/progrium/go-basher v5.1.8+incompatible h1:2GQffE0yLIreCPzEvNqn8ftnSQBvR9p31hgfZeuveVQ=
198
github.com/progrium/go-basher v5.1.8+incompatible/go.mod h1:Oiy7jZEU1mm+gI1dt5MKYwxptmD37q8/UupxnwhMHtI=
20-
github.com/progrium/plugin-demo v0.0.0-20160206152045-d94df2206a64 h1:FHNCTel7Yt0+4I1uvKfu2X+g8U8tHBBJb7zl+ohfmqM=
21-
github.com/progrium/plugin-demo v0.0.0-20160206152045-d94df2206a64/go.mod h1:xwVfSlPMRhFysvnn0lOZ1Ruen2jTuzgwm4Hs0onTrlY=
22-
golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
23-
golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4=
24-
golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc=
25-
golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
26-
golang.org/x/term v0.37.0 h1:8EGAD0qCmHYZg6J17DvsMy9/wJ7/D/4pV/wfnld5lTU=
27-
golang.org/x/term v0.37.0/go.mod h1:5pB4lxRNYYVZuTLmy8oR2BH8dflOR+IbTYFD8fi3254=

plugn.go

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,10 @@ func main() {
103103
}
104104

105105
PluginPath = os.Getenv("PLUGIN_PATH")
106-
if isArg("gateway") {
107-
runGateway()
108-
return
109-
}
110106
funcs := map[string]func([]string){
111-
"toml-get": TomlGet,
112-
"toml-set": TomlSet,
113-
"toml-export": TomlExport,
114-
"trigger-gateway": TriggerGateway,
115-
"reload-gateway": ReloadGateway,
107+
"toml-get": TomlGet,
108+
"toml-set": TomlSet,
109+
"toml-export": TomlExport,
116110
}
117111
scripts := []string{
118112
"bashenv/bash.bash",

tests/functional/tests.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,15 @@ T_plugn-version() {
130130
plugn init && \
131131
plugn version"
132132
}
133+
134+
T_plugn-gateway-removed() {
135+
plugn-test-fail "test-gateway-removed" "
136+
plugn init && \
137+
plugn gateway"
138+
plugn-test-fail "test-trigger-gateway-removed" "
139+
plugn init && \
140+
plugn trigger-gateway some-hook"
141+
plugn-test-fail "test-reload-gateway-removed" "
142+
plugn init && \
143+
plugn reload-gateway"
144+
}

0 commit comments

Comments
 (0)