UnixSocketConfiguration: Change from/to to source/destination (#22)

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.

We'll need to update `container` after this

Signed-off-by: Danny Canter <danny_canter@apple.com>
This commit is contained in:
Danny Canter
2025-06-05 16:16:45 -07:00
committed by Kathryn Baldauf
parent 3d5b3404df
commit 9ac3874008
4 changed files with 13 additions and 13 deletions
@@ -31,12 +31,12 @@ public struct UnixSocketConfiguration: Sendable {
/// direction this should be the path on the host to a unix socket.
/// For direction .outOf this should be the path in the container/guest
/// to a unix socket.
public var from: URL
public var source: URL
/// The path you'd like the socket to be relayed to. For .into
/// direction this should be ther path in the container/guest. For
/// direction this should be the path in the container/guest. For
/// direction .outOf this should be the path on your host.
public var to: URL
public var destination: URL
/// What to set the file permissions of the unix socket being created
/// to. For .into direction this will be the socket in the guest. For
@@ -57,13 +57,13 @@ public struct UnixSocketConfiguration: Sendable {
}
public init(
host: URL,
source: URL,
destination: URL,
permissions: FilePermissions? = nil,
direction: Direction = .into
) {
self.from = host
self.to = destination
self.source = source
self.destination = destination
self.permissions = permissions
self.direction = direction
}