Arch :arch: on Nostr: Thinking about shifting my design of infra-rs from struct based to function based for ...
Published at
2024-07-04 15:01:25Event JSON
{
"id": "bd4a01d53bf1d3f9e53ab50dc16f4da5a14147847f83b1f08454b6d183473dbd",
"pubkey": "ed02fc5fe168cd77e6a4acf5bc86b9aa9e1f2bc4ccf5cc99f289b82d8ab43b41",
"created_at": 1720105285,
"kind": 1,
"tags": [
[
"proxy",
"https://floofy.tech/users/arch/statuses/112728819984185194",
"activitypub"
]
],
"content": "Thinking about shifting my design of infra-rs from struct based to function based for more flexibility 🤔 So https://git.gmem.ca/arch/infra-rs/src/commit/472d7c923a2f2405bd9479c7b2c304aa17fe3f37/src/manifests/vaultwarden.rs#L11-L26 instead of passing structs, it would be something like \n\nlet containers = vec![Containers::new().port(80).image(\"alpine\").port(443);\n\nDeployment::new()\n .containers(containers)\n\n\nOr something",
"sig": "aa5b967d3701a83fceb6b6c69c6db65f013943a8f58ed0374f06ff905d841c98f3038e4e7bc0ab6144b6c9bfcb172ea67678c269ccd1b077216308f42312d439"
}