{"modulePath":"github.com/9elements/u-root","version":"v6.0.0+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package syslinux\n\nPackage syslinux implements a syslinux config file parser.\n\nSee [http://www.syslinux.org/wiki/index.php?title=Config](http://www.syslinux.org/wiki/index.php?title=Config) for general syslinux config features.\n\nCurrently, only the APPEND, INCLUDE, KERNEL, LABEL, DEFAULT, and INITRD directives are partially supported.\n\n## Variables\n\n```go\nvar (\n\t// ErrDefaultEntryNotFound is returned when the configuration file\n\t// names a default label that is not part of the configuration.\n\tErrDefaultEntryNotFound = errors.New(\"default label not found in configuration\")\n)\n```\n\n## Types\n\n```go\ntype Config struct {\n\t// Entries is a map of label name -\u003e label configuration.\n\tEntries map[string]*boot.LinuxImage\n\n\t// DefaultEntry is the default label key to use.\n\t//\n\t// If DefaultEntry is non-empty, the label is guaranteed to exist in\n\t// `Entries`.\n\tDefaultEntry string\n}\n```\nConfig encapsulates a parsed Syslinux configuration file.\n\nSee [http://www.syslinux.org/wiki/index.php?title=Config](http://www.syslinux.org/wiki/index.php?title=Config) for the configuration file specification.\n\n```go\nfunc ParseConfigFile(url string, wd *url.URL) (*Config, error)\n```\nParseConfigFile parses a Syslinux configuration as specified in [http://www.syslinux.org/wiki/index.php?title=Config](http://www.syslinux.org/wiki/index.php?title=Config)\n\nCurrently, only the APPEND, INCLUDE, KERNEL, LABEL, DEFAULT, and INITRD directives are partially supported.\n\nurlfetch.DefaultSchemes is used to fetch any files that must be parsed or provided.\n\n\\`wd\\` is the default scheme, host, and path for any files named as a relative path - e.g. kernel, include, and initramfs paths are requested relative to the wd. The default path for config files is assumed to be \\`wd.Path\\`/pxelinux.cfg/.\n\n","path":"github.com/9elements/u-root/pkg/syslinux","name":"syslinux","synopsis":"Package syslinux implements a syslinux config file parser.","isRedistributable":true}
