/
multiregion_oss.go
33 lines (26 loc) · 1.19 KB
/
multiregion_oss.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// +build !ent
package deploymentwatcher
import "github.com/hashicorp/nomad/nomad/structs"
// DeploymentRPC and JobRPC hold methods for interacting with peer regions
// in enterprise edition.
type DeploymentRPC interface{}
type JobRPC interface{}
func (w *deploymentWatcher) nextRegion(status string) error {
return nil
}
// RunDeployment is used to run a pending multiregion deployment. In
// single-region deployments, the pending state is unused.
func (w *deploymentWatcher) RunDeployment(req *structs.DeploymentRunRequest, resp *structs.DeploymentUpdateResponse) error {
return nil
}
// UnblockDeployment is used to unblock a multiregion deployment. In
// single-region deployments, the blocked state is unused.
func (w *deploymentWatcher) UnblockDeployment(req *structs.DeploymentUnblockRequest, resp *structs.DeploymentUpdateResponse) error {
return nil
}
// CancelDeployment is used to cancel a multiregion deployment. In
// single-region deployments, the deploymentwatcher has sole responsibility to
// cancel deployments so this RPC is never used.
func (w *deploymentWatcher) CancelDeployment(req *structs.DeploymentCancelRequest, resp *structs.DeploymentUpdateResponse) error {
return nil
}