udisks2

package
v0.0.0-...-f95bbe0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by dbus-codegen-go DO NOT EDIT.

Index

Constants

View Source
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

View Source
var ErrUnknownSignal = errors.New("unknown signal")

ErrUnknownSignal is returned by LookupSignal when a signal cannot be resolved.

Functions

func AddMatchSignal

func AddMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error

AddMatchSignal registers a match rule for the given signal, opts are appended to the automatically generated signal's rules.

func RemoveMatchSignal

func RemoveMatchSignal(conn *dbus.Conn, s Signal, opts ...dbus.MatchOption) error

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) GetDevice

func (o *Block) GetDevice(ctx context.Context) (device []byte, err error)

GetDevice gets org.freedesktop.UDisks2.Block.Device property.

func (*Block) GetDeviceNumber

func (o *Block) GetDeviceNumber(ctx context.Context) (deviceNumber uint64, err error)

GetDeviceNumber gets org.freedesktop.UDisks2.Block.DeviceNumber property.

func (*Block) GetDeviceString

func (o *Block) GetDeviceString(ctx context.Context) (*string, error)

func (*Block) GetDrive

func (o *Block) GetDrive(ctx context.Context) (drive dbus.ObjectPath, err error)

GetDrive gets org.freedesktop.UDisks2.Block.Drive property.

func (*Block) GetHintAuto

func (o *Block) GetHintAuto(ctx context.Context) (hintAuto bool, err error)

GetHintAuto gets org.freedesktop.UDisks2.Block.HintAuto property.

func (*Block) GetHintIconName

func (o *Block) GetHintIconName(ctx context.Context) (hintIconName string, err error)

GetHintIconName gets org.freedesktop.UDisks2.Block.HintIconName property.

func (*Block) GetHintIgnore

func (o *Block) GetHintIgnore(ctx context.Context) (hintIgnore bool, err error)

GetHintIgnore gets org.freedesktop.UDisks2.Block.HintIgnore property.

func (*Block) GetHintName

func (o *Block) GetHintName(ctx context.Context) (hintName string, err error)

GetHintName gets org.freedesktop.UDisks2.Block.HintName property.

func (*Block) GetHintPartitionable

func (o *Block) GetHintPartitionable(ctx context.Context) (hintPartitionable bool, err error)

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

func (o *Block) GetHintSystem(ctx context.Context) (hintSystem bool, err error)

GetHintSystem gets org.freedesktop.UDisks2.Block.HintSystem property.

func (*Block) GetId

func (o *Block) GetId(ctx context.Context) (id string, err error)

GetId gets org.freedesktop.UDisks2.Block.Id property.

func (*Block) GetIdLabel

func (o *Block) GetIdLabel(ctx context.Context) (idLabel string, err error)

GetIdLabel gets org.freedesktop.UDisks2.Block.IdLabel property.

func (*Block) GetIdType

func (o *Block) GetIdType(ctx context.Context) (idType string, err error)

GetIdType gets org.freedesktop.UDisks2.Block.IdType property.

func (*Block) GetIdUUID

func (o *Block) GetIdUUID(ctx context.Context) (idUUID string, err error)

GetIdUUID gets org.freedesktop.UDisks2.Block.IdUUID property.

func (*Block) GetIdUsage

func (o *Block) GetIdUsage(ctx context.Context) (idUsage string, err error)

GetIdUsage gets org.freedesktop.UDisks2.Block.IdUsage property.

func (*Block) GetIdVersion

func (o *Block) GetIdVersion(ctx context.Context) (idVersion string, err error)

GetIdVersion gets org.freedesktop.UDisks2.Block.IdVersion property.

func (*Block) GetMDRaid

func (o *Block) GetMDRaid(ctx context.Context) (mDRaid dbus.ObjectPath, err error)

GetMDRaid gets org.freedesktop.UDisks2.Block.MDRaid property.

func (*Block) GetMDRaidMember

func (o *Block) GetMDRaidMember(ctx context.Context) (mDRaidMember dbus.ObjectPath, err error)

GetMDRaidMember gets org.freedesktop.UDisks2.Block.MDRaidMember property.

func (*Block) GetPreferredDevice

func (o *Block) GetPreferredDevice(ctx context.Context) (preferredDevice []byte, err error)

GetPreferredDevice gets org.freedesktop.UDisks2.Block.PreferredDevice property.

func (*Block) GetReadOnly

