Skip to content

Commit 009e234

Browse files
committed
UnixSocketConfiguration: Change from/to to source/destination
This is something I forgot to update ages ago. The field names, while they do make sense, were different than the constructor names that eventually set the fields themselves. This is kind of awkward, and I'd much rather fix this now while it's much easier. Signed-off-by: Danny Canter <danny_canter@apple.com>
1 parent 530126f commit 009e234

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/Containerization/UnixSocketConfiguration.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ public struct UnixSocketConfiguration: Sendable {
3131
/// direction this should be the path on the host to a unix socket.
3232
/// For direction .outOf this should be the path in the container/guest
3333
/// to a unix socket.
34-
public var from: URL
34+
public var source: URL
3535

3636
/// The path you'd like the socket to be relayed to. For .into
37-
/// direction this should be ther path in the container/guest. For
37+
/// direction this should be the path in the container/guest. For
3838
/// direction .outOf this should be the path on your host.
39-
public var to: URL
39+
public var destination: URL
4040

4141
/// What to set the file permissions of the unix socket being created
4242
/// to. For .into direction this will be the socket in the guest. For
@@ -57,13 +57,13 @@ public struct UnixSocketConfiguration: Sendable {
5757
}
5858

5959
public init(
60-
host: URL,
60+
source: URL,
6161
destination: URL,
6262
permissions: FilePermissions? = nil,
6363
direction: Direction = .into
6464
) {
65-
self.from = host
66-
self.to = destination
65+
self.source = source
66+
self.destination = destination
6767
self.permissions = permissions
6868
self.direction = direction
6969
}

0 commit comments

Comments
 (0)