daemon

package
v0.0.0-...-bc5839e Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 29 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 {
	// contains filtered or unexported fields
}

Daemon refers to a daemon.

func NewDaemon

func NewDaemon(cfg *config.Config) *Daemon

NewDaemon constructs a brand new server.

func (*Daemon) Config

func (d *Daemon) Config() *config.Config

Config gets config of daemon.

func (*Daemon) ContainerPlugin

func (d *Daemon) ContainerPlugin() hookplugins.ContainerPlugin

ContainerPlugin returns the container plugin fetched from shared file

func (*Daemon) Containerd

func (d *Daemon) Containerd() ctrd.APIClient

Containerd gets containerd client.

func (*Daemon) CtrMgr

func (d *Daemon) CtrMgr() mgr.ContainerMgr

CtrMgr gets manager of container.

func (*Daemon) EventsService

func (d *Daemon) EventsService() *events.Events

EventsService gets Events instance

func (*Daemon) ImagePlugin

func (d *Daemon) ImagePlugin() hookplugins.ImagePlugin

ImagePlugin returns the container plugin fetched from shared file

func (*Daemon) ImgMgr

func (d *Daemon) ImgMgr() mgr.ImageMgr

ImgMgr gets manager of image.

func (*Daemon) MetaStore

func (d *Daemon) MetaStore() *meta.Store

MetaStore gets store of meta.

func (*Daemon) NetMgr

func (d *Daemon) NetMgr() mgr.NetworkMgr

NetMgr gets manager of network.

func (*Daemon) Run

func (d *Daemon) Run() error

Run starts daemon.

func (*Daemon) Shutdown

func (d *Daemon) Shutdown() error

Shutdown stops daemon.

func (*Daemon) ShutdownPlugin

func (d *Daemon) ShutdownPlugin() error

ShutdownPlugin invoke pre-stop method in daemon plugin if exist

func (*Daemon) VolMgr

func (d *Daemon) VolMgr() mgr.VolumeMgr

VolMgr gets manager of volume.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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