Action class

Specifies a single action that runs a Docker container.

Constructors

Action({bool? alwaysRun, bool? blockExternalNetwork, List<String>? commands, String? containerName, Secret? credentials, bool? disableImagePrefetch, bool? disableStandardErrorCapture, bool? enableFuse, Secret? encryptedEnvironment, String? entrypoint, Map<String, String>? environment, bool? ignoreExitStatus, String? imageUri, Map<String, String>? labels, List<Mount>? mounts, String? pidNamespace, Map<String, int>? portMappings, bool? publishExposedPorts, bool? runInBackground, String? timeout})
Action.fromJson(Map _json)

Properties

alwaysRun bool?
By default, after an action fails, no further actions are run.
getter/setter pair
blockExternalNetwork bool?
Prevents the container from accessing the external network.
getter/setter pair
commands List<String>?
If specified, overrides the CMD specified in the container.
getter/setter pair
containerName String?
An optional name for the container.
getter/setter pair
credentials Secret?
If the specified image is hosted on a private registry other than Google Container Registry, the credentials required to pull the image must be specified here as an encrypted secret.
getter/setter pair
disableImagePrefetch bool?
All container images are typically downloaded before any actions are executed.
getter/setter pair
disableStandardErrorCapture bool?
A small portion of the container's standard error stream is typically captured and returned inside the ContainerStoppedEvent.
getter/setter pair
enableFuse bool?
Enable access to the FUSE device for this action.
getter/setter pair
encryptedEnvironment Secret?
The encrypted environment to pass into the container.
getter/setter pair
entrypoint String?
If specified, overrides the ENTRYPOINT specified in the container.
getter/setter pair
environment Map<String, String>?
The environment to pass into the container.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
ignoreExitStatus bool?
Normally, a non-zero exit status causes the pipeline to fail.
getter/setter pair
imageUri String?
The URI to pull the container image from.
getter/setter pair
labels Map<String, String>?
Labels to associate with the action.
getter/setter pair
mounts List<Mount>?
A list of mounts to make available to the action.
getter/setter pair
pidNamespace String?
An optional identifier for a PID namespace to run the action inside.
getter/setter pair
portMappings Map<String, int>?
A map of containers to host port mappings for this container.
getter/setter pair
publishExposedPorts bool?
Exposes all ports specified by EXPOSE statements in the container.
getter/setter pair
runInBackground bool?
This flag allows an action to continue running in the background while executing subsequent actions.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout String?
The maximum amount of time to give the action to complete.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited