Versions in this module Expand all Collapse all v0 v0.7.0 Mar 26, 2024 Changes in this version type USBEvent + Serial string v0.6.0 Feb 22, 2024 v0.5.1 Jan 28, 2024 v0.5.0 Jan 25, 2024 v0.4.0 Dec 21, 2023 v0.3.0 Nov 26, 2023 v0.2.0 Oct 27, 2023 v0.1.0 Oct 7, 2023 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.IdmapEntry) (*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 + UeventLen int + UeventParts []string + Vendor string + func USBNewEvent(action string, vendor string, product string, major string, minor 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.IdmapSet, 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/v6