Wire in net plugin into libpod

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #109
Approved by: mheon
This commit is contained in:
Matthew Heon
2017-11-30 14:25:00 -05:00
committed by Atomic Bot
parent 90d984ef9a
commit 2bc20dd4d2
12 changed files with 1806 additions and 0 deletions

View File

@ -250,6 +250,21 @@ func WithNoPivotRoot(noPivot bool) RuntimeOption {
}
}
// WithCNIDirs sets the CNI configuration and network plugin directories used by
// the CNI network plugins
func WithCNIDirs(cniConfigDir, cniPluginDir string) RuntimeOption {
return func(rt *Runtime) error {
if rt.valid {
return ErrRuntimeFinalized
}
rt.config.CNIConfigDir = cniConfigDir
rt.config.CNIPluginDir = cniPluginDir
return nil
}
}
// Container Creation Options
// WithShmDir sets the directory that should be mounted on /dev/shm