nas

package
v0.0.0-...-4f17fb6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2020 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

View Source
const (
	NASPORTNUM     = "2049"
	NASTEMPMNTPath = "/mnt/acs_mnt/k8s_nas/" // used for create sub directory;
	MODECHAR       = "01234567"
)

const values

Variables

This section is empty.

Functions

This section is empty.

Types

type NasOptions

type NasOptions struct {
	Server     string `json:"server"`
	Path       string `json:"path"`
	Vers       string `json:"vers"`
	Mode       string `json:"mode"`
	Opts       string `json:"options"`
	VolumeName string `json:"kubernetes.io/pvOrVolumeName"`
}

NasOptions nas options

type NasPlugin

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

NasPlugin nas plugin

func (*NasPlugin) Attach

func (p *NasPlugin) Attach(opts interface{}, nodeName string) utils.Result

Attach not support

func (*NasPlugin) Detach

func (p *NasPlugin) Detach(device string, nodeName string) utils.Result

Detach not support

func (*NasPlugin) Getvolumename

func (p *NasPlugin) Getvolumename(opts interface{}) utils.Result

Getvolumename Support

func (*NasPlugin) Init

func (p *NasPlugin) Init() utils.Result

Init plugin init

func (*NasPlugin) Mount

func (p *NasPlugin) Mount(opts interface{}, mountPath string) utils.Result

Mount nas support mount and umount

func (*NasPlugin) Mountdevice

func (p *NasPlugin) Mountdevice(mountPath string, opts interface{}) utils.Result

Mountdevice Not Support

func (*NasPlugin) NewOptions

func (p *NasPlugin) NewOptions() interface{}

NewOptions new options.

func (*NasPlugin) Unmount

func (p *NasPlugin) Unmount(mountPoint string) utils.Result

Unmount umount mnt

func (*NasPlugin) Waitforattach

func (p *NasPlugin) Waitforattach(devicePath string, opts interface{}) utils.Result

Waitforattach no Support

Jump to

Keyboard shortcuts

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