volume_mount_options

package module
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 6

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