progress

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToModelEvents

func ToModelEvents(runID string, project string, events []Event) []model.Event

ToModelEvents converts progress events into model.Events.

Types

type Event

type Event struct {
	Kind      string // pull_start|pull_complete|pull_error|build_step|build_cache|build_error|context_transfer|arch_mismatch|auth_error|manifest_missing
	Image     string
	Service   string
	Step      string
	Message   string
	CacheHit  bool
	Timestamp time.Time
}

Event is a parsed build/pull progress signal before model conversion.

func ParseLines

func ParseLines(lines []string, now time.Time) []Event

ParseLines extracts build/pull events from Compose/BuildKit-like progress text.

func ParseReader

func ParseReader(r interface{ Read([]byte) (int, error) }, now time.Time) ([]Event, error)

ParseReader scans an entire progress log.

Jump to

Keyboard shortcuts

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