mirror of
https://github.com/certd/certd.git
synced 2026-04-22 19:17:25 +08:00
23 lines
550 B
JavaScript
23 lines
550 B
JavaScript
import _ from 'lodash-es'
|
|
|
|
import { SSHAccessProvider } from './access-providers/ssh.js'
|
|
|
|
import { UploadCertToHost } from './plugins/upload-to-host/index.js'
|
|
import { HostShellExecute } from './plugins/host-shell-execute/index.js'
|
|
|
|
import { pluginRegistry, accessProviderRegistry } from '@certd/api'
|
|
|
|
export const DefaultPlugins = {
|
|
UploadCertToHost,
|
|
HostShellExecute
|
|
}
|
|
export default {
|
|
install () {
|
|
_.forEach(DefaultPlugins, item => {
|
|
pluginRegistry.install(item)
|
|
})
|
|
|
|
accessProviderRegistry.install(SSHAccessProvider)
|
|
}
|
|
}
|