Documentation
¶
Index ¶
- func BasePath(ctx context.Context, name string) string
- func Create(ctx context.Context, name string) (*os.File, error)
- func CreateTemp(ctx context.Context, pattern string) (*os.File, error)
- func Mkdir(ctx context.Context, path string, perm os.FileMode) error
- func MkdirAll(ctx context.Context, path string, perm os.FileMode) error
- func OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (*os.File, error)
- func Remove(ctx context.Context, path string) error
- func RemoveAll(ctx context.Context, path string) error
- func WithDefault(ctx context.Context, basePath string, tempPath string, userID int, groupID int) context.Context
- func WriteFile(ctx context.Context, name string, data []byte, perm os.FileMode) error
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDefault ¶
Types ¶
type Manager ¶
type Manager interface {
BasePath(name string) string
OpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
Create(name string) (*os.File, error)
CreateTemp(pattern string) (*os.File, error)
Mkdir(path string, perm os.FileMode) error
MkdirAll(path string, perm os.FileMode) error
Remove(path string) error
RemoveAll(path string) error
}
Click to show internal directories.
Click to hide internal directories.