scriptdest

package
v1.135.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package scriptdest resolves the destination a managed script names for an output to the address the deployment's configuration declares for it. It is the one resolution the run and validate share, so a destination validate accepts is one a run can write to, refused in the same words when it is not.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(name string, declared []script.Destination) (script.Destination, error)

Resolve turns a destination name into the address it stands for, against the set a deployment declares. The portal is built in; every other name comes from the scripts.destinations configuration.

The run and validate both call it: validate reports a script that names a destination this deployment does not declare (#1415), and the two must refuse in the same words for the same reason. A script whose export was accepted by validate and then refused at run time had already executed its queries by the time it learned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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