Documentation ¶
Index ¶
- type FakeCNIPlugin
- func (f *FakeCNIPlugin) GetConfig() *cni.ConfigResult
- func (f *FakeCNIPlugin) Load(opts ...cni.CNIOpt) error
- func (f *FakeCNIPlugin) Remove(ctx context.Context, id, path string, opts ...cni.NamespaceOpts) error
- func (f *FakeCNIPlugin) Setup(ctx context.Context, id, path string, opts ...cni.NamespaceOpts) (*cni.CNIResult, error)
- func (f *FakeCNIPlugin) Status() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCNIPlugin ¶
FakeCNIPlugin is a fake plugin used for test.
func NewFakeCNIPlugin ¶
func NewFakeCNIPlugin() *FakeCNIPlugin
NewFakeCNIPlugin create a FakeCNIPlugin.
func (*FakeCNIPlugin) GetConfig ¶ added in v1.19.0
func (f *FakeCNIPlugin) GetConfig() *cni.ConfigResult
GetConfig returns a copy of the CNI plugin configurations as parsed by CNI
func (*FakeCNIPlugin) Load ¶ added in v1.0.0
func (f *FakeCNIPlugin) Load(opts ...cni.CNIOpt) error
Load loads the network config.
func (*FakeCNIPlugin) Remove ¶ added in v1.0.0
func (f *FakeCNIPlugin) Remove(ctx context.Context, id, path string, opts ...cni.NamespaceOpts) error
Remove teardown the network of PodSandbox.
func (*FakeCNIPlugin) Setup ¶ added in v1.0.0
func (f *FakeCNIPlugin) Setup(ctx context.Context, 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.
Click to show internal directories.
Click to hide internal directories.