diff options
Diffstat (limited to 'packages/peertube-runner/register/register.ts')
-rw-r--r-- | packages/peertube-runner/register/register.ts | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/packages/peertube-runner/register/register.ts b/packages/peertube-runner/register/register.ts deleted file mode 100644 index ca1bf0f5a..000000000 --- a/packages/peertube-runner/register/register.ts +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | import { IPCClient } from '../shared/ipc' | ||
2 | |||
3 | export async function registerRunner (options: { | ||
4 | url: string | ||
5 | registrationToken: string | ||
6 | runnerName: string | ||
7 | runnerDescription?: string | ||
8 | }) { | ||
9 | const client = new IPCClient() | ||
10 | await client.run() | ||
11 | |||
12 | await client.askRegister(options) | ||
13 | |||
14 | client.stop() | ||
15 | } | ||
16 | |||
17 | export async function unregisterRunner (options: { | ||
18 | url: string | ||
19 | runnerName: string | ||
20 | }) { | ||
21 | const client = new IPCClient() | ||
22 | await client.run() | ||
23 | |||
24 | await client.askUnregister(options) | ||
25 | |||
26 | client.stop() | ||
27 | } | ||
28 | |||
29 | export async function listRegistered () { | ||
30 | const client = new IPCClient() | ||
31 | await client.run() | ||
32 | |||
33 | await client.askListRegistered() | ||
34 | |||
35 | client.stop() | ||
36 | } | ||