tofu: Rename KnownHosts.Hosts to Entries

This commit is contained in:
Adnan Maolood 2021-01-14 18:52:43 -05:00
parent e701ceff71
commit 4a0f8e5e73

View File

@ -46,8 +46,8 @@ func (k *KnownHosts) Lookup(hostname string) (Host, bool) {
return c, ok
}
// Hosts returns the known hosts sorted by hostname.
func (k *KnownHosts) Hosts() []Host {
// Entries returns the known host entries sorted by hostname.
func (k *KnownHosts) Entries() []Host {
keys := make([]string, 0, len(k.hosts))
for key := range k.hosts {
keys = append(keys, key)