Host describes a Host directive and the keywords that follow it.
| 498 | |
| 499 | // Host describes a Host directive and the keywords that follow it. |
| 500 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected