Documentation ¶
Index ¶
- func GenContainerMgr(ctx context.Context, d DaemonProvider) (mgr.ContainerMgr, error)
- func GenCriMgr(d DaemonProvider) (mgr.CriMgr, error)
- func GenImageMgr(cfg *config.Config, d DaemonProvider) (mgr.ImageMgr, error)
- func GenNetworkMgr(cfg *config.Config, d DaemonProvider) (mgr.NetworkMgr, error)
- func GenSystemMgr(cfg *config.Config, d DaemonProvider) (mgr.SystemMgr, error)
- func GenVolumeMgr(cfg *config.Config, d DaemonProvider) (mgr.VolumeMgr, error)
- type DaemonProvider
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 GenCriMgr ¶
func GenCriMgr(d DaemonProvider) (mgr.CriMgr, error)
GenCriMgr generates a CriMgr instance.
func GenImageMgr ¶
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 ¶
GenSystemMgr generates a SystemMgr instance according to config cfg.
func GenVolumeMgr ¶
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.
Click to show internal directories.
Click to hide internal directories.