Skip to content

Commit fa468bc

Browse files
committed
chore(maintenance): remove maintenance support
1 parent 23b71be commit fa468bc

9 files changed

Lines changed: 3 additions & 381 deletions

File tree

cmd/cmd.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ type Commander interface {
6464
TimeoutsList(string) error
6565
TimeoutsSet(string, []string) error
6666
TimeoutsUnset(string, []string) error
67-
MaintenanceInfo(string) error
68-
MaintenanceEnable(string) error
69-
MaintenanceDisable(string) error
7067
PermsList(string, bool, int) error
7168
PermCreate(string, string, bool) error
7269
PermDelete(string, string, bool) error

cmd/maintenance.go

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

cmd/maintenance_test.go

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

cmd/routing_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ func TestRoutingInfo(t *testing.T) {
2626
fmt.Fprintf(w, `{
2727
"owner": "elrond",
2828
"app": "rivendell",
29-
"maintenance": true,
3029
"routable": true,
3130
"created": "2014-01-01T00:00:00UTC",
3231
"updated": "2014-01-01T00:00:00UTC",
@@ -43,7 +42,6 @@ func TestRoutingInfo(t *testing.T) {
4342
fmt.Fprintf(w, `{
4443
"owner": "sauron",
4544
"app": "mordor",
46-
"maintenance": true,
4745
"routable": false,
4846
"created": "2014-01-01T00:00:00UTC",
4947
"updated": "2014-01-01T00:00:00UTC",
@@ -62,7 +60,6 @@ func TestRoutingInfo(t *testing.T) {
6260
fmt.Fprintf(w, `{
6361
"owner": "aragorn",
6462
"app": "gondor",
65-
"maintenance": true,
6663
"created": "2014-01-01T00:00:00UTC",
6764
"updated": "2014-01-01T00:00:00UTC",
6865
"uuid": "de1bf5b5-4a72-4f94-a10c-d2a3741cdf75"

drycc.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ Subcommands, use 'drycc help [subcommand]' to learn more::
6363
registry manage private registry information for your application
6464
releases manage releases of an application
6565
routing manage routability of an application
66-
maintenance manage maintenance mode of an application
6766
tags manage tags for application containers
6867
tls manage TLS settings for applications
6968
users manage users
@@ -149,8 +148,6 @@ Use 'git push drycc master' to deploy to an application.
149148
err = parser.Releases(argv, &cmdr)
150149
case "routing":
151150
err = parser.Routing(argv, &cmdr)
152-
case "maintenance":
153-
err = parser.Maintenance(argv, &cmdr)
154151
case "shortcuts":
155152
err = parser.Shortcuts(argv, &cmdr)
156153
case "tags":

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.13
55
require (
66
github.com/arschles/assert v1.0.1-0.20191213221312-71f210f9375a
77
github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815
8-
github.com/drycc/controller-sdk-go v0.0.0-20200804054414-9d56a7f85205
8+
github.com/drycc/controller-sdk-go v0.0.0-20200813035713-e73ce53533e7
99
github.com/drycc/pkg v0.0.0-20200811173146-1f2b2781a852
1010
github.com/olekukonko/tablewriter v0.0.4
1111
golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ github.com/drycc/controller-sdk-go v0.0.0-20190417134318-39a6c81f21f3 h1:SzH+2aP
3232
github.com/drycc/controller-sdk-go v0.0.0-20190417134318-39a6c81f21f3/go.mod h1:bf3lPkMsCK+DmEd8wc1yk3Wj0pDPni6cqglR+jqo1Dc=
3333
github.com/drycc/controller-sdk-go v0.0.0-20200804054414-9d56a7f85205 h1:6agdZ9/RhBofiEfnBiMdJd2Rbwr9Q/wMGxBO2ulOtvM=
3434
github.com/drycc/controller-sdk-go v0.0.0-20200804054414-9d56a7f85205/go.mod h1:mF8/kZ/E4oDHCtfUVS790Frm8oVzZkoCGCKYT2eWQro=
35+
github.com/drycc/controller-sdk-go v0.0.0-20200813035713-e73ce53533e7 h1:8tlFlmR2XE6IULo2gG7YcOycaFCSMOcnSMP5M/rhBLQ=
36+
github.com/drycc/controller-sdk-go v0.0.0-20200813035713-e73ce53533e7/go.mod h1:mF8/kZ/E4oDHCtfUVS790Frm8oVzZkoCGCKYT2eWQro=
3537
github.com/drycc/pkg v0.0.0-20190129033019-bcdffff0fcb3 h1:QRAbL97/hJecXQzaSONMCiwt1JjBKAAMKK0qJW5sgIM=
3638
github.com/drycc/pkg v0.0.0-20190129033019-bcdffff0fcb3/go.mod h1:zNgTT6kuGZOKMIdSrjskIw5fctdbbszqiTPEt3ffxHw=
3739
github.com/drycc/pkg v0.0.0-20200811173146-1f2b2781a852 h1:OsWH7jrv2i32rkvHFuj3yVpGMR+A6heRge9tm01XR/U=

parser/maintenance.go

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

0 commit comments

Comments
 (0)