CreateAppReq class

Constructors

CreateAppReq({String? buildType, String? description, String? dockerfile, List<String> domains = const [], List<EnvVarJSON> env = const [], String? environment, ImageOrigin? image, String? name, int? port, String? project, int? replicas, GitOrigin? repo, String? slug, String? source_, int? storageGb})
Returns a new CreateAppReq instance.

Properties

buildType ↔ String?
BuildType is pack — the zero-config default that detects any project — or dockerfile, the explicit escape hatch. An image app never builds.
getter/setter pair
description ↔ String?
Description is free text about what the application is.
getter/setter pair
dockerfile ↔ String?
Dockerfile is the path to build from, for buildType dockerfile.
getter/setter pair
domains ↔ List<String>
Domains are extra ingress hosts. The canonical default host is always attached; a bare custom host is refused here and must go through add-domain → verify first.
getter/setter pair
env ↔ List<EnvVarJSON>
Env is the application's environment. Keys must match ^[A-Za-z_][A-Za-z0-9_]*$; a variable marked secret: true is sealed into KMS and its plaintext is never written to the database.
getter/setter pair
environment ↔ String?
Environment is the deploy target this app names ("production" by default).
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
image ↔ ImageOrigin?
Image is the container image to run, for source image.
getter/setter pair
name ↔ String?
Name is the application's display name. Required; the slug is derived from it when none is given.
getter/setter pair
port ↔ int?
Port is the container port the app listens on.
getter/setter pair
project ↔ String?
Project is the project to create the application under, from the path.
getter/setter pair
replicas ↔ int?
Replicas is how many copies to run; clamped to the deployment's limit rather than refused.
getter/setter pair
repo ↔ GitOrigin?
Repo is the git source to build from, for source git.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug ↔ String?
Slug is the app's identity in the cluster — its CR name and part of its host. Given or derived from Name, it must match ^[a-z0-9]([a-z0-9-]{0,38}[a-z0-9])?$, and one already used in this project is 409.
getter/setter pair
source_ ↔ String?
Source is git, which requires repo.url, or image, which requires image.repository. Anything else is 400.
getter/setter pair
storageGb ↔ int?
StorageGB is the persistent volume size in GiB; absent means stateless. Clamped to the deployment's limit rather than refused.
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) → CreateAppReq?
Returns a new CreateAppReq instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<CreateAppReq>
mapFromJson(dynamic json) → Map<String, CreateAppReq>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<CreateAppReq>>

Constants

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