Documentation
¶
Index ¶
Constants ¶
View Source
const MissingOptionErrorMessage = "- Missing mandatory options: %s"
View Source
const NotAllowedErrorMessage = "- Not allowed options: %s"
View Source
const ValidationFailErrorMessage = "- validation mount options failed: %s"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MountOpts ¶
type MountOpts map[string]interface{}
func NewMountOpts ¶
func NewMountOpts(userOpts map[string]interface{}, mask MountOptsMask) (MountOpts, error)
type MountOptsMask ¶
type MountOptsMask struct {
Allowed []string
Defaults map[string]interface{}
KeyPerms map[string]string
Ignored []string
Mandatory []string
SloppyMount bool
ValidationFunc []UserOptsValidation
}
func NewMountOptsMask ¶
func NewMountOptsMask(allowed []string, defaults map[string]interface{}, keyPerms map[string]string, ignored, mandatory []string, f ...UserOptsValidation) (MountOptsMask, error)
type UserOptsValidation ¶
Click to show internal directories.
Click to hide internal directories.