Foundry.DeployStrategy

g Foundry.Contextual Foundry.Contextual Foundry.DeployStrategy Foundry.DeployStrategy Foundry.Contextual->Foundry.DeployStrategy GObject.GInterface GObject.GInterface Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)

Structs:

GObject.ObjectClass (5)

class

new (pipeline)

deploy (pty_fd, cancellable)

dup_pipeline ()

dup_plugin_info ()

prepare (launcher, pipeline, pty_fd, cancellable)

supported ()

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5)

do_deploy (pty_fd, cancellable)

do_prepare (launcher, pipeline, pty_fd, cancellable)

do_supported ()

Properties

Inherited:

Foundry.Contextual (1)

Name

Type

Flags

Short Description

pipeline

Foundry.BuildPipeline

r/w/co

plugin-info

Peas.PluginInfo

r/w/co

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Foundry.Contextual

r

Class Details

class Foundry.DeployStrategy(**kwargs)
Bases:

Foundry.Contextual

Abstract:

Yes

Structure:

Foundry.DeployStrategyClass

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:

Dex.Future

deploy(pty_fd, cancellable)
Parameters:
Returns:

a [class`Dex`.Future] that resolves the priority of the strategy or rejects with error if undeploy.

Return type:

Dex.Future

Checks if the deploy strategy is deploy for the current configuration.

dup_pipeline()
Returns:

a [class`Foundry`.BuildPipeline]

Return type:

Foundry.BuildPipeline

dup_plugin_info()
Returns:

a [class`Peas`.PluginInfo]

Return type:

Peas.PluginInfo

prepare(launcher, pipeline, pty_fd, cancellable)
Parameters:
  • launcher (Foundry.ProcessLauncher) – a [class`Foundry`.ProcessLauncher] to prepare

  • pipeline (Foundry.BuildPipeline) – a [class`Foundry`.BuildPipeline] containing the build stages

  • pty_fd (int) – the PTY device to use for stdin/stdout/stderr, or -1

  • cancellable (Dex.Cancellable or None) – an optional [class`Dex`.Cancellable] for cancellation

Returns:

a [class`Dex`.Future] that resolves to any value.

Return type:

Dex.Future

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:

Dex.Future

Checks if the deploy strategy is supported for the current configuration.

do_deploy(pty_fd, cancellable) virtual
Parameters:
Returns:

a [class`Dex`.Future] that resolves the priority of the strategy or rejects with error if undeploy.

Return type:

Dex.Future

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 prepare

  • pipeline (Foundry.BuildPipeline) – a [class`Foundry`.BuildPipeline] containing the build stages

  • pty_fd (int) – the PTY device to use for stdin/stdout/stderr, or -1

  • cancellable (Dex.Cancellable or None) – an optional [class`Dex`.Cancellable] for cancellation

Returns:

a [class`Dex`.Future] that resolves to any value.

Return type:

Dex.Future

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:

Dex.Future

Checks if the deploy strategy is supported for the current configuration.

Property Details

Foundry.DeployStrategy.props.pipeline
Name:

pipeline

Type:

Foundry.BuildPipeline

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Foundry.DeployStrategy.props.plugin_info
Name:

plugin-info

Type:

Peas.PluginInfo

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY