Documentation ¶
Index ¶
Constants ¶
View Source
const ( EvictionPlugin = "EvictionPlugin" ReporterPlugin = "ReporterPlugin" QoSResourcePlugin = "QoSResourcePlugin" BaseVersion = "v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func NewRegistrationHandler ¶
func NewRegistrationHandler(pluginType, pluginName string, supportedVersions []string) watcherapi.RegistrationServer
Types ¶
type AgentPluginHandler ¶
type AgentPluginHandler interface { GetHandlerType() string plugincache.PluginHandler }
type RegistrationHandler ¶
type RegistrationHandler struct {
// contains filtered or unexported fields
}
func (*RegistrationHandler) GetInfo ¶
func (handler *RegistrationHandler) GetInfo(ctx context.Context, req *watcherapi.InfoRequest) (*watcherapi.PluginInfo, error)
GetInfo is the RPC which return pluginInfo
func (*RegistrationHandler) NotifyRegistrationStatus ¶
func (handler *RegistrationHandler) NotifyRegistrationStatus(ctx context.Context, status *watcherapi.RegistrationStatus) (*watcherapi.RegistrationStatusResponse, error)
NotifyRegistrationStatus receives the registration notification from watcher
Click to show internal directories.
Click to hide internal directories.