watcher

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

func New added in v0.1.8

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

type Containers added in v0.1.8

type Containers struct {
	Watchers map[string]*Container
}

func (*Containers) AddOrUpdate added in v0.1.8

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

func (*Containers) Find added in v0.1.8

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

func (*Containers) Remove added in v0.1.8

func (ContainerWatcher *Containers) Remove(groupidentifier string)

Jump to

Keyboard shortcuts

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