swarm ui ssh row with target snippets, docs for the per-agent switch
This commit is contained in:
parent
624d5f24f8
commit
e621397252
1 changed files with 417 additions and 94 deletions
|
|
@ -4,7 +4,7 @@
|
|||
// changes.
|
||||
//
|
||||
// Both read `GET /api/agents/{name}/permissions`, which answers the stored
|
||||
// grant as `{ permissions?, unrestricted_internet?, internet_log?, max_repos? }` (`{}` when
|
||||
// grant as `{ permissions?, unrestricted_internet?, internet_log?, max_repos?, ssh? }` (`{}` when
|
||||
// the swarm sets none, so the agent runs on the default set). The permissions
|
||||
// control offers the catalogue from `GET /api/permissions` as checkboxes and
|
||||
// PUTs the ticked ones, a PUT replacing the stored value whole. A selection
|
||||
|
|
@ -50,6 +50,7 @@ interface Grant {
|
|||
unrestricted_internet?: boolean;
|
||||
internet_log?: boolean;
|
||||
max_repos?: number;
|
||||
ssh?: boolean;
|
||||
}
|
||||
|
||||
// Mirrors swarm-controller's `Catalogue` (`GET /api/permissions`).
|
||||
|
|
|
|||
Loading…
Reference in a new issue