Documentation ¶
Index ¶
- type FileHelper
- type FileUrlHelper
- func (_m *FileUrlHelper) GetPathFromUrl(location string, preserveFilename bool) (string, error)
- func (_m *FileUrlHelper) GetScheme(location string) (string, error)
- func (_m *FileUrlHelper) OpenUrl(location string) ([]byte, error)
- func (_m *FileUrlHelper) OpenUrlWithBaseDir(baseDir string, location string) ([]byte, error)
- func (_m *FileUrlHelper) UrlWithBaseDir(baseDir string, location string) (string, error)
- func (_m *FileUrlHelper) WriteUrl(location string, data []byte) error
- func (_m *FileUrlHelper) WriteUrlWithBaseDir(baseDir string, location string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileHelper ¶
FileHelper is an autogenerated mock type for the FileHelper type
func NewFileHelper ¶
func NewFileHelper(t mockConstructorTestingTNewFileHelper) *FileHelper
NewFileHelper creates a new instance of FileHelper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FileHelper) CreateDirIfNotExist ¶
func (_m *FileHelper) CreateDirIfNotExist(location string) error
CreateDirIfNotExist provides a mock function with given fields: location
type FileUrlHelper ¶
FileUrlHelper is an autogenerated mock type for the FileUrlHelper type
func NewFileUrlHelper ¶
func NewFileUrlHelper(t mockConstructorTestingTNewFileUrlHelper) *FileUrlHelper
NewFileUrlHelper creates a new instance of FileUrlHelper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FileUrlHelper) GetPathFromUrl ¶
func (_m *FileUrlHelper) GetPathFromUrl(location string, preserveFilename bool) (string, error)
GetPathFromUrl provides a mock function with given fields: location, preserveFilename
func (*FileUrlHelper) GetScheme ¶
func (_m *FileUrlHelper) GetScheme(location string) (string, error)
GetScheme provides a mock function with given fields: location
func (*FileUrlHelper) OpenUrl ¶
func (_m *FileUrlHelper) OpenUrl(location string) ([]byte, error)
OpenUrl provides a mock function with given fields: location
func (*FileUrlHelper) OpenUrlWithBaseDir ¶
func (_m *FileUrlHelper) OpenUrlWithBaseDir(baseDir string, location string) ([]byte, error)
OpenUrlWithBaseDir provides a mock function with given fields: baseDir, location
func (*FileUrlHelper) UrlWithBaseDir ¶
func (_m *FileUrlHelper) UrlWithBaseDir(baseDir string, location string) (string, error)
UrlWithBaseDir provides a mock function with given fields: baseDir, location
func (*FileUrlHelper) WriteUrl ¶
func (_m *FileUrlHelper) WriteUrl(location string, data []byte) error
WriteUrl provides a mock function with given fields: location, data
func (*FileUrlHelper) WriteUrlWithBaseDir ¶
func (_m *FileUrlHelper) WriteUrlWithBaseDir(baseDir string, location string, data []byte) error
WriteUrlWithBaseDir provides a mock function with given fields: baseDir, location, data