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