Documentation ¶
Index ¶
- func NewTranslatorEventLoop(emitter TranslatorEmitter, syncer TranslatorSyncer) eventloop.EventLoop
- func NewTranslatorSimpleEventLoop(emitter TranslatorSimpleEmitter, syncers ...TranslatorSyncer) eventloop.SimpleEventLoop
- type TranslatorEmitter
- type TranslatorSimpleEmitter
- type TranslatorSnapshot
- type TranslatorSnapshotStringer
- type TranslatorSyncDeciderdeprecated
- type TranslatorSyncDeciderWithContext
- type TranslatorSyncer
- type TranslatorSyncers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTranslatorEventLoop ¶
func NewTranslatorEventLoop(emitter TranslatorEmitter, syncer TranslatorSyncer) eventloop.EventLoop
func NewTranslatorSimpleEventLoop ¶ added in v0.13.21
func NewTranslatorSimpleEventLoop(emitter TranslatorSimpleEmitter, syncers ...TranslatorSyncer) eventloop.SimpleEventLoop
Types ¶
type TranslatorEmitter ¶
type TranslatorEmitter interface { Register() error Secret() gloo_solo_io.SecretClient ClusterIngress() github_com_solo_io_gloo_projects_clusteringress_pkg_api_external_knative.ClusterIngressClient Snapshots(watchNamespaces []string, opts clients.WatchOpts) (<-chan *TranslatorSnapshot, <-chan error, error) }
func NewTranslatorEmitter ¶
func NewTranslatorEmitter(secretClient gloo_solo_io.SecretClient, clusterIngressClient github_com_solo_io_gloo_projects_clusteringress_pkg_api_external_knative.ClusterIngressClient) TranslatorEmitter
func NewTranslatorEmitterWithEmit ¶
func NewTranslatorEmitterWithEmit(secretClient gloo_solo_io.SecretClient, clusterIngressClient github_com_solo_io_gloo_projects_clusteringress_pkg_api_external_knative.ClusterIngressClient, emit <-chan struct{}) TranslatorEmitter
type TranslatorSimpleEmitter ¶ added in v0.13.21
type TranslatorSimpleEmitter interface {
Snapshots(ctx context.Context) (<-chan *TranslatorSnapshot, <-chan error, error)
}
func NewTranslatorSimpleEmitter ¶ added in v0.13.21
func NewTranslatorSimpleEmitter(aggregatedWatch clients.ResourceWatch) TranslatorSimpleEmitter
func NewTranslatorSimpleEmitterWithEmit ¶ added in v0.13.21
func NewTranslatorSimpleEmitterWithEmit(aggregatedWatch clients.ResourceWatch, emit <-chan struct{}) TranslatorSimpleEmitter
type TranslatorSnapshot ¶
type TranslatorSnapshot struct { Secrets gloo_solo_io.SecretList Clusteringresses github_com_solo_io_gloo_projects_clusteringress_pkg_api_external_knative.ClusterIngressList }
func (TranslatorSnapshot) Clone ¶
func (s TranslatorSnapshot) Clone() TranslatorSnapshot
func (TranslatorSnapshot) Hash ¶
func (s TranslatorSnapshot) Hash() uint64
func (TranslatorSnapshot) HashFields ¶
func (s TranslatorSnapshot) HashFields() []zap.Field
func (TranslatorSnapshot) Stringer ¶
func (s TranslatorSnapshot) Stringer() TranslatorSnapshotStringer
type TranslatorSnapshotStringer ¶
type TranslatorSnapshotStringer struct { Version uint64 Secrets []string Clusteringresses []string }
func (TranslatorSnapshotStringer) String ¶
func (ss TranslatorSnapshotStringer) String() string
type TranslatorSyncDecider
deprecated
added in
v0.13.21
type TranslatorSyncDecider interface { TranslatorSyncer ShouldSync(old, new *TranslatorSnapshot) bool }
Deprecated: use TranslatorSyncDeciderWithContext
type TranslatorSyncDeciderWithContext ¶ added in v0.15.0
type TranslatorSyncDeciderWithContext interface { TranslatorSyncer ShouldSync(ctx context.Context, old, new *TranslatorSnapshot) bool }
type TranslatorSyncer ¶
type TranslatorSyncer interface {
Sync(context.Context, *TranslatorSnapshot) error
}
type TranslatorSyncers ¶
type TranslatorSyncers []TranslatorSyncer
func (TranslatorSyncers) Sync ¶
func (s TranslatorSyncers) Sync(ctx context.Context, snapshot *TranslatorSnapshot) error
Click to show internal directories.
Click to hide internal directories.