Documentation
¶
Index ¶
- func AbsPath(cwd, path string) (string, error)
- func CleanupAbsPath(path string) (string, error)
- func DirUp(abs_path string) (string, string, error)
- func ListUpdateDoc(doc_key, tag_name, op string) (bson.M, error)
- func UpdateTagList(old_tags []string, tag_name, op string) ([]string, error)
- type ErrLookupStop
- type FSContext
- type RdonlyFileStream
- type RdwrFileStream
- type Store
- func (s Store) Chmod(ctx context.Context, path string, tags []string, tag_name, op string, ...) (*types.FsEntry, error)
- func (s Store) Copy(ctx context.Context, dest_path, src_path string, tags []string, recursive bool) (*types.FsEntry, error)
- func (s Store) Lookup(ctx context.Context, tags []string, abs_path string) (*types.FsEntry, error)
- func (s Store) LookupRead(ctx context.Context, abs_path string, tags []string) (io.ReadCloser, error)
- func (s Store) LookupReadAll(ctx context.Context, abs_path string, tags []string) ([]byte, error)
- func (s Store) Mkdir(ctx context.Context, abs_path string, tags []string, ...) (*types.FsEntry, error)
- func (s Store) Move(ctx context.Context, dest_path, src_path string, tags []string) (*types.FsEntryReference, error)
- func (s Store) OpenHandler(user_tags []string) interp.OpenHandlerFunc
- func (s Store) ReadFile(ctx context.Context, ID primitive.ObjectID, tags []string) (io.ReadCloser, error)
- func (s Store) ReadFileObj(ctx context.Context, file types.FsEntry, tags []string) (io.ReadCloser, error)
- func (s Store) RemoveChild(ctx context.Context, parentID primitive.ObjectID, childName string, ...) (*types.FsEntry, error)
- func (s Store) RemoveFile(ctx context.Context, abs_path string, tags []string, force, rmDirectories bool) (*types.FsEntry, error)
- func (s Store) StatHandler(user_tags []string) interp.StatHandlerFunc
- func (s Store) WriteDirectory(ctx context.Context, parentID primitive.ObjectID, directoryName string, ...) (*types.FsEntry, error)
- func (s Store) WriteFile(ctx context.Context, parentID primitive.ObjectID, name string, ...) (*types.FsEntry, error)
- type WronlyFileStream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupAbsPath ¶
Types ¶
type ErrLookupStop ¶
func (ErrLookupStop) Error ¶
func (e ErrLookupStop) Error() string
func (ErrLookupStop) Unwrap ¶
func (e ErrLookupStop) Unwrap() error
type RdonlyFileStream ¶
type RdonlyFileStream struct {
Stream *gridfs.DownloadStream
}
func (RdonlyFileStream) Close ¶
func (r RdonlyFileStream) Close() error
type RdwrFileStream ¶
type RdwrFileStream struct {
ReadStream io.ReadWriteCloser
WriteStream io.ReadWriteCloser
}
func (*RdwrFileStream) Close ¶
func (r *RdwrFileStream) Close() error
type Store ¶
type Store struct {
Col *mongo.Collection
Bucket *gridfs.Bucket
}
func (Store) LookupRead ¶
func (Store) LookupReadAll ¶
func (Store) OpenHandler ¶
func (s Store) OpenHandler(user_tags []string) interp.OpenHandlerFunc
func (Store) ReadFileObj ¶
func (Store) RemoveChild ¶
func (Store) RemoveFile ¶
func (Store) StatHandler ¶
func (s Store) StatHandler(user_tags []string) interp.StatHandlerFunc
func (Store) WriteDirectory ¶
type WronlyFileStream ¶
type WronlyFileStream struct {
FileRef, ParentID primitive.ObjectID
Stream *gridfs.UploadStream
Store Store
FileName string
UserTags []string
}
func (*WronlyFileStream) Close ¶
func (w *WronlyFileStream) Close() error
Click to show internal directories.
Click to hide internal directories.