pluginManager

package
v1.20.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 9 Imported by: 0

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

GetHostAttributes get mesos slave dynamic attributes

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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