Declaration class

Constructors

Declaration({String? application, bool? automated, String? digest, List<DeclareEnv> env = const [], List<String> hosts = const [], String? name, String? org, String? path, String? project, int? replicas, String? repository, String? tag})
Returns a new Declaration instance.

Properties

application ↔ String?
Application is the CD Application name the generator mints:
getter/setter pair
automated ↔ bool?
Automated is cd.automated: false means the Application reports drift and NOTHING moves. It is off by default for a new file on purpose.
getter/setter pair
digest ↔ String?
image.digest — wins over tag
getter/setter pair
env ↔ List<DeclareEnv>
Env is the declared container environment, as the chart's list of {name,value}. It is read back so a re-declare of an identical body is a no-op rather than a refusal — idempotency is what makes a retry safe.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hosts ↔ List<String>
ingress.hosts, both shapes flattened
getter/setter pair
name ↔ String?
the Helm release name — the file's basename
getter/setter pair
org ↔ String?
Org is the owner. It is ALSO the values directory and the destination namespace, because those are one value under one name — see the header.
getter/setter pair
path ↔ String?
Path is the file, relative to the repository root.
getter/setter pair
project ↔ String?
Project is the AppProject the sync is admitted under, derived from the directory exactly as the ApplicationSet derives it. It differs from Org for a reserved directory, which syncs under the platform fence.
getter/setter pair
replicas ↔ int?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
repository ↔ String?
image.repository
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tag ↔ String?
image.tag
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.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Declaration?
Returns a new Declaration instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Declaration>
mapFromJson(dynamic json) → Map<String, Declaration>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Declaration>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.