plugins

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceManagerCallbackPlugin

func GetResourceManagerCallbackPlugin() api.ResourceManagerCallback

GetResourceManagerCallbackPlugin returns the registered callback plugin or nil if none was registered.

func GetStateDumpPlugin added in v1.2.0

func GetStateDumpPlugin() api.StateDumpPlugin

GetStateDumpPlugin returns the registered state dump plugin or nil if none was registered.

func RegisterSchedulerPlugin

func RegisterSchedulerPlugin(plugin interface{})

RegisterSchedulerPlugin registers the plugin based on the interfaces(s) it implements. The known interfaces are defined in yunikorn-scheduler-interface/lib/go/api

func UnregisterSchedulerPlugins added in v1.3.0

func UnregisterSchedulerPlugins()

UnregisterSchedulerPlugins removes all earlier set plugins visible for testing only

Types

type SchedulerPlugins

type SchedulerPlugins struct {
	ResourceManagerCallbackPlugin api.ResourceManagerCallback
	StateDumpPlugin               api.StateDumpPlugin

	locking.RWMutex
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL