Aura.Model.HexRepo (Aura v0.9.1)

View Source

A struct describing a repository from a Hex-compliant API.

The main Hex.pm public repo is named "hexpm"; though private repos do exist.

💻 Examples

%Aura.Model.HexRepo{
 name: "hexpm",
 public: nil,
 active: nil,
 billing_active: nil,
 inserted_at: ~U[2025-05-29 18:15:18.185511Z],
 updated_at: ~U[2025-05-29 18:15:18.185511Z]
}

👀 See Also

📖 Resources

Summary

Types

Whether the repository is active

Whether the repository is a billable entity

Whether the repository is public

t()

Type describing a repository from a Hex-compliant API.

Functions

Builds a HexRepo from a map

Types

active?()

@type active?() :: boolean()

Whether the repository is active

billing_active?()

@type billing_active?() :: boolean()

Whether the repository is a billable entity

public?()

@type public?() :: boolean()

Whether the repository is public

t()

@type t() :: %Aura.Model.HexRepo{
  active: active?(),
  billing_active: billing_active?(),
  inserted_at: Aura.Model.Common.inserted_at(),
  name: Aura.Common.repo_name(),
  public: public?(),
  updated_at: Aura.Model.Common.updated_at()
}

Type describing a repository from a Hex-compliant API.

🏷️ Required Keys

🏷️ Optional Keys

💻 Examples

%Aura.Model.HexRepo{
 name: "hexpm",
 public: nil,
 active: nil,
 billing_active: nil,
 inserted_at: ~U[2025-05-29 18:15:18.185511Z],
 updated_at: ~U[2025-05-29 18:15:18.185511Z]
}

Functions

build(m)

@spec build(m :: map()) :: t()

Builds a HexRepo from a map

🏷️ Params