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