watcher

package
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 8 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:"-" `
	Cancel         context.CancelFunc             `json:"-"`
	Ticker         *time.Ticker                   `json:"-"`
	Logger         *zap.Logger
	User           *authentication.User `json:"-"`
}

type ContainerWatcher

type ContainerWatcher struct {
	Container    map[string]*Container
	EventChannel chan *types.Events
}

func (*ContainerWatcher) AddOrUpdate

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

func (*ContainerWatcher) Find

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

func (*ContainerWatcher) Remove

func (ContainerWatcher *ContainerWatcher) Remove(groupidentifier string)

Jump to

Keyboard shortcuts

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