'Retrieve all the endpoints for the provided service type and name.
:rtype: ``list`` of :class:`.OpenStackServiceCatalogEntryEndpoint`'

def get_endpoints(self, service_type=None, name=None):

    endpoints = []
    for entry in self._entries:
        if (service_type and (entry.service_type != service_type)):
            continue
        if (name and (entry.service_name != name)):
            continue
        for endpoint in entry.endpoints:
            endpoints.append(endpoint)
    return endpoints
