Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKDSSink ¶
func NewKDSSink(log logr.Logger, clusterName string, rt []model.ResourceType, factory ClientFactory, cb *Callbacks) component.Component
Types ¶
type Callbacks ¶
type Callbacks struct {
OnResourcesReceived func(clusterID string, rs model.ResourceList) error
}
type ClientFactory ¶
type KDSClient ¶
func New ¶
func New(serverURL string, config *kds_config.KdsClientConfig) (KDSClient, error)
type KDSStream ¶
type KDSStream interface { DiscoveryRequest(resourceType model.ResourceType) error Receive() (string, model.ResourceList, error) ACK(typ string) error NACK(typ string, err error) error Close() error }
func NewKDSStream ¶
func NewKDSStream(s mesh_proto.KumaDiscoveryService_StreamKumaResourcesClient, clientId string) KDSStream
Click to show internal directories.
Click to hide internal directories.