Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkedFile ¶
type ChunkedFile struct { ElementHeader ContentSize int64 Chunks []Chunk }
func NewChunkedFile ¶
func NewChunkedFile(size int64) *ChunkedFile
func (*ChunkedFile) Directory ¶
func (c *ChunkedFile) Directory() *Directory
func (*ChunkedFile) File ¶
func (c *ChunkedFile) File() File
func (*ChunkedFile) IsDir ¶
func (c *ChunkedFile) IsDir() bool
func (*ChunkedFile) Reader ¶
func (c *ChunkedFile) Reader() io.Reader
func (*ChunkedFile) Serialize ¶
func (c *ChunkedFile) Serialize() ([]byte, error)
func (*ChunkedFile) Size ¶
func (c *ChunkedFile) Size() int64
type Directory ¶
type Directory struct { ElementHeader Entries []DirectoryEntry }
func NewDirectory ¶
func NewDirectory() *Directory
type DirectoryEntry ¶
type Element ¶
type ElementHeader ¶
func (*ElementHeader) SetStorage ¶
func (hdr *ElementHeader) SetStorage(st storage.Accessor)
type SimpleFile ¶
type SimpleFile struct { ElementHeader Content []byte }
func NewSimpleFile ¶
func NewSimpleFile(content []byte) *SimpleFile
func (*SimpleFile) Directory ¶
func (f *SimpleFile) Directory() *Directory
func (*SimpleFile) File ¶
func (f *SimpleFile) File() File
func (*SimpleFile) IsDir ¶
func (f *SimpleFile) IsDir() bool
func (*SimpleFile) Reader ¶
func (f *SimpleFile) Reader() io.Reader
func (*SimpleFile) Serialize ¶
func (f *SimpleFile) Serialize() ([]byte, error)
func (*SimpleFile) Size ¶
func (f *SimpleFile) Size() int64
type SimpleReader ¶
type SimpleReader struct {
// contains filtered or unexported fields
}
func (*SimpleReader) Size ¶
func (r *SimpleReader) Size() int64
type Snapshot ¶
type Snapshot struct { ElementHeader Timestamp int64 Size FileSize Root storage.ID Parent storage.ID }
func NewSnapshot ¶
func NewSnapshot() *Snapshot
Click to show internal directories.
Click to hide internal directories.