Snap
Object Hierarchy:
Description:
[ CCode ( type_id = "snapd_snap_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public class Snap : Object
[ Version ( since = "1.0" ) ]
public class Snap : Object
Snap contains Snap metadata.
Namespace: Snapd
Package: snapd-glib
Content:
Properties:
- public string @base { get; construct; }
- public bool @private { get; construct; }
- public GenericArray<void*> apps { get; construct; }
- public string broken { get; construct; }
- public string channel { get; construct; }
- public GenericArray<void*> channels { get; construct; }
- public string[] common_ids { get; construct; }
- public Confinement confinement { get; construct; }
- public string contact { get; construct; }
- public string description { get; construct; }
- public string developer { get; construct; }
- public bool devmode { get; construct; }
- public int64 download_size { get; construct; }
- public string icon { get; construct; }
- public string id { get; construct; }
- public DateTime install_date { get; construct; }
- public int64 installed_size { get; construct; }
- public bool jailmode { get; construct; }
- public string license { get; construct; }
- public GenericArray<void*> media { get; construct; }
- public string mounted_from { get; construct; }
- public string name { get; construct; }
- public GenericArray<void*> prices { get; construct; }
- public string publisher_display_name { get; construct; }
- public string publisher_id { get; construct; }
- public string publisher_username { get; construct; }
- public PublisherValidation publisher_validation { get; construct; }
- public string revision { get; construct; }
- public GenericArray<void*> screenshots { get; construct; }
- public SnapType snap_type { get; construct; }
- public SnapStatus status { get; construct; }
- public string summary { get; construct; }
- public string title { get; construct; }
- public string tracking_channel { get; construct; }
- public string[] tracks { get; construct; }
- public bool trymode { get; construct; }
- public string version { get; construct; }
- public string website { get; construct; }
Creation methods:
- protected Snap ()
Methods:
- public unowned GenericArray<App> get_apps ()
Get the apps this snap provides.
- public unowned string? get_base ()
Get the base snap this snap uses.
- public unowned string? get_broken ()
Get the reason this snap is broken.
- public unowned string get_channel ()
Get the channel this snap is from, e.
- public unowned GenericArray<Channel> get_channels ()
Gets the available channels for this snap.
- public unowned string[] get_common_ids ()
Get common IDs associated with this snap.
- public Confinement get_confinement ()
Get the confinement this snap is using, e.
- public unowned string get_contact ()
Get the means of contacting the snap developer, e.
- public unowned string get_description ()
Get a multi-line description of this snap.
- public unowned string get_developer ()
Get the developer who created this snap.
- public bool get_devmode ()
Get if this snap is running in developer mode.
- public int64 get_download_size ()
Get the download size of this snap or 0 if unknown.
- public unowned string get_icon ()
Get the icon for this Snap, either a URL or an absolute path to retrieve it from snapd directly.
- public unowned string get_id ()
Gets the unique ID for this snap.
- public unowned DateTime? get_install_date ()
Get the date this snap was installed or null if unknown.
- public int64 get_installed_size ()
Get the installed size of this snap or 0 if unknown.
- public bool get_jailmode ()
Get if this snap is running in enforced confinement (jail) mode.
- public unowned string? get_license ()
Gets the SPDX license expression for this snap, e.
- public unowned GenericArray<Media> get_media ()
Get media that is associated with this snap.
- public unowned string? get_mounted_from ()
Gets the path this snap is mounted from, which is a .
- public unowned string get_name ()
Get the name of this snap.
- public unowned GenericArray<Price> get_prices ()
Get the prices that this snap can be purchased at.
- public bool get_private ()
Get if this snap is only available to the developer.
- public unowned string get_publisher_display_name ()
Get the display name of the publisher who created this snap.
- public unowned string get_publisher_id ()
Get the ID of the publisher who created this snap.
- public unowned string get_publisher_username ()
Get the username of the publisher who created this snap.
- public PublisherValidation get_publisher_validation ()
Get the validation for the snap publisher, e.
- public unowned string get_revision ()
Get the revision for this snap.
- public unowned GenericArray<Screenshot> get_screenshots ()
Get the screenshots that are available for this snap.
- public SnapType get_snap_type ()
Get the type of snap, e.
- public SnapStatus get_status ()
Get the current status of this snap, e.
- public unowned string get_summary ()
Get a single line summary for this snap, e.
- public unowned string? get_title ()
Get the title for this snap.
- public unowned string get_tracking_channel ()
Get the channel that updates will be installed from, e.
- public unowned string[] get_tracks ()
Get the tracks that are available.
- public bool get_trymode ()
Get if this snap is running in try mode (installed locally and able to be directly modified).
- public unowned string get_version ()
Get the version for this snap.
- public unowned string get_website ()
Get the website of the snap developer, e.
- public unowned Channel? match_channel (string name)
Finds the available channel that best matches the given name.
Inherited Members:
All known members inherited from class GLib.Object