mountoptions

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PublishCmdOpt are options for mount func on NodePublishRequest
	// Example: mount -o <PublishCmdOpt> /src /dst
	PublishCmdOpt = MountOptionType("cmdOpt")
)

Variables

This section is empty.

Functions

func FilterWithType

func FilterWithType(mountType MountOptionType, options []string) (filteredOptions []string)

FilterWithType returns all option from list with passed type

func IsOptionSupported

func IsOptionSupported(option string) bool

IsOptionSupported returns true if option in supportedMountOption

func IsOptionsSupported

func IsOptionsSupported(options []string) bool

IsOptionsSupported returns true if all options in supportedMountOption

Types

type MountOption

type MountOption struct {
	// contains filtered or unexported fields
}

MountOption describes mount option

type MountOptionType

type MountOptionType string

MountOptionType type to clarify option purpose

Jump to

Keyboard shortcuts

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