# Mock registrar

Offline test registrar (no external calls).

| Field | Value |
|---|---|
| Addon id | `registrar-mock` |
| Kind | `registrar` |
| Provides | `mock` |
| Engine | `wasm` |
| ABI | `0.2.0` |
| Version | 0.2.0 |
| Author | MythicalSystems |
| Source | `extensions/addons/reg-mock` |
| Permissions (shown at install) | `domains.manage` |

## Capabilities

| Capability | Value |
|---|---|
| [`http`](capabilities.md) | none |
| [`kv`](capabilities.md) | true |
| [`secrets`](capabilities.md) | none |

## Events and hooks

| What | Value |
|---|---|
| Listens to (`events`) | none |
| Hooks | none |
| Emits | none |
| Mixins | none |
| Scheduled jobs | none |

## Settings and secrets

No admin settings are declared in `addon.json` or in the source.

Secrets (stored encrypted, never returned by the API): none.

Outbound HTTP allowed to: none. `$server` is the hostname of the server configured for the product, `$setting:<key>` the host of that setting.

## addon.json

_extensions/addons/reg-mock/addon.json_

```json
{
  "abi": "0.2.0",
  "author": "MythicalSystems",
  "capabilities": {
    "http": [],
    "kv": true,
    "secrets": []
  },
  "description": "addons.desc.registrar.mock",
  "engine": "wasm",
  "id": "registrar-mock",
  "kind": "registrar",
  "name": "Mock registrar",
  "permissions": [
    "domains.manage"
  ],
  "provides": "mock",
  "settings": [],
  "version": "0.2.0",
  "wasm": "addon.wasm"
}
```

