Documentation
¶
Index ¶
- Constants
- func IterateMachineNetworkInterfaces(paths Paths, machineUID string, f func(networkInterfaceName string) error) error
- func IterateMachines(paths Paths, f func(machineUID string) error) error
- func MakeMachineDirs(paths Paths, machineUID string) error
- func ReadMachineUIDs(paths Paths) ([]string, error)
- type CreateStrategy
- type Host
- type LibvirtHost
- type MachineNetworkInterface
- type MachineVolume
- type Options
- type Paths
- type Store
- func (s *Store[E]) Create(_ context.Context, obj E) (E, error)
- func (s *Store[E]) Delete(_ context.Context, id string) error
- func (s *Store[E]) Get(_ context.Context, id string) (E, error)
- func (s *Store[E]) List(ctx context.Context) ([]E, error)
- func (s *Store[E]) Update(_ context.Context, obj E) (E, error)
- func (s *Store[E]) Watch(_ context.Context) (store.Watch[E], error)
Constants ¶
View Source
const ( DefaultImagesDir = "images" DefaultPluginsDir = "plugins" DefaultMachinesDir = "machines" DefaultStoreDir = "store" DefaultMachineStoreDir = "machines" DefaultMachineVolumesDir = "volumes" DefaultMachineIgnitionsDir = "ignitions" DefaultMachineIgnitionFile = "data.ign" DefaultMachineRootFSDir = "rootfs" DefaultMachineRootFSFile = "rootfs" DefaultMachinePluginsDir = "plugins" DefaultMachineNetworkInterfacesDir = "networkinterfaces" )
Variables ¶
This section is empty.
Functions ¶
func MakeMachineDirs ¶
func ReadMachineUIDs ¶
Types ¶
type CreateStrategy ¶
type LibvirtHost ¶
func NewLibvirtAt ¶
func NewLibvirtAt(rootDir string, libvirt *libvirt.Libvirt) (LibvirtHost, error)
type MachineNetworkInterface ¶
type MachineNetworkInterface struct {
NetworkInterfaceName string
}
func ReadMachineNetworkInterfaces ¶
func ReadMachineNetworkInterfaces(paths Paths, machineUID string) ([]MachineNetworkInterface, error)
type MachineVolume ¶
type Options ¶
type Options[E api.Object] struct { //TODO Dir string NewFunc func() E CreateStrategy CreateStrategy[E] }
type Paths ¶
type Paths interface {
RootDir() string
StoreDir() string
MachinesDir() string
MachineStoreDir() string
ImagesDir() string
PluginsDir() string
PluginDir(pluginName string) string
MachinePluginsDir(machineUID string) string
MachinePluginDir(machineUID string, pluginName string) string
MachineDir(machineUID string) string
MachineRootFSDir(machineUID string) string
MachineRootFSFile(machineUID string) string
MachineVolumesDir(machineUID string) string
MachineVolumesPluginDir(machineUID string, pluginName string) string
MachineVolumeDir(machineUID string, pluginName, volumeName string) string
MachineNetworkInterfacesDir(machineUID string) string
MachineNetworkInterfaceDir(machineUID string, networkInterfaceName string) string
MachineIgnitionsDir(machineUID string) string
MachineIgnitionFile(machineUID string) string
}
Click to show internal directories.
Click to hide internal directories.