csiplugin

package module
v0.0.0-...-2c84d82 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: Apache-2.0 Imports: 22 Imported by: 6

README

csiplugin

A volman plugin for CSI(Container Storage Interface) node plugins

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCsiPlugin

func NewCsiPlugin(plugin csi.NodeClient, pluginSpec volman.PluginSpec, grpcShim grpcshim.Grpc, csiShim csishim.Csi, osShim osshim.Os, csiMountRootDir string, oshelper OsHelper) volman.Plugin

func NewCsiPluginWithInvoker

func NewCsiPluginWithInvoker(invoker invoker.Invoker, bgInvoker BackgroundInvoker, plugin csi.NodeClient, pluginSpec volman.PluginSpec, grpcShim grpcshim.Grpc, csiShim csishim.Csi, osShim osshim.Os, csiMountRootDir string, oshelper OsHelper) volman.Plugin

func WriteSpec

func WriteSpec(logger lager.Logger, pluginsDirectory string, spec CsiPluginSpec) error

Types

type BackgroundInvoker

type BackgroundInvoker interface {
	Invoke(env dockerdriver.Env, executable string, cmdArgs []string, waitFor string, timeout time.Duration) error
}

func NewBackgroundInvoker

func NewBackgroundInvoker(useExec execshim.Exec) BackgroundInvoker

type CsiPluginSpec

type CsiPluginSpec struct {
	Name    string `json:-`
	Address string `json:address`
}

func ReadSpec

func ReadSpec(logger lager.Logger, specFile string) (*CsiPluginSpec, error)

type OsHelper

type OsHelper interface {
	Umask(mask int) (oldmask int)
}

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