package pluginwatcher
import "k8s.io/kubernetes/pkg/kubelet/pluginmanager/pluginwatcher"
Index ¶
- func GetPluginInfo(plugin *examplePlugin, foundInDeprecatedDir bool) cache.PluginInfo
- func NewExampleHandler(supportedVersions []string, permitDeprecatedDir bool) *exampleHandler
- func NewExamplePlugin() *examplePlugin
- func NewTestExamplePlugin(pluginName string, pluginType string, endpoint string, advertisedVersions ...string) *examplePlugin
- type Watcher
Functions ¶
func GetPluginInfo ¶
func GetPluginInfo(plugin *examplePlugin, foundInDeprecatedDir bool) cache.PluginInfo
GetPluginInfo returns a PluginInfo object
func NewExampleHandler ¶
NewExampleHandler provide a example handler
func NewExamplePlugin ¶
func NewExamplePlugin() *examplePlugin
NewExamplePlugin returns an initialized examplePlugin instance
func NewTestExamplePlugin ¶
func NewTestExamplePlugin(pluginName string, pluginType string, endpoint string, advertisedVersions ...string) *examplePlugin
NewTestExamplePlugin returns an initialized examplePlugin instance for testing
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is the plugin watcher
func NewWatcher ¶
func NewWatcher(sockDir string, deprecatedSockDir string, desiredStateOfWorld cache.DesiredStateOfWorld) *Watcher
NewWatcher provides a new watcher deprecatedSockDir refers to a pre-GA directory that was used by older plugins for socket registration. New plugins should not use this directory.
func (*Watcher) Start ¶
Start watches for the creation and deletion of plugin sockets at the path
Source Files ¶
example_handler.go example_plugin.go plugin_watcher.go
Directories ¶
- Version
- v1.16.9-beta.0
- Published
- Mar 12, 2020
- Platform
- js/wasm
- Imports
- 20 packages
- Last checked
- 5 minutes ago –
Tools for package owners.