package testing
import "github.com/containerd/cri/pkg/server/testing"
Index ¶
- type FakeCNIPlugin
- func NewFakeCNIPlugin() *FakeCNIPlugin
- func (f *FakeCNIPlugin) Load(opts ...cni.LoadOption) error
- func (f *FakeCNIPlugin) Remove(id, path string, opts ...cni.NamespaceOpts) error
- func (f *FakeCNIPlugin) Setup(id, path string, opts ...cni.NamespaceOpts) (*cni.CNIResult, error)
- func (f *FakeCNIPlugin) Status() error
Types ¶
type FakeCNIPlugin ¶
type FakeCNIPlugin struct{}
FakeCNIPlugin is a fake plugin used for test.
func NewFakeCNIPlugin ¶
func NewFakeCNIPlugin() *FakeCNIPlugin
NewFakeCNIPlugin create a FakeCNIPlugin.
func (*FakeCNIPlugin) Load ¶
func (f *FakeCNIPlugin) Load(opts ...cni.LoadOption) error
Load loads the network config.
func (*FakeCNIPlugin) Remove ¶
func (f *FakeCNIPlugin) Remove(id, path string, opts ...cni.NamespaceOpts) error
Remove teardown the network of PodSandbox.
func (*FakeCNIPlugin) Setup ¶
func (f *FakeCNIPlugin) Setup(id, path string, opts ...cni.NamespaceOpts) (*cni.CNIResult, error)
Setup setups the network of PodSandbox.
func (*FakeCNIPlugin) Status ¶
func (f *FakeCNIPlugin) Status() error
Status get the status of the plugin.
Source Files ¶
- Version
- v1.0.0-rc.0
- Published
- Mar 26, 2018
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 4 hours ago –
Tools for package owners.