Documentation
¶
Overview ¶
Package envref resolves references between deployments' environment variables. A value written as ${{ api.DATABASE_URL }} takes the value of DATABASE_URL in the api deployment, and ${{ api.FLATRUN_HOST }} its address on the shared network. Where variables come from is a Source, so the resolver works the same over files, tests or any other store.
Index ¶
Constants ¶
View Source
const HostKey = "FLATRUN_HOST"
HostKey is the reserved key that resolves to a deployment's address.
Variables ¶
View Source
var ErrUnknownDeployment = fmt.Errorf("deployment not found")
Functions ¶
func HasReference ¶
HasReference reports whether a value contains at least one reference.
Types ¶
Click to show internal directories.
Click to hide internal directories.