func (o *Block) GetReadOnly(ctx context.Context) (readOnly bool, err error)

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) GetSize

func (o *Block) GetSize(ctx context.Context) (size uint64, err error)

GetSize gets org.freedesktop.UDisks2.Block.Size property.

func (o *Block) GetSymlinks(ctx context.Context) (symlinks [][]byte, err error)

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) Rescan

func (o *Block) Rescan(ctx context.Context, options map[string]dbus.Variant) (err error)

Rescan calls org.freedesktop.UDisks2.Block.Rescan 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) Eject

func (o *Drive) Eject(ctx context.Context, options map[string]dbus.Variant) (err error)

Eject calls org.freedesktop.UDisks2.Drive.Eject method.

func (*Drive) GetCanPowerOff

func (o *Drive) GetCanPowerOff(ctx context.Context) (canPowerOff bool, err error)

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

func (o *Drive) GetConnectionBus(ctx context.Context) (connectionBus string, err error)

GetConnectionBus gets org.freedesktop.UDisks2.Drive.ConnectionBus property.

func (*Drive) GetEjectable

func (o *Drive) GetEjectable(ctx context.Context) (ejectable bool, err error)

GetEjectable gets org.freedesktop.UDisks2.Drive.Ejectable property.

func (*Drive) GetId

func (o *Drive) GetId(ctx context.Context) (id string, err error)

GetId gets org.freedesktop.UDisks2.Drive.Id property.

func (*Drive) GetMedia

func (o *Drive) GetMedia(ctx context.Context) (media string, err error)

GetMedia gets org.freedesktop.UDisks2.Drive.Media property.

func (*Drive) GetMediaAvailable

func (o *Drive) GetMediaAvailable(ctx context.Context) (mediaAvailable bool, err error)

GetMediaAvailable gets org.freedesktop.UDisks2.Drive.MediaAvailable property.

func (*Drive) GetMediaChangeDetected

func (o *Drive) GetMediaChangeDetected(ctx context.Context) (mediaChangeDetected bool, err error)

GetMediaChangeDetected gets org.freedesktop.UDisks2.Drive.MediaChangeDetected property.

func (*Drive) GetMediaCompatibility

func (o *Drive) GetMediaCompatibility(ctx context.Context) (mediaCompatibility []string, err error)

GetMediaCompatibility gets org.freedesktop.UDisks2.Drive.MediaCompatibility property.

func (*Drive) GetMediaRemovable

func (o *Drive) GetMediaRemovable(ctx context.Context) (mediaRemovable bool, err error)

GetMediaRemovable gets org.freedesktop.UDisks2.Drive.MediaRemovable property.

func (*Drive) GetModel

func (o *Drive) GetModel(ctx context.Context) (model string, err error)

GetModel gets org.freedesktop.UDisks2.Drive.Model property.

func (*Drive) GetOptical

func (o *Drive) GetOptical(ctx context.Context) (optical bool, err error)

GetOptical gets org.freedesktop.UDisks2.Drive.Optical property.

func (*Drive) GetOpticalBlank

func (o *Drive) GetOpticalBlank(ctx context.Context) (opticalBlank bool, err error)

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

func (o *Drive) GetOpticalNumSessions(ctx context.Context) (opticalNumSessions uint32, err error)

GetOpticalNumSessions gets org.freedesktop.UDisks2.Drive.OpticalNumSessions property.

func (*Drive) GetOpticalNumTracks

func (o *Drive) GetOpticalNumTracks(ctx context.Context) (opticalNumTracks uint32, err error)

GetOpticalNumTracks gets org.freedesktop.UDisks2.Drive.OpticalNumTracks property.

func (*Drive) GetRemovable

func (o *Drive) GetRemovable(ctx context.Context) (removable bool, err error)

GetRemovable gets org.freedesktop.UDisks2.Drive.Removable property.

func (*Drive) GetRevision

func (o *Drive) GetRevision(ctx context.Context) (revision string, err error)

GetRevision gets org.freedesktop.UDisks2.Drive.Revision property.

func (*Drive) GetRotationRate

func (o *Drive) GetRotationRate(ctx context.Context) (rotationRate int32, err error)

GetRotationRate gets org.freedesktop.UDisks2.Drive.RotationRate property.

func (*Drive) GetSeat

func (o *Drive) GetSeat(ctx context.Context) (seat string, err error)

GetSeat gets org.freedesktop.UDisks2.Drive.Seat property.

func (*Drive) GetSerial

