From 0c2916c98689f83185afd9ea5e94ee9c8f1bd99b Mon Sep 17 00:00:00 2001 From: hemanthKa677 Date: Fri, 6 Jan 2023 13:44:21 +0530 Subject: [PATCH] Renamed SearchHostRecordByAltId more generic --- README.md | 2 +- object_manager.go | 2 +- object_manager_host_record.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3f226800..f23499e9 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ This library is compatible with Go 1.2+ * GetFixedAddressByRef * GetHostRecord * GetHostRecordByRef - * SearchHostRecordByAltId + * GetHostRecordByAltId * GetIpAddressFromHostRecord * GetNetwork * GetNetworkByRef diff --git a/object_manager.go b/object_manager.go index 7afdb193..b812faba 100644 --- a/object_manager.go +++ b/object_manager.go @@ -49,7 +49,7 @@ type IBObjectManager interface { GetFixedAddress(netview string, cidr string, ipAddr string, isIPv6 bool, macOrDuid string) (*FixedAddress, error) GetFixedAddressByRef(ref string) (*FixedAddress, error) GetHostRecord(netview string, dnsview string, recordName string, ipv4addr string, ipv6addr string) (*HostRecord, error) - SearchHostRecordByAltId(internalId string, ref string, eaNameForInternalId string) (*HostRecord, error) + GetHostRecordByAltId(internalId string, ref string, eaNameForInternalId string) (*HostRecord, error) GetHostRecordByRef(ref string) (*HostRecord, error) GetIpAddressFromHostRecord(host HostRecord) (string, error) GetNetwork(netview string, cidr string, isIPv6 bool, ea EA) (*Network, error) diff --git a/object_manager_host_record.go b/object_manager_host_record.go index 876ae796..e8868598 100644 --- a/object_manager_host_record.go +++ b/object_manager_host_record.go @@ -75,7 +75,7 @@ func (objMgr *ObjectManager) GetHostRecordByRef(ref string) (*HostRecord, error) return recordHost, err } -func (objMgr *ObjectManager) SearchHostRecordByAltId( +func (objMgr *ObjectManager) GetHostRecordByAltId( internalId string, ref string, eaNameForInternalId string) (*HostRecord, error) { if internalId == "" {