mount

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Helper functions for dealing with mount(8)-style flags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseOptions

func ParseOptions(m map[string]string, s string)

Parse an option string in the format accepted by mount(8) and generated for its external mount helpers.

It is assumed that option name and values do not contain commas, and that the first equals sign in an option is the name/value separator. There is no support for escaping.

For example, if the input is

user,foo=bar=baz,qux

then the following will be inserted into the map.

"user": "",
"foo": "bar=baz",
"qux": "",

Types

This section is empty.

Jump to

Keyboard shortcuts

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