imports

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IsNotFound = iota
	IsFile
	IsDirectory
)

Variables

This section is empty.

Functions

func NewImporters

func NewImporters(logger *zap.Logger, hosts []config.Host) (map[string]*Importer, error)

Types

type Importer

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

func (*Importer) ExcludeSymlinkFiles added in v0.0.3

func (l *Importer) ExcludeSymlinkFiles(ctx context.Context, files []string) []string

func (*Importer) FileType

func (l *Importer) FileType(ctx context.Context, path string) int

func (*Importer) GetFileContent

func (l *Importer) GetFileContent(ctx context.Context, path string) ([]byte, os.FileMode, error)

func (*Importer) ListUntrackedFiles

func (l *Importer) ListUntrackedFiles(ctx context.Context, path string) ([]string, error)

type NewImportersFunc

type NewImportersFunc func(logger *zap.Logger, hosts []config.Host) (map[string]*Importer, error)

Jump to

Keyboard shortcuts

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