Instance Propertyswift-package-manager 6.0.1PackageRegistry
defaultRegistry
RegistryClient.swift:117var defaultRegistry: Registry? { get set }
var defaultRegistry: Registry? { get set }
s15PackageRegistry0B6ClientC07defaultB00A5Model0B0VSgvp
What are these?8T8S0
import PackageRegistry
final class RegistryClient
Package registry client. API specification: https://github.com/swiftlang/swift-package-manager/blob/main/Documentation/PackageRegistry/Registry.md
struct Registry
init(configuration: RegistryConfiguration, fingerprintStorage: PackageFingerprintStorage?, fingerprintCheckingMode: FingerprintCheckingMode, skipSignatureValidation: Bool, signingEntityStorage: PackageSigningEntityStorage?, signingEntityCheckingMode: SigningEntityCheckingMode, authorizationProvider: AuthorizationProvider? = .none, customHTTPClient: LegacyHTTPClient? = .none, customArchiverProvider: ((FileSystem) -> Archiver)? = .none, delegate: Delegate?, checksumAlgorithm: HashAlgorithm)
var explicitlyConfigured: Bool { get }
func cancel(deadline: DispatchTime) throws
Cancel any outstanding requests
func changeSigningEntityFromVersion(package: PackageIdentity, version: Version, signingEntity: SigningEntity, origin: SigningEntity.Origin, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue, completion: @escaping (Result<Void, Error>) -> Void)
func downloadSourceArchive(package: PackageIdentity, version: Version, destinationPath: AbsolutePath, progressHandler: ((_ bytesReceived: Int64, _ totalBytes: Int64?) -> Void)?, timeout: DispatchTimeInterval? = .none, fileSystem: FileSystem, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue) async throws
func downloadSourceArchive(package: PackageIdentity, version: Version, destinationPath: AbsolutePath, progressHandler: ((_ bytesReceived: Int64, _ totalBytes: Int64?) -> Void)?, timeout: DispatchTimeInterval? = .none, fileSystem: FileSystem, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue, completion: @escaping (Result<Void, Error>) -> Void)
func getAvailableManifests(package: PackageIdentity, version: Version, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue) async throws -> [String : (toolsVersion: ToolsVersion, content: String?)]
func getAvailableManifests(package: PackageIdentity, version: Version, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue, completion: @escaping (Result<[String : (toolsVersion: ToolsVersion, content: String?)], Error>) -> Void)
func getManifestContent(package: PackageIdentity, version: Version, customToolsVersion: ToolsVersion?, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue) async throws -> String
func getManifestContent(package: PackageIdentity, version: Version, customToolsVersion: ToolsVersion?, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue, completion: @escaping (Result<String, Error>) -> Void)
func getPackageMetadata(package: PackageIdentity, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue) async throws -> PackageMetadata
func getPackageMetadata(package: PackageIdentity, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue, completion: @escaping (Result<PackageMetadata, Error>) -> Void)
func getPackageVersionMetadata(package: PackageIdentity, version: Version, timeout: DispatchTimeInterval? = .none, fileSystem: FileSystem, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue) async throws -> PackageVersionMetadata
func getPackageVersionMetadata(package: PackageIdentity, version: Version, timeout: DispatchTimeInterval? = .none, fileSystem: FileSystem, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue, completion: @escaping (Result<PackageVersionMetadata, Error>) -> Void)
func login(loginURL: URL, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue) async throws
func login(loginURL: URL, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue, completion: @escaping (Result<Void, Error>) -> Void)
func lookupIdentities(scmURL: SourceControlURL, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue) async throws -> Set<PackageIdentity>
func lookupIdentities(scmURL: SourceControlURL, timeout: DispatchTimeInterval? = .none, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue, completion: @escaping (Result<Set<PackageIdentity>, Error>) -> Void)
func publish(registryURL: URL, packageIdentity: PackageIdentity, packageVersion: Version, packageArchive: AbsolutePath, packageMetadata: AbsolutePath?, signature: [UInt8]?, metadataSignature: [UInt8]?, signatureFormat: SignatureFormat?, timeout: DispatchTimeInterval? = .none, fileSystem: FileSystem, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue) async throws -> PublishResult
func publish(registryURL: URL, packageIdentity: PackageIdentity, packageVersion: Version, packageArchive: AbsolutePath, packageMetadata: AbsolutePath?, signature: [UInt8]?, metadataSignature: [UInt8]?, signatureFormat: SignatureFormat?, timeout: DispatchTimeInterval? = .none, fileSystem: FileSystem, observabilityScope: ObservabilityScope, callbackQueue: DispatchQueue, completion: @escaping (Result<PublishResult, Error>) -> Void)
enum AvailabilityStatus
struct PackageMetadata
struct PackageVersionMetadata
enum PublishResult
enum Serialization
typealias Delegate = RegistryClientDelegate