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 ¶
func NewGoModFactory(settings *anyvendor.FactorySettings) (*goModFactory, error)
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.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
The manager is the external facing object that will be responsible for ensuring a given anyvendor config, as outlined by the `anyvendor.Config` object.
func NewManagerWithSettings ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.