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) ListDir(ctx context.Context, path string) ([]*providerv1beta1.ResourceInfo, 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
- func (_m *Storage) Stat(ctx context.Context, path string) (*providerv1beta1.ResourceInfo, error)
- func (_m *Storage) Upload(ctx context.Context, req metadata.UploadRequest) 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) ListDir ¶ added in v2.8.0
func (_m *Storage) ListDir(ctx context.Context, path string) ([]*providerv1beta1.ResourceInfo, error)
ListDir provides a mock function with given fields: ctx, path
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
func (*Storage) SimpleUpload ¶
SimpleUpload provides a mock function with given fields: ctx, uploadpath, content
func (*Storage) Stat ¶ added in v2.8.0
func (_m *Storage) Stat(ctx context.Context, path string) (*providerv1beta1.ResourceInfo, error)
Stat provides a mock function with given fields: ctx, path