Documentation
¶
Overview ¶
package porting deals with importing and exporting to and from gotfs
Index ¶
- type DB
- func (db *DB) Delete(ctx context.Context, p string) error
- func (db *DB) GetFSRoot(ctx context.Context, p string, dst *gotfs.Root) (bool, error)
- func (db *DB) GetInfo(ctx context.Context, p string, dst *FileInfo) (bool, error)
- func (db *DB) PutFSRoot(ctx context.Context, p string, modt tai64.TAI64N, fsroot gotfs.Root) error
- func (db *DB) PutInfo(ctx context.Context, ent FileInfo) error
- type ErrWouldClobber
- type Exporter
- func (pr *Exporter) Clobber(ctx context.Context, ms, ds stores.Reading, root gotfs.Root, p string) error
- func (pr *Exporter) ExportFile(ctx context.Context, ms, ds stores.Reading, root gotfs.Root, p string) error
- func (pr *Exporter) ExportPath(ctx context.Context, ms, ds stores.Reading, root gotfs.Root, p string) error
- type FileInfo
- type Importer
- type Span
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB stores metadata about the state of the directory and any data that has been imported from it.
type ErrWouldClobber ¶
func (ErrWouldClobber) Error ¶
func (e ErrWouldClobber) Error() string
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
func (*Exporter) ExportFile ¶
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func (*Importer) ImportFile ¶
Click to show internal directories.
Click to hide internal directories.