linker

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLinkerLogLevel

func SetLinkerLogLevel(lv logrus.Level)

SetLinkerLogLevel sets log lv.

Types

type Filter added in v0.0.3

type Filter func([]string) []string

type Linker

type Linker struct {
	GoPath   string
	RepoPath string
	FullPath string
}

Linker defines the link pkg config

func NewLinker

func NewLinker(gopath string, repoRootPath string) *Linker

NewLinker inits the linker

func (*Linker) GetAllPKGNames

func (l *Linker) GetAllPKGNames(allowDup bool, excludeDirs []string) (map[string][]string, error)

GetAllPKGNames gets the full layers packages names

func (*Linker) GetInvokeSrcMap

func (l *Linker) GetInvokeSrcMap() (map[string][]string, error)

GetInvokeSrcMap get pkg names(as value) with his import file(as key) TODO

func (*Linker) GetLayerPKGNames

func (l *Linker) GetLayerPKGNames(allowDup bool, excludeDirs []string) (pkgNames []string, err error)

GetLayerPKGNames gets the layer(depends on the repo) package names DO NOT SUPPORT GOROOT ENV

func (*Linker) GetPackagesByFilter added in v0.0.3

func (l *Linker) GetPackagesByFilter(allowDup bool, excludeDirs []string) Searcher

type SearchFilter added in v0.0.3

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

func (*SearchFilter) Error added in v0.0.3

func (sf *SearchFilter) Error() error

func (*SearchFilter) Filt added in v0.0.3

func (sf *SearchFilter) Filt(fs ...Filter) Searcher

func (*SearchFilter) List added in v0.0.3

func (sf *SearchFilter) List() []string

type Searcher added in v0.0.3

type Searcher interface {
	Filt(...Filter) Searcher
	List() []string
	Error() error
}

Jump to

Keyboard shortcuts

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