watcher

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2025 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container added in v0.1.20

type Container struct {
	Container           platforms.IContainer
	Done                bool
	AllowPlatformEvents bool
	ContainerQueue      chan platforms.IContainer      `json:"-"`
	ReadinessChan       chan *readiness.ReadinessState `json:"-"`
	DependencyChan      chan *dependency.State         `json:"-"`
	DeleteC             chan platforms.IContainer      `json:"-"`
	Ctx                 context.Context                `json:"-" `
	Cancel              context.CancelFunc             `json:"-"`
	ReconcileCtx        context.Context                `json:"-" `
	ReconcileCancel     context.CancelFunc             `json:"-"`
	Ticker              *time.Ticker                   `json:"-"`
	Retry               int                            `json:"-"`
	Logger              *zap.Logger
	LogPath             string
	User                *authentication.User `json:"-"`
}

func New added in v0.1.20

func New(containerObj platforms.IContainer, startState string, user *authentication.User) *Container

type Containers

type Containers struct {
	Watchers map[string]*Container
	Lock     *sync.RWMutex
}

func NewWatchers added in v0.1.33

func NewWatchers() *Containers

func (*Containers) AddOrUpdate added in v0.1.20

func (ContainerWatcher *Containers) AddOrUpdate(groupidentifier string, container *Container)

func (*Containers) Drain added in v0.1.42

func (ContainerWatcher *Containers) Drain()

func (*Containers) Find added in v0.1.20

func (ContainerWatcher *Containers) Find(groupidentifier string) *Container

func (*Containers) Remove added in v0.1.20

func (ContainerWatcher *Containers) Remove(groupidentifier string)

Jump to

Keyboard shortcuts

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