local

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlavorLocal

type FlavorLocal struct {
	ServiceLabel servicelabel.Plugin
	StatusCheck  statuscheck.Plugin
	// contains filtered or unexported fields
}

FlavorLocal glues together very minimal subset of cn-infra plugins that can be embeddable inside different project without running any agent specific server.

func (*FlavorLocal) InfraDeps

func (f *FlavorLocal) InfraDeps(pluginName string) *localdeps.PluginInfraDeps

InfraDeps for getting PlugginInfraDeps instance: - config file is preinitialized by pluginName (see config.ForPlugin method) This method is just convenient shortcut for Flavor.Inject()

func (*FlavorLocal) Inject

func (f *FlavorLocal) Inject() bool

Inject does nothing (it is here for potential later extensibility) Composite flavors embedding local flavor are supposed to call this method.

func (*FlavorLocal) LogDeps

func (f *FlavorLocal) LogDeps(pluginName string) *localdeps.PluginLogDeps

LogDeps for getting PlugginLofDeps instance. - pluginName argument value is assigned to Plugin - logger name is pre-initialized (see logging.ForPlugin) This method is just convenient shortcut for Flavor.Inject()

func (*FlavorLocal) LogRegistry

func (f *FlavorLocal) LogRegistry() logging.Registry

LogRegistry for getting Logging Registry instance (not thread safe)

func (*FlavorLocal) LoggerFor

func (f *FlavorLocal) LoggerFor(pluginName string) logging.PluginLogger

LoggerFor for getting PlugginLogger instance: - logger name is pre-initialized (see logging.ForPlugin) This method is just convenient shortcut for Flavor.Inject()

func (*FlavorLocal) Plugins

func (f *FlavorLocal) Plugins() []*core.NamedPlugin

Plugins combines all Plugins in flavor to the list

Jump to

Keyboard shortcuts

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