func (o *Drive) GetSerial(ctx context.Context) (serial string, err error)

GetSerial gets org.freedesktop.UDisks2.Drive.Serial property.

func (*Drive) GetSiblingId

func (o *Drive) GetSiblingId(ctx context.Context) (siblingId string, err error)

GetSiblingId gets org.freedesktop.UDisks2.Drive.SiblingId property.

func (*Drive) GetSize

func (o *Drive) GetSize(ctx context.Context) (size uint64, err error)

GetSize gets org.freedesktop.UDisks2.Drive.Size property.

func (*Drive) GetSortKey

func (o *Drive) GetSortKey(ctx context.Context) (sortKey string, err error)

GetSortKey gets org.freedesktop.UDisks2.Drive.SortKey property.

func (*Drive) GetTimeDetected

func (o *Drive) GetTimeDetected(ctx context.Context) (timeDetected uint64, err error)

GetTimeDetected gets org.freedesktop.UDisks2.Drive.TimeDetected property.

func (*Drive) GetTimeMediaDetected

func (o *Drive) GetTimeMediaDetected(ctx context.Context) (timeMediaDetected uint64, err error)

GetTimeMediaDetected gets org.freedesktop.UDisks2.Drive.TimeMediaDetected property.

func (*Drive) GetVendor

func (o *Drive) GetVendor(ctx context.Context) (vendor string, err error)

GetVendor gets org.freedesktop.UDisks2.Drive.Vendor property.

func (*Drive) GetWWN

func (o *Drive) GetWWN(ctx context.Context) (wWN string, err error)

GetWWN gets org.freedesktop.UDisks2.Drive.WWN property.

func (*Drive) PowerOff

func (o *Drive) PowerOff(ctx context.Context, options map[string]dbus.Variant) (err error)

PowerOff calls org.freedesktop.UDisks2.Drive.PowerOff method.

func (*Drive) SetConfiguration

func (o *Drive) SetConfiguration(ctx context.Context, value map[string]dbus.Variant, options map[string]dbus.Variant) (err error)

SetConfiguration calls org.freedesktop.UDisks2.Drive.SetConfiguration method.

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

func (o *DriveAta) GetAamEnabled(ctx context.Context) (aamEnabled bool, err error)

GetAamEnabled gets org.freedesktop.UDisks2.Drive.Ata.AamEnabled property.

func (*DriveAta) GetAamSupported

func (o *DriveAta) GetAamSupported(ctx context.Context) (aamSupported bool, err error)

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

func (o *DriveAta) GetApmEnabled(ctx context.Context) (apmEnabled bool, err error)

GetApmEnabled gets org.freedesktop.UDisks2.Drive.Ata.ApmEnabled property.

func (*DriveAta) GetApmSupported

func (o *DriveAta) GetApmSupported(ctx context.Context) (apmSupported bool, err error)

GetApmSupported gets org.freedesktop.UDisks2.Drive.Ata.ApmSupported property.

func (*DriveAta) GetPmEnabled

func (o *DriveAta) GetPmEnabled(ctx context.Context) (pmEnabled bool, err error)

GetPmEnabled gets org.freedesktop.UDisks2.Drive.Ata.PmEnabled property.

func (*DriveAta) GetPmSupported

func (o *DriveAta) GetPmSupported(ctx context.Context) (pmSupported bool, err error)

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

func (o *DriveAta) GetSecurityFrozen(ctx context.Context) (securityFrozen bool, err error)

GetSecurityFrozen gets org.freedesktop.UDisks2.Drive.Ata.SecurityFrozen property.

func (*DriveAta) GetSmartEnabled

func (o *DriveAta) GetSmartEnabled(ctx context.Context) (smartEnabled bool, err error)

GetSmartEnabled gets org.freedesktop.UDisks2.Drive.Ata.SmartEnabled property.

func (*DriveAta) GetSmartFailing

func (o *DriveAta) GetSmartFailing(ctx context.Context) (smartFailing bool, err error)

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

func (o *DriveAta) GetSmartNumBadSectors(ctx context.Context) (smartNumBadSectors int64, err error)

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

func (o *DriveAta) GetSmartSupported(ctx context.Context) (smartSupported bool, err error)

GetSmartSupported gets org.freedesktop.UDisks2.Drive.Ata.SmartSupported property.

func (*DriveAta) GetSmartTemperature

func (o *DriveAta) GetSmartTemperature(ctx context.Context) (smartTemperature float64, err error)

