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