Documentation ¶
Index ¶
- func PassNewValue(old interface{}, new interface{}) interface{}
- type AsyncCommandNotificationStore
- type ControlPlaneConnectionPool
- type ControlPlaneConnectionPoolOption
- type ListerCertificateGetter
- type NotificationStore
- func (n *NotificationStore) CleanPodNotification(srcName types.NamespacedName, pod string)
- func (n *NotificationStore) CleanPodsNotifications(srcName types.NamespacedName)
- func (n *NotificationStore) GetPodNotification(srcName types.NamespacedName, pod string) (interface{}, bool)
- func (n *NotificationStore) GetPodsNotifications(srcName types.NamespacedName) (map[string]interface{}, bool)
- func (n *NotificationStore) MessageHandler(srcName types.NamespacedName, pod string, valueMerger ValueMerger) control.MessageHandler
- type PayloadParser
- type PodIpGetter
- type TLSDialerFactory
- type ValueMerger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PassNewValue ¶
func PassNewValue(old interface{}, new interface{}) interface{}
Types ¶
type AsyncCommandNotificationStore ¶
type AsyncCommandNotificationStore interface { GetCommandResult(srcName types.NamespacedName, pod string, command message.AsyncCommand) *message.AsyncCommandResult CleanPodsNotifications(srcName types.NamespacedName) CleanPodNotification(srcName types.NamespacedName, pod string) MessageHandler(srcName types.NamespacedName, pod string) control.MessageHandler }
AsyncCommandNotificationStore defines a specialized NotificationStore capable of handling message.AsyncCommandResults
func NewAsyncCommandNotificationStore ¶
func NewAsyncCommandNotificationStore(enqueueKey func(name types.NamespacedName)) AsyncCommandNotificationStore
NewAsyncCommandNotificationStore creates an AsyncCommandNotificationStore
type ControlPlaneConnectionPool ¶
type ControlPlaneConnectionPool interface { GetConnectedHosts(key string) []string GetServices(key string) map[string]control.Service ResolveControlInterface(key string, host string) (string, control.Service) RemoveConnection(ctx context.Context, key string, host string) RemoveAllConnections(ctx context.Context, key string) Close(ctx context.Context) ReconcileConnections(ctx context.Context, key string, wantConnections []string, newServiceCb func(string, control.Service), oldServiceCb func(string)) (map[string]control.Service, error) DialControlService(ctx context.Context, key string, host string) (string, control.Service, error) }
func NewControlPlaneConnectionPool ¶
func NewControlPlaneConnectionPool(tlsDialerFactory TLSDialerFactory, opts ...ControlPlaneConnectionPoolOption) ControlPlaneConnectionPool
func NewInsecureControlPlaneConnectionPool ¶
func NewInsecureControlPlaneConnectionPool(opts ...ControlPlaneConnectionPoolOption) ControlPlaneConnectionPool
type ControlPlaneConnectionPoolOption ¶
type ControlPlaneConnectionPoolOption func(*controlPlaneConnectionPoolImpl)
func WithServiceWrapper ¶
func WithServiceWrapper(wrapper control.ServiceWrapper) ControlPlaneConnectionPoolOption
type ListerCertificateGetter ¶
type ListerCertificateGetter struct {
// contains filtered or unexported fields
}
func NewCertificateGetter ¶
func NewCertificateGetter(secrets v1.SecretLister, namespace string, name string) *ListerCertificateGetter
func (*ListerCertificateGetter) GenerateTLSDialer ¶
type NotificationStore ¶
type NotificationStore struct {
// contains filtered or unexported fields
}
func NewNotificationStore ¶
func NewNotificationStore(enqueueKey func(name types.NamespacedName), parser PayloadParser) *NotificationStore
func (*NotificationStore) CleanPodNotification ¶
func (n *NotificationStore) CleanPodNotification(srcName types.NamespacedName, pod string)
func (*NotificationStore) CleanPodsNotifications ¶
func (n *NotificationStore) CleanPodsNotifications(srcName types.NamespacedName)
func (*NotificationStore) GetPodNotification ¶
func (n *NotificationStore) GetPodNotification(srcName types.NamespacedName, pod string) (interface{}, bool)
func (*NotificationStore) GetPodsNotifications ¶
func (n *NotificationStore) GetPodsNotifications(srcName types.NamespacedName) (map[string]interface{}, bool)
func (*NotificationStore) MessageHandler ¶
func (n *NotificationStore) MessageHandler(srcName types.NamespacedName, pod string, valueMerger ValueMerger) control.MessageHandler
type PayloadParser ¶
type PodIpGetter ¶
func (PodIpGetter) GetAllPodsIp ¶
type TLSDialerFactory ¶
type ValueMerger ¶
type ValueMerger func(old interface{}, new interface{}) interface{}
Click to show internal directories.
Click to hide internal directories.