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: 9 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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