Versions in this module Expand all Collapse all v0 v0.2.0 Mar 11, 2025 v0.1.0 Oct 25, 2024 Changes in this version + const DefaultImagesDir + const DefaultMachineIgnitionFile + const DefaultMachineIgnitionsDir + const DefaultMachineNetworkInterfacesDir + const DefaultMachinePluginsDir + const DefaultMachineRootFSDir + const DefaultMachineRootFSFile + const DefaultMachineStoreDir + const DefaultMachineVolumesDir + const DefaultMachinesDir + const DefaultPluginsDir + const DefaultStoreDir + 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 interface + PrepareForCreate func(obj E) + type Host interface + OCIStore func() *ocistore.Store + func NewAt(rootDir string) (Host, error) + type LibvirtHost interface + Libvirt func() *libvirt.Libvirt + func NewLibvirtAt(rootDir string, libvirt *libvirt.Libvirt) (LibvirtHost, error) + type MachineNetworkInterface struct + NetworkInterfaceName string + func ReadMachineNetworkInterfaces(paths Paths, machineUID string) ([]MachineNetworkInterface, error) + type MachineVolume struct + ComputeVolumeName string + PluginName string + type Options struct + CreateStrategy CreateStrategy[E] + Dir string + NewFunc func() E + type Paths interface + ImagesDir func() string + MachineDir func(machineUID string) string + MachineIgnitionFile func(machineUID string) string + MachineIgnitionsDir func(machineUID string) string + MachineNetworkInterfaceDir func(machineUID string, networkInterfaceName string) string + MachineNetworkInterfacesDir func(machineUID string) string + MachinePluginDir func(machineUID string, pluginName string) string + MachinePluginsDir func(machineUID string) string + MachineRootFSDir func(machineUID string) string + MachineRootFSFile func(machineUID string) string + MachineStoreDir func() string + MachineVolumeDir func(machineUID string, pluginName, volumeName string) string + MachineVolumesDir func(machineUID string) string + MachineVolumesPluginDir func(machineUID string, pluginName string) string + MachinesDir func() string + PluginDir func(pluginName string) string + PluginsDir func() string + RootDir func() string + StoreDir func() string + func PathsAt(rootDir string) (Paths, error) + type Store struct + func NewStore[E api.Object](opts Options[E]) (*Store[E], error) + 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)