PluginNetworkPermissionScope
The scope of a network permission.
Target.swift:1493- SwiftPM
- 5.9+
enum PluginNetworkPermissionScope
The scope can be none, local connections only, or all connections.
Cases
case none
Do not allow network access.
case local(ports: [Int])
Allow local network connections; can be limited to a list of allowed ports.
case all(ports: [Int])
Allow local and outgoing network connections; can be limited to a list of allowed ports.
case docker
Allow connections to Docker through UNIX domain sockets.
case unixDomainSocket
Allow connections to any UNIX domain socket.
Citizens in PackageDescription
Type members
static func all(ports: Range<Int>
) -> PluginNetworkPermissionScope Allow local and outgoing network connections, limited to a range of allowed ports.
static func local(ports: Range<Int>
) -> PluginNetworkPermissionScope Allow local network connections, limited to a range of allowed ports.