coreutil

package
v0.0.0-...-4f8c912 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OptionMap

func OptionMap(o interface{}) map[string]string

OptionMap retrieves mount like -o key,value into a map

func OptionString

func OptionString(o interface{}) string

OptionString helper to print a struct into -o mount like key=value

func ParseConfig

func ParseConfig(srcfile string, out interface{}) (err error)

ParseConfig reads yaml or json file into a struct

func ParseOptions

func ParseOptions(opt string, out interface{}) (err error)

ParseOptions parses mount options like -o uid=100,gid=100 to struct

func SaveConfig

func SaveConfig(name string, obj interface{}) (err error)

SaveConfig saves configuration file in specified 'json or yaml' extension

func StringAssign

func StringAssign(s string, v interface{}) (err error)

StringAssign parseString and place value in

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL