SDK reference / Models / Apps

Function

Kind: class

Namespace: Egulu.Sdk.Models.Apps

A serverless function: a source, a runtime and a trigger on the app runtime (ADR-0416).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Apps.Function_annotations?annotationsAt most 256 KiB in all; never policy input.
BackendModestring?backendModeSIMULATED with the fake runtime driver, KNATIVE_GVISOR on the tenant k3s.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
EnvironmentModels.Apps.Function_environment?environmentEnvironment variables (plain text; secrets through secret pins of a later stage).
Etagstring?etag"{generation}"; send it back in If-Match.
LabelsModels.Apps.Function_labels?labelsAt most 64.
MaxInstancesint?maxInstancesMost instances at once (1..20; defaults to 4).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RevisionIdstring?revisionIdThe revision that serves: a new one is made when source, runtime, environment or limits change.
Runtimestring?runtimeThe runtime: `container` runs the image as it is (it listens on $PORT).
SourceModels.Apps.FunctionSource?sourceWhere the code comes from.
StateModels.Apps.FunctionState?stateFunction lifecycle states.
SuspendReasonstring?suspendReasonWhy the platform paused the function, for example spend-cap.
TimeoutSecondsint?timeoutSecondsLongest run of one invocation in seconds (1..900; defaults to 300).
TriggerModels.Apps.FunctionTrigger?triggerWhat starts the function.
TriggerStatestring?triggerStateWhether the trigger is wired: HTTP is wired by the runtime; schedule and queue triggers wait for KEDA (W121 Stage B).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
Urlstring?urlHTTPS URL of an HTTP-triggered function on the content domain.