SaltDns. Registrar. Operation
(Salt v1.0.0)
One spending call: a register, transfer, renew or restore the caller
asked for under its own reference. The row is inserted before the
registrar is called. The reference is unique per organisation, so one
reference never buys twice, also when two calls arrive at the same moment.
fingerprint is a hash of the normalised request: kind, name, years, the
owner contact's reference, privacy, the price ceiling and its currency, and
(when there is any) the name servers with their glue addresses. It holds
nothing personal. The same reference with the same fingerprint gives the
stored result; with another fingerprint it is :reference_reuse.
state:
:started- the call is with the registrar, or ended without a final answer (a crash, a timeout). The next call with the reference looks the name up at the registrar before it orders anything;:pending- the registrar took the order and has not finished (a transfer, mostly);SaltDns.Registrar.sync_domain/2resolves it;:done- finished. Money is in minor units ofcost_currency:ceiling_minoris the most the caller accepted,cost_quoted_minorthe price Salt read from the registrar immediately before it ordered (written on the row before the order goes),cost_charged_minorthe same figure once the order call itself returned success. An operation completed from a lookup (after a crash) has a quoted price if one was read and no charged price: Salt cannot say what was charged. Salt has no overall spending cap, only the ceiling of each call, and buys nothing on credit;:failed- refused, nothing was bought;error_kindanderror_messagekeep what the caller got.
Summary
Functions
The fingerprint of a request: a hash of the listed values, never of personal data.
The kinds of operation that spend money.
Types
@type t() :: %SaltDns.Registrar.Operation{ __meta__: term(), ceiling_minor: term(), cost_charged_minor: term(), cost_currency: term(), cost_quoted_minor: term(), credential_id: term(), domain: term(), domain_id: term(), error_detail: term(), error_kind: term(), error_message: term(), expires_before: term(), fingerprint: term(), fqdn: term(), id: term(), inserted_at: term(), kind: term(), organisation: term(), organisation_id: term(), owner_contact_ref: term(), provider: term(), provider_id: term(), reference: term(), registrar_ref: term(), state: term(), updated_at: term(), years: term() }