daemon

package
v0.0.0-...-e08f4f0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	Config config.DaemonConfig
	Log    *zap.SugaredLogger
}

Daemon The Polyhedron daemon.

func Create

func Create(config config.DaemonConfig) Daemon

Create Create a new daemon instance.

func (*Daemon) CreateMonitor

func (d *Daemon) CreateMonitor(container string) Monitor

CreateMonitor Create a new monitor for the target container.

func (*Daemon) Start

func (d *Daemon) Start()

Start Start this deamon instance.

type Monitor

type Monitor struct {
	Daemon    *Daemon
	Container string
	Destroyed bool
}

Monitor Structure for ensuring containers are alive.

func (*Monitor) Start

func (m *Monitor) Start()

Start Start this monitor.

Jump to

Keyboard shortcuts

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