Coffrify.Resources.Domains (Coffrify v0.9.0)

View Source

Custom domains — CNAME → coffrify.fr aliasing for branded share URLs.

Summary

Functions

Add a new domain — returns the verification token and CNAME target.

Remove a custom domain.

Get a domain by id.

List configured custom domains.

Resolve the customer CNAME via DoH and flip verified=true on match.

Functions

create(client, domain)

@spec create(Coffrify.t(), String.t()) :: {:ok, map()} | {:error, Exception.t()}

Add a new domain — returns the verification token and CNAME target.

delete(client, id)

@spec delete(Coffrify.t(), String.t()) :: {:ok, map()} | {:error, Exception.t()}

Remove a custom domain.

get(client, id)

@spec get(Coffrify.t(), String.t()) :: {:ok, map()} | {:error, Exception.t()}

Get a domain by id.

list(client)

@spec list(Coffrify.t()) :: {:ok, map()} | {:error, Exception.t()}

List configured custom domains.

verify(client, id)

@spec verify(Coffrify.t(), String.t()) :: {:ok, map()} | {:error, Exception.t()}

Resolve the customer CNAME via DoH and flip verified=true on match.