Documentation
¶
Index ¶
- Variables
- func Attr(selectorName string, ifAddrsRaw interface{}) (string, error)
- func Parse(input string) (string, error)
- func ParseIfAddrs(input string, ifAddrs sockaddr.IfAddrs) (string, error)
- func ParseIfAddrsTemplate(input string, ifAddrs sockaddr.IfAddrs, tmplIn *template.Template) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SourceFuncs is a map of all top-level functions that generate // sockaddr data types. SourceFuncs template.FuncMap // SortFuncs is a map of all functions used in sorting SortFuncs template.FuncMap // FilterFuncs is a map of all functions used in sorting FilterFuncs template.FuncMap // HelperFuncs is a map of all functions used in sorting HelperFuncs template.FuncMap )
Functions ¶
func Attr ¶
Attr returns the attribute from the ifAddrRaw argument. If the argument is an IfAddrs, only the first element will be evaluated for resolution.
func Parse ¶
Parse parses input as template input using the addresses available on the host, then returns the string output if there are no errors.
func ParseIfAddrs ¶
ParseIfAddrs parses input as template input using the IfAddrs inputs, then returns the string output if there are no errors.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.