agent/ecr/factory.go
func (factory *ecrFactory) GetClient(authData *apicontainer.ECRAuthData) (ECRClient, error) {
	clientConfig, err := getClientConfig(factory.httpClient, authData)
	if err != nil {
		return &ecrClient{}, err
	}

	return factory.newClient(clientConfig), nil
}
func (factory *ecrFactory) GetClient(authData *apicontainer.ECRAuthData) (ECRClient, error) {
	clientConfig, err := getClientConfig(factory.httpClient, authData)
	if err != nil {
		return &ecrClient{}, err
	}

	return factory.newClient(clientConfig), nil
}
func ( factory * ecrFactory ) GetClient ( authData * apicontainer . ECRAuthData ) ( ECRClient , error ) { clientConfig , err := getClientConfig ( factory . httpClient , authData ) if err != nil { return & ecrClient { } , err } return factory . newClient ( clientConfig ) , nil }
// GetClient creates the ECR SDK client based on the authdata
GetClient creates the ECR SDK client based on the authdata