scriptenv

package
v1.164.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package scriptenv is what a managed script reads of the application environment its run executes in (#2696): platform.env("NAME"), one of the application's variables for that environment, and platform.environment(), the environment's name. A script no application holds reads None from both.

Index

Constants

View Source
const (
	// CapabilityEnv reads one of the application's variables for the run's
	// environment: its value, or default (None) when it is not set. A value
	// holding {{secret:<name>}} is read as written; the platform fills the
	// stored secret when a request carrying it is sent through a connection
	// the secret allows, so the script never holds the secret.
	CapabilityEnv = "platform.env"
	// CapabilityEnvironment is the name of the environment the run executes
	// in, None for a script no application holds.
	CapabilityEnvironment = "platform.environment"
)

Variables

This section is empty.

Functions

func Env

func Env(vars map[string]string) *starlark.Builtin

Env is platform.env(name, default=None) over vars.

func Environment

func Environment(environment string) *starlark.Builtin

Environment is platform.environment() naming environment.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL