1 write to _config
Microsoft.NET.Build.Containers (1)
ImageConfig.cs (1)
47
_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)
48
if (
_config
["config"] is not JsonObject)
66
internal string? GetUser() =>
_config
["config"]?["User"]?.ToString();
67
internal string[]? GetEntrypoint() =>
_config
["config"]?["Entrypoint"]?.AsArray()?.Select(node => node!.GetValue<string>())?.ToArray();
68
private string[]? GetCmd() =>
_config
["config"]?["Entrypoint"]?.AsArray()?.Select(node => node!.GetValue<string>())?.ToArray();
69
private List<HistoryEntry> GetHistory() =>
_config
["history"]?.AsArray().Select(node => node.Deserialize<HistoryEntry>()!).ToList() ?? new List<HistoryEntry>();
70
private string GetOs() =>
_config
["os"]?.ToString() ?? throw new ArgumentException("Base image configuration should contain an 'os' property.");
71
private string GetArchitecture() =>
_config
["architecture"]?.ToString() ?? throw new ArgumentException("Base image configuration should contain an 'architecture' property.");
117
if (
_config
["config"]?[propertyName] is JsonNode propertyValue)
234
if (
_config
["config"]?["ExposedPorts"] is JsonObject portsJson)
253
if (
_config
["config"]?["Labels"] is JsonObject labelsJson)
270
if (
_config
["config"]?["Env"] is JsonArray envVarJson)
323
if (
_config
["rootfs"] is { } rootfs)