Versions in this module Expand all Collapse all v0 v0.28.0 Feb 3, 2024 Changes in this version + var PublicKey = "" + func ChoriaPlugin() *plugin.WatcherPlugin + func New(machine model.Machine, name string, states []string, failEvent string, ...) (any, error) + type ManagedPlugin struct + ArchiveChecksum string + ContentChecksumsChecksum string + Governor string + Interval string + Matcher string + Name string + NamePrefix string + Password string + Source string + Target string + Username string + type Properties struct + DataItem string + Directory string + ManagerMachinePrefix string + PluginManageInterval time.Duration + PublicKey string + PurgeUnknown bool + type Specification struct + Plugins string + Signature string + func (s *Specification) Encode(key string) ([]byte, error) + func (s *Specification) VerifySignature(key ed25519.PublicKey) (bool, error) + type State int + const Error + const Skipped + const Unchanged + const Unknown + const Updated + type StateNotification struct + PreviousManagedPlugins []string + PreviousOutcome string + PreviousRunTime int64 + func (s *StateNotification) CloudEvent() cloudevents.Event + func (s *StateNotification) JSON() ([]byte, error) + func (s *StateNotification) String() string + type Watcher struct + func (w *Watcher) CurrentState() any + func (w *Watcher) Run(ctx context.Context, wg *sync.WaitGroup)