-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ali Chaddad
committed
Aug 27, 2023
1 parent
bb430a2
commit 54b9dad
Showing
13 changed files
with
495 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
module tfgrid | ||
|
||
import freeflowuniverse.crystallib.rpcwebsocket { RpcWsClient } | ||
|
||
|
||
pub fn (mut t TFGridClient) zos_node_statistics(request ZOSNodeRequest) !NodeStatistics { | ||
return t.client.send_json_rpc[[]ZOSNodeRequest, NodeStatistics]('tfgrid.ZOSStatisticsGet', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_network_list_wg_ports(request ZOSNodeRequest) ![]u16 { | ||
return t.client.send_json_rpc[[]ZOSNodeRequest, []u16]('tfgrid.ZOSNetworkListWGPorts', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_network_interfaces(request ZOSNodeRequest) !map[string][]u32 { | ||
return t.client.send_json_rpc[[]ZOSNodeRequest, map[string][]u32]('tfgrid.ZOSNetworkInterfaces', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_network_public_config(request ZOSNodeRequest) !PublicConfig { | ||
return t.client.send_json_rpc[[]ZOSNodeRequest, PublicConfig]('tfgrid.ZOSNetworkPublicConfigGet', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_system_dmi(request ZOSNodeRequest) !SystemDMI { | ||
return t.client.send_json_rpc[[]ZOSNodeRequest, SystemDMI]('tfgrid.ZOSSystemDMI', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_system_hypervisor(request ZOSNodeRequest) !string { | ||
return t.client.send_json_rpc[[]ZOSNodeRequest, string]('tfgrid.ZOSSystemHypervisor', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_system_version(request ZOSNodeRequest) !ZOSVersion { | ||
return t.client.send_json_rpc[[]ZOSNodeRequest, ZOSVersion]('tfgrid.ZOSSystemVersion', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_deployment_deploy(request ZOSNodeRequest) ! { | ||
t.client.send_json_rpc[[]ZOSNodeRequest, string]('tfgrid.ZOSDeploymentDeploy', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_deployment_update(request ZOSNodeRequest) ! { | ||
t.client.send_json_rpc[[]ZOSNodeRequest, string]('tfgrid.ZOSDeploymentUpdate', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_deployment_changes(request ZOSNodeRequest) !Workload { | ||
return t.client.send_json_rpc[[]ZOSNodeRequest, Workload]('tfgrid.ZOSDeploymentChanges', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_deployment_get(request ZOSNodeRequest) !Deployment { | ||
return t.client.send_json_rpc[[]ZOSNodeRequest, Deployment]('tfgrid.ZOSDeploymentGet', [ | ||
request, | ||
], t.timeout)! | ||
} | ||
|
||
pub fn (mut t TFGridClient) zos_deployment_delete(request ZOSNodeRequest) ! { | ||
t.client.send_json_rpc[[]ZOSNodeRequest, string]('tfgrid.ZOSDeploymentDelete', [ | ||
request, | ||
], t.timeout)! | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.