compose

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListContainers

func ListContainers(ctx context.Context, dir, composePath string, capture CaptureFunc) ([]system.Container, error)

func PreferredProvider

func PreferredProvider() string

func SupportsPSJSON

func SupportsPSJSON() bool

Types

type CaptureFunc

type CaptureFunc func(context.Context, string, string, ...string) (system.CommandResult, error)

type Client

type Client struct {
	Runner system.Runner
}

func (Client) ContainerLogs

func (c Client) ContainerLogs(ctx context.Context, containerName string, tail int, follow bool, since string) error

func (Client) Down

func (c Client) Down(ctx context.Context, cfg configpkg.Config, removeVolumes bool) error

func (Client) DownPath

func (c Client) DownPath(ctx context.Context, dir, composePath string, removeVolumes bool) error

func (Client) Exec

func (c Client) Exec(ctx context.Context, cfg configpkg.Config, service string, env []string, commandArgs []string, tty bool) error

func (Client) Logs

func (c Client) Logs(ctx context.Context, cfg configpkg.Config, tail int, follow bool, since, service string) error

func (Client) StopServices

func (c Client) StopServices(ctx context.Context, cfg configpkg.Config, services ...string) error

func (Client) Up

func (c Client) Up(ctx context.Context, cfg configpkg.Config) error

func (Client) UpServices

func (c Client) UpServices(ctx context.Context, cfg configpkg.Config, forceRecreate bool, services ...string) error

Jump to

Keyboard shortcuts

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