Versions in this module Expand all Collapse all v1 v1.62.0 Sep 3, 2026 v1.61.0 Sep 1, 2026 Changes in this version type State + func (s State) RunningIn(dir string) bool v1.60.0 Aug 30, 2026 v1.59.0 Aug 29, 2026 Changes in this version + func CompileLogPattern(pattern string) (*regexp.Regexp, error) + func FormatLogs(r io.Reader, w io.Writer, pattern string, context int) error v1.58.0 Aug 27, 2026 v1.57.0 Aug 27, 2026 v1.56.0 Aug 26, 2026 v1.55.0 Aug 25, 2026 v1.54.1 Aug 23, 2026 v1.54.0 Aug 22, 2026 Changes in this version + const ActionsSettingKey + const DefaultIcon + const HostSettingKey + const LinkRulesSettingKey + var IconNames = []string + var LinkSchemes = []string + func ComposeFile(dir string) (string, bool) + func ComposeLogsCommand(host string) string + func EncodeActions(list []Action) string + func EncodeLinkRules(list []LinkRule) string + func ExecCommand(host, container string) string + func IsDefault(list []Action) bool + func IsDefaultLinkRules(list []LinkRule) bool + func LogsCommand(host, container string) string + func NormalizeIcon(name string) string + func Resolve(setting string) string + func SplitCommand(line string) ([]string, error) + func ValidateHost(host string) error + type Action struct + Command string + Confirm bool + ID string + Icon string + Label string + Timeout string + func ActionByID(list []Action, id string) (Action, bool) + func Actions(raw string, set bool) []Action + func DecodeActions(raw string) ([]Action, error) + func DefaultActions() []Action + func PurgeAction(composeProject string) Action + func (a Action) Duration() time.Duration + func (a Action) Resolve(dir, root string) ([]string, time.Duration, error) + type Client struct + func NewClient(host string) (*Client, error) + func (c *Client) Containers(ctx context.Context) ([]Container, error) + func (c *Client) Events(ctx context.Context) (io.ReadCloser, error) + func (c *Client) Host() string + func (c *Client) Ping(ctx context.Context) error + func (c *Client) Restart(ctx context.Context, id string) error + func (c *Client) Start(ctx context.Context, id string) error + func (c *Client) Stop(ctx context.Context, id string) error + type ComposeOptions struct + Action Action + Dir string + Label string + Quiet bool + Root string + type ComposeRecord struct + Action string + Argv []string + Cancelled bool + Dir string + EndedAt time.Time + Exit int + Exited bool + Failure string + Finished bool + ID string + Label string + PID int + Quiet bool + StartedAt time.Time + Timeout time.Duration + type ComposeRun struct + Action string + Dir string + Failed bool + ID string + Label string + Quiet bool + type Container struct + Created int64 + Health string + ID string + Image string + Labels map[string]string + Name string + Ports []Port + Project string + Service string + State string + Status string + WorkingDir string + func (c Container) DisplayName() string + func (c Container) PortsLabel() string + func (c Container) Running() bool + func (c Container) Unwell() bool + type Link struct + Host string + Path string + Port int + Scheme string + func (l Link) Address() string + type LinkMatcher struct + func NewLinkMatcher(rules []LinkRule) LinkMatcher + func (m LinkMatcher) Links(c Container) []Link + func (m LinkMatcher) Routes(labels map[string]string) []Link + type LinkRule struct + Label string + Pattern string + Scheme string + Unless string + func DecodeLinkRules(raw string) ([]LinkRule, error) + func DefaultLinkRules() []LinkRule + func LinkRules(raw string, set bool) []LinkRule + func (r LinkRule) Validate() error + type Port struct + Private int + Proto string + Public int + func (p Port) Label() string + type RunView struct + Action string + Cancelled bool + Command string + Dir string + EndedAt time.Time + Exit int + Exited bool + Failure string + ID string + Project string + Running bool + StartedAt time.Time + type Service struct + func NewService(stateDir string, hostSetting func() string) *Service + func (s *Service) AwaitCompose(id string) + func (s *Service) CLI() bool + func (s *Service) CancelCompose(id string) error + func (s *Service) Client() (*Client, error) + func (s *Service) ComposeBusy(dir string) bool + func (s *Service) ComposeBusyUnder(dir string) bool + func (s *Service) ComposeDeadline(dir string) (deadline time.Time, ok bool) + func (s *Service) ComposeRunByID(id string) (RunView, bool) + func (s *Service) ComposeRunOutput(id string) string + func (s *Service) ComposeRunsForDir(dir string) []RunView + func (s *Service) Kick() + func (s *Service) LastComposeRun(project string) (RunView, bool) + func (s *Service) OnChange(fn func()) + func (s *Service) OnComposeDone(fn func(run ComposeRun, err error, output string)) + func (s *Service) Recover() + func (s *Service) Run(ctx context.Context) + func (s *Service) RunCompose(opts ComposeOptions) (string, error) + func (s *Service) State() State + type Stack struct + Dir string + Label string + Project string + Running int + Total int + type State struct + Available bool + Containers []Container + Host string + func (s State) ForDir(dir string) []Container + func (s State) StacksForDir(dir string) []Stack