Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCredentials ¶
func AddCredentials(name string, f InitCredentials)
func AddSource ¶
func AddSource(name string, f InitSource)
Types ¶
type Credentials ¶
type InitCredentials ¶
type InitCredentials func(cred Session) Credentials
InitCredentials returns a partially initialised instance of Plugin. If configured with "from", the parent credentials are passed as an argument.
func GetCredentials ¶
func GetCredentials(name string) (InitCredentials, error)
type InitSource ¶
func GetSource ¶
func GetSource(name string) (InitSource, error)
type Initializer ¶
type Initializer interface {
Init() error
}
Initializer, when implemented by a plugin, is invoked once after reading its configuration.
type Source ¶
Plugin is something that can collect metrics. It should submit the metrics to the channel provided, which the source should not close. A source returns once all of its metrics have been collected.
A source may be long-lived, and partake in several executions with significant time-spacing.
Click to show internal directories.
Click to hide internal directories.