GetSmartTemperature gets org.freedesktop.UDisks2.Drive.Ata.SmartTemperature property.

func (*DriveAta) GetSmartUpdated

func (o *DriveAta) GetSmartUpdated(ctx context.Context) (smartUpdated uint64, err error)

GetSmartUpdated gets org.freedesktop.UDisks2.Drive.Ata.SmartUpdated property.

func (*DriveAta) GetWriteCacheEnabled

func (o *DriveAta) GetWriteCacheEnabled(ctx context.Context) (writeCacheEnabled bool, err error)

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) PmStandby

func (o *DriveAta) PmStandby(ctx context.Context, options map[string]dbus.Variant) (err error)

PmStandby calls org.freedesktop.UDisks2.Drive.Ata.PmStandby method.

func (*DriveAta) PmWakeup

func (o *DriveAta) PmWakeup(ctx context.Context, options map[string]dbus.Variant) (err error)

PmWakeup calls org.freedesktop.UDisks2.Drive.Ata.PmWakeup 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.

func (*DriveAta) SmartSetEnabled

func (o *DriveAta) SmartSetEnabled(ctx context.Context, value bool, options map[string]dbus.Variant) (err error)

SmartSetEnabled calls org.freedesktop.UDisks2.Drive.Ata.SmartSetEnabled method.

func (*DriveAta) SmartUpdate

func (o *DriveAta) SmartUpdate(ctx context.Context, options map[string]dbus.Variant) (err error)

SmartUpdate calls org.freedesktop.UDisks2.Drive.Ata.SmartUpdate 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

func (o *Encrypted) GetMetadataSize(ctx context.Context) (metadataSize uint64, err error)

GetMetadataSize gets org.freedesktop.UDisks2.Encrypted.MetadataSize property.

func (*Encrypted) Lock

func (o *Encrypted) Lock(ctx context.Context, options map[string]dbus.Variant) (err error)

Lock calls org.freedesktop.UDisks2.Encrypted.Lock method.

func (*Encrypted) Resize

func (o *Encrypted) Resize(ctx context.Context, size uint64, options map[string]dbus.Variant) (err error)

Resize calls org.freedesktop.UDisks2.Encrypted.Resize method.

func (*Encrypted) Unlock

func (o *Encrypted) Unlock(ctx context.Context, passphrase string, options map[string]dbus.Variant) (cleartextDevice dbus.ObjectPath, err error)

Unlock calls org.freedesktop.UDisks2.Encrypted.Unlock method.

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.

func (*Filesystem) Unmount

func (o *Filesystem) Unmount(ctx context.Context, options map[string]dbus.Variant) (err error)

Unmount calls org.freedesktop.UDisks2.Filesystem.Unmount 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) Cancel

func (o *Job) Cancel(ctx context.Context, options map[string]dbus.Variant) (err error)

Cancel calls org.freedesktop.UDisks2.Job.Cancel method.

func (*Job) GetBytes

func (o *Job) GetBytes(ctx context.Context) (bytes uint64, err error)

GetBytes gets org.freedesktop.UDisks2.Job.Bytes property.

func (*Job) GetCancelable

func (o *Job) GetCancelable(ctx context.Context) (cancelable bool, err error)

GetCancelable gets org.freedesktop.UDisks2.Job.Cancelable property.

func (*Job) GetExpectedEndTime

func (o *Job) GetExpectedEndTime(ctx context.Context) (expectedEndTime uint64, err error)

GetExpectedEndTime gets org.freedesktop.UDisks2.Job.ExpectedEndTime property.

func (*Job) GetObjects

func (o *Job) GetObjects(ctx context.Context) (objects []dbus.ObjectPath, err error)

GetObjects gets org.freedesktop.UDisks2.Job.Objects property.

func (*Job) GetOperation

func (o *Job) GetOperation(ctx context.Context) (operation string, err error)

GetOperation gets org.freedesktop.UDisks2.Job.Operation property.

func (*Job) GetProgress

func (o *Job) GetProgress(ctx context.Context) (progress float64, err error)

GetProgress gets org.freedesktop.UDisks2.Job.Progress property.

func (*Job) GetProgressValid

func (o *Job) GetProgressValid(ctx context.Context) (progressValid bool, err error)

GetProgressValid gets org.freedesktop.UDisks2.Job.ProgressValid property.

func (*Job) GetRate

func (o *Job) GetRate(ctx context.Context) (rate uint64, err error)

