Skip to content

Commit b292fed

Browse files
committed
Make info fields optional
1 parent 59a1606 commit b292fed

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Sources/DockerSwift/Models/System/SystemInformation.swift

+6-4
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ public struct SystemInformation: Codable {
4141

4242
/// Indicates if the host has kernel memory limit support enabled.
4343
@available(*, deprecated, message: "This field is deprecated as the kernel 5.4 deprecated `kmem.limit_in_bytes`")
44-
public let kernelMemory: Bool
44+
public let kernelMemory: Bool?
4545

4646
/// Indicates if the host has kernel memory TCP limit support enabled.
4747
/// Kernel memory TCP limits are not supported when using cgroups v2, which does not support the corresponding memory.kmem.tcp.limit_in_bytes cgroup.
48-
public let kernelMemoryTCP: Bool
48+
public let kernelMemoryTCP: Bool?
4949

5050
/// Indicates if CPU CFS (Completely Fair Scheduler) period is supported by the host.
5151
public let cpuCfsPeriod: Bool
@@ -322,9 +322,11 @@ public struct Plugins: Codable {
322322

323323
// MARK: - RegistryConfig
324324
public struct RegistryConfig: Codable {
325-
public let allowNondistributableArtifactsCIDRs, allowNondistributableArtifactsHostnames, insecureRegistryCIDRs: [String]
325+
public let allowNondistributableArtifactsCIDRs: [String]?
326+
public let allowNondistributableArtifactsHostnames: [String]?
327+
public let insecureRegistryCIDRs: [String]
326328
public let indexConfigs: [String: IndexConfig]
327-
public let mirrors: [String]
329+
public let mirrors: [String]?
328330

329331
enum CodingKeys: String, CodingKey {
330332
case allowNondistributableArtifactsCIDRs = "AllowNondistributableArtifactsCIDRs"

0 commit comments

Comments
 (0)