DVInfraResource class final
One thing a provisioned host has.
Constructors
-
DVInfraResource({required DVInfraResourceKind kind, required String id, String? content, String? mode, String? owner, bool enabled = false, bool active = false, bool requiresRelease = false, List<
String> credentials = const <String>[], DVInfraFirewallRules? firewall, String? path}) -
const
Properties
- active → bool
-
final
- content → String?
-
A file's or unit's text. Null for a unit a package ships, and always
null for a credential: the plan carries names, never values.
final
- contentSha256 → String?
-
SHA-256 of content, or null when there is none.
no setter
-
credentials
→ List<
String> -
For units: the credentials they load, so rotating one restarts them.
final
- enabled → bool
-
For units: enabled at boot, and expected to be running.
final
- firewall → DVInfraFirewallRules?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
A package name, user name, absolute path, credential name, or unit name.
final
- key → String
-
kind:id, unique within a desired state.no setter - kind → DVInfraResourceKind
-
final
- mode → String?
-
Octal, e.g.
0644.final - owner → String?
-
final
- path → String?
-
Where a unit, credential or firewall ruleset lives on the host.
final
- requiresRelease → bool
-
A unit that runs the released binary. It cannot run before a release
has put one on the host, so it is enabled but not started until then.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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