2023-07-31 08:34:36 -04:00
|
|
|
import { buildUUID } from '@peertube/peertube-node-utils'
|
2023-04-21 08:55:10 -04:00
|
|
|
|
|
|
|
function generateRunnerRegistrationToken () {
|
|
|
|
return 'ptrrt-' + buildUUID()
|
|
|
|
}
|
|
|
|
|
|
|
|
function generateRunnerToken () {
|
|
|
|
return 'ptrt-' + buildUUID()
|
|
|
|
}
|
|
|
|
|
|
|
|
function generateRunnerJobToken () {
|
|
|
|
return 'ptrjt-' + buildUUID()
|
|
|
|
}
|
|
|
|
|
|
|
|
export {
|
|
|
|
generateRunnerRegistrationToken,
|
|
|
|
generateRunnerToken,
|
|
|
|
generateRunnerJobToken
|
|
|
|
}
|