Skip to content

Function

The Container runtime supports functions of kind container.

Parameters

Name Type Description
project str Project name. Required only when creating from the library; otherwise MUST NOT be set.
name str Name that identifies the object. Required.
kind str Function kind. Required.
uuid str Object ID in UUID4 format.
description str Description of the object.
labels list[str] List of labels.
embedded bool Whether the object should be embedded in the project.
code_src str URI pointing to the source code.
code str Source code provided as plain text.
base64 str Source code encoded as base64.
handler str Function entrypoint.
lang str Source code language (informational).
image str Container image to use for execution (name:tag).
base_image str Base image used when building the execution image. (Required if task is build)
image_pull_policy str Kubernetes image pull policy.
command str Command to run inside the container.

Kinds

The kind parameter must be:

  • container