func (p *AlibabaCloudProvider) Records() (endpoints []*endpoint.Endpoint, err error) {
	if p.privateZone {
		endpoints, err = p.privateZoneRecords()
	} else {
		endpoints, err = p.recordsForDNS()
	}
	return endpoints, err
}
func (p *AlibabaCloudProvider) Records() (endpoints []*endpoint.Endpoint, err error) {
	if p.privateZone {
		endpoints, err = p.privateZoneRecords()
	} else {
		endpoints, err = p.recordsForDNS()
	}
	return endpoints, err
}
func ( p * AlibabaCloudProvider ) Records ( ) ( endpoints [ ] * endpoint . Endpoint , err error ) { if p . privateZone { endpoints , err = p . privateZoneRecords ( ) } else { endpoints , err = p . recordsForDNS ( ) } return endpoints , err }
// Records gets the current records.
//
// Returns the current records or an error if the operation failed.
Records gets the current records . Returns the current records or an error if the operation failed .