Skip to content

Type Method

secret(path:)

Load the content of a file at a given path as a secret.
static func secret(path: String) async throws -> String?

Parameters

path

Path to the file containing the secret

Return Value

  • On success, the loaded content of the file.

  • On any kind of error nil. It is not currently possible to get error details.