watcher

package
v0.0.84 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackOff

type BackOff struct {
	BackOff bool
	Failure int
}

type Gitops

type Gitops struct {
	Gitops      *implementation.Gitops
	Syncing     bool
	Tracking    bool
	BackOff     BackOff
	User        *authentication.User        `json:"-"`
	GitopsQueue chan *implementation.Gitops `json:"-"`
	Ctx         context.Context             `json:"-"`
	Cancel      context.CancelFunc          `json:"-"`
	Ticker      *time.Ticker                `json:"-"`
	Logger      *zap.Logger                 `json:"-"`
}

func (*Gitops) Backoff

func (gitops *Gitops) Backoff() bool

type RepositoryWatcher

type RepositoryWatcher struct {
	Repositories map[string]*Gitops
}

func (*RepositoryWatcher) AddOrUpdate

func (repositorywatcher *RepositoryWatcher) AddOrUpdate(groupidentifier string, gitopsWatcher *Gitops)

func (*RepositoryWatcher) Find

func (repositorywatcher *RepositoryWatcher) Find(groupidentifier string) *Gitops

func (*RepositoryWatcher) Remove

func (repositorywatcher *RepositoryWatcher) Remove(groupidentifier string) bool

Jump to

Keyboard shortcuts

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