xds/internal/xdsclient: fix resource type documentation to only mention handling xds responses (#7834)

This commit is contained in:
Purnesh Dixit 2024-11-14 01:56:12 +05:30 committed by GitHub
parent 274830d67a
commit b01130ad1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 10 deletions

View File

@ -32,9 +32,9 @@ import (
type XDSClient interface { type XDSClient interface {
// WatchResource uses xDS to discover the resource associated with the // WatchResource uses xDS to discover the resource associated with the
// provided resource name. The resource type implementation determines how // provided resource name. The resource type implementation determines how
// xDS requests are sent out and how responses are deserialized and // xDS responses are are deserialized and validated, as received from the
// validated. Upon receipt of a response from the management server, an // xDS management server. Upon receipt of a response from the management
// appropriate callback on the watcher is invoked. // server, an appropriate callback on the watcher is invoked.
// //
// Most callers will not have a need to use this API directly. They will // Most callers will not have a need to use this API directly. They will
// instead use a resource-type-specific wrapper API provided by the relevant // instead use a resource-type-specific wrapper API provided by the relevant

View File

@ -27,10 +27,10 @@ import (
) )
// WatchResource uses xDS to discover the resource associated with the provided // WatchResource uses xDS to discover the resource associated with the provided
// resource name. The resource type implementation determines how xDS requests // resource name. The resource type implementation determines how xDS responses
// are sent out and how responses are deserialized and validated. Upon receipt // are are deserialized and validated, as received from the xDS management
// of a response from the management server, an appropriate callback on the // server. Upon receipt of a response from the management server, an
// watcher is invoked. // appropriate callback on the watcher is invoked.
func (c *clientImpl) WatchResource(rType xdsresource.Type, resourceName string, watcher xdsresource.ResourceWatcher) (cancel func()) { func (c *clientImpl) WatchResource(rType xdsresource.Type, resourceName string, watcher xdsresource.ResourceWatcher) (cancel func()) {
// Return early if the client is already closed. // Return early if the client is already closed.
// //

View File

@ -46,9 +46,9 @@ func init() {
type Producer interface { type Producer interface {
// WatchResource uses xDS to discover the resource associated with the // WatchResource uses xDS to discover the resource associated with the
// provided resource name. The resource type implementation determines how // provided resource name. The resource type implementation determines how
// xDS requests are sent out and how responses are deserialized and // xDS responses are are deserialized and validated, as received from the
// validated. Upon receipt of a response from the management server, an // xDS management server. Upon receipt of a response from the management
// appropriate callback on the watcher is invoked. // server, an appropriate callback on the watcher is invoked.
WatchResource(rType Type, resourceName string, watcher ResourceWatcher) (cancel func()) WatchResource(rType Type, resourceName string, watcher ResourceWatcher) (cancel func())
} }