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

Function registry

toolchains/engine-dev/test.go:326–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324}
325
326func registry() *dagger.Service {
327 return dag.Container().
328 From("registry:2").
329 WithExposedPort(5000, dagger.ContainerWithExposedPortOpts{Protocol: dagger.NetworkProtocolTcp}).
330 AsService(dagger.ContainerAsServiceOpts{UseEntrypoint: true})
331}
332
333func privateRegistry() *dagger.Service {
334 const htpasswd = "john:$2y$05$/iP8ud0Fs8o3NLlElyfVVOp6LesJl3oRLYoc3neArZKWX10OhynSC" //nolint:gosec

Callers 1

testContainerMethod · 0.85

Calls 4

AsServiceMethod · 0.45
WithExposedPortMethod · 0.45
FromMethod · 0.45
ContainerMethod · 0.45

Tested by

no test coverage detected