Documentation
¶
Index ¶
- func Serve(args context.ServiceArguments) (context.ServiceResult, error)
- type BasicFile
- type BasicNode
- type BasicStat
- type BillCollectionFile
- type BillCollectionNode
- type BillFile
- type BillNode
- type CategoryNode
- type PhantomFile
- func (p *PhantomFile) Close() error
- func (p *PhantomFile) Read(data []byte) (n int, err error)
- func (p *PhantomFile) Readdir(count int) ([]os.FileInfo, error)
- func (p *PhantomFile) Seek(offset int64, whence int) (int64, error)
- func (p *PhantomFile) Stat() (os.FileInfo, error)
- func (p *PhantomFile) Write(data []byte) (n int, err error)
- type PhantomFileSystem
- func (pfs *PhantomFileSystem) Mkdir(ctx context.Context, name string, perm os.FileMode) error
- func (pfs *PhantomFileSystem) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)
- func (pfs *PhantomFileSystem) RemoveAll(ctx context.Context, name string) error
- func (pfs *PhantomFileSystem) Rename(ctx context.Context, oldName, newName string) error
- func (pfs *PhantomFileSystem) Stat(ctx context.Context, name string) (os.FileInfo, error)
- type PhantomInfo
- type PhantomLockSystem
- func (pls *PhantomLockSystem) Confirm(now time.Time, name0, name1 string, conditions ...webdav.Condition) (release func(), err error)
- func (pls *PhantomLockSystem) Create(now time.Time, details webdav.LockDetails) (token string, err error)
- func (pls *PhantomLockSystem) Refresh(now time.Time, token string, duration time.Duration) (webdav.LockDetails, error)
- func (pls *PhantomLockSystem) Unlock(now time.Time, token string) error
- type PhantomNode
- type ScoreCollectionNode
- type ScoreNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Serve ¶
func Serve(args context.ServiceArguments) (context.ServiceResult, error)
Types ¶
type BasicNode ¶
type BasicNode struct {
// contains filtered or unexported fields
}
func (*BasicNode) Children ¶
func (b *BasicNode) Children() []PhantomNode
func (*BasicNode) Subset ¶
func (b *BasicNode) Subset(path string) PhantomNode
type BillCollectionFile ¶
type BillCollectionFile struct { }
type BillCollectionNode ¶
func (*BillCollectionNode) File ¶
func (b *BillCollectionNode) File() webdav.File
func (*BillCollectionNode) Name ¶
func (b *BillCollectionNode) Name() string
type CategoryNode ¶
type CategoryNode struct { *BasicNode // contains filtered or unexported fields }
func (*CategoryNode) Children ¶
func (c *CategoryNode) Children() []PhantomNode
path is the name to this node, i have to check only it's children
func (*CategoryNode) Path ¶
func (c *CategoryNode) Path() string
type PhantomFile ¶
func (*PhantomFile) Close ¶
func (p *PhantomFile) Close() error
type PhantomFileSystem ¶
type PhantomFileSystem struct { }
func (*PhantomFileSystem) RemoveAll ¶
func (pfs *PhantomFileSystem) RemoveAll(ctx context.Context, name string) error
type PhantomInfo ¶
type PhantomInfo struct {
// contains filtered or unexported fields
}
func (PhantomInfo) IsDir ¶
func (i PhantomInfo) IsDir() bool
func (PhantomInfo) ModTime ¶
func (i PhantomInfo) ModTime() time.Time
func (PhantomInfo) Mode ¶
func (i PhantomInfo) Mode() os.FileMode
func (PhantomInfo) Name ¶
func (i PhantomInfo) Name() string
func (PhantomInfo) Size ¶
func (i PhantomInfo) Size() int64
func (PhantomInfo) Sys ¶
func (i PhantomInfo) Sys() interface{}
type PhantomLockSystem ¶
type PhantomLockSystem struct { }
func (*PhantomLockSystem) Create ¶
func (pls *PhantomLockSystem) Create(now time.Time, details webdav.LockDetails) (token string, err error)
type PhantomNode ¶
type PhantomNode interface { Children() []PhantomNode File() webdav.File Name() string Subset(string) PhantomNode // contains filtered or unexported methods }
type ScoreCollectionNode ¶
type ScoreCollectionNode struct{}
func (*ScoreCollectionNode) File ¶
func (s *ScoreCollectionNode) File() webdav.File
func (*ScoreCollectionNode) Name ¶
func (s *ScoreCollectionNode) Name() string
func (*ScoreCollectionNode) Subset ¶
func (s *ScoreCollectionNode) Subset(string) PhantomNode
Click to show internal directories.
Click to hide internal directories.