GetRate gets org.freedesktop.UDisks2.Job.Rate property.

func (*Job) GetStartTime

func (o *Job) GetStartTime(ctx context.Context) (startTime uint64, err error)

GetStartTime gets org.freedesktop.UDisks2.Job.StartTime property.

func (*Job) GetStartedByUID

func (o *Job) GetStartedByUID(ctx context.Context) (startedByUID uint32, err error)

GetStartedByUID gets org.freedesktop.UDisks2.Job.StartedByUID 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

type JobCompletedSignalBody struct {
	Success bool
	Message string
}

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) Delete

func (o *Loop) Delete(ctx context.Context, options map[string]dbus.Variant) (err error)

Delete calls org.freedesktop.UDisks2.Loop.Delete method.

func (*Loop) GetAutoclear

func (o *Loop) GetAutoclear(ctx context.Context) (autoclear bool, err error)

GetAutoclear gets org.freedesktop.UDisks2.Loop.Autoclear property.

func (*Loop) GetBackingFile

func (o *Loop) GetBackingFile(ctx context.Context) (backingFile []byte, err error)

GetBackingFile gets org.freedesktop.UDisks2.Loop.BackingFile property.

func (*Loop) GetSetupByUID

func (o *Loop) GetSetupByUID(ctx context.Context) (setupByUID uint32, err error)

GetSetupByUID gets org.freedesktop.UDisks2.Loop.SetupByUID property.

func (*Loop) SetAutoclear

func (o *Loop) SetAutoclear(ctx context.Context, value bool, options map[string]dbus.Variant) (err error)

SetAutoclear calls org.freedesktop.UDisks2.Loop.SetAutoclear method.

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) Delete

func (o *MDRaid) Delete(ctx context.Context, options map[string]dbus.Variant) (err error)

Delete calls org.freedesktop.UDisks2.MDRaid.Delete 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

func (o *MDRaid) GetBitmapLocation(ctx context.Context) (bitmapLocation []byte, err error)

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

func (o *MDRaid) GetChunkSize(ctx context.Context) (chunkSize uint64, err error)

GetChunkSize gets org.freedesktop.UDisks2.MDRaid.ChunkSize property.

func (*MDRaid) GetDegraded

func (o *MDRaid) GetDegraded(ctx context.Context) (degraded uint32, err error)

GetDegraded gets org.freedesktop.UDisks2.MDRaid.Degraded property.

func (*MDRaid) GetLevel

func (o *MDRaid) GetLevel(ctx context.Context) (level string, err error)

GetLevel gets org.freedesktop.UDisks2.MDRaid.Level property.

func (*MDRaid) GetName

func (o *MDRaid) GetName(ctx context.Context) (name string, err error)

GetName gets org.freedesktop.UDisks2.MDRaid.Name property.

func (*MDRaid) GetNumDevices

func (o *MDRaid) GetNumDevices(ctx context.Context) (numDevices uint32, err error)

GetNumDevices gets org.freedesktop.UDisks2.MDRaid.NumDevices property.

func (*MDRaid) GetRunning

func (o *MDRaid) GetRunning(ctx context.Context) (running bool, err error)

GetRunning gets org.freedesktop.UDisks2.MDRaid.Running property.

func (*MDRaid) GetSize

func (o *MDRaid) GetSize(ctx context.Context) (size uint64, err error)

GetSize gets org.freedesktop.UDisks2.MDRaid.Size property.

func (*MDRaid) GetSyncAction

func (o *MDRaid) GetSyncAction(ctx context.Context) (syncAction string, err error)

GetSyncAction gets org.freedesktop.UDisks2.MDRaid.SyncAction property.

func (*MDRaid) GetSyncCompleted

func (o *MDRaid) GetSyncCompleted(ctx context.Context) (syncCompleted float64, err error)

GetSyncCompleted gets org.freedesktop.UDisks2.MDRaid.SyncCompleted property.

func (*MDRaid) GetSyncRate

func (o *MDRaid) GetSyncRate(ctx context.Context) (syncRate uint64, err error)

GetSyncRate gets org.freedesktop.UDisks2.MDRaid.SyncRate property.

func (*MDRaid) GetSyncRemainingTime

func (o *MDRaid) GetSyncRemainingTime(ctx context.Context) (syncRemainingTime uint64, err error)

GetSyncRemainingTime gets org.freedesktop.UDisks2.MDRaid.SyncRemainingTime property.

func (*MDRaid) GetUUID

