Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // offer sane defaults for proto vendoring DefaultMatchPatterns = []string{anyvendor.ProtoMatchPattern} )
View Source
var ( IrregularFileError = func(file string) error { return eris.Errorf("%s is not a regular file", file) } )
Functions ¶
func NewDefaultCopier ¶
func NewDefaultCopier() *copier
func NewGoModFactory ¶
Types ¶
type FileCopier ¶
type FileCopier interface { Copy(src, dst string) (int64, error) GetMatches(copyPat []string, dir string) ([]string, error) }
This interface is used to abstract away the methods which require ENV vars or other system things. This is mostly for unit testing purposes.
Click to show internal directories.
Click to hide internal directories.