Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootPkg = PackageInfo{ // contains filtered or unexported fields }
Functions ¶
This section is empty.
Types ¶
type BaseStruct ¶
type BaseStruct interface { GetPackageInfo(pkgPath string) PackageInfo BuildPackageTree(path string) ImportTree GetChangedPackages(r io.Reader) PackageSet }
func NewBaseStruct ¶
func NewBaseStruct() BaseStruct
type DependencyTree ¶
type DependencyTree interface { PackageTree ToImportTree() ImportTree ExpandDependencies(set PackageSet) }
type ImportTree ¶
type ImportTree interface { PackageTree ToDependencyTree() DependencyTree }
type PackageInfo ¶
type PackageInfo struct {
// contains filtered or unexported fields
}
func (PackageInfo) CanImport ¶
func (p PackageInfo) CanImport(o PackageInfo) bool
func (PackageInfo) Name ¶
func (p PackageInfo) Name() string
func (PackageInfo) Path ¶
func (p PackageInfo) Path() string
func (PackageInfo) String ¶
func (p PackageInfo) String() string
func (PackageInfo) Type ¶
func (p PackageInfo) Type() PackageType
type PackageSet ¶
type PackageSet interface { Add(p PackageInfo) Contains(p PackageInfo) bool Remove(p PackageInfo) Enumerate() []PackageInfo }
func NewPackageSet ¶
func NewPackageSet() PackageSet
type PackageTree ¶
type PackageTree interface {
Enumerate() map[PackageInfo][]PackageInfo
}
type PackageType ¶
type PackageType string
const ( // External packages are external dependencies External PackageType = "external" // Common packages contain shared utilities and can import only External packages Common PackageType = "common" // Service packages are deployable services and can import Common and External packages Service PackageType = "service" // Utility packages can import whatever they want Utility PackageType = "utility" )
Click to show internal directories.
Click to hide internal directories.