import "istio.io/istio/galley/pkg/config/processing/snapshotter/strategy"
create.go debounce.go immediate.go instance.go scope.go
type Debounce struct {
// contains filtered or unexported fields
}
Debounce is a heuristic model for deciding when to publish snapshots. It tries to detect quiesce points for events with a total bounded wait time.
NewDebounce creates a new debounce strategy with the given values.
NewDebounceWithDefaults creates a new debounce strategy with default values.
OnChange implements Instance
func (d *Debounce) Start(fn OnSnapshotFn)
Start implements Instance
Stop implements Instance
type Immediate struct {
// contains filtered or unexported fields
}
Immediate is a snapshotting strategy for creating snapshots immediately, as events arrive.
NewImmediate returns a new Immediate.
OnChange implements processing.Debounce
func (i *Immediate) Start(handler OnSnapshotFn)
Start implements processing.Debounce
Stop implements processing.Debounce
type Instance interface { Start(fn OnSnapshotFn) OnChange() Stop() }
Instance is a strategy for publishing snapshots. It listens to to the given snapshotters and creates snapshots that get published to the given Distributor.
Create a strategy with the given name.
type OnSnapshotFn func()
OnSnapshotFn is called to indicate that the snapshot
Package strategy imports 6 packages (graph) and is imported by 2 packages. Updated 2020-08-07. Refresh now. Tools for package owners.