internal

package
v0.0.0-...-f2d3d7a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenContainerMgr

func GenContainerMgr(ctx context.Context, d DaemonProvider) (mgr.ContainerMgr, error)

GenContainerMgr generates a ContainerMgr instance according to config cfg.

func GenImageMgr

func GenImageMgr(cfg *config.Config, d DaemonProvider) (mgr.ImageMgr, error)

GenImageMgr generates a ImageMgr instance according to config cfg.

func GenNetworkMgr

func GenNetworkMgr(cfg *config.Config, d DaemonProvider) (mgr.NetworkMgr, error)

GenNetworkMgr generates a NetworkMgr instance according to config cfg.

func GenSystemMgr

func GenSystemMgr(cfg *config.Config, d DaemonProvider) (mgr.SystemMgr, error)

GenSystemMgr generates a SystemMgr instance according to config cfg.

func GenVolumeMgr

func GenVolumeMgr(cfg *config.Config, d DaemonProvider) (mgr.VolumeMgr, error)

GenVolumeMgr generates a VolumeMgr instance according to config cfg.

Types

type DaemonProvider

type DaemonProvider interface {
	Config() *config.Config
	Containerd() ctrd.APIClient
	CtrMgr() mgr.ContainerMgr
	ImgMgr() mgr.ImageMgr
	VolMgr() mgr.VolumeMgr
	NetMgr() mgr.NetworkMgr
	MetaStore() *meta.Store
	ContainerPlugin() plugins.ContainerPlugin
}

DaemonProvider provides resources which are needed by container manager and are from daemon.

Jump to

Keyboard shortcuts

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