Documentation ¶
Index ¶
- Constants
- Variables
- func GetIpsByOnField(on string, context Context, phase Phase) (ipList []string, err error)
- func NotInEffect(effect v1.TaintEffect, effects []v1.TaintEffect) bool
- func Register(name string, factory Interface)
- type ClusterChecker
- type Context
- type EtcdBackupPlugin
- type HostnamePlugin
- type Interface
- type InvalidPluginTypeError
- type LabelsNodes
- type Phase
- type Plugins
- type PluginsProcessor
- type Sheller
- type Taint
- type TaintList
Constants ¶
View Source
const ( PhasePreInit = Phase("PreInit") PhasePreJoin = Phase("PreJoin") PhasePostJoin = Phase("PostJoin") PhasePreInstall = Phase("PreInstall") PhasePostInstall = Phase("PostInstall") PhaseOriginally = Phase("Originally") PhasePreGuest = Phase("PreGuest") PhasePreClean = Phase("PreClean") PhasePostClean = Phase("PostClean") )
View Source
const ( // Plugin used for golang so file to find the related symbol Plugin = "Plugin" PluginType = "PluginType" EtcdPlugin = "ETCD" LabelPlugin = "LABEL" ShellPlugin = "SHELL" TaintPlugin = "TAINT" HostNamePlugin = "HOSTNAME" ClusterCheckPlugin = "CLUSTERCHECK" )
View Source
const ( ClusterNotReady = "ClusterNotReady" ClusterReady = "ClusterReady" )
View Source
const ( DelSymbol = "-" EqualSymbol = "=" ColonSymbol = ":" SplitSymbol = "|" )
Variables ¶
View Source
var TaintEffectValues = []v1.TaintEffect{v1.TaintEffectNoSchedule, v1.TaintEffectNoExecute, v1.TaintEffectPreferNoSchedule}
Functions ¶
func GetIpsByOnField ¶ added in v0.7.1
func NotInEffect ¶ added in v0.7.1
func NotInEffect(effect v1.TaintEffect, effects []v1.TaintEffect) bool
Types ¶
type ClusterChecker ¶
type ClusterChecker struct {
// contains filtered or unexported fields
}
type EtcdBackupPlugin ¶
type EtcdBackupPlugin struct { }
type HostnamePlugin ¶
type HostnamePlugin struct {
// contains filtered or unexported fields
}
type Interface ¶
func NewClusterCheckerPlugin ¶
func NewClusterCheckerPlugin() Interface
func NewEtcdBackupPlugin ¶
func NewEtcdBackupPlugin() Interface
func NewHostnamePlugin ¶
func NewHostnamePlugin() Interface
func NewLabelsPlugin ¶
func NewLabelsPlugin() Interface
func NewShellPlugin ¶
func NewShellPlugin() Interface
func NewTaintPlugin ¶ added in v0.7.1
func NewTaintPlugin() Interface
type InvalidPluginTypeError ¶
type InvalidPluginTypeError struct {
Name string
}
func (InvalidPluginTypeError) Error ¶
func (err InvalidPluginTypeError) Error() string
type LabelsNodes ¶
type LabelsNodes struct {
// contains filtered or unexported fields
}
type PluginsProcessor ¶
PluginsProcessor : process two list: plugin config list and embed pluginFactories that contains plugin interface.
func (*PluginsProcessor) Load ¶
func (c *PluginsProcessor) Load() error
Load plugin configs and shared object(.so) file from $mountRootfs/plugins dir.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.