Documentation
¶
Index ¶
- func CheckImpact(triggerList []*triggers.Trigger) (highImpact, reboot bool)
- func MatchTriggersInUpdate(request sub.UpdateRequest) []*triggers.Trigger
- func Update(request sub.UpdateRequest, rootDirectoryName string, objectsDir string, ...) (bool, time.Duration, error)
- func UpdateWithOptions(request sub.UpdateRequest, options UpdateOptions) (bool, time.Duration, error)
- type DisruptionCancelor
- type DisruptionRequestor
- type TriggersRunner
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckImpact ¶ added in v0.8.0
CheckImpact will return whether any trigger has high impact or will reboot.
func MatchTriggersInUpdate ¶ added in v0.4.0
func MatchTriggersInUpdate(request sub.UpdateRequest) []*triggers.Trigger
MatchTriggersInUpdate will return a list of triggers in an update request that match the list of changes. Since there is no file-system to compare to, potential mtime-only changes will also match.
func Update ¶
func Update(request sub.UpdateRequest, rootDirectoryName string, objectsDir string, oldTriggers *triggers.Triggers, skipFilter *filter.Filter, triggersRunner TriggersRunner, logger log.Logger) ( bool, time.Duration, error)
Update is deprecated. Use UpdateWithOptions instead.
func UpdateWithOptions ¶ added in v0.3.2
func UpdateWithOptions(request sub.UpdateRequest, options UpdateOptions) ( bool, time.Duration, error)
UpdateWithOptions will process an update request, modifying the local file-system and running triggers.
Types ¶
type DisruptionCancelor ¶ added in v0.3.2
type DisruptionCancelor func()
type DisruptionRequestor ¶ added in v0.3.2
type DisruptionRequestor func() sub.DisruptionState
type TriggersRunner ¶
type UpdateOptions ¶ added in v0.3.2
type UpdateOptions struct {
DisruptionCancel DisruptionCancelor
DisruptionRequest DisruptionRequestor
Logger log.Logger
ObjectsDir string
OldTriggers *triggers.Triggers
RootDirectoryName string
RunTriggers TriggersRunner
SkipFilter *filter.Filter
}
Click to show internal directories.
Click to hide internal directories.