fake

package
v0.0.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCSIProviderServer

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

func NewMocKCSIProviderServer

func NewMocKCSIProviderServer(socketPath string) (*MockCSIProviderServer, error)

NewMocKCSIProviderServer returns a mock csi-provider grpc server

func (*MockCSIProviderServer) Mount

Mount implements provider csi-provider method

func (*MockCSIProviderServer) SetObjects

func (m *MockCSIProviderServer) SetObjects(objects map[string]string)

SetObjects sets expected objects id and version

func (*MockCSIProviderServer) SetProviderErrorCode

func (m *MockCSIProviderServer) SetProviderErrorCode(errorCode string)

SetProviderErrorCode sets provider error code to return

func (*MockCSIProviderServer) SetReturnError

func (m *MockCSIProviderServer) SetReturnError(err error)

SetReturnError sets expected error

func (*MockCSIProviderServer) Start

func (m *MockCSIProviderServer) Start() error

func (*MockCSIProviderServer) Version

Version implements provider csi-provider method

Jump to

Keyboard shortcuts

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