porting

package
v0.0.0-...-a45bf93 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Put(ctx context.Context, p string, ent CacheEntry) error
	Get(ctx context.Context, p string) (*CacheEntry, error)
}

type CacheEntry

type CacheEntry struct {
	Ref        glfs.Ref
	ModifiedAt time.Time
}

type Exporter

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

func NewExporter

func NewExporter(fs posixfs.FS, cache Cache, overwrite bool) *Exporter

func (*Exporter) Export

func (e *Exporter) Export(ctx context.Context, s cadata.Store, p string, ref glfs.Ref) error

type NullCache

type NullCache struct{}

func (NullCache) Get

func (c NullCache) Get(ctx context.Context, p string) (*CacheEntry, error)

func (NullCache) Put

func (c NullCache) Put(ctx context.Context, p string, ent *CacheEntry) error

Jump to

Keyboard shortcuts

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