tofu: Rename KnownHosts.Hosts to Entries
This commit is contained in:
parent
e701ceff71
commit
4a0f8e5e73
@ -46,8 +46,8 @@ func (k *KnownHosts) Lookup(hostname string) (Host, bool) {
|
|||||||
return c, ok
|
return c, ok
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hosts returns the known hosts sorted by hostname.
|
// Entries returns the known host entries sorted by hostname.
|
||||||
func (k *KnownHosts) Hosts() []Host {
|
func (k *KnownHosts) Entries() []Host {
|
||||||
keys := make([]string, 0, len(k.hosts))
|
keys := make([]string, 0, len(k.hosts))
|
||||||
for key := range k.hosts {
|
for key := range k.hosts {
|
||||||
keys = append(keys, key)
|
keys = append(keys, key)
|
||||||
|
Loading…
Reference in New Issue
Block a user