Documentation ¶
Index ¶
Constants ¶
View Source
const DockerCSIPluginControllerCap = "csicontroller"
View Source
const DockerCSIPluginNodeCap = "csinode"
Variables ¶
This section is empty.
Functions ¶
func ErrorCode ¶
ErrorCode returns the error code for err if it was produced by the rpc system. Otherwise, it returns codes.Unknown.
func ErrorDesc ¶
ErrorDesc returns the error description of err if it was produced by the rpc system. Otherwise, it returns err.Error() or empty string when err is nil.
Types ¶
type FakePlugin ¶
func (*FakePlugin) Addr ¶
func (f *FakePlugin) Addr() net.Addr
func (*FakePlugin) Client ¶
func (f *FakePlugin) Client() plugin.Client
func (*FakePlugin) Name ¶
func (f *FakePlugin) Name() string
func (*FakePlugin) ScopedPath ¶
func (f *FakePlugin) ScopedPath(path string) string
type FakePluginGetter ¶
type FakePluginGetter struct {
Plugins map[string]*FakePlugin
}
func (*FakePluginGetter) Get ¶
func (f *FakePluginGetter) Get(name, capability string) (plugin.Plugin, error)
func (*FakePluginGetter) GetAllManagedPluginsByCap ¶
func (f *FakePluginGetter) GetAllManagedPluginsByCap(capability string) []plugin.Plugin
GetAllManagedPluginsByCap returns all of the fake's plugins. If capability is anything other than DockerCSIPluginCap, it returns nothing.
Click to show internal directories.
Click to hide internal directories.