Skip to main content

Dagger Types Reference

Dagger Types are primitives that hold internal references to values stored in the Dagger Engine. They extend the CUE type system and can be used in Dagger Actions. Their definitions can be imported from the dagger.io/dagger package.

The following types are available:

DefinitionFileDescription
#FStypes.cueReference to a filesystem tree
#Secrettypes.cueSecure reference to an external secret
#Sockettypes.cueReference to a network socket: unix or npipe

And there's a special instance of a Dagger Type:

DefinitionFileTypeDescription
#Scratchvalues.cue#FSAn empty filesystem tree

Data structures

There's also some data structures that are tightly coupled to core actions. Their definitions are in the dagger.io/dagger/core package.

DefinitionFileDescription
#Mountcore/exec.cueTransient filesystem mount
#CacheDircore/exec.cueA (best effort) persistent cache dir
#TempDircore/exec.cueA temporary directory for command execution
DefinitionFileDescription
#ImageConfigcore/image.cueContainer image config
#HealthCheckcore/image.cueContainer health check