Foundry.DeployStrategy¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.DeployStrategy(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Represents how a plugin can deploy a build to a specific device for running.
- classmethod new(pipeline)¶
- Parameters:
pipeline (
Foundry.BuildPipeline) – a [class`Foundry`.BuildPipeline]- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.DeployStrategy] or rejects with error.
- Return type:
- deploy(pty_fd, cancellable)¶
- Parameters:
pty_fd (
int) –cancellable (
Dex.Cancellable) –
- Returns:
a [class`Dex`.Future] that resolves the priority of the strategy or rejects with error if undeploy.
- Return type:
Checks if the deploy strategy is deploy for the current configuration.
- dup_pipeline()¶
- Returns:
a [class`Foundry`.BuildPipeline]
- Return type:
- dup_plugin_info()¶
- Returns:
a [class`Peas`.PluginInfo]
- Return type:
- prepare(launcher, pipeline, pty_fd, cancellable)¶
- Parameters:
launcher (
Foundry.ProcessLauncher) – a [class`Foundry`.ProcessLauncher] to preparepipeline (
Foundry.BuildPipeline) – a [class`Foundry`.BuildPipeline] containing the build stagespty_fd (
int) – the PTY device to use for stdin/stdout/stderr, or -1cancellable (
Dex.CancellableorNone) – an optional [class`Dex`.Cancellable] for cancellation
- Returns:
a [class`Dex`.Future] that resolves to any value.
- Return type:
Prepares launcher to be able to run a command on the device with access to a deployed installation of pipeline.
- supported()¶
- Returns:
a [class`Dex`.Future] that resolves the priority of the strategy or rejects with error if unsupported.
- Return type:
Checks if the deploy strategy is supported for the current configuration.
- do_deploy(pty_fd, cancellable) virtual¶
- Parameters:
pty_fd (
int) –cancellable (
Dex.Cancellable) –
- Returns:
a [class`Dex`.Future] that resolves the priority of the strategy or rejects with error if undeploy.
- Return type:
Checks if the deploy strategy is deploy for the current configuration.
- do_prepare(launcher, pipeline, pty_fd, cancellable) virtual¶
- Parameters:
launcher (
Foundry.ProcessLauncher) – a [class`Foundry`.ProcessLauncher] to preparepipeline (
Foundry.BuildPipeline) – a [class`Foundry`.BuildPipeline] containing the build stagespty_fd (
int) – the PTY device to use for stdin/stdout/stderr, or -1cancellable (
Dex.CancellableorNone) – an optional [class`Dex`.Cancellable] for cancellation
- Returns:
a [class`Dex`.Future] that resolves to any value.
- Return type:
Prepares launcher to be able to run a command on the device with access to a deployed installation of pipeline.
- do_supported() virtual¶
- Returns:
a [class`Dex`.Future] that resolves the priority of the strategy or rejects with error if unsupported.
- Return type:
Checks if the deploy strategy is supported for the current configuration.
Property Details¶
- Foundry.DeployStrategy.props.pipeline¶
- Name:
pipeline- Type:
- Default Value:
- Flags:
- Foundry.DeployStrategy.props.plugin_info¶
- Name:
plugin-info- Type:
- Default Value:
- Flags: