daemon

package
v0.0.0-...-1b9e8c6 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DaemonLog     = "/tmp/pouchd.log"
	PouchdBin     = "pouchd"
	HomeDir       = "/tmp/test/pouch"
	Listen        = "unix:///tmp/test/pouch/pouchd.sock"
	ContainerdAdd = "/tmp/test/pouch/containerd.sock"
	ListenCRI     = "unix:///tmp/test/pouch/pouchcri.sock"
)

For pouch deamon test, we launched another pouch daemon.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogPath string
	LogFile *os.File

	// Daemon startup arguments.
	Args []string

	// pouchd binary location
	Bin string

	Listen  []string
	HomeDir string

	ContainerdAddr string

	ListenCri string
	// pid of pouchd
	Pid int
}

Config is the configuration of pouch daemon.

var DConfig Config

DConfig is the global variable used to pouch daemon test.

func NewConfig

func NewConfig() Config

NewConfig initialize the DConfig with default value.

func (*Config) DumpLog

func (d *Config) DumpLog()

DumpLog prints the daemon log

func (*Config) IsDaemonUp

func (d *Config) IsDaemonUp() bool

IsDaemonUp checks if the pouchd is launched.

func (*Config) KillDaemon

func (d *Config) KillDaemon()

KillDaemon kill pouchd.

func (*Config) StartDaemon

func (d *Config) StartDaemon() error

StartDaemon starts pouchd

Jump to

Keyboard shortcuts

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