volume_mount_options

package module
v0.172.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 6 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

volume-mount-options

Go Report Card Go Reference

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

[!NOTE]

This repository should be imported as code.cloudfoundry.org/volume-mount-options.

Contributing

See the Contributing.md for more information on how to contribute.

Working Group Charter

This repository is maintained by App Runtime Platform under Volume Services area.

[!IMPORTANT]

Content in this file is managed by the CI task sync-readme and is generated by CI following a convention.

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