package fakes
import "github.com/containernetworking/cni/pkg/invoke/fakes"
Index ¶
- type CNIArgs
- type RawExec
- func (e *RawExec) ExecPlugin(ctx context.Context, pluginPath string, stdinData []byte, environ []string) ([]byte, error)
- func (e *RawExec) FindInPath(plugin string, paths []string) (string, error)
- type VersionDecoder
Types ¶
type CNIArgs ¶
type CNIArgs struct { AsEnvCall struct { Returns struct { Env []string } } }
func (*CNIArgs) AsEnv ¶
type RawExec ¶
type RawExec struct { ExecPluginCall struct { Received struct { PluginPath string StdinData []byte Environ []string } Returns struct { ResultBytes []byte Error error } } FindInPathCall struct { Received struct { Plugin string Paths []string } Returns struct { Path string Error error } } }
func (*RawExec) ExecPlugin ¶
func (e *RawExec) ExecPlugin(ctx context.Context, pluginPath string, stdinData []byte, environ []string) ([]byte, error)
func (*RawExec) FindInPath ¶
type VersionDecoder ¶
type VersionDecoder struct { DecodeCall struct { Received struct { JSONBytes []byte } Returns struct { PluginInfo version.PluginInfo Error error } } }
func (*VersionDecoder) Decode ¶
func (e *VersionDecoder) Decode(jsonData []byte) (version.PluginInfo, error)
Source Files ¶
cni_args.go raw_exec.go version_decoder.go
- Version
- v1.3.0 (latest)
- Published
- Apr 7, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 6 days ago –
Tools for package owners.