package pluginwatcher
import "k8s.io/kubernetes/pkg/kubelet/util/pluginwatcher"
Index ¶
- Constants
- func NewExamplePlugin() *examplePlugin
- func NewTestExamplePlugin(endpoint string) *examplePlugin
- type RegisterCallbackFn
- type Watcher
Constants ¶
const ( PluginName = "example-plugin" PluginType = "example-plugin-type" )
Functions ¶
func NewExamplePlugin ¶
func NewExamplePlugin() *examplePlugin
NewExamplePlugin returns an initialized examplePlugin instance
func NewTestExamplePlugin ¶
func NewTestExamplePlugin(endpoint string) *examplePlugin
NewTestExamplePlugin returns an initialized examplePlugin instance for testing
Types ¶
type RegisterCallbackFn ¶
type RegisterCallbackFn func(pluginName string, endpoint string, versions []string, socketPath string) (error, chan bool)
RegisterCallbackFn is the type of the callback function that handlers will provide
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is the plugin watcher
func NewWatcher ¶
NewWatcher provides a new watcher
func (*Watcher) AddHandler ¶
func (w *Watcher) AddHandler(handlerType string, handlerCbkFn RegisterCallbackFn)
AddHandler registers a callback to be invoked for a particular type of plugin
func (*Watcher) Cleanup ¶
Cleanup cleans the path by removing sockets
func (*Watcher) Start ¶
Start watches for the creation of plugin sockets at the path
func (*Watcher) Stop ¶
Stop stops probing the creation of plugin sockets at the path
Source Files ¶
example_plugin.go plugin_watcher.go
Directories ¶
Path | Synopsis |
---|---|
pkg/kubelet/util/pluginwatcher/example_plugin_apis | |
pkg/kubelet/util/pluginwatcher/example_plugin_apis/v1beta1 | Package v1beta1 is a generated protocol buffer package. |
pkg/kubelet/util/pluginwatcher/example_plugin_apis/v1beta2 | Package v1beta2 is a generated protocol buffer package. |
- Version
- v1.11.8
- Published
- Feb 23, 2019
- Platform
- js/wasm
- Imports
- 15 packages
- Last checked
- 7 minutes ago –
Tools for package owners.