Versions in this module Expand all Collapse all v6 v6.2.0 May 31, 2024 v6.1.0 May 4, 2024 Changes in this version + const DiskDirectIO + const DiskFileDescriptorMountPrefix + const DiskIOUring + const DiskLoopBacked + const DiskVirtiofsdSockMountOpt + const GPUNvidiaDeviceKey + const IBDevPrefix + const RBDFormatPrefix + const RBDFormatSeparator + var ErrCannotUpdate = fmt.Errorf("Device does not support updates") + var ErrMissingVirtiofsd = UnsupportedError + var ErrUnsupportedDevType = UnsupportedError + func BlockFsDetect(dev string) (string, error) + func DiskGetRBDFormat(clusterName string, userName string, poolName string, volumeName string) string + func DiskMount(srcPath string, dstPath string, recursive bool, propagation string, ...) error + func DiskMountClear(mntPath string) error + func DiskParseRBDFormat(rbd string) (string, string, []string, error) + func DiskVMVirtfsProxyStart(execPath string, pidPath string, sharePath string, idmaps []idmap.Entry) (*os.File, revert.Hook, error) + func DiskVMVirtfsProxyStop(pidPath string) error + func DiskVMVirtiofsdStart(execPath string, inst instance.Instance, socketPath string, pidPath string, ...) (func(), net.Listener, error) + func DiskVMVirtiofsdStop(socketPath string, pidPath string) error + func IsBlockdev(path string) bool + func NetworkGetDevMAC(devName string) (string, error) + func NetworkSetDevMAC(devName string, mac string) error + func NetworkSetDevMTU(devName string, mtu uint32) error + func USBRunHandlers(state *state.State, event *USBEvent) + func UnixDeviceExists(devicesPath string, prefix string, path string) bool + func UnixHotplugRunHandlers(state *state.State, event *UnixHotplugEvent) + func Validate(instConfig instance.ConfigReader, state *state.State, name string, ...) error + type Device interface + Add func() error + Config func() deviceConfig.Device + Name func() string + PreStartCheck func() error + Register func() error + Remove func() error + Start func() (*deviceConfig.RunConfig, error) + Stop func() (*deviceConfig.RunConfig, error) + Update func(oldDevices deviceConfig.Devices, running bool) error + func New(inst instance.Instance, state *state.State, name string, ...) (Device, error) + type NICState interface + State func() (*api.InstanceStateNetwork, error) + type Type interface + CanHotPlug func() bool + CanMigrate func() bool + UpdatableFields func(oldDevice Type) []string + func LoadByType(state *state.State, projectName string, conf deviceConfig.Device) (Type, error) + type USBEvent struct + Action string + BusNum int + DevNum int + Major uint32 + Minor uint32 + Path string + Product string + Serial string + UeventLen int + UeventParts []string + Vendor string + func USBNewEvent(action string, vendor string, product string, serial string, major string, ...) (USBEvent, error) + type UnixDevice struct + GID int + HostPath string + Major uint32 + Minor uint32 + Mode os.FileMode + RelativePath string + Type string + UID int + func UnixDeviceCreate(s *state.State, idmapSet *idmap.Set, devicesPath string, prefix string, ...) (*UnixDevice, error) + type UnixEvent struct + Action string + Path string + type UnixHotplugEvent struct + Action string + Major uint32 + Minor uint32 + Path string + Product string + Subsystem string + UeventLen int + UeventParts []string + Vendor string + func UnixHotplugNewEvent(action string, vendor string, product string, major string, minor string, ...) (UnixHotplugEvent, error) + type UnixSubscription struct + Handler func(UnixEvent) (*deviceConfig.RunConfig, error) + Path string + type UnsupportedError struct + func (e UnsupportedError) Error() string + type VolatileGetter func() map[string]string + type VolatileSetter func(map[string]string) error Other modules containing this package github.com/lxc/incus