1 write to Model
NativeIntegrations.DockerCompose (1)
ComposeModels.cs (1)
77
Model
= model;
10 references to Model
NativeIntegrations.DockerCompose (10)
ComposeModels.cs (10)
84
get =>
Model
["image"]?.GetValue<string>();
97
get =>
Model
["build"] is JsonObject build ? new(build["context"]!.GetValue<string>(), build["dockerfile"]!.GetValue<string>()) : null;
103
get =>
Model
["healthcheck"] is JsonObject health ? ComposeJson.ReadHealthcheck(health) : null;
109
get =>
Model
["container_name"]?.GetValue<string>();
115
get =>
Model
["restart"]?.GetValue<string>();
128
get =>
Model
["pull_policy"]?.GetValue<string>();
139
public void SetLabel(string name, string value) =>
Model
["labels"]!.AsObject()[name] = ComposeJson.Literal(value);
145
(
Model
["volumes"] ??= new JsonArray()).AsArray().Add(new JsonObject
155
Model
.Remove(key);
159
Model
[key] = value;