func (factory *ecrFactory) newClient(region, endpointOverride string) ECRSDK { var ecrConfig aws.Config ecrConfig.Region = ®ion ecrConfig.HTTPClient = factory.httpClient if endpointOverride != "" { ecrConfig.Endpoint = &endpointOverride } return ecrapi.New(&ecrConfig) }
func (factory *ecrFactory) newClient(region, endpointOverride string) ECRClient { var ecrConfig aws.Config ecrConfig.Region = ®ion ecrConfig.HTTPClient = factory.httpClient if endpointOverride != "" { ecrConfig.Endpoint = &endpointOverride } sdkClient := ecrapi.New(session.New(&ecrConfig)) tokenCache := async.NewLRUCache(tokenCacheSize, tokenCacheTTL) return NewECRClient(sdkClient, tokenCache) }