volume_mount_options

package module
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 6

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

type UserOptsValidation interface {
	Validate(string, string) error
}

type UserOptsValidationFunc

type UserOptsValidationFunc func(string, string) error

func (UserOptsValidationFunc) Validate

func (v UserOptsValidationFunc) Validate(a string, b string) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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