fake

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 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) SetFiles added in v0.0.21

func (m *MockCSIProviderServer) SetFiles(files []*v1alpha1.File)

SetFiles sets provider files to return on Mount

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) Stop added in v0.0.21

func (m *MockCSIProviderServer) Stop()

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