driver

package
v0.0.0-...-fd0897c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(version string) error

Init initialize the driver

func Mount

func Mount(dir, opts string) error

Mount mount the file path.

func Unmount

func Unmount(dir string) error

Unmount unmount the file path.

Types

type Capabilities

type Capabilities struct {
	Attach         bool `json:"attach"`
	SELinuxRelabel bool `json:"selinuxRelabel"`
}

Capabilities define whether driver is attachable and the linux relabel

type NodeAgentInputs

type NodeAgentInputs struct {
	UID            string `json:"kubernetes.io/pod.uid"`
	Name           string `json:"kubernetes.io/pod.name"`
	Namespace      string `json:"kubernetes.io/pod.namespace"`
	ServiceAccount string `json:"kubernetes.io/serviceAccount.name"`
}

NodeAgentInputs defines the input from FlexVolume driver.

type Resp

type Resp struct {
	// Status of the response
	Status string `json:"status"`
	// Response message of the response
	Message string `json:"message"`
	// Defines the driver's capability
	Capabilities *Capabilities `json:",omitempty"`
}

Resp is the driver response

Jump to

Keyboard shortcuts

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