Documentation ¶
Overview ¶
Code generated by dbus-codegen-go DO NOT EDIT.
Index ¶
- Constants
- Variables
- func AddMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error
- func RemoveMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error
- type Block
- func (o *Block) AddConfigurationItem(ctx context.Context, item struct{ ... }, options map[string]dbus.Variant) (err error)
- func (o *Block) Format(ctx context.Context, inType string, options map[string]dbus.Variant) (err error)
- func (o *Block) GetConfiguration(ctx context.Context) (configuration []struct{ ... }, err error)
- func (o *Block) GetCryptoBackingDevice(ctx context.Context) (cryptoBackingDevice dbus.ObjectPath, err error)
- func (o *Block) GetDevice(ctx context.Context) (device []byte, err error)
- func (o *Block) GetDeviceNumber(ctx context.Context) (deviceNumber uint64, err error)
- func (o *Block) GetDeviceString(ctx context.Context) (*string, error)
- func (o *Block) GetDrive(ctx context.Context) (drive dbus.ObjectPath, err error)
- func (o *Block) GetHintAuto(ctx context.Context) (hintAuto bool, err error)
- func (o *Block) GetHintIconName(ctx context.Context) (hintIconName string, err error)
- func (o *Block) GetHintIgnore(ctx context.Context) (hintIgnore bool, err error)
- func (o *Block) GetHintName(ctx context.Context) (hintName string, err error)
- func (o *Block) GetHintPartitionable(ctx context.Context) (hintPartitionable bool, err error)
- func (o *Block) GetHintSymbolicIconName(ctx context.Context) (hintSymbolicIconName string, err error)
- func (o *Block) GetHintSystem(ctx context.Context) (hintSystem bool, err error)
- func (o *Block) GetId(ctx context.Context) (id string, err error)
- func (o *Block) GetIdLabel(ctx context.Context) (idLabel string, err error)
- func (o *Block) GetIdType(ctx context.Context) (idType string, err error)
- func (o *Block) GetIdUUID(ctx context.Context) (idUUID string, err error)
- func (o *Block) GetIdUsage(ctx context.Context) (idUsage string, err error)
- func (o *Block) GetIdVersion(ctx context.Context) (idVersion string, err error)
- func (o *Block) GetMDRaid(ctx context.Context) (mDRaid dbus.ObjectPath, err error)
- func (o *Block) GetMDRaidMember(ctx context.Context) (mDRaidMember dbus.ObjectPath, err error)
- func (o *Block) GetPreferredDevice(ctx context.Context) (preferredDevice []byte, err error)
- func (o *Block) GetReadOnly(ctx context.Context) (readOnly bool, err error)
- func (o *Block) GetSecretConfiguration(ctx context.Context, options map[string]dbus.Variant) (configuration []struct{ ... }, err error)
- func (o *Block) GetSize(ctx context.Context) (size uint64, err error)
- func (o *Block) GetSymlinks(ctx context.Context) (symlinks [][]byte, err error)
- func (o *Block) GetUserspaceMountOptions(ctx context.Context) (userspaceMountOptions []string, err error)
- func (o *Block) OpenDevice(ctx context.Context, mode string, options map[string]dbus.Variant) (fd dbus.UnixFD, err error)
- func (o *Block) OpenForBackup(ctx context.Context, options map[string]dbus.Variant) (fd dbus.UnixFD, err error)
- func (o *Block) OpenForBenchmark(ctx context.Context, options map[string]dbus.Variant) (fd dbus.UnixFD, err error)
- func (o *Block) OpenForRestore(ctx context.Context, options map[string]dbus.Variant) (fd dbus.UnixFD, err error)
- func (o *Block) RemoveConfigurationItem(ctx context.Context, item struct{ ... }, options map[string]dbus.Variant) (err error)
- func (o *Block) Rescan(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *Block) UpdateConfigurationItem(ctx context.Context, oldItem struct{ ... }, newItem struct{ ... }, ...) (err error)
- type Drive
- func (o *Drive) Eject(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *Drive) GetCanPowerOff(ctx context.Context) (canPowerOff bool, err error)
- func (o *Drive) GetConfiguration(ctx context.Context) (configuration map[string]dbus.Variant, err error)
- func (o *Drive) GetConnectionBus(ctx context.Context) (connectionBus string, err error)
- func (o *Drive) GetEjectable(ctx context.Context) (ejectable bool, err error)
- func (o *Drive) GetId(ctx context.Context) (id string, err error)
- func (o *Drive) GetMedia(ctx context.Context) (media string, err error)
- func (o *Drive) GetMediaAvailable(ctx context.Context) (mediaAvailable bool, err error)
- func (o *Drive) GetMediaChangeDetected(ctx context.Context) (mediaChangeDetected bool, err error)
- func (o *Drive) GetMediaCompatibility(ctx context.Context) (mediaCompatibility []string, err error)
- func (o *Drive) GetMediaRemovable(ctx context.Context) (mediaRemovable bool, err error)
- func (o *Drive) GetModel(ctx context.Context) (model string, err error)
- func (o *Drive) GetOptical(ctx context.Context) (optical bool, err error)
- func (o *Drive) GetOpticalBlank(ctx context.Context) (opticalBlank bool, err error)
- func (o *Drive) GetOpticalNumAudioTracks(ctx context.Context) (opticalNumAudioTracks uint32, err error)
- func (o *Drive) GetOpticalNumDataTracks(ctx context.Context) (opticalNumDataTracks uint32, err error)
- func (o *Drive) GetOpticalNumSessions(ctx context.Context) (opticalNumSessions uint32, err error)
- func (o *Drive) GetOpticalNumTracks(ctx context.Context) (opticalNumTracks uint32, err error)
- func (o *Drive) GetRemovable(ctx context.Context) (removable bool, err error)
- func (o *Drive) GetRevision(ctx context.Context) (revision string, err error)
- func (o *Drive) GetRotationRate(ctx context.Context) (rotationRate int32, err error)
- func (o *Drive) GetSeat(ctx context.Context) (seat string, err error)
- func (o *Drive) GetSerial(ctx context.Context) (serial string, err error)
- func (o *Drive) GetSiblingId(ctx context.Context) (siblingId string, err error)
- func (o *Drive) GetSize(ctx context.Context) (size uint64, err error)
- func (o *Drive) GetSortKey(ctx context.Context) (sortKey string, err error)
- func (o *Drive) GetTimeDetected(ctx context.Context) (timeDetected uint64, err error)
- func (o *Drive) GetTimeMediaDetected(ctx context.Context) (timeMediaDetected uint64, err error)
- func (o *Drive) GetVendor(ctx context.Context) (vendor string, err error)
- func (o *Drive) GetWWN(ctx context.Context) (wWN string, err error)
- func (o *Drive) PowerOff(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *Drive) SetConfiguration(ctx context.Context, value map[string]dbus.Variant, ...) (err error)
- type DriveAta
- func (o *DriveAta) GetAamEnabled(ctx context.Context) (aamEnabled bool, err error)
- func (o *DriveAta) GetAamSupported(ctx context.Context) (aamSupported bool, err error)
- func (o *DriveAta) GetAamVendorRecommendedValue(ctx context.Context) (aamVendorRecommendedValue int32, err error)
- func (o *DriveAta) GetApmEnabled(ctx context.Context) (apmEnabled bool, err error)
- func (o *DriveAta) GetApmSupported(ctx context.Context) (apmSupported bool, err error)
- func (o *DriveAta) GetPmEnabled(ctx context.Context) (pmEnabled bool, err error)
- func (o *DriveAta) GetPmSupported(ctx context.Context) (pmSupported bool, err error)
- func (o *DriveAta) GetReadLookaheadEnabled(ctx context.Context) (readLookaheadEnabled bool, err error)
- func (o *DriveAta) GetReadLookaheadSupported(ctx context.Context) (readLookaheadSupported bool, err error)
- func (o *DriveAta) GetSecurityEnhancedEraseUnitMinutes(ctx context.Context) (securityEnhancedEraseUnitMinutes int32, err error)
- func (o *DriveAta) GetSecurityEraseUnitMinutes(ctx context.Context) (securityEraseUnitMinutes int32, err error)
- func (o *DriveAta) GetSecurityFrozen(ctx context.Context) (securityFrozen bool, err error)
- func (o *DriveAta) GetSmartEnabled(ctx context.Context) (smartEnabled bool, err error)
- func (o *DriveAta) GetSmartFailing(ctx context.Context) (smartFailing bool, err error)
- func (o *DriveAta) GetSmartNumAttributesFailedInThePast(ctx context.Context) (smartNumAttributesFailedInThePast int32, err error)
- func (o *DriveAta) GetSmartNumAttributesFailing(ctx context.Context) (smartNumAttributesFailing int32, err error)
- func (o *DriveAta) GetSmartNumBadSectors(ctx context.Context) (smartNumBadSectors int64, err error)
- func (o *DriveAta) GetSmartPowerOnSeconds(ctx context.Context) (smartPowerOnSeconds uint64, err error)
- func (o *DriveAta) GetSmartSelftestPercentRemaining(ctx context.Context) (smartSelftestPercentRemaining int32, err error)
- func (o *DriveAta) GetSmartSelftestStatus(ctx context.Context) (smartSelftestStatus string, err error)
- func (o *DriveAta) GetSmartSupported(ctx context.Context) (smartSupported bool, err error)
- func (o *DriveAta) GetSmartTemperature(ctx context.Context) (smartTemperature float64, err error)
- func (o *DriveAta) GetSmartUpdated(ctx context.Context) (smartUpdated uint64, err error)
- func (o *DriveAta) GetWriteCacheEnabled(ctx context.Context) (writeCacheEnabled bool, err error)
- func (o *DriveAta) GetWriteCacheSupported(ctx context.Context) (writeCacheSupported bool, err error)
- func (o *DriveAta) PmGetState(ctx context.Context, options map[string]dbus.Variant) (state byte, err error)
- func (o *DriveAta) PmStandby(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *DriveAta) PmWakeup(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *DriveAta) SecurityEraseUnit(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *DriveAta) SmartGetAttributes(ctx context.Context, options map[string]dbus.Variant) (attributes []struct{ ... }, err error)
- func (o *DriveAta) SmartSelftestAbort(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *DriveAta) SmartSelftestStart(ctx context.Context, inType string, options map[string]dbus.Variant) (err error)
- func (o *DriveAta) SmartSetEnabled(ctx context.Context, value bool, options map[string]dbus.Variant) (err error)
- func (o *DriveAta) SmartUpdate(ctx context.Context, options map[string]dbus.Variant) (err error)
- type Encrypted
- func (o *Encrypted) ChangePassphrase(ctx context.Context, passphrase string, newPassphrase string, ...) (err error)
- func (o *Encrypted) GetChildConfiguration(ctx context.Context) (childConfiguration []struct{ ... }, err error)
- func (o *Encrypted) GetCleartextDevice(ctx context.Context) (cleartextDevice dbus.ObjectPath, err error)
- func (o *Encrypted) GetHintEncryptionType(ctx context.Context) (hintEncryptionType string, err error)
- func (o *Encrypted) GetMetadataSize(ctx context.Context) (metadataSize uint64, err error)
- func (o *Encrypted) Lock(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *Encrypted) Resize(ctx context.Context, size uint64, options map[string]dbus.Variant) (err error)
- func (o *Encrypted) Unlock(ctx context.Context, passphrase string, options map[string]dbus.Variant) (cleartextDevice dbus.ObjectPath, err error)
- type Filesystem
- func (o *Filesystem) Check(ctx context.Context, options map[string]dbus.Variant) (consistent bool, err error)
- func (o *Filesystem) GetMountPoints(ctx context.Context) (mountPoints [][]byte, err error)
- func (f *Filesystem) GetMountPointsString(ctx context.Context) ([]string, error)
- func (o *Filesystem) GetSize(ctx context.Context) (size uint64, err error)
- func (o *Filesystem) Mount(ctx context.Context, options map[string]dbus.Variant) (mountPath string, err error)
- func (o *Filesystem) Repair(ctx context.Context, options map[string]dbus.Variant) (repaired bool, err error)
- func (o *Filesystem) Resize(ctx context.Context, size uint64, options map[string]dbus.Variant) (err error)
- func (o *Filesystem) SetLabel(ctx context.Context, label string, options map[string]dbus.Variant) (err error)
- func (o *Filesystem) TakeOwnership(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *Filesystem) Unmount(ctx context.Context, options map[string]dbus.Variant) (err error)
- type Job
- func (o *Job) Cancel(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *Job) GetBytes(ctx context.Context) (bytes uint64, err error)
- func (o *Job) GetCancelable(ctx context.Context) (cancelable bool, err error)
- func (o *Job) GetExpectedEndTime(ctx context.Context) (expectedEndTime uint64, err error)
- func (o *Job) GetObjects(ctx context.Context) (objects []dbus.ObjectPath, err error)
- func (o *Job) GetOperation(ctx context.Context) (operation string, err error)
- func (o *Job) GetProgress(ctx context.Context) (progress float64, err error)
- func (o *Job) GetProgressValid(ctx context.Context) (progressValid bool, err error)
- func (o *Job) GetRate(ctx context.Context) (rate uint64, err error)
- func (o *Job) GetStartTime(ctx context.Context) (startTime uint64, err error)
- func (o *Job) GetStartedByUID(ctx context.Context) (startedByUID uint32, err error)
- type JobCompletedSignal
- type JobCompletedSignalBody
- type Loop
- func (o *Loop) Delete(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *Loop) GetAutoclear(ctx context.Context) (autoclear bool, err error)
- func (o *Loop) GetBackingFile(ctx context.Context) (backingFile []byte, err error)
- func (o *Loop) GetSetupByUID(ctx context.Context) (setupByUID uint32, err error)
- func (o *Loop) SetAutoclear(ctx context.Context, value bool, options map[string]dbus.Variant) (err error)
- type MDRaid
- func (o *MDRaid) AddDevice(ctx context.Context, device dbus.ObjectPath, options map[string]dbus.Variant) (err error)
- func (o *MDRaid) Delete(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *MDRaid) GetActiveDevices(ctx context.Context) (activeDevices []struct{ ... }, err error)
- func (o *MDRaid) GetBitmapLocation(ctx context.Context) (bitmapLocation []byte, err error)
- func (o *MDRaid) GetChildConfiguration(ctx context.Context) (childConfiguration []struct{ ... }, err error)
- func (o *MDRaid) GetChunkSize(ctx context.Context) (chunkSize uint64, err error)
- func (o *MDRaid) GetDegraded(ctx context.Context) (degraded uint32, err error)
- func (o *MDRaid) GetLevel(ctx context.Context) (level string, err error)
- func (o *MDRaid) GetName(ctx context.Context) (name string, err error)
- func (o *MDRaid) GetNumDevices(ctx context.Context) (numDevices uint32, err error)
- func (o *MDRaid) GetRunning(ctx context.Context) (running bool, err error)
- func (o *MDRaid) GetSize(ctx context.Context) (size uint64, err error)
- func (o *MDRaid) GetSyncAction(ctx context.Context) (syncAction string, err error)
- func (o *MDRaid) GetSyncCompleted(ctx context.Context) (syncCompleted float64, err error)
- func (o *MDRaid) GetSyncRate(ctx context.Context) (syncRate uint64, err error)
- func (o *MDRaid) GetSyncRemainingTime(ctx context.Context) (syncRemainingTime uint64, err error)
- func (o *MDRaid) GetUUID(ctx context.Context) (uUID string, err error)
- func (o *MDRaid) RemoveDevice(ctx context.Context, device dbus.ObjectPath, options map[string]dbus.Variant) (err error)
- func (o *MDRaid) RequestSyncAction(ctx context.Context, syncAction string, options map[string]dbus.Variant) (err error)
- func (o *MDRaid) SetBitmapLocation(ctx context.Context, value []byte, options map[string]dbus.Variant) (err error)
- func (o *MDRaid) Start(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *MDRaid) Stop(ctx context.Context, options map[string]dbus.Variant) (err error)
- type Manager
- func (o *Manager) CanCheck(ctx context.Context, inType string) (available struct{ ... }, err error)
- func (o *Manager) CanFormat(ctx context.Context, inType string) (available struct{ ... }, err error)
- func (o *Manager) CanRepair(ctx context.Context, inType string) (available struct{ ... }, err error)
- func (o *Manager) CanResize(ctx context.Context, inType string) (available struct{ ... }, err error)
- func (o *Manager) EnableModule(ctx context.Context, name string, enable bool) (err error)
- func (o *Manager) EnableModules(ctx context.Context, enable bool) (err error)
- func (o *Manager) GetBlockDevices(ctx context.Context, options map[string]dbus.Variant) (blockObjects []dbus.ObjectPath, err error)
- func (o *Manager) GetDefaultEncryptionType(ctx context.Context) (defaultEncryptionType string, err error)
- func (o *Manager) GetSupportedEncryptionTypes(ctx context.Context) (supportedEncryptionTypes []string, err error)
- func (o *Manager) GetSupportedFilesystems(ctx context.Context) (supportedFilesystems []string, err error)
- func (o *Manager) GetVersion(ctx context.Context) (version string, err error)
- func (o *Manager) LoopSetup(ctx context.Context, fd dbus.UnixFD, options map[string]dbus.Variant) (resultingDevice dbus.ObjectPath, err error)
- func (o *Manager) MDRaidCreate(ctx context.Context, blocks []dbus.ObjectPath, level string, name string, ...) (resultingArray dbus.ObjectPath, err error)
- func (o *Manager) ResolveDevice(ctx context.Context, devspec map[string]dbus.Variant, ...) (devices []dbus.ObjectPath, err error)
- func (m *Manager) ResolveDeviceFromLabel(label string) (*dbus.ObjectPath, error)
- type Partition
- func (o *Partition) Delete(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *Partition) GetFlags(ctx context.Context) (flags uint64, err error)
- func (o *Partition) GetIsContained(ctx context.Context) (isContained bool, err error)
- func (o *Partition) GetIsContainer(ctx context.Context) (isContainer bool, err error)
- func (o *Partition) GetName(ctx context.Context) (name string, err error)
- func (o *Partition) GetNumber(ctx context.Context) (number uint32, err error)
- func (o *Partition) GetOffset(ctx context.Context) (offset uint64, err error)
- func (o *Partition) GetSize(ctx context.Context) (size uint64, err error)
- func (o *Partition) GetTable(ctx context.Context) (table dbus.ObjectPath, err error)
- func (o *Partition) GetType(ctx context.Context) (vType string, err error)
- func (o *Partition) GetUUID(ctx context.Context) (uUID string, err error)
- func (o *Partition) Resize(ctx context.Context, size uint64, options map[string]dbus.Variant) (err error)
- func (o *Partition) SetFlags(ctx context.Context, flags uint64, options map[string]dbus.Variant) (err error)
- func (o *Partition) SetName(ctx context.Context, name string, options map[string]dbus.Variant) (err error)
- func (o *Partition) SetType(ctx context.Context, inType string, options map[string]dbus.Variant) (err error)
- type PartitionTable
- func (o *PartitionTable) CreatePartition(ctx context.Context, offset uint64, size uint64, inType string, name string, ...) (createdPartition dbus.ObjectPath, err error)
- func (o *PartitionTable) CreatePartitionAndFormat(ctx context.Context, offset uint64, size uint64, inType string, name string, ...) (createdPartition dbus.ObjectPath, err error)
- func (o *PartitionTable) GetPartitions(ctx context.Context) (partitions []dbus.ObjectPath, err error)
- func (o *PartitionTable) GetType(ctx context.Context) (vType string, err error)
- type Signal
- type Swapspace
- func (o *Swapspace) GetActive(ctx context.Context) (active bool, err error)
- func (o *Swapspace) SetLabel(ctx context.Context, label string, options map[string]dbus.Variant) (err error)
- func (o *Swapspace) Start(ctx context.Context, options map[string]dbus.Variant) (err error)
- func (o *Swapspace) Stop(ctx context.Context, options map[string]dbus.Variant) (err error)
- type UDisks2Helper
- func (u UDisks2Helper) FormatPartition(blockObjectPath dbus.BusObject, fsType string, label string) error
- func (u UDisks2Helper) FormatPartitionFromDevicePath(devicePath string, fsType string, label string) error
- func (u UDisks2Helper) GetBusObjectFromLabel(label string) (dbus.BusObject, error)
- func (u UDisks2Helper) GetRootDeviceFromLabel(label string) (*string, error)
- func (u UDisks2Helper) PartitionDeviceWithSinglePartition(devicePath string, uuid string, name string) error
Constants ¶
const ( InterfaceManager = "org.freedesktop.UDisks2.Manager" InterfaceDrive = "org.freedesktop.UDisks2.Drive" InterfaceDriveAta = "org.freedesktop.UDisks2.Drive.Ata" InterfaceBlock = "org.freedesktop.UDisks2.Block" InterfacePartitionTable = "org.freedesktop.UDisks2.PartitionTable" InterfacePartition = "org.freedesktop.UDisks2.Partition" InterfaceFilesystem = "org.freedesktop.UDisks2.Filesystem" InterfaceSwapspace = "org.freedesktop.UDisks2.Swapspace" InterfaceEncrypted = "org.freedesktop.UDisks2.Encrypted" InterfaceLoop = "org.freedesktop.UDisks2.Loop" InterfaceMDRaid = "org.freedesktop.UDisks2.MDRaid" InterfaceJob = "org.freedesktop.UDisks2.Job" )
Interface name constants.
Variables ¶
var ErrUnknownSignal = errors.New("unknown signal")
ErrUnknownSignal is returned by LookupSignal when a signal cannot be resolved.
Functions ¶
func AddMatchSignal ¶
AddMatchSignal registers a match rule for the given signal, opts are appended to the automatically generated signal's rules.
func RemoveMatchSignal ¶
RemoveMatchSignal unregisters the previously registered subscription.
Types ¶
type Block ¶
type Block struct {
// contains filtered or unexported fields
}
Block implements org.freedesktop.UDisks2.Block D-Bus interface.
func NewBlock ¶
func NewBlock(object dbus.BusObject) *Block
NewBlock creates and allocates org.freedesktop.UDisks2.Block.
func (*Block) AddConfigurationItem ¶
func (o *Block) AddConfigurationItem(ctx context.Context, item struct { V0 string V1 map[string]dbus.Variant }, options map[string]dbus.Variant) (err error)
AddConfigurationItem calls org.freedesktop.UDisks2.Block.AddConfigurationItem method.
func (*Block) Format ¶
func (o *Block) Format(ctx context.Context, inType string, options map[string]dbus.Variant) (err error)
Format calls org.freedesktop.UDisks2.Block.Format method.
func (*Block) GetConfiguration ¶
func (o *Block) GetConfiguration(ctx context.Context) (configuration []struct { V0 string V1 map[string]dbus.Variant }, err error)
GetConfiguration gets org.freedesktop.UDisks2.Block.Configuration property.
func (*Block) GetCryptoBackingDevice ¶
func (o *Block) GetCryptoBackingDevice(ctx context.Context) (cryptoBackingDevice dbus.ObjectPath, err error)
GetCryptoBackingDevice gets org.freedesktop.UDisks2.Block.CryptoBackingDevice property.
func (*Block) GetDeviceNumber ¶
GetDeviceNumber gets org.freedesktop.UDisks2.Block.DeviceNumber property.
func (*Block) GetDeviceString ¶
func (*Block) GetHintAuto ¶
GetHintAuto gets org.freedesktop.UDisks2.Block.HintAuto property.
func (*Block) GetHintIconName ¶
GetHintIconName gets org.freedesktop.UDisks2.Block.HintIconName property.
func (*Block) GetHintIgnore ¶
GetHintIgnore gets org.freedesktop.UDisks2.Block.HintIgnore property.
func (*Block) GetHintName ¶
GetHintName gets org.freedesktop.UDisks2.Block.HintName property.
func (*Block) GetHintPartitionable ¶
GetHintPartitionable gets org.freedesktop.UDisks2.Block.HintPartitionable property.
func (*Block) GetHintSymbolicIconName ¶
func (o *Block) GetHintSymbolicIconName(ctx context.Context) (hintSymbolicIconName string, err error)
GetHintSymbolicIconName gets org.freedesktop.UDisks2.Block.HintSymbolicIconName property.
func (*Block) GetHintSystem ¶
GetHintSystem gets org.freedesktop.UDisks2.Block.HintSystem property.
func (*Block) GetIdLabel ¶
GetIdLabel gets org.freedesktop.UDisks2.Block.IdLabel property.
func (*Block) GetIdUsage ¶
GetIdUsage gets org.freedesktop.UDisks2.Block.IdUsage property.
func (*Block) GetIdVersion ¶
GetIdVersion gets org.freedesktop.UDisks2.Block.IdVersion property.
func (*Block) GetMDRaidMember ¶
GetMDRaidMember gets org.freedesktop.UDisks2.Block.MDRaidMember property.
func (*Block) GetPreferredDevice ¶
GetPreferredDevice gets org.freedesktop.UDisks2.Block.PreferredDevice property.
func (*Block) GetReadOnly ¶
GetReadOnly gets org.freedesktop.UDisks2.Block.ReadOnly property.
func (*Block) GetSecretConfiguration ¶
func (o *Block) GetSecretConfiguration(ctx context.Context, options map[string]dbus.Variant) (configuration []struct { V0 string V1 map[string]dbus.Variant }, err error)
GetSecretConfiguration calls org.freedesktop.UDisks2.Block.GetSecretConfiguration method.
func (*Block) GetSymlinks ¶
GetSymlinks gets org.freedesktop.UDisks2.Block.Symlinks property.
func (*Block) GetUserspaceMountOptions ¶
func (o *Block) GetUserspaceMountOptions(ctx context.Context) (userspaceMountOptions []string, err error)
GetUserspaceMountOptions gets org.freedesktop.UDisks2.Block.UserspaceMountOptions property.
func (*Block) OpenDevice ¶
func (o *Block) OpenDevice(ctx context.Context, mode string, options map[string]dbus.Variant) (fd dbus.UnixFD, err error)
OpenDevice calls org.freedesktop.UDisks2.Block.OpenDevice method.
Annotations:
@org.gtk.GDBus.C.UnixFD = 1
func (*Block) OpenForBackup ¶
func (o *Block) OpenForBackup(ctx context.Context, options map[string]dbus.Variant) (fd dbus.UnixFD, err error)
OpenForBackup calls org.freedesktop.UDisks2.Block.OpenForBackup method.
Annotations:
@org.gtk.GDBus.C.UnixFD = 1
func (*Block) OpenForBenchmark ¶
func (o *Block) OpenForBenchmark(ctx context.Context, options map[string]dbus.Variant) (fd dbus.UnixFD, err error)
OpenForBenchmark calls org.freedesktop.UDisks2.Block.OpenForBenchmark method.
Annotations:
@org.gtk.GDBus.C.UnixFD = 1
func (*Block) OpenForRestore ¶
func (o *Block) OpenForRestore(ctx context.Context, options map[string]dbus.Variant) (fd dbus.UnixFD, err error)
OpenForRestore calls org.freedesktop.UDisks2.Block.OpenForRestore method.
Annotations:
@org.gtk.GDBus.C.UnixFD = 1
func (*Block) RemoveConfigurationItem ¶
func (o *Block) RemoveConfigurationItem(ctx context.Context, item struct { V0 string V1 map[string]dbus.Variant }, options map[string]dbus.Variant) (err error)
RemoveConfigurationItem calls org.freedesktop.UDisks2.Block.RemoveConfigurationItem method.
func (*Block) UpdateConfigurationItem ¶
func (o *Block) UpdateConfigurationItem(ctx context.Context, oldItem struct { V0 string V1 map[string]dbus.Variant }, newItem struct { V0 string V1 map[string]dbus.Variant }, options map[string]dbus.Variant) (err error)
UpdateConfigurationItem calls org.freedesktop.UDisks2.Block.UpdateConfigurationItem method.
type Drive ¶
type Drive struct {
// contains filtered or unexported fields
}
Drive implements org.freedesktop.UDisks2.Drive D-Bus interface.
func NewDrive ¶
func NewDrive(object dbus.BusObject) *Drive
NewDrive creates and allocates org.freedesktop.UDisks2.Drive.
func (*Drive) GetCanPowerOff ¶
GetCanPowerOff gets org.freedesktop.UDisks2.Drive.CanPowerOff property.
func (*Drive) GetConfiguration ¶
func (o *Drive) GetConfiguration(ctx context.Context) (configuration map[string]dbus.Variant, err error)
GetConfiguration gets org.freedesktop.UDisks2.Drive.Configuration property.
func (*Drive) GetConnectionBus ¶
GetConnectionBus gets org.freedesktop.UDisks2.Drive.ConnectionBus property.
func (*Drive) GetEjectable ¶
GetEjectable gets org.freedesktop.UDisks2.Drive.Ejectable property.
func (*Drive) GetMediaAvailable ¶
GetMediaAvailable gets org.freedesktop.UDisks2.Drive.MediaAvailable property.
func (*Drive) GetMediaChangeDetected ¶
GetMediaChangeDetected gets org.freedesktop.UDisks2.Drive.MediaChangeDetected property.
func (*Drive) GetMediaCompatibility ¶
GetMediaCompatibility gets org.freedesktop.UDisks2.Drive.MediaCompatibility property.
func (*Drive) GetMediaRemovable ¶
GetMediaRemovable gets org.freedesktop.UDisks2.Drive.MediaRemovable property.
func (*Drive) GetOptical ¶
GetOptical gets org.freedesktop.UDisks2.Drive.Optical property.
func (*Drive) GetOpticalBlank ¶
GetOpticalBlank gets org.freedesktop.UDisks2.Drive.OpticalBlank property.
func (*Drive) GetOpticalNumAudioTracks ¶
func (o *Drive) GetOpticalNumAudioTracks(ctx context.Context) (opticalNumAudioTracks uint32, err error)
GetOpticalNumAudioTracks gets org.freedesktop.UDisks2.Drive.OpticalNumAudioTracks property.
func (*Drive) GetOpticalNumDataTracks ¶
func (o *Drive) GetOpticalNumDataTracks(ctx context.Context) (opticalNumDataTracks uint32, err error)
GetOpticalNumDataTracks gets org.freedesktop.UDisks2.Drive.OpticalNumDataTracks property.
func (*Drive) GetOpticalNumSessions ¶
GetOpticalNumSessions gets org.freedesktop.UDisks2.Drive.OpticalNumSessions property.
func (*Drive) GetOpticalNumTracks ¶
GetOpticalNumTracks gets org.freedesktop.UDisks2.Drive.OpticalNumTracks property.
func (*Drive) GetRemovable ¶
GetRemovable gets org.freedesktop.UDisks2.Drive.Removable property.
func (*Drive) GetRevision ¶
GetRevision gets org.freedesktop.UDisks2.Drive.Revision property.
func (*Drive) GetRotationRate ¶
GetRotationRate gets org.freedesktop.UDisks2.Drive.RotationRate property.
func (*Drive) GetSiblingId ¶
GetSiblingId gets org.freedesktop.UDisks2.Drive.SiblingId property.
func (*Drive) GetSortKey ¶
GetSortKey gets org.freedesktop.UDisks2.Drive.SortKey property.
func (*Drive) GetTimeDetected ¶
GetTimeDetected gets org.freedesktop.UDisks2.Drive.TimeDetected property.
func (*Drive) GetTimeMediaDetected ¶
GetTimeMediaDetected gets org.freedesktop.UDisks2.Drive.TimeMediaDetected property.
type DriveAta ¶
type DriveAta struct {
// contains filtered or unexported fields
}
DriveAta implements org.freedesktop.UDisks2.Drive.Ata D-Bus interface.
func NewDriveAta ¶
func NewDriveAta(object dbus.BusObject) *DriveAta
NewDriveAta creates and allocates org.freedesktop.UDisks2.Drive.Ata.
func (*DriveAta) GetAamEnabled ¶
GetAamEnabled gets org.freedesktop.UDisks2.Drive.Ata.AamEnabled property.
func (*DriveAta) GetAamSupported ¶
GetAamSupported gets org.freedesktop.UDisks2.Drive.Ata.AamSupported property.
func (*DriveAta) GetAamVendorRecommendedValue ¶
func (o *DriveAta) GetAamVendorRecommendedValue(ctx context.Context) (aamVendorRecommendedValue int32, err error)
GetAamVendorRecommendedValue gets org.freedesktop.UDisks2.Drive.Ata.AamVendorRecommendedValue property.
func (*DriveAta) GetApmEnabled ¶
GetApmEnabled gets org.freedesktop.UDisks2.Drive.Ata.ApmEnabled property.
func (*DriveAta) GetApmSupported ¶
GetApmSupported gets org.freedesktop.UDisks2.Drive.Ata.ApmSupported property.
func (*DriveAta) GetPmEnabled ¶
GetPmEnabled gets org.freedesktop.UDisks2.Drive.Ata.PmEnabled property.
func (*DriveAta) GetPmSupported ¶
GetPmSupported gets org.freedesktop.UDisks2.Drive.Ata.PmSupported property.
func (*DriveAta) GetReadLookaheadEnabled ¶
func (o *DriveAta) GetReadLookaheadEnabled(ctx context.Context) (readLookaheadEnabled bool, err error)
GetReadLookaheadEnabled gets org.freedesktop.UDisks2.Drive.Ata.ReadLookaheadEnabled property.
func (*DriveAta) GetReadLookaheadSupported ¶
func (o *DriveAta) GetReadLookaheadSupported(ctx context.Context) (readLookaheadSupported bool, err error)
GetReadLookaheadSupported gets org.freedesktop.UDisks2.Drive.Ata.ReadLookaheadSupported property.
func (*DriveAta) GetSecurityEnhancedEraseUnitMinutes ¶
func (o *DriveAta) GetSecurityEnhancedEraseUnitMinutes(ctx context.Context) (securityEnhancedEraseUnitMinutes int32, err error)
GetSecurityEnhancedEraseUnitMinutes gets org.freedesktop.UDisks2.Drive.Ata.SecurityEnhancedEraseUnitMinutes property.
func (*DriveAta) GetSecurityEraseUnitMinutes ¶
func (o *DriveAta) GetSecurityEraseUnitMinutes(ctx context.Context) (securityEraseUnitMinutes int32, err error)
GetSecurityEraseUnitMinutes gets org.freedesktop.UDisks2.Drive.Ata.SecurityEraseUnitMinutes property.
func (*DriveAta) GetSecurityFrozen ¶
GetSecurityFrozen gets org.freedesktop.UDisks2.Drive.Ata.SecurityFrozen property.
func (*DriveAta) GetSmartEnabled ¶
GetSmartEnabled gets org.freedesktop.UDisks2.Drive.Ata.SmartEnabled property.
func (*DriveAta) GetSmartFailing ¶
GetSmartFailing gets org.freedesktop.UDisks2.Drive.Ata.SmartFailing property.
func (*DriveAta) GetSmartNumAttributesFailedInThePast ¶
func (o *DriveAta) GetSmartNumAttributesFailedInThePast(ctx context.Context) (smartNumAttributesFailedInThePast int32, err error)
GetSmartNumAttributesFailedInThePast gets org.freedesktop.UDisks2.Drive.Ata.SmartNumAttributesFailedInThePast property.
func (*DriveAta) GetSmartNumAttributesFailing ¶
func (o *DriveAta) GetSmartNumAttributesFailing(ctx context.Context) (smartNumAttributesFailing int32, err error)
GetSmartNumAttributesFailing gets org.freedesktop.UDisks2.Drive.Ata.SmartNumAttributesFailing property.
func (*DriveAta) GetSmartNumBadSectors ¶
GetSmartNumBadSectors gets org.freedesktop.UDisks2.Drive.Ata.SmartNumBadSectors property.
func (*DriveAta) GetSmartPowerOnSeconds ¶
func (o *DriveAta) GetSmartPowerOnSeconds(ctx context.Context) (smartPowerOnSeconds uint64, err error)
GetSmartPowerOnSeconds gets org.freedesktop.UDisks2.Drive.Ata.SmartPowerOnSeconds property.
func (*DriveAta) GetSmartSelftestPercentRemaining ¶
func (o *DriveAta) GetSmartSelftestPercentRemaining(ctx context.Context) (smartSelftestPercentRemaining int32, err error)
GetSmartSelftestPercentRemaining gets org.freedesktop.UDisks2.Drive.Ata.SmartSelftestPercentRemaining property.
func (*DriveAta) GetSmartSelftestStatus ¶
func (o *DriveAta) GetSmartSelftestStatus(ctx context.Context) (smartSelftestStatus string, err error)
GetSmartSelftestStatus gets org.freedesktop.UDisks2.Drive.Ata.SmartSelftestStatus property.
func (*DriveAta) GetSmartSupported ¶
GetSmartSupported gets org.freedesktop.UDisks2.Drive.Ata.SmartSupported property.
func (*DriveAta) GetSmartTemperature ¶
GetSmartTemperature gets org.freedesktop.UDisks2.Drive.Ata.SmartTemperature property.
func (*DriveAta) GetSmartUpdated ¶
GetSmartUpdated gets org.freedesktop.UDisks2.Drive.Ata.SmartUpdated property.
func (*DriveAta) GetWriteCacheEnabled ¶
GetWriteCacheEnabled gets org.freedesktop.UDisks2.Drive.Ata.WriteCacheEnabled property.
func (*DriveAta) GetWriteCacheSupported ¶
func (o *DriveAta) GetWriteCacheSupported(ctx context.Context) (writeCacheSupported bool, err error)
GetWriteCacheSupported gets org.freedesktop.UDisks2.Drive.Ata.WriteCacheSupported property.
func (*DriveAta) PmGetState ¶
func (o *DriveAta) PmGetState(ctx context.Context, options map[string]dbus.Variant) (state byte, err error)
PmGetState calls org.freedesktop.UDisks2.Drive.Ata.PmGetState method.
func (*DriveAta) SecurityEraseUnit ¶
func (o *DriveAta) SecurityEraseUnit(ctx context.Context, options map[string]dbus.Variant) (err error)
SecurityEraseUnit calls org.freedesktop.UDisks2.Drive.Ata.SecurityEraseUnit method.
func (*DriveAta) SmartGetAttributes ¶
func (o *DriveAta) SmartGetAttributes(ctx context.Context, options map[string]dbus.Variant) (attributes []struct { V0 byte V1 string V2 uint16 V3 int32 V4 int32 V5 int32 V6 int64 V7 int32 V8 map[string]dbus.Variant }, err error)
SmartGetAttributes calls org.freedesktop.UDisks2.Drive.Ata.SmartGetAttributes method.
func (*DriveAta) SmartSelftestAbort ¶
func (o *DriveAta) SmartSelftestAbort(ctx context.Context, options map[string]dbus.Variant) (err error)
SmartSelftestAbort calls org.freedesktop.UDisks2.Drive.Ata.SmartSelftestAbort method.
func (*DriveAta) SmartSelftestStart ¶
func (o *DriveAta) SmartSelftestStart(ctx context.Context, inType string, options map[string]dbus.Variant) (err error)
SmartSelftestStart calls org.freedesktop.UDisks2.Drive.Ata.SmartSelftestStart method.
type Encrypted ¶
type Encrypted struct {
// contains filtered or unexported fields
}
Encrypted implements org.freedesktop.UDisks2.Encrypted D-Bus interface.
func NewEncrypted ¶
func NewEncrypted(object dbus.BusObject) *Encrypted
NewEncrypted creates and allocates org.freedesktop.UDisks2.Encrypted.
func (*Encrypted) ChangePassphrase ¶
func (o *Encrypted) ChangePassphrase(ctx context.Context, passphrase string, newPassphrase string, options map[string]dbus.Variant) (err error)
ChangePassphrase calls org.freedesktop.UDisks2.Encrypted.ChangePassphrase method.
func (*Encrypted) GetChildConfiguration ¶
func (o *Encrypted) GetChildConfiguration(ctx context.Context) (childConfiguration []struct { V0 string V1 map[string]dbus.Variant }, err error)
GetChildConfiguration gets org.freedesktop.UDisks2.Encrypted.ChildConfiguration property.
func (*Encrypted) GetCleartextDevice ¶
func (o *Encrypted) GetCleartextDevice(ctx context.Context) (cleartextDevice dbus.ObjectPath, err error)
GetCleartextDevice gets org.freedesktop.UDisks2.Encrypted.CleartextDevice property.
func (*Encrypted) GetHintEncryptionType ¶
func (o *Encrypted) GetHintEncryptionType(ctx context.Context) (hintEncryptionType string, err error)
GetHintEncryptionType gets org.freedesktop.UDisks2.Encrypted.HintEncryptionType property.
func (*Encrypted) GetMetadataSize ¶
GetMetadataSize gets org.freedesktop.UDisks2.Encrypted.MetadataSize property.
type Filesystem ¶
type Filesystem struct {
// contains filtered or unexported fields
}
Filesystem implements org.freedesktop.UDisks2.Filesystem D-Bus interface.
func NewFilesystem ¶
func NewFilesystem(object dbus.BusObject) *Filesystem
NewFilesystem creates and allocates org.freedesktop.UDisks2.Filesystem.
func (*Filesystem) Check ¶
func (o *Filesystem) Check(ctx context.Context, options map[string]dbus.Variant) (consistent bool, err error)
Check calls org.freedesktop.UDisks2.Filesystem.Check method.
func (*Filesystem) GetMountPoints ¶
func (o *Filesystem) GetMountPoints(ctx context.Context) (mountPoints [][]byte, err error)
GetMountPoints gets org.freedesktop.UDisks2.Filesystem.MountPoints property.
func (*Filesystem) GetMountPointsString ¶
func (f *Filesystem) GetMountPointsString(ctx context.Context) ([]string, error)
func (*Filesystem) GetSize ¶
func (o *Filesystem) GetSize(ctx context.Context) (size uint64, err error)
GetSize gets org.freedesktop.UDisks2.Filesystem.Size property.
func (*Filesystem) Mount ¶
func (o *Filesystem) Mount(ctx context.Context, options map[string]dbus.Variant) (mountPath string, err error)
Mount calls org.freedesktop.UDisks2.Filesystem.Mount method.
func (*Filesystem) Repair ¶
func (o *Filesystem) Repair(ctx context.Context, options map[string]dbus.Variant) (repaired bool, err error)
Repair calls org.freedesktop.UDisks2.Filesystem.Repair method.
func (*Filesystem) Resize ¶
func (o *Filesystem) Resize(ctx context.Context, size uint64, options map[string]dbus.Variant) (err error)
Resize calls org.freedesktop.UDisks2.Filesystem.Resize method.
func (*Filesystem) SetLabel ¶
func (o *Filesystem) SetLabel(ctx context.Context, label string, options map[string]dbus.Variant) (err error)
SetLabel calls org.freedesktop.UDisks2.Filesystem.SetLabel method.
func (*Filesystem) TakeOwnership ¶
func (o *Filesystem) TakeOwnership(ctx context.Context, options map[string]dbus.Variant) (err error)
TakeOwnership calls org.freedesktop.UDisks2.Filesystem.TakeOwnership method.
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
Job implements org.freedesktop.UDisks2.Job D-Bus interface.
func NewJob ¶
func NewJob(object dbus.BusObject) *Job
NewJob creates and allocates org.freedesktop.UDisks2.Job.
func (*Job) GetCancelable ¶
GetCancelable gets org.freedesktop.UDisks2.Job.Cancelable property.
func (*Job) GetExpectedEndTime ¶
GetExpectedEndTime gets org.freedesktop.UDisks2.Job.ExpectedEndTime property.
func (*Job) GetObjects ¶
GetObjects gets org.freedesktop.UDisks2.Job.Objects property.
func (*Job) GetOperation ¶
GetOperation gets org.freedesktop.UDisks2.Job.Operation property.
func (*Job) GetProgress ¶
GetProgress gets org.freedesktop.UDisks2.Job.Progress property.
func (*Job) GetProgressValid ¶
GetProgressValid gets org.freedesktop.UDisks2.Job.ProgressValid property.
func (*Job) GetStartTime ¶
GetStartTime gets org.freedesktop.UDisks2.Job.StartTime property.
type JobCompletedSignal ¶
type JobCompletedSignal struct { Path dbus.ObjectPath Body *JobCompletedSignalBody // contains filtered or unexported fields }
JobCompletedSignal represents org.freedesktop.UDisks2.Job.Completed signal.
func (*JobCompletedSignal) Interface ¶
func (s *JobCompletedSignal) Interface() string
Interface returns the signal's interface.
func (*JobCompletedSignal) Name ¶
func (s *JobCompletedSignal) Name() string
Name returns the signal's name.
func (*JobCompletedSignal) Sender ¶
func (s *JobCompletedSignal) Sender() string
Sender returns the signal's sender unique name.
type JobCompletedSignalBody ¶
JobCompletedSignalBody is body container.
type Loop ¶
type Loop struct {
// contains filtered or unexported fields
}
Loop implements org.freedesktop.UDisks2.Loop D-Bus interface.
func NewLoop ¶
func NewLoop(object dbus.BusObject) *Loop
NewLoop creates and allocates org.freedesktop.UDisks2.Loop.
func (*Loop) GetAutoclear ¶
GetAutoclear gets org.freedesktop.UDisks2.Loop.Autoclear property.
func (*Loop) GetBackingFile ¶
GetBackingFile gets org.freedesktop.UDisks2.Loop.BackingFile property.
func (*Loop) GetSetupByUID ¶
GetSetupByUID gets org.freedesktop.UDisks2.Loop.SetupByUID property.
type MDRaid ¶
type MDRaid struct {
// contains filtered or unexported fields
}
MDRaid implements org.freedesktop.UDisks2.MDRaid D-Bus interface.
func NewMDRaid ¶
func NewMDRaid(object dbus.BusObject) *MDRaid
NewMDRaid creates and allocates org.freedesktop.UDisks2.MDRaid.
func (*MDRaid) AddDevice ¶
func (o *MDRaid) AddDevice(ctx context.Context, device dbus.ObjectPath, options map[string]dbus.Variant) (err error)
AddDevice calls org.freedesktop.UDisks2.MDRaid.AddDevice method.
func (*MDRaid) GetActiveDevices ¶
func (o *MDRaid) GetActiveDevices(ctx context.Context) (activeDevices []struct { V0 dbus.ObjectPath V1 int32 V2 []string V3 uint64 V4 map[string]dbus.Variant }, err error)
GetActiveDevices gets org.freedesktop.UDisks2.MDRaid.ActiveDevices property.
func (*MDRaid) GetBitmapLocation ¶
GetBitmapLocation gets org.freedesktop.UDisks2.MDRaid.BitmapLocation property.
func (*MDRaid) GetChildConfiguration ¶
func (o *MDRaid) GetChildConfiguration(ctx context.Context) (childConfiguration []struct { V0 string V1 map[string]dbus.Variant }, err error)
GetChildConfiguration gets org.freedesktop.UDisks2.MDRaid.ChildConfiguration property.
func (*MDRaid) GetChunkSize ¶
GetChunkSize gets org.freedesktop.UDisks2.MDRaid.ChunkSize property.
func (*MDRaid) GetDegraded ¶
GetDegraded gets org.freedesktop.UDisks2.MDRaid.Degraded property.
func (*MDRaid) GetNumDevices ¶
GetNumDevices gets org.freedesktop.UDisks2.MDRaid.NumDevices property.
func (*MDRaid) GetRunning ¶
GetRunning gets org.freedesktop.UDisks2.MDRaid.Running property.
func (*MDRaid) GetSyncAction ¶
GetSyncAction gets org.freedesktop.UDisks2.MDRaid.SyncAction property.
func (*MDRaid) GetSyncCompleted ¶
GetSyncCompleted gets org.freedesktop.UDisks2.MDRaid.SyncCompleted property.
func (*MDRaid) GetSyncRate ¶
GetSyncRate gets org.freedesktop.UDisks2.MDRaid.SyncRate property.
func (*MDRaid) GetSyncRemainingTime ¶
GetSyncRemainingTime gets org.freedesktop.UDisks2.MDRaid.SyncRemainingTime property.
func (*MDRaid) RemoveDevice ¶
func (o *MDRaid) RemoveDevice(ctx context.Context, device dbus.ObjectPath, options map[string]dbus.Variant) (err error)
RemoveDevice calls org.freedesktop.UDisks2.MDRaid.RemoveDevice method.
func (*MDRaid) RequestSyncAction ¶
func (o *MDRaid) RequestSyncAction(ctx context.Context, syncAction string, options map[string]dbus.Variant) (err error)
RequestSyncAction calls org.freedesktop.UDisks2.MDRaid.RequestSyncAction method.
func (*MDRaid) SetBitmapLocation ¶
func (o *MDRaid) SetBitmapLocation(ctx context.Context, value []byte, options map[string]dbus.Variant) (err error)
SetBitmapLocation calls org.freedesktop.UDisks2.MDRaid.SetBitmapLocation method.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager implements org.freedesktop.UDisks2.Manager D-Bus interface.
func NewManager ¶
func NewManager(object dbus.BusObject) *Manager
NewManager creates and allocates org.freedesktop.UDisks2.Manager.
func (*Manager) CanCheck ¶
func (o *Manager) CanCheck(ctx context.Context, inType string) (available struct { V0 bool V1 string }, err error)
CanCheck calls org.freedesktop.UDisks2.Manager.CanCheck method.
func (*Manager) CanFormat ¶
func (o *Manager) CanFormat(ctx context.Context, inType string) (available struct { V0 bool V1 string }, err error)
CanFormat calls org.freedesktop.UDisks2.Manager.CanFormat method.
func (*Manager) CanRepair ¶
func (o *Manager) CanRepair(ctx context.Context, inType string) (available struct { V0 bool V1 string }, err error)
CanRepair calls org.freedesktop.UDisks2.Manager.CanRepair method.
func (*Manager) CanResize ¶
func (o *Manager) CanResize(ctx context.Context, inType string) (available struct { V0 bool V1 uint64 V2 string }, err error)
CanResize calls org.freedesktop.UDisks2.Manager.CanResize method.
func (*Manager) EnableModule ¶
EnableModule calls org.freedesktop.UDisks2.Manager.EnableModule method.
func (*Manager) EnableModules ¶
EnableModules calls org.freedesktop.UDisks2.Manager.EnableModules method.
Deprecated will be removed later.
Annotations:
@org.freedesktop.DBus.Deprecated = true
func (*Manager) GetBlockDevices ¶
func (o *Manager) GetBlockDevices(ctx context.Context, options map[string]dbus.Variant) (blockObjects []dbus.ObjectPath, err error)
GetBlockDevices calls org.freedesktop.UDisks2.Manager.GetBlockDevices method.
func (*Manager) GetDefaultEncryptionType ¶
func (o *Manager) GetDefaultEncryptionType(ctx context.Context) (defaultEncryptionType string, err error)
GetDefaultEncryptionType gets org.freedesktop.UDisks2.Manager.DefaultEncryptionType property.
func (*Manager) GetSupportedEncryptionTypes ¶
func (o *Manager) GetSupportedEncryptionTypes(ctx context.Context) (supportedEncryptionTypes []string, err error)
GetSupportedEncryptionTypes gets org.freedesktop.UDisks2.Manager.SupportedEncryptionTypes property.
func (*Manager) GetSupportedFilesystems ¶
func (o *Manager) GetSupportedFilesystems(ctx context.Context) (supportedFilesystems []string, err error)
GetSupportedFilesystems gets org.freedesktop.UDisks2.Manager.SupportedFilesystems property.
func (*Manager) GetVersion ¶
GetVersion gets org.freedesktop.UDisks2.Manager.Version property.
func (*Manager) LoopSetup ¶
func (o *Manager) LoopSetup(ctx context.Context, fd dbus.UnixFD, options map[string]dbus.Variant) (resultingDevice dbus.ObjectPath, err error)
LoopSetup calls org.freedesktop.UDisks2.Manager.LoopSetup method.
Annotations:
@org.gtk.GDBus.C.UnixFD = 1
func (*Manager) MDRaidCreate ¶
func (o *Manager) MDRaidCreate(ctx context.Context, blocks []dbus.ObjectPath, level string, name string, chunk uint64, options map[string]dbus.Variant) (resultingArray dbus.ObjectPath, err error)
MDRaidCreate calls org.freedesktop.UDisks2.Manager.MDRaidCreate method.
func (*Manager) ResolveDevice ¶
func (o *Manager) ResolveDevice(ctx context.Context, devspec map[string]dbus.Variant, options map[string]dbus.Variant) (devices []dbus.ObjectPath, err error)
ResolveDevice calls org.freedesktop.UDisks2.Manager.ResolveDevice method.
func (*Manager) ResolveDeviceFromLabel ¶
type Partition ¶
type Partition struct {
// contains filtered or unexported fields
}
Partition implements org.freedesktop.UDisks2.Partition D-Bus interface.
func NewPartition ¶
func NewPartition(object dbus.BusObject) *Partition
NewPartition creates and allocates org.freedesktop.UDisks2.Partition.
func (*Partition) GetIsContained ¶
GetIsContained gets org.freedesktop.UDisks2.Partition.IsContained property.
func (*Partition) GetIsContainer ¶
GetIsContainer gets org.freedesktop.UDisks2.Partition.IsContainer property.
func (*Partition) Resize ¶
func (o *Partition) Resize(ctx context.Context, size uint64, options map[string]dbus.Variant) (err error)
Resize calls org.freedesktop.UDisks2.Partition.Resize method.
func (*Partition) SetFlags ¶
func (o *Partition) SetFlags(ctx context.Context, flags uint64, options map[string]dbus.Variant) (err error)
SetFlags calls org.freedesktop.UDisks2.Partition.SetFlags method.
type PartitionTable ¶
type PartitionTable struct {
// contains filtered or unexported fields
}
PartitionTable implements org.freedesktop.UDisks2.PartitionTable D-Bus interface.
func NewPartitionTable ¶
func NewPartitionTable(object dbus.BusObject) *PartitionTable
NewPartitionTable creates and allocates org.freedesktop.UDisks2.PartitionTable.
func (*PartitionTable) CreatePartition ¶
func (o *PartitionTable) CreatePartition(ctx context.Context, offset uint64, size uint64, inType string, name string, options map[string]dbus.Variant) (createdPartition dbus.ObjectPath, err error)
CreatePartition calls org.freedesktop.UDisks2.PartitionTable.CreatePartition method.
func (*PartitionTable) CreatePartitionAndFormat ¶
func (o *PartitionTable) CreatePartitionAndFormat(ctx context.Context, offset uint64, size uint64, inType string, name string, options map[string]dbus.Variant, formatType string, formatOptions map[string]dbus.Variant) (createdPartition dbus.ObjectPath, err error)
CreatePartitionAndFormat calls org.freedesktop.UDisks2.PartitionTable.CreatePartitionAndFormat method.
func (*PartitionTable) GetPartitions ¶
func (o *PartitionTable) GetPartitions(ctx context.Context) (partitions []dbus.ObjectPath, err error)
GetPartitions gets org.freedesktop.UDisks2.PartitionTable.Partitions property.
type Signal ¶
type Signal interface { Name() string Interface() string Sender() string // contains filtered or unexported methods }
Signal is a common interface for all signals.
func LookupSignal ¶
LookupSignal converts the given raw D-Bus signal with variable body into one with typed structured body or returns ErrUnknownSignal error.
type Swapspace ¶
type Swapspace struct {
// contains filtered or unexported fields
}
Swapspace implements org.freedesktop.UDisks2.Swapspace D-Bus interface.
func NewSwapspace ¶
func NewSwapspace(object dbus.BusObject) *Swapspace
NewSwapspace creates and allocates org.freedesktop.UDisks2.Swapspace.
func (*Swapspace) SetLabel ¶
func (o *Swapspace) SetLabel(ctx context.Context, label string, options map[string]dbus.Variant) (err error)
SetLabel calls org.freedesktop.UDisks2.Swapspace.SetLabel method.
type UDisks2Helper ¶
type UDisks2Helper struct {
// contains filtered or unexported fields
}
func NewUDisks2 ¶
func NewUDisks2(conn *dbus.Conn) UDisks2Helper
func (UDisks2Helper) FormatPartition ¶
func (u UDisks2Helper) FormatPartition(blockObjectPath dbus.BusObject, fsType string, label string) error
func (UDisks2Helper) FormatPartitionFromDevicePath ¶
func (u UDisks2Helper) FormatPartitionFromDevicePath(devicePath string, fsType string, label string) error
func (UDisks2Helper) GetBusObjectFromLabel ¶
func (u UDisks2Helper) GetBusObjectFromLabel(label string) (dbus.BusObject, error)
func (UDisks2Helper) GetRootDeviceFromLabel ¶
func (u UDisks2Helper) GetRootDeviceFromLabel(label string) (*string, error)
func (UDisks2Helper) PartitionDeviceWithSinglePartition ¶
func (u UDisks2Helper) PartitionDeviceWithSinglePartition(devicePath string, uuid string, name string) error