hooks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package hooks executes lifecycle hook commands inside Docker containers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

Executor runs lifecycle hooks for services.

func NewExecutor

func NewExecutor(w io.Writer) *Executor

NewExecutor creates a hook executor that writes output to w.

func (*Executor) RunAfterStart

func (e *Executor) RunAfterStart(ctx context.Context, parentService string, actions []config.HookAction) error

RunAfterStart executes hook actions sequentially. Each hook runs `docker compose exec <service> <command>`. parentService is the service whose after_start hooks are being run, used as default target when a hook omits the Service field.

Jump to

Keyboard shortcuts

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