Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("domain not found") ErrOwnershipNotVerified = errors.New("domain ownership not verified") )
Functions ¶
This section is empty.
Types ¶
type CachingDomainRepo ¶
type Domain ¶
type Domain struct {
Hostname string `json:"hostname" yaml:"hostname"`
// TenantID identifies the tenant/customer this domain belongs to.
// This value is opaque to the system, users can use any string format they prefer.
TenantID string `json:"tenant_id,omitempty" yaml:"tenant_id,omitempty"`
OwnershipVerified bool `json:"ownership_verified" yaml:"ownership_verified"`
// VerificationToken is a stable UUID used as the DNS TXT record value for ownership verification.
// Generated once on first upsert and never rotated unless explicitly cleared.
VerificationToken string `json:"verification_token,omitempty" yaml:"verification_token,omitempty"`
}
type DomainPatch ¶
type DomainRepo ¶
type ReadOnlyDomainRepo ¶
type ReadOnlyDomainRepo interface {
DomainRepo
ReadOnly() bool
}
Click to show internal directories.
Click to hide internal directories.