Documentation ¶
Index ¶
- Constants
- func NewInode() uint64
- type MountInfo
- type SwarmDir
- func (sd *SwarmDir) Attr(ctx context.Context, a *fuse.Attr) error
- func (sd *SwarmDir) Create(ctx context.Context, req *fuse.CreateRequest, resp *fuse.CreateResponse) (fs.Node, fs.Handle, error)
- func (sd *SwarmDir) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (fs.Node, error)
- func (sd *SwarmDir) Mkdir(ctx context.Context, req *fuse.MkdirRequest) (fs.Node, error)
- func (sd *SwarmDir) ReadDirAll(ctx context.Context) ([]fuse.Dirent, error)
- func (sd *SwarmDir) Remove(ctx context.Context, req *fuse.RemoveRequest) error
- type SwarmFS
- type SwarmFile
- type SwarmRoot
Constants ¶
View Source
const (
MaxAppendFileSize = 10485760 // 10Mb
)
View Source
const (
Swarmfs_Version = "0.1"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MountInfo ¶
type MountInfo struct { MountPoint string StartManifest string LatestManifest string // contains filtered or unexported fields }
information about every active mount
type SwarmDir ¶
type SwarmDir struct {
// contains filtered or unexported fields
}
func NewSwarmDir ¶
func (*SwarmDir) Lookup ¶
func (sd *SwarmDir) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse.LookupResponse) (fs.Node, error)
func (*SwarmDir) ReadDirAll ¶
type SwarmFS ¶
type SwarmFS struct {
// contains filtered or unexported fields
}
func NewSwarmFS ¶
func (*SwarmFS) Listmounts ¶
type SwarmFile ¶
type SwarmFile struct {
// contains filtered or unexported fields
}
func NewSwarmFile ¶
func (*SwarmFile) Read ¶
func (sf *SwarmFile) Read(ctx context.Context, req *fuse.ReadRequest, resp *fuse.ReadResponse) error
func (*SwarmFile) Write ¶
func (sf *SwarmFile) Write(ctx context.Context, req *fuse.WriteRequest, resp *fuse.WriteResponse) error
Click to show internal directories.
Click to hide internal directories.