Skip to content

Commit

Permalink
Fix member access (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgacy authored Dec 29, 2023
1 parent a8b3c80 commit 548c6b8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/Secrets/Secrets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public struct Secret: Equatable, Sendable {
}

/// The ARN of the secret.
var arn: String
public var arn: String

/// The friendly name of the secret.
var name: String
public var name: String

/// The decrypted secret value.
var value: Value
public var value: Value

/// Creates a new instance.
///
Expand Down Expand Up @@ -104,13 +104,13 @@ public struct Secrets: Sendable {
public typealias ID = String

/// A closure returning the secret string for the given identifier.
var string: @Sendable (ID) async throws -> String
public var string: @Sendable (ID) async throws -> String

/// A closure returning the secret data for the given identifier.
var data: @Sendable (ID) async throws -> Data
public var data: @Sendable (ID) async throws -> Data

/// A closure returning secrets for the given identifiers.
var batch: @Sendable ([ID]) async throws -> [Secret]?
public var batch: @Sendable ([ID]) async throws -> [Secret]?

public init(
string: @escaping @Sendable (Secrets.ID) async throws -> String,
Expand Down

0 comments on commit 548c6b8

Please sign in to comment.