Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
Ui cli.Ui
ShutdownCh <-chan struct{}
// contains filtered or unexported fields
}
Command ...
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core ...
func (*Core) DeregisterEventHandler ¶
func (a *Core) DeregisterEventHandler(eh EventHandler)
DeregisterEventHandler removes an EventHandler and prevents more invocations
func (*Core) ID ¶
ID returns the first 6 characters of base64 encoded public key to be used as agent ID
func (*Core) RegisterEventHandler ¶
func (a *Core) RegisterEventHandler(eh EventHandler)
RegisterEventHandler adds an event handler to receive event notifications
type EventFilter ¶
EventFilter ...
func ParseEventFilter ¶
func ParseEventFilter(v string) []EventFilter
ParseEventFilter a string with the event type filters and parses it into a series of EventFilters if it can.
func (*EventFilter) Valid ¶
func (s *EventFilter) Valid() bool
Valid checks if this is a valid agent event script.
type EventHandler ¶
EventHandler is a handler that does things when events happen.
Click to show internal directories.
Click to hide internal directories.