dagger

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerBuilder

type ContainerBuilder struct {
	// contains filtered or unexported fields
}

ContainerBuilder provides a fluent API for building containers

func (*ContainerBuilder) CombinedOutput

func (c *ContainerBuilder) CombinedOutput(ctx context.Context) (string, error)

CombinedOutput executes the container and returns combined stdout/stderr

func (*ContainerBuilder) From

func (c *ContainerBuilder) From(image string) *ContainerBuilder

From sets the base image for the container

func (*ContainerBuilder) Stderr

func (c *ContainerBuilder) Stderr(ctx context.Context) (string, error)

Stderr executes the container and returns stderr

func (*ContainerBuilder) Stdout

func (c *ContainerBuilder) Stdout(ctx context.Context) (string, error)

Stdout executes the container and returns stdout

func (*ContainerBuilder) WithEnvVariable

func (c *ContainerBuilder) WithEnvVariable(name, value string) *ContainerBuilder

WithEnvVariable sets an environment variable

func (*ContainerBuilder) WithExec

func (c *ContainerBuilder) WithExec(args []string) *ContainerBuilder

WithExec adds a command to execute

func (*ContainerBuilder) WithMountedDirectory

func (c *ContainerBuilder) WithMountedDirectory(containerPath, hostPath string) *ContainerBuilder

WithMountedDirectory mounts a directory into the container

func (*ContainerBuilder) WithWorkdir

func (c *ContainerBuilder) WithWorkdir(workdir string) *ContainerBuilder

WithWorkdir sets the working directory

type DirectoryRef

type DirectoryRef struct {
	// contains filtered or unexported fields
}

DirectoryRef represents a reference to a host directory

func (*DirectoryRef) Path

func (d *DirectoryRef) Path() string

Path returns the directory path

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine represents a Dagger engine wrapper

func NewEngine

func NewEngine(ctx context.Context) (*Engine, error)

NewEngine creates a new Dagger engine

func (*Engine) Close

func (e *Engine) Close() error

Close closes the Dagger engine

func (*Engine) Container

func (e *Engine) Container() *ContainerBuilder

Container returns a new container builder

func (*Engine) Context

func (e *Engine) Context() context.Context

Context returns the engine's context

func (*Engine) Host

func (e *Engine) Host() *HostManager

Host returns a host directory manager

func (*Engine) IsClosed

func (e *Engine) IsClosed() bool

IsClosed returns whether the engine is closed

type HostManager

type HostManager struct {
	// contains filtered or unexported fields
}

HostManager manages host directory operations

func (*HostManager) Directory

func (h *HostManager) Directory(path string) *DirectoryRef

Directory returns a host directory reference

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL