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)
51if (_config["config"] is not JsonObject) 69internal string? GetUser() => _config["config"]?["User"]?.ToString(); 70internal string[]? GetEntrypoint() => _config["config"]?["Entrypoint"]?.AsArray()?.Select(node => node!.GetValue<string>())?.ToArray(); 71private string[]? GetCmd() => _config["config"]?["Entrypoint"]?.AsArray()?.Select(node => node!.GetValue<string>())?.ToArray(); 72private List<HistoryEntry> GetHistory() => _config["history"]?.AsArray().Select(node => node.Deserialize<HistoryEntry>()!).ToList() ?? new List<HistoryEntry>(); 75string? os = _config["os"]?.ToString(); 81string? architecture = _config["architecture"]?.ToString(); 129if (_config["config"]?[propertyName] is JsonNode propertyValue) 246if (_config["config"]?["ExposedPorts"] is JsonObject portsJson) 265if (_config["config"]?["Labels"] is JsonObject labelsJson) 282if (_config["config"]?["Env"] is JsonArray envVarJson) 335if (_config["rootfs"] is { } rootfs)