This commit is contained in:
Max Goedjen 2022-01-02 15:17:10 -08:00
parent c90ef164d5
commit 80d0d81853
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
2 changed files with 8 additions and 8 deletions

View File

@ -18,8 +18,8 @@ public struct SemVer {
versionNumbers = split
}
/// Initializes a SemVer from an ``OperatingSystemVersion`` representation.
/// - Parameter version: An ``OperatingSystemVersion`` representation of the SemVer.
/// Initializes a SemVer from an `OperatingSystemVersion` representation.
/// - Parameter version: An `OperatingSystemVersion` representation of the SemVer.
public init(_ version: OperatingSystemVersion) {
versionNumbers = [version.majorVersion, version.minorVersion, version.patchVersion]
}

View File

@ -6,17 +6,17 @@ public protocol SigningWitness {
/// A ridiculously named method that notifies the callee that a signing operation is about to be performed using a secret. The callee may `throw` an `Error` to prevent access from occurring.
/// - Parameters:
/// - secret: The ``SecretKit.Secret`` that will be used to sign the request.
/// - store: The ``SecretKit.Store`` being asked to sign the request..
/// - provenance: A ``SecretKit.SigningRequestProvenance`` object describing the origin of the request.
/// - secret: The `Secret` that will be used to sign the request.
/// - store: The `Store` being asked to sign the request..
/// - provenance: A `SigningRequestProvenance` object describing the origin of the request.
/// - Note: This method being called does not imply that the requst has been authorized. If a secret requires authentication, authentication will still need to be performed by the user before the request will be performed. If the user declines or fails to authenticate, the request will fail.
func speakNowOrForeverHoldYourPeace(forAccessTo secret: AnySecret, from store: AnySecretStore, by provenance: SigningRequestProvenance) throws
/// Notifies the callee that a signing operation has been performed for a given secret.
/// - Parameters:
/// - secret: The ``SecretKit.Secret`` that will was used to sign the request.
/// - store: The ``SecretKit.Store`` that signed the request..
/// - provenance: A ``SecretKit.SigningRequestProvenance`` object describing the origin of the request.
/// - secret: The `Secret` that will was used to sign the request.
/// - store: The `Store` that signed the request..
/// - provenance: A `SigningRequestProvenance` object describing the origin of the request.
/// - requiredAuthentication: A boolean describing whether or not authentication was required for the request.
func witness(accessTo secret: AnySecret, from store: AnySecretStore, by provenance: SigningRequestProvenance, requiredAuthentication: Bool) throws