watcher

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Watcher WatcherConfig
}

type GHCR

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

func NewGHCR

func NewGHCR() *GHCR

func (*GHCR) HeadDigest

func (g *GHCR) HeadDigest(ctx context.Context, repo, ref, etag, policy string) (string, string, string, bool, error)

func (*GHCR) ListTags

func (g *GHCR) ListTags(ctx context.Context, repo string) ([]string, error)

type ImageRef

type ImageRef struct {
	Registry string
	Owner    string
	Name     string
	Tag      string
}

type Target

type Target struct {
	Name     string   // logical name (service or file reference)
	Image    ImageRef // parsed reference
	Policy   string   // "semver", "latest", "digest", "manual"
	Interval int      // optional: poll interval in seconds (could default)
}

type Watcher

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

func New

func New(targets []Target, em events.Emitter) *Watcher

func (*Watcher) Start

func (w *Watcher) Start(ctx context.Context, st *state.File) error

type WatcherConfig

type WatcherConfig struct {
	Registry     string
	DefaultTag   string
	PollInterval time.Duration
	Targets      []Target
}

Jump to

Keyboard shortcuts

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