node

package
v0.0.0-...-73b97df Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NODE_PLUGIN_ID = "org.cloudfoundry.code.local-node-plugin"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalNode

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

func NewLocalNode

func NewLocalNode(
	os osshim.Os,
	osHelper OsHelper,
	filepath filepathshim.Filepath,
	logger lager.Logger,
	volumeRootDir string,
	nodeId string,
) *LocalNode

func (*LocalNode) GetPluginCapabilities

Identity

func (*LocalNode) GetPluginInfo

func (*LocalNode) NodeGetCapabilities

func (*LocalNode) NodeGetInfo

func (*LocalNode) NodeGetVolumeStats

func (*LocalNode) NodePublishVolume

func (*LocalNode) NodeStageVolume

func (*LocalNode) NodeUnpublishVolume

func (*LocalNode) NodeUnstageVolume

func (*LocalNode) Probe

func (ln *LocalNode) Probe(ctx context.Context, in *csi.ProbeRequest) (*csi.ProbeResponse, error)

type LocalVolume

type LocalVolume struct {
	csi.Volume
}

type OsHelper

type OsHelper interface {
	Umask(mask int) (oldmask int)
	Mount(srcPath string, targetPath string) error
	IsMounted(targetPath string) (bool, error)
	Unmount(targetPath 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