package csds
import "google.golang.org/grpc/xds/csds"
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 NewClientStatusDiscoveryServer() (*ClientStatusDiscoveryServer, error)
- 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
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 implements interface ClientStatusDiscoveryServiceServer.
func (*ClientStatusDiscoveryServer) StreamClientStatus ¶
func (s *ClientStatusDiscoveryServer) StreamClientStatus(stream v3statusgrpc.ClientStatusDiscoveryService_StreamClientStatusServer) error
StreamClientStatus implements interface ClientStatusDiscoveryServiceServer.
Source Files ¶
csds.go
- Version
- v1.70.0 (latest)
- Published
- Jan 23, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 16 hours ago –
Tools for package owners.