scriptenv

package
v1.169.1 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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