Documentation ¶
Index ¶
- Constants
- Variables
- type Cache
- func (c *Cache) AddAll(container, path string, node Node, nodes map[string]Node)
- func (c *Cache) Delete(container, path, name string)
- func (c *Cache) DeleteAll(container, path string)
- func (c *Cache) Get(container, path, name string) Node
- func (c *Cache) GetAll(container, path string) (Node, map[string]Node)
- func (c *Cache) Peek(container, path string) (Node, bool)
- func (c *Cache) Set(container, path, name string, node Node)
- type CacheConfig
- type CacheValue
- type Config
- type Container
- type DirLister
- type DirListerTask
- type Directory
- func (d *Directory) Attr(ctx context.Context, a *fuse.Attr) error
- func (d *Directory) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)
- func (d *Directory) Export() fuse.Dirent
- func (d *Directory) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (fs.Node, error)
- func (d *Directory) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error)
- func (d *Directory) Name() string
- func (d *Directory) ReadDirAll(ctx context.Context) (direntries []fuse.Dirent, err error)
- func (d *Directory) Remove(ctx context.Context, req *fuse.RemoveRequest) error
- func (d *Directory) Rename(ctx context.Context, req *fuse.RenameRequest, newDir fs.Node) error
- type Node
- type Object
- type ObjectHandle
- func (fh *ObjectHandle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
- func (fh *ObjectHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) error
- func (fh *ObjectHandle) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) (err error)
- type Root
- func (r *Root) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)
- func (r *Root) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (fs.Node, error)
- func (r *Root) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error)
- func (r *Root) ReadDirAll(ctx context.Context) (direntries []fuse.Dirent, err error)
- func (r *Root) Remove(ctx context.Context, req *fuse.RemoveRequest) error
- func (r *Root) Rename(ctx context.Context, req *fuse.RenameRequest, newDir fs.Node) error
- type SVFS
Constants ¶
View Source
const ( DirContentType = "application/directory" ObjContentType = "application/octet-stream" )
View Source
const (
ManifestHeader = "X-Object-Manifest"
)
View Source
const (
SegmentContainerSuffix = "_segments"
)
Variables ¶
View Source
var ( FolderRegex = regexp.MustCompile("^.+/$") SubdirRegex = regexp.MustCompile(".*/.*$") SegmentPathRegex = regexp.MustCompile("^([^/]+)/(.*)$") DirectoryCache = new(Cache) DirectoryLister = new(DirLister) )
View Source
var SegmentRegex = regexp.MustCompile("^.+_segments$")
View Source
var (
SegmentSize uint64
)
View Source
var (
SwiftConnection *swift.Connection
)
Functions ¶
This section is empty.
Types ¶
type Cache ¶ added in v0.2.6
type Cache struct {
// contains filtered or unexported fields
}
func NewCache ¶ added in v0.2.6
func NewCache(cconf *CacheConfig) *Cache
type CacheConfig ¶ added in v0.2.6
type CacheValue ¶ added in v0.3.0
type CacheValue struct {
// contains filtered or unexported fields
}
type DirLister ¶ added in v0.2.6
type DirLister struct {
// contains filtered or unexported fields
}
type DirListerTask ¶ added in v0.2.6
type DirListerTask struct {
// contains filtered or unexported fields
}
type Directory ¶
type Directory struct {
// contains filtered or unexported fields
}
func (*Directory) Lookup ¶
func (d *Directory) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (fs.Node, error)
func (*Directory) ReadDirAll ¶
type ObjectHandle ¶
type ObjectHandle struct {
// contains filtered or unexported fields
}
func (*ObjectHandle) Read ¶
func (fh *ObjectHandle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
func (*ObjectHandle) Release ¶
func (fh *ObjectHandle) Release(ctx context.Context, req *fuse.ReleaseRequest) error
func (*ObjectHandle) Write ¶
func (fh *ObjectHandle) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) (err error)
Click to show internal directories.
Click to hide internal directories.