Anchorage API reference
Documentation
GitHub
Preparing search index...
@proofoftech/fleet-control
index
BackendSwitchProvider
Interface BackendSwitchProvider
interface
BackendSwitchProvider
{
assertCandidateHostPublished
(
input
:
{
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
;
assertCandidateServing
(
input
:
{
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
;
assertFinalizedState
(
input
:
{
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
;
assertPlainBridgeServing
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
}
,
)
:
Promise
<
void
>
;
assertSwitchApplicationR2Detached
(
resource
:
ApplicationR2Resource
,
fence
:
ExternalMutationFence
,
)
:
Promise
<
void
>
;
assertSwitchApplicationR2Empty
(
resource
:
ApplicationR2Resource
,
fence
:
ExternalMutationFence
,
)
:
Promise
<
void
>
;
assertSwitchTrafficRemoved
(
input
:
{
prior
:
PlainBackendSnapshot
;
routeHostname
:
string
}
,
)
:
Promise
<
void
>
;
commitFinalizedOwnership
(
input
:
{
bridge
:
BridgeSnapshot
;
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
}
,
)
:
Promise
<
FleetRecord
>
;
commitPlainOwnership
(
input
:
{
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
restoredArtifactVersion
:
string
;
}
,
)
:
Promise
<
FleetRecord
>
;
commitWorkersForPlatformsOwnership
(
input
:
{
bridge
:
BridgeSnapshot
;
candidate
:
ExternalReleaseSnapshot
;
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
FleetRecord
>
;
deleteSwitchApplicationR2
(
resource
:
ApplicationR2Resource
,
fence
:
ExternalMutationFence
,
)
:
Promise
<
void
>
;
deleteSwitchDatabase
(
input
:
{
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
;
describeBridge
(
input
:
{
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
BridgeMutationPlan
;
describeFinalizedBridgeTarget
(
targetSpec
:
DeploymentSpec
,
currentRecord
:
FleetRecord
,
)
:
ExternalPlatformTargetDescription
;
describeFinalizedState
(
input
:
{
currentRecord
:
FleetRecord
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
BridgeMutationPlan
;
detachPlainCustomDomain
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
}
,
)
:
Promise
<
void
>
;
ensureBridge
(
input
:
{
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
secrets
:
DeploymentSecrets
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BridgeSnapshot
>
;
ensureCandidate
(
input
:
{
bridge
:
BridgeSnapshot
;
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
secrets
:
DeploymentSecrets
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BackendSwitchCandidateSnapshot
>
;
ensureFinalizedState
(
input
:
{
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BridgeSnapshot
>
;
ensureStateOnlyBridge
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BridgeSnapshot
>
;
exportSwitchDatabase
(
input
:
{
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
DatabaseExport
>
;
findSwitchApplicationR2
(
resource
:
ApplicationR2Resource
,
)
:
Promise
<
ApplicationR2BucketSnapshot
|
undefined
>
;
privatizeBridge
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
}
,
)
:
Promise
<
BridgeSnapshot
>
;
publishCandidateHost
(
input
:
{
bridge
:
BridgeSnapshot
;
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
;
recoverBridge
(
input
:
{
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BridgeSnapshot
|
undefined
>
;
removeCandidateHostAndDrain
(
input
:
{
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
;
removeSwitchBridge
(
input
:
{
allowedArtifactVersions
:
readonly
string
[]
;
bridge
?:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
plan
?:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
;
removeSwitchRelease
(
input
:
{
environment
:
string
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
release
:
ExternalReleaseSnapshot
;
routeHostname
:
string
;
tenantTag
:
string
;
}
,
)
:
Promise
<
void
>
;
removeSwitchTraffic
(
input
:
{
allowedArtifactVersions
:
readonly
string
[]
;
bridge
?:
BridgeSnapshot
;
environment
:
string
;
fence
:
ExternalMutationFence
;
plan
?:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
routeHostname
:
string
;
routeTargets
:
readonly
HostRoutingTarget
[]
;
targetSpec
:
DeploymentSpec
;
tenantTag
:
string
;
}
,
)
:
Promise
<
void
>
;
restorePlainDeployment
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
secrets
:
DeploymentSecrets
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
string
>
;
routePlainDomainToBridge
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
}
,
)
:
Promise
<
void
>
;
snapshotPlainDeployment
(
priorSpec
:
DeploymentSpec
,
currentRecord
:
FleetRecord
,
fence
:
ExternalMutationFence
,
)
:
Promise
<
PlainBackendSnapshot
>
;
}
Implemented by
WorkersForPlatformsBackendSwitchProvider
Index
Methods
assert
Candidate
Host
Published
assert
Candidate
Serving
assert
Finalized
State
assert
Plain
Bridge
Serving
assert
Switch
Application
R2
Detached
assert
Switch
Application
R2
Empty
assert
Switch
Traffic
Removed
commit
Finalized
Ownership
commit
Plain
Ownership
commit
Workers
For
Platforms
Ownership
delete
Switch
Application
R2
delete
Switch
Database
describe
Bridge
describe
Finalized
Bridge
Target
describe
Finalized
State
detach
Plain
Custom
Domain
ensure
Bridge
ensure
Candidate
ensure
Finalized
State
ensure
State
Only
Bridge
export
Switch
Database
find
Switch
Application
R2
privatize
Bridge
publish
Candidate
Host
recover
Bridge
remove
Candidate
Host
And
Drain
remove
Switch
Bridge
remove
Switch
Release
remove
Switch
Traffic
restore
Plain
Deployment
route
Plain
Domain
To
Bridge
snapshot
Plain
Deployment
Methods
assert
Candidate
Host
Published
assertCandidateHostPublished
(
input
:
{
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
void
>
assert
Candidate
Serving
assertCandidateServing
(
input
:
{
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
void
>
assert
Finalized
State
assertFinalizedState
(
input
:
{
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
void
>
assert
Plain
Bridge
Serving
assertPlainBridgeServing
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
}
Returns
Promise
<
void
>
assert
Switch
Application
R2
Detached
assertSwitchApplicationR2Detached
(
resource
:
ApplicationR2Resource
,
fence
:
ExternalMutationFence
,
)
:
Promise
<
void
>
Parameters
resource
:
ApplicationR2Resource
fence
:
ExternalMutationFence
Returns
Promise
<
void
>
assert
Switch
Application
R2
Empty
assertSwitchApplicationR2Empty
(
resource
:
ApplicationR2Resource
,
fence
:
ExternalMutationFence
,
)
:
Promise
<
void
>
Parameters
resource
:
ApplicationR2Resource
fence
:
ExternalMutationFence
Returns
Promise
<
void
>
assert
Switch
Traffic
Removed
assertSwitchTrafficRemoved
(
input
:
{
prior
:
PlainBackendSnapshot
;
routeHostname
:
string
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
prior
:
PlainBackendSnapshot
;
routeHostname
:
string
}
Returns
Promise
<
void
>
commit
Finalized
Ownership
commitFinalizedOwnership
(
input
:
{
bridge
:
BridgeSnapshot
;
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
}
,
)
:
Promise
<
FleetRecord
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
}
Returns
Promise
<
FleetRecord
>
commit
Plain
Ownership
commitPlainOwnership
(
input
:
{
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
restoredArtifactVersion
:
string
;
}
,
)
:
Promise
<
FleetRecord
>
Parameters
input
:
{
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
restoredArtifactVersion
:
string
;
}
Returns
Promise
<
FleetRecord
>
commit
Workers
For
Platforms
Ownership
commitWorkersForPlatformsOwnership
(
input
:
{
bridge
:
BridgeSnapshot
;
candidate
:
ExternalReleaseSnapshot
;
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
FleetRecord
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
candidate
:
ExternalReleaseSnapshot
;
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
FleetRecord
>
delete
Switch
Application
R2
deleteSwitchApplicationR2
(
resource
:
ApplicationR2Resource
,
fence
:
ExternalMutationFence
,
)
:
Promise
<
void
>
Parameters
resource
:
ApplicationR2Resource
fence
:
ExternalMutationFence
Returns
Promise
<
void
>
delete
Switch
Database
deleteSwitchDatabase
(
input
:
{
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
void
>
describe
Bridge
describeBridge
(
input
:
{
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
BridgeMutationPlan
Parameters
input
:
{
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
targetSpec
:
DeploymentSpec
;
}
Returns
BridgeMutationPlan
describe
Finalized
Bridge
Target
describeFinalizedBridgeTarget
(
targetSpec
:
DeploymentSpec
,
currentRecord
:
FleetRecord
,
)
:
ExternalPlatformTargetDescription
Parameters
targetSpec
:
DeploymentSpec
currentRecord
:
FleetRecord
Returns
ExternalPlatformTargetDescription
describe
Finalized
State
describeFinalizedState
(
input
:
{
currentRecord
:
FleetRecord
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
BridgeMutationPlan
Parameters
input
:
{
currentRecord
:
FleetRecord
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
Returns
BridgeMutationPlan
detach
Plain
Custom
Domain
detachPlainCustomDomain
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
}
Returns
Promise
<
void
>
ensure
Bridge
ensureBridge
(
input
:
{
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
secrets
:
DeploymentSecrets
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BridgeSnapshot
>
Parameters
input
:
{
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
secrets
:
DeploymentSecrets
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
BridgeSnapshot
>
ensure
Candidate
ensureCandidate
(
input
:
{
bridge
:
BridgeSnapshot
;
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
secrets
:
DeploymentSecrets
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BackendSwitchCandidateSnapshot
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
secrets
:
DeploymentSecrets
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
BackendSwitchCandidateSnapshot
>
ensure
Finalized
State
ensureFinalizedState
(
input
:
{
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BridgeSnapshot
>
Parameters
input
:
{
currentRecord
:
FleetRecord
;
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
BridgeSnapshot
>
ensure
State
Only
Bridge
ensureStateOnlyBridge
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BridgeSnapshot
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
BridgeSnapshot
>
export
Switch
Database
exportSwitchDatabase
(
input
:
{
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
DatabaseExport
>
Parameters
input
:
{
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
DatabaseExport
>
find
Switch
Application
R2
findSwitchApplicationR2
(
resource
:
ApplicationR2Resource
,
)
:
Promise
<
ApplicationR2BucketSnapshot
|
undefined
>
Parameters
resource
:
ApplicationR2Resource
Returns
Promise
<
ApplicationR2BucketSnapshot
|
undefined
>
privatize
Bridge
privatizeBridge
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
}
,
)
:
Promise
<
BridgeSnapshot
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
}
Returns
Promise
<
BridgeSnapshot
>
publish
Candidate
Host
publishCandidateHost
(
input
:
{
bridge
:
BridgeSnapshot
;
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
target
:
ExternalPlatformTargetDescription
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
void
>
recover
Bridge
recoverBridge
(
input
:
{
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
BridgeSnapshot
|
undefined
>
Parameters
input
:
{
fence
:
ExternalMutationFence
;
plan
:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
BridgeSnapshot
|
undefined
>
remove
Candidate
Host
And
Drain
removeCandidateHostAndDrain
(
input
:
{
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
candidate
:
ExternalReleaseSnapshot
;
fence
:
ExternalMutationFence
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
void
>
remove
Switch
Bridge
removeSwitchBridge
(
input
:
{
allowedArtifactVersions
:
readonly
string
[]
;
bridge
?:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
plan
?:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
allowedArtifactVersions
:
readonly
string
[]
;
bridge
?:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
plan
?:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
void
>
remove
Switch
Release
removeSwitchRelease
(
input
:
{
environment
:
string
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
release
:
ExternalReleaseSnapshot
;
routeHostname
:
string
;
tenantTag
:
string
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
environment
:
string
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
release
:
ExternalReleaseSnapshot
;
routeHostname
:
string
;
tenantTag
:
string
;
}
Returns
Promise
<
void
>
remove
Switch
Traffic
removeSwitchTraffic
(
input
:
{
allowedArtifactVersions
:
readonly
string
[]
;
bridge
?:
BridgeSnapshot
;
environment
:
string
;
fence
:
ExternalMutationFence
;
plan
?:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
routeHostname
:
string
;
routeTargets
:
readonly
HostRoutingTarget
[]
;
targetSpec
:
DeploymentSpec
;
tenantTag
:
string
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
allowedArtifactVersions
:
readonly
string
[]
;
bridge
?:
BridgeSnapshot
;
environment
:
string
;
fence
:
ExternalMutationFence
;
plan
?:
BridgeMutationPlan
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
routeHostname
:
string
;
routeTargets
:
readonly
HostRoutingTarget
[]
;
targetSpec
:
DeploymentSpec
;
tenantTag
:
string
;
}
Returns
Promise
<
void
>
restore
Plain
Deployment
restorePlainDeployment
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
secrets
:
DeploymentSecrets
;
targetSpec
:
DeploymentSpec
;
}
,
)
:
Promise
<
string
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
priorSpec
:
DeploymentSpec
;
secrets
:
DeploymentSecrets
;
targetSpec
:
DeploymentSpec
;
}
Returns
Promise
<
string
>
route
Plain
Domain
To
Bridge
routePlainDomainToBridge
(
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
}
,
)
:
Promise
<
void
>
Parameters
input
:
{
bridge
:
BridgeSnapshot
;
fence
:
ExternalMutationFence
;
prior
:
PlainBackendSnapshot
;
}
Returns
Promise
<
void
>
snapshot
Plain
Deployment
snapshotPlainDeployment
(
priorSpec
:
DeploymentSpec
,
currentRecord
:
FleetRecord
,
fence
:
ExternalMutationFence
,
)
:
Promise
<
PlainBackendSnapshot
>
Parameters
priorSpec
:
DeploymentSpec
currentRecord
:
FleetRecord
fence
:
ExternalMutationFence
Returns
Promise
<
PlainBackendSnapshot
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Methods
assert
Candidate
Host
Published
assert
Candidate
Serving
assert
Finalized
State
assert
Plain
Bridge
Serving
assert
Switch
Application
R2
Detached
assert
Switch
Application
R2
Empty
assert
Switch
Traffic
Removed
commit
Finalized
Ownership
commit
Plain
Ownership
commit
Workers
For
Platforms
Ownership
delete
Switch
Application
R2
delete
Switch
Database
describe
Bridge
describe
Finalized
Bridge
Target
describe
Finalized
State
detach
Plain
Custom
Domain
ensure
Bridge
ensure
Candidate
ensure
Finalized
State
ensure
State
Only
Bridge
export
Switch
Database
find
Switch
Application
R2
privatize
Bridge
publish
Candidate
Host
recover
Bridge
remove
Candidate
Host
And
Drain
remove
Switch
Bridge
remove
Switch
Release
remove
Switch
Traffic
restore
Plain
Deployment
route
Plain
Domain
To
Bridge
snapshot
Plain
Deployment
Documentation
GitHub
Anchorage API reference
Loading...