mirror of
https://github.com/tale/headplane.git
synced 2026-08-27 15:37:04 +00:00
chore: log about context loading
This commit is contained in:
@@ -7,6 +7,9 @@ import { HeadscaleError, pull } from '~/utils/headscale'
|
||||
|
||||
import type { Integration } from '.'
|
||||
|
||||
// Integration name
|
||||
const name = 'Docker'
|
||||
|
||||
let url: URL | undefined
|
||||
let container: string | undefined
|
||||
|
||||
@@ -121,4 +124,4 @@ async function restart() {
|
||||
}
|
||||
}
|
||||
|
||||
export default { preflight, sighup, restart } satisfies Integration
|
||||
export default { name, preflight, sighup, restart } satisfies Integration
|
||||
|
||||
@@ -2,6 +2,7 @@ import docker from './docker'
|
||||
import proc from './proc'
|
||||
|
||||
export interface Integration {
|
||||
name: string
|
||||
preflight: () => Promise<boolean>
|
||||
sighup?: () => Promise<void>
|
||||
restart?: () => Promise<void>
|
||||
|
||||
@@ -5,6 +5,9 @@ import { kill } from 'node:process'
|
||||
|
||||
import type { Integration } from '.'
|
||||
|
||||
// Integration name
|
||||
const name = 'Native Linux (/proc)'
|
||||
|
||||
// Check if we have a /proc and if it's readable
|
||||
async function preflight() {
|
||||
if (platform() !== 'linux') {
|
||||
@@ -77,4 +80,4 @@ async function sighup() {
|
||||
}
|
||||
}
|
||||
|
||||
export default { preflight, sighup } satisfies Integration
|
||||
export default { name, preflight, sighup } satisfies Integration
|
||||
|
||||
Reference in New Issue
Block a user