unit

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentName                = "agent"
	APIAdddressUpdaterName   = "api-address-updater"
	APICallerName            = "api-caller"
	APIInfoGateName          = "api-info-gate"
	LeadershipTrackerName    = "leadership-tracker"
	LoggingConfigUpdaterName = "logging-config-updater"
	LogSenderName            = "log-sender"
	MachineLockName          = "machine-lock"
	ProxyConfigUpdaterName   = "proxy-config-updater"
	RsyslogConfigUpdaterName = "rsyslog-config-updater"
	UniterName               = "uniter"
	UpgraderName             = "upgrader"
	MetricSpoolName          = "metric-spool"
	CharmDirName             = "charm-dir"
	MetricCollectName        = "metric-collect"
	MetricSenderName         = "metric-sender"
)

Variables

This section is empty.

Functions

func Manifolds

func Manifolds(config ManifoldsConfig) dependency.Manifolds

Manifolds returns a set of co-configured manifolds covering the various responsibilities of a standalone unit agent. It also accepts the logSource argument because we haven't figured out how to thread all the logging bits through a dependency engine yet.

Thou Shalt Not Use String Literals In This Function. Or Else.

Types

type ManifoldsConfig

type ManifoldsConfig struct {

	// Agent contains the agent that will be wrapped and made available to
	// its dependencies via a dependency.Engine.
	Agent coreagent.Agent

	// LogSource will be read from by the logsender component.
	LogSource logsender.LogRecordCh

	// LeadershipGuarantee controls the behaviour of the leadership tracker.
	LeadershipGuarantee time.Duration
}

ManifoldsConfig allows specialisation of the result of Manifolds.

Jump to

Keyboard shortcuts

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