daemon

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

func New

func New(buffer int) *Daemon

func (*Daemon) EventsEmitter

func (d *Daemon) EventsEmitter() events.Emitter

func (*Daemon) Start

func (d *Daemon) Start(ctx context.Context) error

type MagosAnnotation

type MagosAnnotation struct {
	File   string
	Line   int
	Image  string
	Policy string
}

type RepoManager

type RepoManager struct {
	CleanURL string
	Path     string
}

func NewRepoManager

func NewRepoManager() *RepoManager

func (*RepoManager) BuildReconcilePaths

func (r *RepoManager) BuildReconcilePaths(annos []MagosAnnotation) []watcher.Target

func (*RepoManager) BuildTargets

func (r *RepoManager) BuildTargets(annos []MagosAnnotation) []watcher.Target

func (*RepoManager) CommitAndPush

func (r *RepoManager) CommitAndPush(absPath string, preferPR bool) error

func (*RepoManager) ParseMagosAnnotations

func (r *RepoManager) ParseMagosAnnotations() ([]MagosAnnotation, error)

func (*RepoManager) Sync

func (r *RepoManager) Sync() error

func (*RepoManager) SyncFresh

func (r *RepoManager) SyncFresh() error

func (*RepoManager) UpdateImage

func (r *RepoManager) UpdateImage(filePath, newRef, newDigest string, policy string) (bool, error)

Jump to

Keyboard shortcuts

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