incus-mirror/cmd/lxd-to-incus/targets.go
Stéphane Graber 40dd4f151d
Rewrite Go import path to v7
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
2026-05-02 01:18:25 +02:00

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{},
}