Versions in this module Expand all Collapse all v0 v0.0.4 Apr 24, 2022 Changes in this version + var LocalConfig = system.LocalPath("config.yaml") + var SystemConfig = system.RootPath("config.yaml") + func NewToBool() mapper.Mapper + func NewToMap() mapper.Mapper + func NewToSlice() mapper.Mapper + func NewTypeConverter(fieldType string, converter Converter) mapper.Mapper + func PrintInstall(cfg CloudConfig) ([]byte, error) + func ToBytes(cfg CloudConfig) ([]byte, error) + func ToEnv(cfg CloudConfig) ([]string, error) + func Write(cfg CloudConfig, writer io.Writer) error + type BhojpurOS struct + DNSNameservers []string + DataSources []string + DcpArgs []string + Environment map[string]string + Install *Install + Labels map[string]string + Modules []string + NTPServers []string + Password string + ServerURL string + Sysctls map[string]string + Taints []string + Token string + Wifi []Wifi + type CloudConfig struct + BhojpurOS BhojpurOS + Bootcmd []string + Hostname string + Initcmd []string + Runcmd []string + SSHAuthorizedKeys []string + WriteFiles []File + func ReadConfig() (CloudConfig, error) + type Converter func(val interface{}) interface + type File struct + Content string + Encoding string + Owner string + Path string + RawFilePermissions string + func (f *File) Permissions() (os.FileMode, error) + type FuzzyNames struct + func (f *FuzzyNames) ModifySchema(schema *mapper.Schema, schemas *mapper.Schemas) error + func (f *FuzzyNames) ToInternal(data map[string]interface{}) error + type Install struct + ConfigURL string + Debug bool + Device string + ForceEFI bool + ISOURL string + NoFormat bool + PowerOff bool + Silent bool + TTY string + type Wifi struct + Name string + Passphrase string