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

Function New

toolchains/engine-dev/main.go:20–61  ·  view source on GitHub ↗

TODO: updating filter for engine restart test, probably go back to original

(
	// +defaultPath="/"
	// +ignore=[
	// "*",
	// "!.git",
	// "!dagger.json",
	// "!**/dagger.json",
	// "!**/go.*",
	// "!**/*.dang",
	// "!version",
	// "!core",
	// "!engine",
	// "!util",
	// "!network",
	// "!dagql",
	// "!analytics",
	// "!auth",
	// "!cmd",
	// "!internal",
	// "!sdk",
	// "sdk/**/examples",
	// "!cmd",
	// "!modules",
	// "!toolchains",
	// "!.changes"
	// ]
	source *dagger.Directory,
	// A configurable part of the IP subnet managed by the engine
	// Change this to allow nested dagger engines
	// +default=89
	subnetNumber int,
	// A docker config file with credentials to install on clients,
	// to ensure they can access private registries
	// +optional
	clientDockerConfig *dagger.Secret,
)

Source from the content-addressed store, hash-verified

18
19// TODO: updating filter for engine restart test, probably go back to original
20func New(
21 // +defaultPath="/"
22 // +ignore=[
23 // "*",
24 // "!.git",
25 // "!dagger.json",
26 // "!**/dagger.json",
27 // "!**/go.*",
28 // "!**/*.dang",
29 // "!version",
30 // "!core",
31 // "!engine",
32 // "!util",
33 // "!network",
34 // "!dagql",
35 // "!analytics",
36 // "!auth",
37 // "!cmd",
38 // "!internal",
39 // "!sdk",
40 // "sdk/**/examples",
41 // "!cmd",
42 // "!modules",
43 // "!toolchains",
44 // "!.changes"
45 // ]
46 source *dagger.Directory,
47 // A configurable part of the IP subnet managed by the engine
48 // Change this to allow nested dagger engines
49 // +default=89
50 subnetNumber int,
51 // A docker config file with credentials to install on clients,
52 // to ensure they can access private registries
53 // +optional
54 clientDockerConfig *dagger.Secret,
55) *EngineDev {
56 return &EngineDev{
57 Source: source,
58 SubnetNumber: subnetNumber,
59 ClientDockerConfig: clientDockerConfig,
60 }
61}
62
63type EngineDev struct {
64 Source *dagger.Directory

Callers 1

invokeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected