wait

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Package wait implements the wait action handler. Polls a condition until it becomes true or times out.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct{}

Handler implements the wait action handler.

func (*Handler) DryRun

func (h *Handler) DryRun(ctx actions.Context, step *config.Step) error

DryRun logs what the wait action would do.

func (*Handler) Execute

func (h *Handler) Execute(ctx actions.Context, step *config.Step) (actions.Result, error)

Execute executes the wait action.

func (*Handler) Metadata

func (h *Handler) Metadata() actions.ActionMetadata

Metadata returns the action metadata.

func (*Handler) Run

func (h *Handler) Run(ctx actions.Context, step *config.Step) (actions.Result, error)

Run is the Spec 16 entry point. Plan mode reports what `wait` would wait for. For file_exists / file_absent it checks the current filesystem state and reports already-ok if the condition is already met. For other conditions (http, port, git_clean, command) it surfaces a description but doesn't probe — those checks would themselves be side-effecty or expensive in plan mode.

func (*Handler) Validate

func (h *Handler) Validate(step *config.Step) error

Validate validates the wait action configuration.

Jump to

Keyboard shortcuts

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