Libosinfo.Image

g GObject.Object GObject.Object Libosinfo.Entity Libosinfo.Entity GObject.Object->Libosinfo.Entity Libosinfo.Image Libosinfo.Image Libosinfo.Entity->Libosinfo.Image

Subclasses:

None

Methods

Inherited:

Libosinfo.Entity (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (id, architecture, format)

get_architecture ()

get_cloud_init ()

get_format ()

get_os ()

get_os_variants ()

get_url ()

set_os (os)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

Libosinfo.Entity (1)

Name

Type

Flags

Short Description

architecture

str

r/w

CPU Architecture

cloud-init

str

r/w

Whether cloud-init customizations are supported or not

format

str

r/w

The image format

url

str

r/w

The URL to this image

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Libosinfo.Entity

r

Class Details

class Libosinfo.Image(**kwargs)
Bases:

Libosinfo.Entity

Abstract:

No

Structure:

Libosinfo.ImageClass

classmethod new(id, architecture, format)
Parameters:
  • id (str) –

  • architecture (str) –

  • format (str) –

Return type:

Libosinfo.Image

get_architecture()
Returns:

the hardware architecture, or None

Return type:

str

Retrieves the target hardware architecture of the OS self provides.

New in version 1.3.0.

get_cloud_init()
Returns:

True if self supports cloud init customizations, False otherwise.

Return type:

bool

Whether self supports cloud init customizations

New in version 1.3.0.

get_format()
Returns:

the format, or None

Return type:

str

The format of the self

New in version 1.3.0.

get_os()
Returns:

the operating system, or None

Return type:

Libosinfo.Os

New in version 1.5.0.

get_os_variants()
Returns:

the operating system variants, or None

Return type:

Libosinfo.OsVariantList

Gets the varriants of the associated operating system

New in version 1.5.0.

get_url()
Returns:

the URL, or None

Return type:

str

The URL to the self

New in version 1.3.0.

set_os(os)
Parameters:

os (Libosinfo.Os) – an Libosinfo.Os instance

Sets the Libosinfo.Os associated to the Libosinfo.Image instance.

New in version 1.5.0.

Property Details

Libosinfo.Image.props.architecture
Name:

architecture

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The target hardware architecture of this image.

Libosinfo.Image.props.cloud_init
Name:

cloud-init

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

Whether the image supports cloud-init customizations or not.

Libosinfo.Image.props.format
Name:

format

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The image format.

Libosinfo.Image.props.url
Name:

url

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The URL to this image.