package
1.33.0-alpha.2
Repository: https://github.com/kubernetes/kubernetes.git
Documentation: pkg.go.dev
# Functions
NewActualStateOfWorld returns a new instance of ActualStateOfWorld.
NewDesiredStateOfWorld returns a new instance of DesiredStateOfWorld.
# Structs
PluginInfo holds information of a plugin.
# Interfaces
ActualStateOfWorld defines a set of thread-safe operations for the kubelet plugin manager's actual state of the world cache.
DesiredStateOfWorld defines a set of thread-safe operations for the kubelet plugin manager's desired state of the world cache.
PluginHandler is an interface a client of the pluginwatcher API needs to implement in order to consume plugins The PluginHandler follows the simple following state machine:
+--------------------------------------+ | ReRegistration | | Socket created with same plugin name | | | | | Socket Created v + Socket Deleted +------------------> Validate +---------------------------> Register +------------------> DeRegister + + + | | | | Error | Error | | | | v v v Out Out Out
The pluginwatcher module follows strictly and sequentially this state machine for each *plugin name*.