40 lines
738 B
GLSL
40 lines
738 B
GLSL
|
|
#!/usr/bin/env -S v -n -w -gc none -no-retry-compilation -cc tcc -d use_openssl -enable-globals run
|
|
|
|
struct DeploymentStateDB{
|
|
secret ... //to encrypt symmetric
|
|
//...
|
|
|
|
|
|
}
|
|
|
|
|
|
struct DeploymentState{
|
|
name ...
|
|
vms []VMDeployed
|
|
zdbs []ZDBDeployed
|
|
...
|
|
|
|
}
|
|
|
|
pub fn (db DeploymentStateDB) set(deployment_name string, key string, val string)! {
|
|
//store e.g. \n separated list of all keys per deployment_name
|
|
//encrypt
|
|
|
|
}
|
|
|
|
pub fn (db DeploymentStateDB) get(deployment_name string, key string)!string {
|
|
|
|
}
|
|
|
|
pub fn (db DeploymentStateDB) delete(deployment_name string, key string)! {
|
|
|
|
}
|
|
|
|
pub fn (db DeploymentStateDB) keys(deployment_name string)![]string {
|
|
|
|
}
|
|
|
|
pub fn (db DeploymentStateDB) load(deployment_name string)!DeploymentState {
|
|
|
|
} |