exporter

package
v0.4.19-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backends

func Backends() []string

func Register

func Register(name string, backend func(location string) (ExporterBackend, error))

Types

type Exporter

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

func NewExporter

func NewExporter(location string) (*Exporter, error)

func (*Exporter) Close

func (exporter *Exporter) Close() error

func (*Exporter) CreateDirectory

func (exporter *Exporter) CreateDirectory(pathname string, fileinfo *objects.FileInfo) error

func (*Exporter) Root

func (exporter *Exporter) Root() string

func (*Exporter) StoreFile

func (exporter *Exporter) StoreFile(pathname string, fileinfo *objects.FileInfo, fp io.Reader) error

type ExporterBackend

type ExporterBackend interface {
	Root() string
	CreateDirectory(pathname string, fileinfo *objects.FileInfo) error
	StoreFile(pathname string, fileinfo *objects.FileInfo, fp io.Reader) error
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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