Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   org.freedesktop.portable1    ( 5 )

интерфейс D-Bus системы systemd-portabled (The D-Bus interface of systemd-portabled)

  Name  |  Introduction  |  The manager object  |    The image object    |  Versions  |  Note  |

THE IMAGE OBJECT

The service exposes the following interfaces on the Image object
       on the bus:

node /org/freedesktop/portable1 { interface org.freedesktop.portable1.Image { methods: GetOSRelease(out a{ss} os_release); GetMetadata(in as matches, out s image, out ay os_release, out a{say} units); GetMetadataWithExtensions(in as extensions, in as matches, in t flags, out s image, out ay os_release, out a{say} units); GetState(out s state); Attach(in as matches, in s profile, in b runtime, in s copy_mode, out a(sss) changes); AttachWithExtensions(in as extensions, in as matches, in s profile, in s copy_mode, in t flags, out a(sss) changes); Detach(in b runtime, out a(sss) changes); DetachWithExtensions(in as extensions, in t flags, out a(sss) changes); Reattach(in as matches, in s profile, in b runtime, in s copy_mode, out a(sss) changes_removed, out a(sss) changes_updated); ReattacheWithExtensions(in as extensions, in as matches, in s profile, in s copy_mode, in t flags, out a(sss) changes_removed, out a(sss) changes_updated); Remove(); MarkReadOnly(in b read_only); SetLimit(in t limit); properties: @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly s Name = '...'; @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly s Path = '...'; @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly s Type = '...'; @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly b ReadOnly = ...; @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly t CreationTimestamp = ...; @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly t ModificationTimestamp = ...; @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly t Usage = ...; @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly t Limit = ...; @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly t UsageExclusive = ...; @org.freedesktop.DBus.Property.EmitsChangedSignal("false") readonly t LimitExclusive = ...; }; interface org.freedesktop.DBus.Peer { ... }; interface org.freedesktop.DBus.Introspectable { ... }; interface org.freedesktop.DBus.Properties { ... }; };

Methods The following methods implement the same operation as the respective methods on the Manager object (see above). However, these methods operate on the image object and hence does not take an image name parameter. Invoking the methods directly on the Manager object has the advantage of not requiring a GetImage() call to get the image object for a specific image name. Calling the methods on the Manager object is hence a round trip optimization. List of methods:

• GetOSRelease()

• GetMetadata()

• GetMetadataWithExtensions()

• GetState()

• Attach()

• AttachWithExtensions()

• Detach()

• DetachWithExtensions()

• Reattach()

• ReattacheWithExtensions()

• Remove()

• MarkReadOnly()

• SetLimit()

Properties Name specifies the image name.

Path specifies the file system path where image is stored.

Type specifies the image type.

ReadOnly specifies whether the image is read-only.

CreationTimestamp specifies the image creation timestamp.

ModificationTimestamp specifies the image modification timestamp.

Usage specifies the image disk usage.

Limit specifies the image disk usage limit.

UsageExclusive specifies the image disk usage (exclusive).

LimitExclusive specifies the image disk usage limit (exclusive).