mirror of
https://github.com/apple/container.git
synced 2026-09-11 10:15:38 +00:00
Source code documentation updates (#9)
This change adds documentation to quite a few existing public types that didn't have a blurb before. Additionally, this fixes a couple things that I think either didn't make sense when going to document them: - Rename ConnectionStream to VsockConnectionStream. This type only functions for vsock connections. - Deletes NsLock+Closure. This was not used anywhere. - Rename ContainerizationOCI/Config.swift to ImageConfig.swift. Signed-off-by: Danny Canter <danny_canter@apple.com>
This commit is contained in:
@@ -39,7 +39,7 @@ public protocol VirtualMachineInstance: Sendable {
|
||||
/// Dial a vsock port in the guest.
|
||||
func dial(_ port: UInt32) async throws -> FileHandle
|
||||
/// Listen on a host vsock port.
|
||||
func listen(_ port: UInt32) throws -> ConnectionStream
|
||||
func listen(_ port: UInt32) throws -> VsockConnectionStream
|
||||
/// Stop listening on a vsock port.
|
||||
func stopListen(_ port: UInt32) throws
|
||||
/// Start the virtual machine.
|
||||
|
||||
Reference in New Issue
Block a user