Skip to content

Commit 094a986

Browse files
cihangirbesiktasLuis Davim
authored and
Luis Davim
committed
some fixes applied to pass tests
1 parent 071c7d4 commit 094a986

File tree

3 files changed

+0
-66
lines changed

3 files changed

+0
-66
lines changed

application.go

-15
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ type Application struct {
6969
Executor *string `json:"executor,omitempty"`
7070
HealthChecks *[]HealthCheck `json:"healthChecks,omitempty"`
7171
ReadinessChecks *[]ReadinessCheck `json:"readinessChecks,omitempty"`
72-
Residency *Residency `json:"residency,omitempty"`
7372
Instances *int `json:"instances,omitempty"`
7473
Mem *float64 `json:"mem,omitempty"`
7574
Tasks []*Task `json:"tasks,omitempty"`
@@ -463,20 +462,6 @@ func (r *Application) EmptyReadinessChecks() *Application {
463462
return r
464463
}
465464

466-
// SetResidency sets the upgrade strategy.
467-
func (r *Application) SetResidency(us Residency) *Application {
468-
r.Residency = &us
469-
return r
470-
}
471-
472-
// EmptyResidency explicitly empties the residency -- use this if
473-
// you need to empty the residency of an application that already has
474-
// the residency set (setting it to nil will keep the current value).
475-
func (r *Application) EmptyResidency() *Application {
476-
r.Residency = &Residency{}
477-
return r
478-
}
479-
480465
// DeploymentIDs retrieves the application deployments IDs
481466
func (r *Application) DeploymentIDs() []*DeploymentID {
482467
var deployments []*DeploymentID

residency.go

-35
This file was deleted.

residency_test.go

-16
This file was deleted.

0 commit comments

Comments
 (0)