Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type CreateOptions
- type FS
- func (f *FS) GetData(path string, options GetOptions) ([]byte, error)
- func (f *FS) GetFile(path, dest string, options GetOptions) ([]byte, error)
- func (f *FS) List(dir string, options ListOptions) ([]File, error)
- func (fs *FS) PutData(dest string, src []byte, options PutOptions) error
- func (fs *FS) PutFile(dest string, src string, options PutOptions) error
- func (fs *FS) PutStream(dest string, src io.ReadSeekCloser, options PutOptions) error
- type File
- type FileWrap
- type GetOptions
- type ListOptions
- type PutOptions
Constants ¶
View Source
const GET_FILES_BY_DIR = "GET_FILES_BY_DIR"
View Source
const INSERT_FILE = "INSERT_FILE"
Variables ¶
View Source
var ( FSDir = "fs" HeadersDir = path.Join(FSDir, "headers") DataDir = path.Join(FSDir, "data") ConfigPath = path.Join(FSDir, "config.conf") ErrExists = "ErrExist: filesystem already exists in %s" DefaultGroupName = safe.GroupName("usr") // default group name GET_GROUP_NAME = "GET_GROUP_NAME" // query to get group name )
Functions ¶
This section is empty.
Types ¶
type CreateOptions ¶
type FS ¶
func (*FS) PutStream ¶
func (fs *FS) PutStream(dest string, src io.ReadSeekCloser, options PutOptions) error
type File ¶
type GetOptions ¶
type GetOptions struct {
Async chan string
}
type ListOptions ¶
type ListOptions struct { After time.Time // After is the minimum modification time of files to list Before time.Time // Before is the maximum modification time of files to list OrderBy string // OrderBy is the list of fields to order by in SQL style Reverse bool // Reverse is whether to reverse the order of files Limit int // Limit is the maximum number of files to list Offset int // Offset is the number of files to skip Prefix string // Prefix is a filter on the prefix of the name Suffix string // Suffix is a filter on the suffix of the name Tag string // Tag is a filter on the tag of the file }
Click to show internal directories.
Click to hide internal directories.