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

Struct CacheVolume

core/cache.go:19–31  ·  view source on GitHub ↗

CacheVolume is a persistent volume with a globally scoped identifier.

Source from the content-addressed store, hash-verified

17
18// CacheVolume is a persistent volume with a globally scoped identifier.
19type CacheVolume struct {
20 Key string
21 Namespace string
22 Source dagql.Nullable[dagql.ObjectResult[*Directory]]
23 Sharing CacheSharingMode
24 Owner string
25
26 mu sync.Mutex
27 snapshot bkcache.MutableRef
28 snapshotID string
29 selector string
30 releaseSnapshot func(context.Context) error
31}
32
33func (*CacheVolume) Type() *ast.Type {
34 return &ast.Type{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected