MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / Host

Struct Host

cli/pkg/ssh_config/config.go:500–514  ·  view source on GitHub ↗

Host describes a Host directive and the keywords that follow it.

Source from the content-addressed store, hash-verified

498
499// Host describes a Host directive and the keywords that follow it.
500type Host struct {
501 // A list of host patterns that should match this host.
502 Patterns []*Pattern
503 // A Node is either a key/value pair or a comment line.
504 Nodes []Node
505 // EOLComment is the comment (if any) terminating the Host line.
506 EOLComment string
507 // Whitespace if any between the Host declaration and a trailing comment.
508 spaceBeforeComment string
509
510 hasEquals bool
511 leadingSpace int // TODO: handle spaces vs tabs here.
512 // The file starts with an implicit "Host *" declaration.
513 implicit bool
514}
515
516// Matches returns true if the Host matches for the given alias. For
517// a description of the rules that provide a match, see the manpage for

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected