1 write to _config
Microsoft.NET.Build.Containers (1)
ImageConfig.cs (1)
50
_config
= config as JsonObject ?? throw new ArgumentException($"{nameof(config)} should be a JSON object.", nameof(config));
12 references to _config
Microsoft.NET.Build.Containers (12)
ImageConfig.cs (12)
51
if (
_config
["config"] is not JsonObject)
69
internal string? GetUser() =>
_config
["config"]?["User"]?.ToString();
70
internal string[]? GetEntrypoint() =>
_config
["config"]?["Entrypoint"]?.AsArray()?.Select(node => node!.GetValue<string>())?.ToArray();
71
private string[]? GetCmd() =>
_config
["config"]?["Entrypoint"]?.AsArray()?.Select(node => node!.GetValue<string>())?.ToArray();
72
private List<HistoryEntry> GetHistory() =>
_config
["history"]?.AsArray().Select(node => node.Deserialize<HistoryEntry>()!).ToList() ?? new List<HistoryEntry>();
75
string? os =
_config
["os"]?.ToString();
81
string? architecture =
_config
["architecture"]?.ToString();
129
if (
_config
["config"]?[propertyName] is JsonNode propertyValue)
246
if (
_config
["config"]?["ExposedPorts"] is JsonObject portsJson)
265
if (
_config
["config"]?["Labels"] is JsonObject labelsJson)
282
if (
_config
["config"]?["Env"] is JsonArray envVarJson)
335
if (
_config
["rootfs"] is { } rootfs)