Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewContainerManager = func(forType instance.ContainerType, conf container.ManagerConfig) (container.Manager, error) { switch forType { case instance.LXD: svr, err := lxd.MaybeNewLocalServer() if err != nil { return nil, errors.Annotate(err, "creating LXD container manager") } return lxd.NewContainerManager(conf, svr) case instance.KVM: return kvm.NewContainerManager(conf) } return nil, errors.Errorf("unknown container type: %q", forType) }
NewContainerManager creates the appropriate container.Manager for the specified container type.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.