Versions in this module Expand all Collapse all v0 v0.1.0 Aug 30, 2026 Changes in this version + const Framework + const KeyAppearanceTime + const KeyBusName + const KeyBusPath + const KeyDeviceInternal + const KeyDeviceModel + const KeyDevicePath + const KeyDeviceProtocol + const KeyDeviceRevision + const KeyDeviceVendor + const KeyMediaBSDName + const KeyMediaBlockSize + const KeyMediaContent + const KeyMediaEjectable + const KeyMediaEncrypted + const KeyMediaLeaf + const KeyMediaName + const KeyMediaPath + const KeyMediaRemovable + const KeyMediaSize + const KeyMediaWhole + const KeyMediaWritable + const KeyVolumeKind + const KeyVolumeMountable + const KeyVolumeName + const KeyVolumeNetwork + const KeyVolumePath + const KeyVolumeUUID + const ModelDiskImage + const ProtocolVirtualInterface + var ErrBadName = errors.New("diskarbitration: not a BSD disk name") + var ErrClosed = errors.New("diskarbitration: session is closed") + var ErrNoDescription = errors.New("diskarbitration: disk has no description (it may have gone away)") + var ErrNoDisk = errors.New("diskarbitration: no such disk") + var ErrNoSession = errors.New("diskarbitration: DASessionCreate returned no session") + var ErrUnsupported = errors.New("diskarbitration: unsupported on this platform (darwin only)") + func ValidName(name string) bool + type Description struct + BSDName string + BlockSize int64 + BusName string + BusPath string + Content string + DevicePath string + Ejectable bool + Encrypted bool + Internal bool + Leaf bool + MediaName string + MediaPath string + MediaSize int64 + Model string + Protocol string + Raw map[string]any + Removable bool + Revision string + Vendor string + VolumeKind string + VolumeMountable bool + VolumeName string + VolumeNetwork bool + VolumePath string + VolumeUUID string + Whole bool + Writable bool + func (d *Description) Device() string + func (d *Description) IsDiskImage() bool + func (d *Description) Mounted() bool + func (d *Description) String() string + type DiskError struct + Disk string + Message string + Op string + Status Return + func (e *DiskError) Advice() string + func (e *DiskError) Error() string + type Event struct + BSDName string + Description *Description + Kind EventKind + func (e Event) String() string + type EventKind int + const Appeared + const Disappeared + func (k EventKind) String() string + type Return uint32 + const ReturnBadArgument + const ReturnBusy + const ReturnError + const ReturnExclusiveAccess + const ReturnNoResources + const ReturnNotFound + const ReturnNotMounted + const ReturnNotPermitted + const ReturnNotPrivileged + const ReturnNotReady + const ReturnNotWritable + const ReturnSuccess + const ReturnUnsupported + func (r Return) Advice() string + func (r Return) Errno() (int, bool) + func (r Return) String() string + type Session struct + func Open() (*Session, error) + func (s *Session) Close() error + func (s *Session) Describe(name string) (*Description, error) + func (s *Session) DescribeAll() ([]*Description, error) + func (s *Session) Disks() ([]string, error) + func (s *Session) Eject(name string) error + func (s *Session) Mounts() ([]*Description, error) + func (s *Session) Unmount(name string, opts UnmountOptions) error + func (s *Session) Watch(fn func(Event)) (*Watcher, error) + type UnmountOptions uint32 + const UnmountDefault + const UnmountForce + const UnmountWhole + func (o UnmountOptions) String() string + type Watcher struct + func (w *Watcher) Stop()