snap

package
v0.0.0-...-810cf82 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2019 License: MIT Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(chunkStore chunks.Store, de *wire.Dirent) (fusefs.Node, error)

Serve this snapshot with FUSE, with this object store.

Types

type Iterator

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

func (*Iterator) Next

func (i *Iterator) Next() (*wire.Dirent, error)

type Reader

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

func NewReader

func NewReader(rat io.ReaderAt, align uint32) (*Reader, error)

func (*Reader) Iter

func (r *Reader) Iter() *Iterator

func (*Reader) Lookup

func (r *Reader) Lookup(name string) (*wire.Dirent, error)

TODO how to pass ctx to rat.ReadAt

type Writer

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

func NewWriter

func NewWriter(wat io.WriterAt) *Writer

func (*Writer) Add

func (s *Writer) Add(de *wire.Dirent) error

func (*Writer) Align

func (s *Writer) Align() uint32

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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