mirror of
https://github.com/lxc/incus
synced 2026-08-02 05:26:46 +00:00
19 lines
299 B
Go
19 lines
299 B
Go
package main
|
|
|
|
import incus "github.com/lxc/incus/v7/client"
|
|
|
|
type target interface {
|
|
present() bool
|
|
stop() error
|
|
start() error
|
|
connect() (incus.InstanceServer, error)
|
|
paths() (*daemonPaths, error)
|
|
name() string
|
|
}
|
|
|
|
var targets = []target{
|
|
&targetSystemd{},
|
|
&targetOpenRC{},
|
|
&targetXbps{},
|
|
}
|