filesystem

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	PathExists(path string) (bool, error)
	Mkdir(path string) error
	Rmdir(path string, force bool) error
	LinkPath(tgt string, src string) error
	IsMountPoint(path string) (bool, error)
}

type Server

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

func NewServer

func NewServer(kubeletCSIPluginsPath string, kubeletPodPath string, hostAPI API) (*Server, error)

func (*Server) IsMountPoint

func (*Server) LinkPath

func (*Server) Mkdir

func (*Server) PathExists

PathExists checks if the given path exists on the host.

func (*Server) Rmdir

func (*Server) ValidatePluginPath

func (s *Server) ValidatePluginPath(path string) error

ValidatePluginPath - Validates the path is compatible with the 'plugin path' restrictions. Note: The reason why we cannot reuse the validatePathWindows directly from other parts of the library is that it seems internal.PLUGIN was not usable from outside the internal path tree.

func (*Server) VersionedAPIs

func (s *Server) VersionedAPIs() []*srvtypes.VersionedAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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