@@ -171,27 +171,27 @@ func (r resourceTypeState) AllResourcesRequiredInSotW() bool {
171171 return r .allResourcesRequiredInSotW
172172}
173173
174- // genericResourceTypeDecoder wraps an xdsresource.Type and implements
174+ // GenericResourceTypeDecoder wraps an xdsresource.Type and implements
175175// xdsclient.Decoder.
176176//
177177// TODO: #8313 - Delete this once the internal xdsclient usages are updated
178178// to use the generic xdsclient.ResourceType interface directly.
179- type genericResourceTypeDecoder struct {
180- resourceType Type
181- bootstrapConfig * bootstrap.Config
182- gServerConfigMap map [xdsclient.ServerConfig ]* bootstrap.ServerConfig
179+ type GenericResourceTypeDecoder struct {
180+ ResourceType Type
181+ BootstrapConfig * bootstrap.Config
182+ ServerConfigMap map [xdsclient.ServerConfig ]* bootstrap.ServerConfig
183183}
184184
185185// Decode deserialize and validate resource bytes of an xDS resource received
186186// from the xDS management server.
187- func (gd * genericResourceTypeDecoder ) Decode (resourceBytes []byte , gOpts xdsclient.DecodeOptions ) (* xdsclient.DecodeResult , error ) {
188- raw := & anypb.Any {TypeUrl : gd .resourceType .TypeURL (), Value : resourceBytes }
189- opts := & DecodeOptions {BootstrapConfig : gd .bootstrapConfig }
187+ func (gd * GenericResourceTypeDecoder ) Decode (resourceBytes []byte , gOpts xdsclient.DecodeOptions ) (* xdsclient.DecodeResult , error ) {
188+ raw := & anypb.Any {TypeUrl : gd .ResourceType .TypeURL (), Value : resourceBytes }
189+ opts := & DecodeOptions {BootstrapConfig : gd .BootstrapConfig }
190190 if gOpts .ServerConfig != nil {
191- opts .ServerConfig = gd .gServerConfigMap [* gOpts .ServerConfig ]
191+ opts .ServerConfig = gd .ServerConfigMap [* gOpts .ServerConfig ]
192192 }
193193
194- result , err := gd .resourceType .Decode (opts , raw )
194+ result , err := gd .ResourceType .Decode (opts , raw )
195195 if result == nil {
196196 return nil , err
197197 }
0 commit comments