CubeEnvPolicy class final
The spec.env: section: the ordered variable list.
Constructors
-
CubeEnvPolicy({List<
CubeEnvVar> vars = const []}) -
Creates a policy from declared variables.
const
- CubeEnvPolicy.fromYaml(Object? node)
-
Parses the
spec.env:section.null(section absent) yields the empty policy: host environment passed through unchanged.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether no variables are declared (host env passes through).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
vars
→ List<
CubeEnvVar> -
Declared variables, in yaml order.
final
Methods
-
apply(
Map< String, String> hostEnv) → Map<String, String> -
Builds the child environment from
hostEnvper the class documentation. ReturnshostEnvitself for an empty policy. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited