Documentation ¶
Index ¶
- func OptionMap(o interface{}) map[string]string
- func OptionString(o interface{}) string
- func ParseConfig(srcfile string, out interface{}) (err error)
- func ParseOptions(opt string, out interface{}) (err error)
- func SaveConfig(name string, obj interface{}) (err error)
- func StringAssign(s string, v interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OptionString ¶
func OptionString(o interface{}) string
OptionString helper to print a struct into -o mount like key=value
func ParseConfig ¶
ParseConfig reads yaml or json file into a struct
func ParseOptions ¶
ParseOptions parses mount options like -o uid=100,gid=100 to struct
func SaveConfig ¶
SaveConfig saves configuration file in specified 'json or yaml' extension
func StringAssign ¶
StringAssign parseString and place value in
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.