LXD configuration with go client

I know there is a client for the LXD Api for Golang. But I did not find anything to edit the config of a container.
Is that even possible? Like set a CPU limit or something else with golang?

UpdateContainer()

1 Like

GetContainer() will get you the Container struct which includes Config and Devices, you can then change it and feed it back to UpdateContainer() along with the ETag so that you can make sure nothing changes between you getting the struct and you pushing it back

1 Like