Documentation ¶
Overview ¶
Package bundle implements bundle downloading.
Index ¶
Constants ¶
const Name = "bundle"
Name identifies the plugin on manager.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements bundle activation.
func (*Plugin) Reconfigure ¶ added in v0.10.2
Reconfigure notifies the plugin that it's configuration has changed.
func (*Plugin) Register ¶
Register a listener to receive status updates. The name must be comparable.
func (*Plugin) Start ¶
Start runs the plugin. The plugin will periodically try to download bundles from the configured service. When a new bundle is downloaded, the data and policies are extracted and inserted into storage.
func (*Plugin) Unregister ¶
func (p *Plugin) Unregister(name interface{})
Unregister a listener to stop receiving status updates.
type Status ¶
type Status struct { Name string `json:"name"` ActiveRevision string `json:"active_revision,omitempty"` LastSuccessfulActivation time.Time `json:"last_successful_activation,omitempty"` LastSuccessfulDownload time.Time `json:"last_successful_download,omitempty"` Code string `json:"code,omitempty"` Message string `json:"message,omitempty"` Errors []error `json:"errors,omitempty"` }
Status represents the status of processing a bundle.
func (*Status) SetActivateSuccess ¶ added in v0.10.2
SetActivateSuccess updates the status object to reflect a successful activation.
func (*Status) SetDownloadSuccess ¶ added in v0.10.2
func (s *Status) SetDownloadSuccess()
SetDownloadSuccess updates the status object to reflect a successful download.