Libosinfo.Deployment¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Operating system |
||
r/w/co |
Virtualization platform |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Libosinfo.Deployment(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(id, os, platform)¶
- Parameters:
id (
str
) – the unique identifieros (
Libosinfo.Os
) – the operating system to deployplatform (
Libosinfo.Platform
) – the platform to deploy on
- Returns:
A deployment entity
- Return type:
Create a new deployment entity
- add_device(dev)¶
- Parameters:
dev (
Libosinfo.Device
) – the device to associate- Returns:
the device association
- Return type:
Associate a device with a deployment. The returned
Libosinfo.DeviceLink
can be used to record extra metadata against the link
- get_device_links(filter)¶
- Parameters:
filter (
Libosinfo.Filter
orNone
) – an optional filter- Returns:
a list of
Libosinfo.Device
entities- Return type:
Retrieve all the associated devices matching the filter. The filter matches against the link, not the device.
- get_devices(filter)¶
- Parameters:
filter (
Libosinfo.Filter
orNone
) – an optional filter- Returns:
a list of
Libosinfo.Device
entities- Return type:
Retrieve all the associated devices matching the filter. The filter matches against the device, not the link.
- get_preferred_device(filter)¶
- Parameters:
filter (
Libosinfo.Filter
orNone
) – a device metadata filter- Returns:
a device, or
None
- Return type:
Get the preferred device matching a given filter
- get_preferred_device_link(filter)¶
- Parameters:
filter (
Libosinfo.Filter
orNone
) – a device metadata filter- Returns:
a device, or
None
- Return type:
Get the preferred device link matching a given filter and platform. The filter matches against attributes on the link, not the device.
Property Details¶
- Libosinfo.Deployment.props.os¶
- Name:
os
- Type:
- Default Value:
- Flags:
The operating system to be deployed
- Libosinfo.Deployment.props.platform¶
- Name:
platform
- Type:
- Default Value:
- Flags:
The platform to deploy on