mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-18 03:53:56 +02:00
* Package.swift: add SwiftFormat Can be invoked with "swift package plugin swiftformat". * $ swift package plugin swiftformat * .cirrus.yml: run SwiftFormat * SwiftFormat: exclude Sources/tart/OCI/Reference/Generated
11 lines
249 B
Swift
11 lines
249 B
Swift
import Foundation
|
|
|
|
enum CredentialsProviderError: Error {
|
|
case Failed(message: String)
|
|
}
|
|
|
|
protocol CredentialsProvider {
|
|
func retrieve(host: String) throws -> (String, String)?
|
|
func store(host: String, user: String, password: String) throws
|
|
}
|