deployer2 #
TFGrid Deployments
Create workloads in native low level format, and then use a gridriver go binary to post it to TFChain as well as send it to ZOS.
//TODO: not sure how to use this one
fn (DeploymentStateDB) set #
fn (db DeploymentStateDB) set(deployment_name string, key string, val string) !
fn (VMDeployed) builder_node #
fn (vm VMDeployed) builder_node() !&builder.Node
fn (ZDBDeployed) ping #
fn (zdb ZDBDeployed) ping() bool
test zdb is answering
fn (ZDBDeployed) redisclient #
fn (zdb ZDBDeployed) redisclient() !&redisclient.Redis
struct Contract #
struct Contract {
pub:
contract_id string @[json: contractID]
deployment_data string @[json: deploymentData]
state string
node_id u32 @[json: nodeID]
name string
}
struct Contracts #
struct Contracts {
pub mut:
name_contracts []Contract @[json: nameContracts]
node_contracts []Contract @[json: nodeContracts]
rent_contracts []Contract @[json: rentContracts]
}
struct GraphQl #
struct GraphQl {
url string
pub mut:
logger log.Log
}
fn (GraphQl) list_twin_contracts #
fn (mut g GraphQl) list_twin_contracts(twin_id u32, states []string) !Contracts
contractsList, err := c.ListContractsByTwinID([]string{"Created, GracePeriod"})
fn (GraphQl) get_contract_by_project_name #
fn (mut g GraphQl) get_contract_by_project_name(mut deployer Deployer, project_name string) !Contracts