Search
Preparing search index...
The search index is not available
@threefold/grid_client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@threefold/grid_client
TwinDeploymentHandler
Class TwinDeploymentHandler
Hierarchy
TwinDeploymentHandler
Index
Constructors
constructor
Properties
config
deployment
Factory
nodes
original_
deployments
rmb
tfclient
Methods
Prepare
Extrinsic
_update
To
Latest
check
Nodes
Capacity
check
Workload
create
Name
Contract
delete
Name
Contract
deploy
Merge
get
Deployment
get
Deployment
From
Factory
handle
merge
merge
Delete
rollback
save
Networks
send
To
Node
update
Merge
validate
wait
For
Deployment
wait
For
Deployments
Constructors
constructor
new
Twin
Deployment
Handler
(
config
:
GridClientConfig
)
:
TwinDeploymentHandler
Parameters
config:
GridClientConfig
Returns
TwinDeploymentHandler
Properties
config
config
:
GridClientConfig
deployment
Factory
deployment
Factory
:
DeploymentFactory
nodes
nodes
:
Nodes
original_
deployments
original_
deployments
:
any
[]
= []
rmb
rmb
:
RMB
tfclient
tfclient
:
TFClient
Methods
Prepare
Extrinsic
Prepare
Extrinsic
(
twinDeployment
:
TwinDeployment
, contracts
:
any
)
:
Promise
<
{
deletedExtrinsics
:
ExtrinsicResult
<
number
>
[]
;
nameExtrinsics
:
ExtrinsicResult
<
Contract
>
[]
;
nodeExtrinsics
:
ExtrinsicResult
<
Contract
>
[]
}
>
Parameters
twinDeployment:
TwinDeployment
contracts:
any
Returns
Promise
<
{
deletedExtrinsics
:
ExtrinsicResult
<
number
>
[]
;
nameExtrinsics
:
ExtrinsicResult
<
Contract
>
[]
;
nodeExtrinsics
:
ExtrinsicResult
<
Contract
>
[]
}
>
_update
To
Latest
_update
To
Latest
(
twinDeployments
:
TwinDeployment
[]
)
:
TwinDeployment
Parameters
twinDeployments:
TwinDeployment
[]
Returns
TwinDeployment
check
Nodes
Capacity
check
Nodes
Capacity
(
twinDeployments
:
TwinDeployment
[]
)
:
Promise
<
void
>
Parameters
twinDeployments:
TwinDeployment
[]
Returns
Promise
<
void
>
check
Workload
check
Workload
(
workload
:
Workload
, targetWorkload
:
Workload
, nodeId
:
number
)
:
boolean
Parameters
workload:
Workload
targetWorkload:
Workload
nodeId:
number
Returns
boolean
create
Name
Contract
create
Name
Contract
(
name
:
string
)
:
Promise
<
ExtrinsicResult
<
Contract
>
>
Parameters
name:
string
Returns
Promise
<
ExtrinsicResult
<
Contract
>
>
delete
Name
Contract
delete
Name
Contract
(
name
:
string
)
:
Promise
<
ExtrinsicResult
<
number
>
>
Parameters
name:
string
Returns
Promise
<
ExtrinsicResult
<
number
>
>
deploy
Merge
deploy
Merge
(
twinDeployments
:
TwinDeployment
[]
)
:
TwinDeployment
[]
Parameters
twinDeployments:
TwinDeployment
[]
Returns
TwinDeployment
[]
get
Deployment
get
Deployment
(
contract_id
:
number
)
:
Promise
<
any
>
Parameters
contract_id:
number
Returns
Promise
<
any
>
get
Deployment
From
Factory
get
Deployment
From
Factory
(
contract_id
:
number
)
:
Promise
<
Deployment
>
Parameters
contract_id:
number
Returns
Promise
<
Deployment
>
handle
handle
(
twinDeployments
:
TwinDeployment
[]
)
:
Promise
<
{
created
:
any
[]
;
deleted
:
any
[]
;
updated
:
any
[]
}
>
Parameters
twinDeployments:
TwinDeployment
[]
Returns
Promise
<
{
created
:
any
[]
;
deleted
:
any
[]
;
updated
:
any
[]
}
>
merge
merge
(
twinDeployments
:
TwinDeployment
[]
)
:
Promise
<
TwinDeployment
[]
>
Parameters
twinDeployments:
TwinDeployment
[]
Returns
Promise
<
TwinDeployment
[]
>
merge
Delete
merge
Delete
(
twinDeployments
:
TwinDeployment
[]
)
:
TwinDeployment
[]
Parameters
twinDeployments:
TwinDeployment
[]
Returns
TwinDeployment
[]
rollback
rollback
(
contracts
:
any
)
:
Promise
<
void
>
Parameters
contracts:
any
Returns
Promise
<
void
>
save
Networks
save
Networks
(
twinDeployments
:
TwinDeployment
[]
)
:
Promise
<
void
>
Parameters
twinDeployments:
TwinDeployment
[]
Returns
Promise
<
void
>
send
To
Node
send
To
Node
(
twinDeployment
:
TwinDeployment
)
:
Promise
<
void
>
Parameters
twinDeployment:
TwinDeployment
Returns
Promise
<
void
>
update
Merge
update
Merge
(
twinDeployments
:
TwinDeployment
[]
)
:
Promise
<
TwinDeployment
[]
>
Parameters
twinDeployments:
TwinDeployment
[]
Returns
Promise
<
TwinDeployment
[]
>
validate
validate
(
twinDeployments
:
TwinDeployment
[]
)
:
Promise
<
void
>
Parameters
twinDeployments:
TwinDeployment
[]
Returns
Promise
<
void
>
wait
For
Deployment
wait
For
Deployment
(
twinDeployment
:
TwinDeployment
, timeout
?:
number
)
:
Promise
<
void
>
Parameters
twinDeployment:
TwinDeployment
timeout:
number
= ...
Returns
Promise
<
void
>
wait
For
Deployments
wait
For
Deployments
(
twinDeployments
:
TwinDeployment
[]
, timeout
?:
number
)
:
Promise
<
void
[]
>
Parameters
twinDeployments:
TwinDeployment
[]
timeout:
number
= ...
Returns
Promise
<
void
[]
>
Exports
Twin
Deployment
Handler
constructor
config
deployment
Factory
nodes
original_
deployments
rmb
tfclient
Prepare
Extrinsic
_update
To
Latest
check
Nodes
Capacity
check
Workload
create
Name
Contract
delete
Name
Contract
deploy
Merge
get
Deployment
get
Deployment
From
Factory
handle
merge
merge
Delete
rollback
save
Networks
send
To
Node
update
Merge
validate
wait
For
Deployment
wait
For
Deployments
Generated using
TypeDoc