Documentation ¶
Overview ¶
Package csds implements features to dump the status (xDS responses) the xds_client is using.
Notice: This package is EXPERIMENTAL and may be changed or removed in a later release.
Index ¶
- type ClientStatusDiscoveryServer
- func (s *ClientStatusDiscoveryServer) Close()
- func (s *ClientStatusDiscoveryServer) FetchClientStatus(_ context.Context, req *v3statuspb.ClientStatusRequest) (*v3statuspb.ClientStatusResponse, error)
- func (s *ClientStatusDiscoveryServer) StreamClientStatus(stream v3statusgrpc.ClientStatusDiscoveryService_StreamClientStatusServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientStatusDiscoveryServer ¶
type ClientStatusDiscoveryServer struct {
// contains filtered or unexported fields
}
ClientStatusDiscoveryServer provides an implementation of the Client Status Discovery Service (CSDS) for exposing the xDS config of a given client. See https://github.com/envoyproxy/envoy/blob/main/api/envoy/service/status/v3/csds.proto.
For more details about the gRPC implementation of CSDS, refer to gRPC A40 at: https://github.com/grpc/proposal/blob/master/A40-csds-support.md.
func NewClientStatusDiscoveryServer ¶
func NewClientStatusDiscoveryServer() (*ClientStatusDiscoveryServer, error)
NewClientStatusDiscoveryServer returns an implementation of the CSDS server that can be registered on a gRPC server.
func (*ClientStatusDiscoveryServer) Close ¶
func (s *ClientStatusDiscoveryServer) Close()
Close cleans up the resources.
func (*ClientStatusDiscoveryServer) FetchClientStatus ¶
func (s *ClientStatusDiscoveryServer) FetchClientStatus(_ context.Context, req *v3statuspb.ClientStatusRequest) (*v3statuspb.ClientStatusResponse, error)
FetchClientStatus implementations interface ClientStatusDiscoveryServiceServer.
func (*ClientStatusDiscoveryServer) StreamClientStatus ¶
func (s *ClientStatusDiscoveryServer) StreamClientStatus(stream v3statusgrpc.ClientStatusDiscoveryService_StreamClientStatusServer) error
StreamClientStatus implementations interface ClientStatusDiscoveryServiceServer.