Documentation ¶
Overview ¶
Package plugin provides the plugin side of the plugin mechanism. Individual plugins have to implement the provider interface, pass it to a new plugin instance, and call run.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements a convenient helper to map the request to the given provider and return the response.
type Provider ¶
type Provider interface {
UserData(log *zap.SugaredLogger, req plugin.UserDataRequest) (string, error)
}
Provider defines the interface each plugin has to implement for the retrieval of the userdata based on the given arguments.
Click to show internal directories.
Click to hide internal directories.