20 lines
583 B
TypeScript
20 lines
583 B
TypeScript
|
|
import type { IntegrationAdapter, IntegrationType } from './types.js'
|
||
|
|
import { uptimeKuma } from './uptimeKuma.js'
|
||
|
|
import { docker } from './docker.js'
|
||
|
|
|
||
|
|
const notImplemented: IntegrationAdapter = {
|
||
|
|
async testConnection() {
|
||
|
|
return { ok: false, message: 'Test connection not yet implemented for this integration type' }
|
||
|
|
},
|
||
|
|
}
|
||
|
|
|
||
|
|
export const adapterRegistry: Record<IntegrationType, IntegrationAdapter> = {
|
||
|
|
uptime_kuma: uptimeKuma,
|
||
|
|
docker,
|
||
|
|
proxmox: notImplemented,
|
||
|
|
netbird: notImplemented,
|
||
|
|
cloudflare: notImplemented,
|
||
|
|
aws: notImplemented,
|
||
|
|
weather: notImplemented,
|
||
|
|
}
|