Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SyncPeriod is how often the syncer will attempt to // reconcile the expected Service states. SyncPeriod = 5 * time.Second // ServicePollPeriod is how often a Service is checked for // whether it has instances to reap. ServicePollPeriod = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewaySource ¶ added in v1.2.1
type GatewaySource struct {
// contains filtered or unexported fields
}
GatewaySource implements controller.Resource and starts a background watcher o gateway to keep track of changing gateway.
func (*GatewaySource) Delete ¶ added in v1.2.1
func (gw *GatewaySource) Delete(key string, raw interface{}) error
func (*GatewaySource) Informer ¶ added in v1.2.1
func (gw *GatewaySource) Informer() cache.SharedIndexInformer
func (*GatewaySource) SetServiceResource ¶ added in v1.2.1
func (gw *GatewaySource) SetServiceResource(serviceResource *KtoGSource)
func (*GatewaySource) Upsert ¶ added in v1.2.1
func (gw *GatewaySource) Upsert(key string, raw interface{}) error
type KtoGSource ¶ added in v1.2.1
type KtoGSource struct {
// contains filtered or unexported fields
}
KtoGSource implements controller.Resource to sync Service source types from K8S.
func NewKtoGSource ¶ added in v1.2.1
func NewKtoGSource(controller connector.ConnectController, syncer Syncer, gatewaySource *GatewaySource, fsmNamespace string, kubeClient kubernetes.Interface, gatewayClient gwapi.Interface, ctx context.Context) *KtoGSource
func (*KtoGSource) Delete ¶ added in v1.2.1
func (t *KtoGSource) Delete(key string, _ interface{}) error
Delete implements the controller.Resource interface.
func (*KtoGSource) Informer ¶ added in v1.2.1
func (t *KtoGSource) Informer() cache.SharedIndexInformer
Informer implements the controller.Resource interface.
func (*KtoGSource) Run ¶ added in v1.2.1
func (t *KtoGSource) Run(ch <-chan struct{})
Run implements the controller.Backgrounder interface.
func (*KtoGSource) Upsert ¶ added in v1.2.1
func (t *KtoGSource) Upsert(key string, raw interface{}) error
Upsert implements the controller.Resource interface.
type KtoGSyncer ¶ added in v1.2.1
type KtoGSyncer struct {
// contains filtered or unexported fields
}
KtoGSyncer is a Syncer that takes the set of gateway routes.
func NewKtoGSyncer ¶ added in v1.2.1
func NewKtoGSyncer(controller connector.ConnectController, gatewaySource *GatewaySource) *KtoGSyncer
func (*KtoGSyncer) Run ¶ added in v1.2.1
func (s *KtoGSyncer) Run(ctx context.Context, ctrls ...*connector.CacheController)
Run is the long-running runloop for reconciling the local set of services to register with the remote state.
func (*KtoGSyncer) Sync ¶ added in v1.2.1
func (s *KtoGSyncer) Sync(rs []*corev1.Service)
Sync implements Syncer.
Click to show internal directories.
Click to hide internal directories.