Documentation ¶
Overview ¶
Package pluginManager provides dymamic getting mesos slave attributes implements.
Scheduler support for the use of plugins to get mesos slave attributes. It is mainly applicable to the acquisition of dynamic attributes, example for container ip resources, net flow.
The types of plugin are mainly including dynamic, executable. User can implement specific plugin based on their own scenarios.
//mesos slave attribute plugin's names pluginsNames := []string{"ip-resources","net-flow"} pluginer,err := NewPluginManager(pluginsNames) if err != nil { //... return err } //get mesos slave's dynamic attributes attrs,err := pluginer.GetHostAttributes(para) if err != nil { //... return err } //set dynamic attributes to mesos slave //...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginManager ¶
type PluginManager struct {
// contains filtered or unexported fields
}
PluginManager plugin manager
func NewPluginManager ¶
func NewPluginManager(pluginNames []string, pluginDir string) (*PluginManager, error)
NewPluginManager create plugin manager
func (*PluginManager) GetHostAttributes ¶
func (p *PluginManager) GetHostAttributes(para *typesplugin.HostPluginParameter) (map[string]*typesplugin.HostAttributes, error)
GetHostAttributes get mesos slave dynamic attributes
Click to show internal directories.
Click to hide internal directories.