{"modulePath":"github.com/dockerstack/kubernetes","version":"v0.20.1-0.20150627061651-1c0b765df6da","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package exec\n\nPackage exec scans and loads networking plugins that are installed under /usr/libexec/kubernetes/kubelet-plugins/net/exec/ The layout convention for a plugin is:\n\n\tplugin-name/            (plugins have to be directories first)\n\tplugin-name/plugin-name (executable that will be called out, see Vendoring Note for more nuances)\n\tplugin-name/\u003cother-files\u003e\n\twhere, 'executable' has the following requirements:\n\t  - should have exec permissions\n\t  - should give non-zero exit code on failure, and zero on sucess\n\t  - the arguments will be \u003caction\u003e \u003cpod_namespace\u003e \u003cpod_name\u003e \u003cdocker_id_of_infra_container\u003e\n\t    whereupon, \u003caction\u003e will be one of:\n\t      - init, called when the kubelet loads the plugin\n\t      - setup, called after the infra container of a pod is\n\t             created, but before other containers of the pod are created\n\t      - teardown, called before the pod infra container is killed\n\nAs the executables are called, the file-descriptors stdin, stdout, stderr remain open. The combined output of stdout/stderr is captured and logged.\n\nNote: If the pod infra container self-terminates (e.g. crashes or is killed), the entire pod lifecycle will be restarted, but teardown will not be called.\n\nVendoring Note:\n\n\tPlugin Names can be vendored also. Use '~' as the escaped name for plugin directories.\n\tAnd expect command line argument to call vendored plugins as 'vendor/pluginName'\n\te.g. pluginName = mysdn\n\t     vendorname = mycompany\n\tthen, plugin layout should be\n\t     mycompany~mysdn/\n\t     mycompany~mysdn/mysdn (this becomes the executable)\n\t     mycompany~mysdn/\u003cother-files\u003e\n\tand, call the kubelet with '--network-plugin=mycompany/mysdn'\n\n## Constants\n\n```go\nconst X_OK = 0x1\n```\n\n## Functions\n\n```go\nfunc ProbeNetworkPlugins() []network.NetworkPlugin\n```\n\n","path":"github.com/dockerstack/kubernetes/pkg/kubelet/network/exec","name":"exec","synopsis":"Package exec scans and loads networking plugins that are installed under /usr/libexec/kubernetes/kubelet-plugins/net/exec/ The layout convention for a plugin is: plugin-name/ (plugins have to be directories first) plugin-name/plugin-name (executable that will be called out, see Vendoring Note for more nuances) plugin-name/\u003cother-files\u003e where, 'executable' has the following requirements: - should have exec permissions - should give non-zero exit code on failure, and zero on sucess - the arguments will be \u003caction\u003e \u003cpod_namespace\u003e \u003cpod_name\u003e \u003cdocker_id_of_infra_container\u003e whereupon, \u003caction\u003e will be one of: - init, called when the kubelet loads the plugin - setup, called after the infra container of a pod is created, but before other containers of the pod are created - teardown, called before the pod infra container is killed As the executables are called, the file-descriptors stdin, stdout, stderr remain open.","isRedistributable":true}
