Documentation
¶
Index ¶
- Constants
- func ContainerName(projectName, service string) string
- type Client
- func (c *Client) Close() error
- func (c *Client) ComposeDown(ctx context.Context, composeFile, projectName string) error
- func (c *Client) ComposeUp(ctx context.Context, opts ComposeOptions) error
- func (c *Client) DebugContainers(ctx context.Context, projectName string, out io.Writer)
- func (c *Client) Exec(ctx context.Context, containerName string, command []string, opts ExecOptions) error
- func (c *Client) ExecCapture(ctx context.Context, containerName string, command []string) (string, error)
- func (c *Client) ExecCaptureWithError(ctx context.Context, containerName string, command []string) (string, error)
- func (c *Client) ExecSilent(ctx context.Context, containerName string, command []string) bool
- func (c *Client) IsRunning(ctx context.Context, containerName string) (bool, error)
- func (c *Client) SetupCredentialSymlinks(ctx context.Context, containerName string) error
- func (c *Client) WaitForContainer(ctx context.Context, containerName string) error
- type ComposeOptions
- type ExecOptions
- type VolumeMount
Constants ¶
const ContainerJobPath = "/manfred-job"
ContainerJobPath is where the job directory is mounted inside containers.
Variables ¶
This section is empty.
Functions ¶
func ContainerName ¶
ContainerName returns the container name for a compose project and service.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps Docker SDK operations.
func (*Client) ComposeDown ¶
ComposeDown stops and removes containers.
func (*Client) ComposeUp ¶
func (c *Client) ComposeUp(ctx context.Context, opts ComposeOptions) error
ComposeUp starts containers using docker compose. We use exec because the Docker SDK doesn't have native compose support.
func (*Client) DebugContainers ¶
DebugContainers shows container information for debugging.
func (*Client) Exec ¶
func (c *Client) Exec(ctx context.Context, containerName string, command []string, opts ExecOptions) error
Exec runs a command in a container and streams output.
func (*Client) ExecCapture ¶
func (c *Client) ExecCapture(ctx context.Context, containerName string, command []string) (string, error)
ExecCapture runs a command and returns its output.
func (*Client) ExecCaptureWithError ¶
func (c *Client) ExecCaptureWithError(ctx context.Context, containerName string, command []string) (string, error)
ExecCaptureWithError runs a command and returns output and error details.
func (*Client) ExecSilent ¶
ExecSilent runs a command and returns success/failure.
func (*Client) SetupCredentialSymlinks ¶
SetupCredentialSymlinks creates symlinks for Claude credentials inside a container.
type ComposeOptions ¶
type ComposeOptions struct {
ComposeFile string
ProjectName string
Env map[string]string
Volumes []VolumeMount
Stdout io.Writer // Optional: stream stdout here
Stderr io.Writer // Optional: stream stderr here
}
ComposeOptions configures a compose up operation.
type ExecOptions ¶
ExecOptions configures a container exec operation.
type VolumeMount ¶
VolumeMount represents a volume to mount into containers.