Documentation ¶
Index ¶
- Variables
- func HasFlags(flag, search int) bool
- type Asset
- type Backend
- type BaseFile
- type BaseFileSystem
- func (fs *BaseFileSystem) Mkdir(name string, perm os.FileMode) error
- func (fs *BaseFileSystem) MkdirAll(name string, perm os.FileMode) error
- func (fs *BaseFileSystem) OpenAsset(name string, flag int, perm os.FileMode) (Asset, error)
- func (fs *BaseFileSystem) OpenAssetByID(id ID, flag int, perm os.FileMode) (basefile Asset, err error)
- func (fs *BaseFileSystem) OpenFile(name string, flag int, perm os.FileMode) (file File, err error)
- func (fs *BaseFileSystem) Rename(oldName, newName string) (err error)
- func (fs *BaseFileSystem) Stat(name string) (fi os.FileInfo, err error)
- func (fs *BaseFileSystem) StatByID(id ID) (fi os.FileInfo, err error)
- type File
- type FileInfo
- type FileSystem
- type ID
- type Metadata
Constants ¶
This section is empty.
Variables ¶
View Source
var (
CreateMode = os.FileMode(0600)
)
View Source
var (
ErrNotSupported = fmt.Errorf("Operation is not supported")
)
Functions ¶
Types ¶
type BaseFile ¶
type BaseFile struct { File // contains filtered or unexported fields }
func NewBaseFile ¶
type BaseFileSystem ¶
type BaseFileSystem struct {
// contains filtered or unexported fields
}
func NewBaseFileSystem ¶
func NewBaseFileSystem(backend Backend) *BaseFileSystem
func (*BaseFileSystem) MkdirAll ¶
func (fs *BaseFileSystem) MkdirAll(name string, perm os.FileMode) error
func (*BaseFileSystem) OpenAssetByID ¶
func (*BaseFileSystem) Rename ¶
func (fs *BaseFileSystem) Rename(oldName, newName string) (err error)
type FileSystem ¶
Click to show internal directories.
Click to hide internal directories.