package invoke
import "github.com/containernetworking/cni/pkg/invoke"
Index ¶
- func DelegateAdd(delegatePlugin string, netconf []byte) (*types.Result, error)
- func DelegateDel(delegatePlugin string, netconf []byte) error
- func ExecPluginWithResult(pluginPath string, netconf []byte, args CNIArgs) (*types.Result, error)
- func ExecPluginWithoutResult(pluginPath string, netconf []byte, args CNIArgs) error
- func FindInPath(plugin string, paths []string) (string, error)
- type Args
- type CNIArgs
Functions ¶
func DelegateAdd ¶
func DelegateDel ¶
func ExecPluginWithResult ¶
func ExecPluginWithoutResult ¶
func FindInPath ¶
FindInPath returns the full path of the plugin by searching in the provided path
Types ¶
type Args ¶
type Args struct { Command string ContainerID string NetNS string PluginArgs [][2]string PluginArgsStr string IfName string Path string }
func (*Args) AsEnv ¶
type CNIArgs ¶
type CNIArgs interface { // For use with os/exec; i.e., return nil to inherit the // environment from this process AsEnv() []string }
func ArgsFromEnv ¶
func ArgsFromEnv() CNIArgs
Source Files ¶
args.go delegate.go exec.go find.go
- Version
- v0.3.0
- Published
- Jun 2, 2016
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 5 days ago –
Tools for package owners.