Skip to content

models #

fn (GridMachinesModel) deploy #

fn (mut gm GridMachinesModel) deploy(vms GridMachinesModel) !

Deploy the workloads

fn (GridMachinesModel) list #

fn (mut gm GridMachinesModel) list() ![]Deployment

fn (GridMachinesModel) delete #

fn (mut gm GridMachinesModel) delete(deployment_name string) !

fn (GridMachinesModel) get #

fn (mut gm GridMachinesModel) get(deployment_name string) ![]Deployment

Placeholder for get operation

struct ContractMetaData #

struct ContractMetaData {
pub mut:
	type_        string @[json: 'type']
	name         string
	project_name string @[json: 'projectName']
}

ContractMetaData struct to represent a deployment metadata.

struct Deployment #

struct Deployment {
mut:
	deployer grid.Deployer
pub mut:
	mnemonic      string
	ssh_key       string
	chain_network grid.ChainNetwork
	machines      GridMachinesModel
	contracts     GridContracts
}

GridClient struct to represent the client interacting with the grid

struct KubernetesModel #

struct KubernetesModel {
}

fn (KubernetesModel) deploy #

fn (mut km KubernetesModel) deploy()

fn (KubernetesModel) delete #

fn (mut km KubernetesModel) delete()

fn (KubernetesModel) get #

fn (mut km KubernetesModel) get()

fn (KubernetesModel) update #

fn (mut km KubernetesModel) update()