Documentation ¶
Index ¶
- type Storage
- func (_m *Storage) Backend() string
- func (_m *Storage) CreateSymlink(ctx context.Context, oldname string, newname string) error
- func (_m *Storage) Delete(ctx context.Context, path string) error
- func (_m *Storage) Init(ctx context.Context, name string) error
- func (_m *Storage) MakeDirIfNotExist(ctx context.Context, name string) error
- func (_m *Storage) ReadDir(ctx context.Context, path string) ([]string, error)
- func (_m *Storage) ResolveSymlink(ctx context.Context, name string) (string, error)
- func (_m *Storage) SimpleDownload(ctx context.Context, path string) ([]byte, error)
- func (_m *Storage) SimpleUpload(ctx context.Context, uploadpath string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶ added in v2.3.0
NewStorage creates a new instance of Storage. It also registers a cleanup function to assert the mocks expectations.
func (*Storage) CreateSymlink ¶
CreateSymlink provides a mock function with given fields: ctx, oldname, newname
func (*Storage) MakeDirIfNotExist ¶
MakeDirIfNotExist provides a mock function with given fields: ctx, name
func (*Storage) ResolveSymlink ¶
ResolveSymlink provides a mock function with given fields: ctx, name
func (*Storage) SimpleDownload ¶
SimpleDownload provides a mock function with given fields: ctx, path
Click to show internal directories.
Click to hide internal directories.