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