# Functions
CacheExpiration is the PluginControlOpt which sets the global metric cache TTL.
get the default snapd configuration.
MaxRunningPlugins sets the maximum number of plugins to run per pool.
MonitorDurationOption sets monitor's duration to v.
New returns a new pluginControl instance.
NewMTTrie returns an empty trie.
NewPluginConfigItem returns a *pluginConfigItem.
NewPluginsConfig returns a map of *pluginConfigItems where the key is the plugin name.
OptSetConfig sets the plugin control configuration.
OptSetPluginConfig sets the config on the plugin manager.
# Constants
No description provided by the author
DefaultClientTimeout - default timeout for a client connection attempt.
DefaultHealthCheckFailureLimit - how any consecutive health check timeouts must occur to trigger a failure.
DefaultHealthCheckTimeout - default timeout for a health check.
DefaultMonitorDuration - the default monitor duration.
DetectedState is the detected state of a plugin.
HandlerRegistrationName is the registered name of the control runner.
LoadedState is the loaded state of a plugin.
LoadingState is the loading state of a plugin.
MaximumRestartOnDeadPluginEvent is the maximum count of restarting a plugin after the event of control_event.DeadAvailablePluginEvent.
MonitorStarted - enum representation of monitor started state.
default is stopped.
PluginDisabled is the disabled state of a plugin.
Default value (0) is Running.
PluginStopped is the stopped state of a plugin.
PluginTrustDisabled - enum representing plugin trust disabled.
PluginTrustEnabled - enum representing plugin trust enabled.
PluginTrustWarn - enum representing plugin trust warning.
UnloadedState is the unloaded state of a plugin.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
ErrControllerNotStarted - error message when the Controller was not started.
ErrLoadedPluginNotFound - error message when a loaded plugin is not found.
ErrNotFound is returned when Get cannot find the given namespace.
ErrPluginAlreadyLoaded - error message when a plugin is already loaded.
ErrPluginNotFound - error message when a plugin is not found.
ErrPluginNotInLoadedState - error message when a plugin must ne in a loaded state.
No description provided by the author
ErrSubscriptionGroupAlreadyExists - error message when the subscription group already exists.
ErrSubscriptionGroupDoesNotExist - error message when the subscription group does not exist.
No description provided by the author
# Structs
holds the configuration passed in through the SNAP config file Note: if this struct is modified, then the switch statement in the UnmarshalJSON method in this same file needs to be modified to match the field mapping that is defined here.
No description provided by the author
MTTrie struct representing the root in the trie.
# Interfaces
ManagesSubscriptionGroups is the interface implemented by an object that can manage subscription groups.
# Type aliases
PluginControlOpt is used to set optional parameters on the pluginControl struct.