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

Method WithUnixSocket

core/container.go:5928–5931  ·  view source on GitHub ↗

mutates container caller must have handled cloning or creating a new child.

(ctx context.Context, target string, source dagql.ObjectResult[*Socket], owner string)

Source from the content-addressed store, hash-verified

5926
5927// mutates container caller must have handled cloning or creating a new child.
5928func (container *Container) WithUnixSocket(ctx context.Context, target string, source dagql.ObjectResult[*Socket], owner string) (*Container, error) {
5929 target = absPath(container.Config.WorkingDir, target)
5930 return container.WithUnixSocketFromParent(ctx, dagql.ObjectResult[*Container]{}, target, source, owner)
5931}
5932
5933func (container *Container) WithUnixSocketFromParent(ctx context.Context, parent dagql.ObjectResult[*Container], target string, source dagql.ObjectResult[*Socket], owner string) (*Container, error) {
5934 target = absPath(container.Config.WorkingDir, target)

Callers

nothing calls this directly

Calls 2

absPathFunction · 0.70

Tested by

no test coverage detected