Documentation
¶
Overview ¶
Package ops is the HTTP entrance of operators: /ops/. It is the border TB5: an operator works through the gateway with a token, so that every action is tied to a person in the audit log (and, from wave 2-6, the rule of four eyes can tell two operators apart).
Input: requests to /ops/ with a Bearer token of an operator. Output: JSON, and errors in the single format of the gateway (internal/rpcerr).
Order: address bucket and token (edge.Gate) -> only kind "operator" (403 forbidden otherwise) -> method and route -> the action.
Routes:
POST /ops/txn/{key-hex}/reopen a failed key of the operator's tenant becomes reopened
GET /ops/approvals?status=pending the approval requests of the operator's tenant
POST /ops/approvals/{id}/approve one approval of the operator (T3 needs two operators)
POST /ops/approvals/{id}/reject the request is rejected and its key fails
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.