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 Containers

type Containers struct {
	Definition      v1.ContainersDefinition
	Syncing         bool
	Tracking        bool
	ContainersQueue chan string          `json:"-"`
	User            *authentication.User `json:"-"`
	Ctx             context.Context      `json:"-"`
	Cancel          context.CancelFunc   `json:"-"`
	Ticker          *time.Ticker         `json:"-"`
	Logger          *zap.Logger
}

type ContainersWatcher

type ContainersWatcher struct {
	Containers map[string]*Containers
}

func (*ContainersWatcher) AddOrUpdate

func (ContainersWatcher *ContainersWatcher) AddOrUpdate(groupidentifier string, container *Containers)

func (*ContainersWatcher) Find

func (ContainersWatcher *ContainersWatcher) Find(groupidentifier string) *Containers

func (*ContainersWatcher) Remove

func (ContainersWatcher *ContainersWatcher) Remove(groupidentifier string) bool

Jump to

Keyboard shortcuts

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