LemonCore.Extensions.RegistryAudit (lemon_core v0.1.0)

View Source

Code-free extension registry validation and update audit.

Summary

Types

audit()

@type audit() :: %{
  valid?: boolean(),
  path_hash: String.t(),
  proof_hash: String.t() | nil,
  entry_count: non_neg_integer(),
  valid_entry_count: non_neg_integer(),
  invalid_entry_count: non_neg_integer(),
  installable_count: non_neg_integer(),
  blocked_count: non_neg_integer(),
  update_candidate_count: non_neg_integer(),
  blocked_update_count: non_neg_integer(),
  source_counts: map(),
  audit_status_counts: map(),
  host_type_counts: map(),
  capability_counts: map(),
  error_count: non_neg_integer(),
  error_hashes: [String.t()],
  cleanup: map()
}

Functions

validate_file(path)

@spec validate_file(String.t()) :: audit()

validate_update_files(current_path, candidate_path)

@spec validate_update_files(String.t(), String.t()) :: audit()