]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - packages/peertube-runner/register/register.ts
Fix table th on RTL layout
[github/Chocobozzz/PeerTube.git] / packages / peertube-runner / register / register.ts
CommitLineData
1772b383
C
1import { IPCClient } from '../shared/ipc'
2
3export 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
17export async function unregisterRunner (options: {
18 url: string
19}) {
20 const client = new IPCClient()
21 await client.run()
22
23 await client.askUnregister(options)
24
25 client.stop()
26}
27
28export async function listRegistered () {
29 const client = new IPCClient()
30 await client.run()
31
32 await client.askListRegistered()
33
34 client.stop()
35}