MCPcopy Create free account
hub / github.com/dagger/dagger / EnvFile

Struct EnvFile

core/envfile.go:25–34  ·  view source on GitHub ↗

EnvFile represents a collection of environment variables that can be manipulated

Source from the content-addressed store, hash-verified

23
24// EnvFile represents a collection of environment variables that can be manipulated
25type EnvFile struct {
26 // Variables stored as key-value pairs, preserving order and allowing duplicates
27 Environ []string `json:"variables"`
28 Expand bool `json:"expand"`
29 // Context holds variables that are used only for ${...} expansion of the
30 // Environ values. They are not exposed via Variables/Lookup/AsFile. This is
31 // how Namespace preserves non-matching variables (e.g. a shared ROOT_DIR)
32 // that namespaced values still reference but that should not become defaults.
33 Context []string `json:"context,omitempty"`
34}
35
36var (
37 _ dagql.PersistedObject = (*EnvFile)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected