volume_mount_options

package module
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 6

README

volume-mount-options

This is a library that is imported by various parts of CloudFoundry volume services.

Historical tags

In the past, v1.0.0 and v1.1.0 tags were created, and then versioning reverted back to v0.3.0. This caused problems when updating, as the Go toolchain would often try a numeical upgrade which was actually a chronological downgrade.

As a result, the v1.0.0 and v1.1.0 had retract directives added, so builds that rely on these versions will still work, but you should not get an update to them.

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