Enumerationswift-package-manager 6.0.1PackageRegistry
Version
RegistryConfiguration.swift:26enum Version
enum Version
import PackageRegistry
struct RegistryConfiguration
case v1
init()
init(from decoder: Decoder) throws
static let version: Version
var defaultRegistry: Registry?
var explicitlyConfigured: Bool { get }
var registryAuthentication: [String : Authentication]
var scopedRegistries: [PackageIdentity.Scope : Registry]
var security: Security?
mutating func add(authentication: Authentication, for registryURL: URL) throws
func authentication(for registryURL: URL) throws -> Authentication?
func encode(to encoder: Encoder) throws
mutating func merge(_ other: RegistryConfiguration)
func registry(for scope: PackageIdentity.Scope) -> Registry?
func registry(for package: PackageIdentity) -> Registry?
mutating func removeAuthentication(for registryURL: URL)
func signing(for package: PackageIdentity.RegistryIdentity, registry: Registry) -> Security.Signing
struct Authentication
enum AuthenticationType
struct Security
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
init?(rawValue: Int)
init(from decoder: any Decoder) throws
Creates a new instance by decoding from the given decoder, when the type’s RawValue
is Int
.
var hashValue: Int { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func encode(to encoder: any Encoder) throws
Encodes this value into the given encoder, when the type’s RawValue
is Int
.
func hash(into hasher: inout Hasher)