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 ¶
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.
Click to show internal directories.
Click to hide internal directories.