Aura.Model.HexRepo (Aura v1.0.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]
}

Resources

See Also

Summary

Types

Whether the repository is active

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

public()

@type public() :: boolean()

Whether the repository is public

t()

@type t() :: %Aura.Model.HexRepo{
  active: active(),
  billing_active: Aura.Model.Common.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.

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

Parameters

ParameterDescription
mA map to build into a Aura.Model.HexRepo.t/0