Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Secrets Member Access #7

Merged
merged 1 commit into from
Dec 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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