dav

package
v0.0.0-...-e78e600 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2020 License: GPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type BasicFile

type BasicFile struct {
	os.File
	// contains filtered or unexported fields
}

func (*BasicFile) Readdir

func (b *BasicFile) Readdir(count int) ([]os.FileInfo, error)

func (*BasicFile) Stat

func (b *BasicFile) Stat() (os.FileInfo, error)

type BasicNode

type BasicNode struct {
	// contains filtered or unexported fields
}

func (*BasicNode) Children

func (b *BasicNode) Children() []PhantomNode

func (*BasicNode) File

func (b *BasicNode) File() webdav.File

func (*BasicNode) Name

func (b *BasicNode) Name() string

func (*BasicNode) Subset

func (b *BasicNode) Subset(path string) PhantomNode

type BasicStat

type BasicStat struct {
	// contains filtered or unexported fields
}

func (BasicStat) IsDir

func (b BasicStat) IsDir() bool

func (BasicStat) ModTime

func (b BasicStat) ModTime() time.Time

func (BasicStat) Mode

func (b BasicStat) Mode() os.FileMode

func (BasicStat) Name

func (b BasicStat) Name() string

func (BasicStat) Size

func (b BasicStat) Size() int64

func (BasicStat) Sys

func (b BasicStat) Sys() interface{}

type BillCollectionFile

type BillCollectionFile struct {
}

type BillCollectionNode

type BillCollectionNode struct {
	*BasicNode
	Payed bool
}

func (*BillCollectionNode) File

func (b *BillCollectionNode) File() webdav.File

func (*BillCollectionNode) Name

func (b *BillCollectionNode) Name() string

type BillFile

type BillFile struct {
}

type BillNode

type BillNode struct {
	*BasicNode
}

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

type PhantomFile struct {
	os.File
}

func (*PhantomFile) Close

func (p *PhantomFile) Close() error

func (*PhantomFile) Read

func (p *PhantomFile) Read(data []byte) (n int, err error)

func (*PhantomFile) Readdir

func (p *PhantomFile) Readdir(count int) ([]os.FileInfo, error)

func (*PhantomFile) Seek

func (p *PhantomFile) Seek(offset int64, whence int) (int64, error)

func (*PhantomFile) Stat

func (p *PhantomFile) Stat() (os.FileInfo, error)

func (*PhantomFile) Write

func (p *PhantomFile) Write(data []byte) (n int, err error)

type PhantomFileSystem

type PhantomFileSystem struct {
}

func (*PhantomFileSystem) Mkdir

func (pfs *PhantomFileSystem) Mkdir(ctx context.Context, name string, perm os.FileMode) error

func (*PhantomFileSystem) OpenFile

func (pfs *PhantomFileSystem) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)

func (*PhantomFileSystem) RemoveAll

func (pfs *PhantomFileSystem) RemoveAll(ctx context.Context, name string) error

func (*PhantomFileSystem) Rename

func (pfs *PhantomFileSystem) Rename(ctx context.Context, oldName, newName string) error

func (*PhantomFileSystem) Stat

func (pfs *PhantomFileSystem) Stat(ctx context.Context, name string) (os.FileInfo, 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) Confirm

func (pls *PhantomLockSystem) Confirm(now time.Time, name0, name1 string, conditions ...webdav.Condition) (release func(), err error)

func (*PhantomLockSystem) Create

func (pls *PhantomLockSystem) Create(now time.Time, details webdav.LockDetails) (token string, err error)

func (*PhantomLockSystem) Refresh

func (pls *PhantomLockSystem) Refresh(now time.Time, token string, duration time.Duration) (webdav.LockDetails, error)

func (*PhantomLockSystem) Unlock

func (pls *PhantomLockSystem) Unlock(now time.Time, token string) 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

type ScoreNode

type ScoreNode struct {
	*BasicNode
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL