package passage

  1. Overview
  2. Docs

Module Storage.SecretsSource

Sourcetype 'a outcome =
  1. | Succeeded of 'a
  2. | Failed of exn
  3. | Skipped
Sourceval base_dir : string lazy_t
Sourceval ext : string
Sourceval groups_ext : string
Sourceval keys_ext : string
Sourceval to_path : Secret_name.t -> Path.t
Sourceval agefile_of_name : Secret_name.t -> Path.t
Sourceval name_of_file : Path.t -> Secret_name.t
Sourceval secret_exists : Secret_name.t -> bool
Sourceval secret_exists_at : Path.t -> bool
Sourceval build_secret_name : String.t -> Secret_name.t
Sourceval get_secrets_tree : Path.t -> Secret_name.t list
Sourceval get_secrets_in_folder : Path.t -> Secret_name.t list
Sourceval all_paths : unit -> Path.t list
Sourceval has_secret_no_keys : Path.t -> bool
Sourceval no_keys_file : Path.t -> bool
Sourceval all_groups_names : unit -> String.t list
Sourceval recipient_of_name : string -> Age.recipient
Sourceval recipients_of_group_name : map_fn:(String.t -> 'a) -> string -> 'a list
Sourceval get_secrets_for_recipient : String.t -> Secret_name.t list
Sourceval get_recipients_file_path : Path.t -> Path.t

Returns the path to the .keys file for a secret

Sourceval get_recipients_names : Path.t -> String.t list
Sourceval get_recipients_from_path_exn : Path.t -> Age.recipient list
Sourceval get_expanded_recipient_names : Secret_name.t -> String.t list
Sourceval is_recipient_of_secret : Age.Key.t -> Secret_name.t -> bool
Sourceval encrypt_using_tmpfile : secret_name:Secret_name.t -> encrypt_to_stdout:(stdout:[> `FD_move of Unix.file_descr ] -> unit Lwt.t) -> unit Lwt.t
Sourceval encrypt_exn : plaintext:string -> secret_name:Secret_name.t -> Age.recipient list -> unit Lwt.t
Sourceval decrypt_exn : ?silence_stderr:bool -> Secret_name.t -> string Lwt.t
Sourceval refresh' : ?force:bool -> Secret_name.t -> Age.Key.t -> unit outcome Lwt.t
Sourceval refresh : verbose:bool -> ?force:bool -> Secret_name.t list -> unit Lwt.t
Sourceval rm : is_directory:bool -> Path.t -> unit outcome Lwt.t
Sourceval recipients_of_own_id : unit -> Age.recipient list Lwt.t

Returns a list with the keys that are recipients for the default identity file