Snapd.SystemInformation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
System architecture |
||
r/w/co |
Directory with snap binaries |
||
r/w/co |
Unique build ID for snap build |
||
r/w/co |
Confinement level supported by system |
||
r/w/co |
Kernel version |
||
r/w/co |
|
||
r/w/co |
Directory snaps are mounted in |
||
r/w/co |
|
||
r/w/co |
Operating system ID |
||
r/w/co |
Operating system version |
||
r/w/co |
Time refreshes will be applied |
||
r/w/co |
Last time a refresh occurred |
||
r/w/co |
Next time a refresh is scheduled for |
||
r/w/co |
Refresh schedule |
||
r/w/co |
Refresh timer |
||
r/w/co |
Sandbox features |
||
r/w/co |
Snappy release series |
||
r/w/co |
Snap store |
||
r/w/co |
Snappy version |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Snapd.SystemInformation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Snapd.SystemInformation
contains information about the system snapd is running on.New in version 1.0.
- get_architecture()¶
- Returns:
an architecture.
- Return type:
Get the architecture this system is using, e.g. “amd64”.
New in version 1.64.
- get_binaries_directory()¶
- Returns:
a directory.
- Return type:
Get the directory snap binaries are stored, e.g. “/snap/bin”.
New in version 1.11.
- get_build_id()¶
- Returns:
a build ID.
- Return type:
Gets the unique build ID for the snap build, e.g. “efdd0b5e69b0742fa5e5bad0771df4d1df2459d1”
New in version 1.40.
- get_confinement()¶
- Returns:
- Return type:
Get the level of confinement the system supports, e.g.
Snapd.SystemConfinement.STRICT
.New in version 1.15.
- get_kernel_version()¶
- Returns:
a version string.
- Return type:
Get the version of the kernel snapd is running on, e.g. “4.10.0-15-generic”.
New in version 1.11.
- get_managed()¶
-
Get if snapd is running on a managed system.
New in version 1.7.
- get_mount_directory()¶
- Returns:
a directory.
- Return type:
Get the directory snaps are mounted, e.g. “/snap”.
New in version 1.11.
- get_on_classic()¶
-
Get if this system is a classic system.
New in version 1.0.
- get_os_id()¶
- Returns:
an operating system ID.
- Return type:
Get the operating system ID, e.g. “ubuntu”.
New in version 1.0.
- get_os_version()¶
- Returns:
a version string.
- Return type:
Get the operating system version, e.g. “16.04”.
New in version 1.0.
- get_refresh_hold()¶
- Returns:
- Return type:
Get the time refreshes will be applied at, or
None
if they are applied immediately.New in version 1.42.
- get_refresh_last()¶
- Returns:
- Return type:
Get the time the last refresh occurred, or
None
if has not occurred.New in version 1.42.
- get_refresh_next()¶
- Returns:
- Return type:
Get the time the next refresh is scheduled for, or
None
if none has been scheduled.New in version 1.42.
- get_refresh_schedule()¶
-
Get the schedule when snap refreshes will occur.
New in version 1.42.
- get_refresh_timer()¶
-
Get the timer that refreshes are running to.
New in version 1.42.
- get_sandbox_features()¶
-
Gets the sandbox features that snapd provides. Each backend in snapd provides a list of features that it supports. For example, the “confinement-options” backend may provide “classic”, “devmode” and “strict”.
New in version 1.42.
- get_series()¶
- Returns:
a series string.
- Return type:
Get the series of snapd running, e.g. “16”.
New in version 1.0.
- get_store()¶
-
Get the store being used by snapd, e.g. “Ubuntu”
New in version 1.7.
Property Details¶
- Snapd.SystemInformation.props.architecture¶
- Name:
architecture
- Type:
- Default Value:
- Flags:
System architecture
- Snapd.SystemInformation.props.binaries_directory¶
- Name:
binaries-directory
- Type:
- Default Value:
- Flags:
Directory with snap binaries
- Snapd.SystemInformation.props.build_id¶
- Name:
build-id
- Type:
- Default Value:
- Flags:
Unique build ID for snap build
- Snapd.SystemInformation.props.confinement¶
- Name:
confinement
- Type:
- Default Value:
- Flags:
Confinement level supported by system
- Snapd.SystemInformation.props.kernel_version¶
- Name:
kernel-version
- Type:
- Default Value:
- Flags:
Kernel version
- Snapd.SystemInformation.props.managed¶
- Name:
managed
- Type:
- Default Value:
- Flags:
True
if snapd managing the system
- Snapd.SystemInformation.props.mount_directory¶
- Name:
mount-directory
- Type:
- Default Value:
- Flags:
Directory snaps are mounted in
- Snapd.SystemInformation.props.on_classic¶
- Name:
on-classic
- Type:
- Default Value:
- Flags:
True
if running in a classic system
- Snapd.SystemInformation.props.os_id¶
- Name:
os-id
- Type:
- Default Value:
- Flags:
Operating system ID
- Snapd.SystemInformation.props.os_version¶
- Name:
os-version
- Type:
- Default Value:
- Flags:
Operating system version
- Snapd.SystemInformation.props.refresh_hold¶
- Name:
refresh-hold
- Type:
- Default Value:
- Flags:
Time refreshes will be applied
- Snapd.SystemInformation.props.refresh_last¶
- Name:
refresh-last
- Type:
- Default Value:
- Flags:
Last time a refresh occurred
- Snapd.SystemInformation.props.refresh_next¶
- Name:
refresh-next
- Type:
- Default Value:
- Flags:
Next time a refresh is scheduled for
- Snapd.SystemInformation.props.refresh_schedule¶
- Name:
refresh-schedule
- Type:
- Default Value:
- Flags:
Refresh schedule
- Snapd.SystemInformation.props.refresh_timer¶
- Name:
refresh-timer
- Type:
- Default Value:
- Flags:
Refresh timer
- Snapd.SystemInformation.props.sandbox_features¶
- Name:
sandbox-features
- Type:
- Default Value:
- Flags:
Sandbox features
- Snapd.SystemInformation.props.series¶
- Name:
series
- Type:
- Default Value:
- Flags:
Snappy release series
- Snapd.SystemInformation.props.store¶
- Name:
store
- Type:
- Default Value:
- Flags:
Snap store