func (o *MDRaid) GetUUID(ctx context.Context) (uUID string, err error)

GetUUID gets org.freedesktop.UDisks2.MDRaid.UUID 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.

func (*MDRaid) Start

func (o *MDRaid) Start(ctx context.Context, options map[string]dbus.Variant) (err error)

Start calls org.freedesktop.UDisks2.MDRaid.Start method.

func (*MDRaid) Stop

func (o *MDRaid) Stop(ctx context.Context, options map[string]dbus.Variant) (err error)

Stop calls org.freedesktop.UDisks2.MDRaid.Stop 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

func (o *Manager) EnableModule(ctx context.Context, name string, enable bool) (err error)

EnableModule calls org.freedesktop.UDisks2.Manager.EnableModule method.

func (*Manager) EnableModules

func (o *Manager) EnableModules(ctx context.Context, enable bool) (err error)

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

func (o *Manager) GetVersion(ctx context.Context) (version string, err error)

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

func (m *Manager) ResolveDeviceFromLabel(label string) (*dbus.ObjectPath, error)

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) Delete

func (o *Partition) Delete(ctx context.Context, options map[string]dbus.Variant) (err error)

Delete calls org.freedesktop.UDisks2.Partition.Delete method.

func (*Partition) GetFlags

func (o *Partition) GetFlags(ctx context.Context) (flags uint64, err error)

GetFlags gets org.freedesktop.UDisks2.Partition.Flags property.

func (*Partition) GetIsContained

func (o *Partition) GetIsContained(ctx context.Context) (isContained bool, err error)

GetIsContained gets org.freedesktop.UDisks2.Partition.IsContained property.

func (*Partition) GetIsContainer

func (o *Partition) GetIsContainer(ctx context.Context) (isContainer bool, err error)

GetIsContainer gets org.freedesktop.UDisks2.Partition.IsContainer property.

func (*Partition) GetName

func (o *Partition) GetName(ctx context.Context) (name string, err error)

GetName gets org.freedesktop.UDisks2.Partition.Name property.

func (*Partition) GetNumber

func (o *Partition) GetNumber(ctx context.Context) (number uint32, err error)

GetNumber gets org.freedesktop.UDisks2.Partition.Number property.

func (*Partition) GetOffset

func (o *Partition) GetOffset(ctx context.Context) (offset uint64, err error)

GetOffset gets org.freedesktop.UDisks2.Partition.Offset property.

func (*Partition) GetSize

func (o *Partition) GetSize(ctx context.Context) (size uint64, err error)

GetSize gets org.freedesktop.UDisks2.Partition.Size property.

func (*Partition) GetTable

func (o *Partition) GetTable(ctx context.Context) (table dbus.ObjectPath, err error)

GetTable gets org.freedesktop.UDisks2.Partition.Table property.

func (*Partition) GetType

func (o *Partition) GetType(ctx context.Context) (vType string, err error)

GetType gets org.freedesktop.UDisks2.Partition.Type property.

func (*Partition) GetUUID

func (o *Partition) GetUUID(ctx context.Context) (uUID string, err error)

GetUUID gets org.freedesktop.UDisks2.Partition.UUID 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.

func (*Partition) SetName

func (o *Partition) SetName(ctx context.Context, name string, options map[string]dbus.Variant) (err error)

SetName calls org.freedesktop.UDisks2.Partition.SetName method.

func (*Partition) SetType

func (o *Partition) SetType(ctx context.Context, inType string, options map[string]dbus.Variant) (err error)

SetType calls org.freedesktop.UDisks2.Partition.SetType 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.

func (*PartitionTable) GetType

func (o *PartitionTable) GetType(ctx context.Context) (vType string, err error)

GetType gets org.freedesktop.UDisks2.PartitionTable.Type 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

func LookupSignal(signal *dbus.Signal) (Signal, error)

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) GetActive

func (o *Swapspace) GetActive(ctx context.Context) (active bool, err error)

GetActive gets org.freedesktop.UDisks2.Swapspace.Active property.

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.

func (*Swapspace) Start

func (o *Swapspace) Start(ctx context.Context, options map[string]dbus.Variant) (err error)

Start calls org.freedesktop.UDisks2.Swapspace.Start method.

func (*Swapspace) Stop

func (o *Swapspace) Stop(ctx context.Context, options map[string]dbus.Variant) (err error)

Stop calls org.freedesktop.UDisks2.Swapspace.Stop 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL