pub(crate) async fn set(
state: &AppState,
uid: &str,
def: &AgentDefinition,
memory: Option<&Value>,
cpus: Option<&Value>,
by: &str,
) -> Result<AgentContainerLimitsResult, (StatusCode, String)>Expand description
Stores the limits given (None leaves one as it is), puts them on the container now and says so in the pane.
by is who is shown as having made the change.