MCPcopy Index your code
hub / github.com/dagger/dagger / Server

Struct Server

engine/server/server.go:64–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62)
63
64type Server struct {
65 controlapi.UnimplementedControlServer
66 engineName string
67
68 //
69 // state directory/db paths
70 //
71
72 rootDir string
73
74 workerRootDir string
75 snapshotterRootDir string
76 snapshotterDBPath string
77 contentStoreRootDir string
78 containerdMetaDBPath string
79 workerCacheMetaDBPath string
80 buildkitMountPoolDir string
81 executorRootDir string
82 clientDBDir string
83
84 //
85 // buildkit+containerd entities/DBs
86 //
87
88 engineUtilOpts *engineutil.Opts
89 workerCache bkcache.SnapshotManager
90 workerGCPolicies []dagql.CachePrunePolicy
91 workerDefaultGCPolicy *dagql.CachePrunePolicy
92
93 containerdMetaBoltDB *bolt.DB
94 containerdMetaDB *ctdmetadata.DB
95 localContentStore content.Store
96 contentStore *containerdsnapshot.Store
97 builtinContentStore content.Store
98
99 snapshotter ctdsnapshot.Snapshotter
100 snapshotterMDStore *storage.MetaStore // only set for overlay snapshotter right now
101 snapshotterName string
102 leaseManager *bkcache.LeaseManager
103
104 corruptDBReset bool
105
106 //
107 // worker/executor-specific config+state
108 //
109
110 runc *runc.Runc
111 cgroupParent string
112 networkProviders map[pb.NetMode]network.Provider
113 processMode oci.ProcessMode
114 dns *oci.DNSConfig
115 apparmorProfile string
116 selinux bool
117 entitlements entitlements.Set
118 enabledPlatforms []ocispecs.Platform
119 defaultPlatform ocispecs.Platform
120 registryHosts docker.RegistryHosts
121 cleanMntNS *os.File

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected