AppView class

Constructors

AppView({String? buildType, int? createdAt, String? currentDeploymentId, String? description, String? dockerfile, List<String> domains = const [], List<EnvVarJSON> env = const [], String? environment, String? health, String? id, ImageView? image, String? name, String? namespace, String? org, String? phase, int? port, String? projectId, int? replicas, GitSource? repo, String? secretSync, String? secretSyncDetail, String? slug, String? source_, String? status, int? storageGb, int? updatedAt})
Returns a new AppView instance.

Properties

buildType ↔ String?
BuildType is how a git app builds: pack, the zero-config default that detects the project, or dockerfile. An image app carries image, which means it never builds.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the app was created, unix seconds.
getter/setter pair
currentDeploymentId ↔ String?
CurrentDeploymentID is the deployment that is live — the pointer a deploy advances monotonically by version, so it never regresses to an older one. Empty until the first deploy reaches the cluster.
getter/setter pair
description ↔ String?
Description is free text about what the app is. Nothing derives from it.
getter/setter pair
dockerfile ↔ String?
Dockerfile is the path inside the repo to build from, for buildType dockerfile. The build path keys off its presence, and it is validated at create against the same allowlist the privileged build enforces.
getter/setter pair
domains ↔ List<String>
Domains are the ingress hosts rendered into the app's CR, its own <slug>.<org>.<sites host> first. That one is seeded at create and cannot be removed; a custom host joins only after add-domain and DNS verification.
getter/setter pair
env ↔ List<EnvVarJSON>
Env is the app's environment variables, with every SECRET value masked to "" — the plaintext is in KMS and this surface never echoes it. That masking is why an empty secret value means "keep what is sealed" when posted back.
getter/setter pair
environment ↔ String?
Environment is the deploy target this app names, production when none was given. It is a LABEL: /v1/platform/environments derives the environment list from the apps that name one, so an environment exists as long as an app points at it and no route creates or deletes one.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
health ↔ String?
Health rolls ready-vs-desired replicas up to a colour: green (all ready), yellow (some ready, or deliberately scaled to zero), red (none), or "" when the cluster reports no replica counts at all — unknown, never a guessed green.
getter/setter pair
id ↔ String?
ID is the server-minted application id (app_…). Routes address an app by project and slug; this is the key its deployments and builds carry.
getter/setter pair
image ↔ ImageView?
Image is the image a source image app runs. For a git app only the tag is filled, stamped by the deploy that went live; the built ref is on the deployment.
getter/setter pair
name ↔ String?
Name is the display name. It is not an address — the slug is.
getter/setter pair
namespace ↔ String?
Namespace is where the app's cluster objects live, tenant-<org>. It is derived from the validated org and is never accepted from a request.
getter/setter pair
org ↔ String?
Org is the tenant that owns the app. It comes from the validated identity, never from the request, and it is the boundary every route is scoped to.
getter/setter pair
phase ↔ String?
Phase is the operator's own status.phase for the app's Service CR, read from the cluster on this request. Empty when there is no CR yet or the cluster could not be read.
getter/setter pair
port ↔ int?
Port is the container port traffic is sent to. 8080 when the create asked for none, or for one outside 1–65535.
getter/setter pair
projectId ↔ String?
ProjectID is the IAM project the app lives under, and it is that project's NAME — the (org,name) key IAM identifies it by, which is also what the :project path segment carries. There is no platform-minted project id.
getter/setter pair
replicas ↔ int?
Replicas is how many copies the CR declares. It is CLAMPED to the deployment's ceiling rather than refused, so it can be below what was asked.
getter/setter pair
repo ↔ GitSource?
Repo is the git origin a source git app builds from, and the repo+branch a landed push has to match to build it.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secretSync ↔ String?
SecretSync is how far the app's secret env has got into the cluster: ""|pending|syncing|ready|failed (secrets.go). It is best-effort and never fails a deploy, so pending is ordinary right after one.
getter/setter pair
secretSyncDetail ↔ String?
SecretSyncDetail is the honest reason when the sync is not ready — a missing CRD, an RBAC grant, a per-tenant credential. Empty when it is.
getter/setter pair
slug ↔ String?
Slug is the app's identity in the cluster: the operator CR's name, the first label of its default host, and the :app path segment. Unique per project.
getter/setter pair
source_ ↔ String?
Source is what the app deploys FROM: git, which builds Repo, or image, which runs Image as it is. It decides whether a deploy builds at all.
getter/setter pair
status ↔ String?
Status is the lifecycle THIS store records: draft (created, nothing in the cluster yet), building, deploying, live, stopped or error. What the cluster itself says is Phase and Health.
getter/setter pair
storageGb ↔ int?
StorageGB is the persistent volume size in GiB. Absent means stateless — no volume at all — and it is clamped like Replicas.
getter/setter pair
updatedAt ↔ int?
UpdatedAt is when it last changed, unix seconds. Every lifecycle transition moves it, so it tracks deploys as well as edits.
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) → AppView?
Returns a new AppView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<AppView>
mapFromJson(dynamic json) → Map<String, AppView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<AppView>>

Constants

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