Documentation
¶
Index ¶
- Constants
- func CheckDependencyVersion(providerPath, modPath, constaint string) (string, bool, error)
- func CheckForGoModules(providerPath string) (usingModules bool)
- func CheckGoVersion(providerPath string) (goVersion string, satisfiesConstraint bool)
- func CheckSDKPackageImports(details *ProviderImportDetails) ([]string, error)
- func CommandFactory(ui cli.Ui) func() (cli.Command, error)
- func ReadVersionFromModFile(path, dependencyPath string) (*version.Version, error)
- func RunCheck(ui cli.Ui, providerPath, repoName string) error
- type AlreadyMigrated
- type Offence
- type ProviderImportDetails
- type ProviderPackage
Constants ¶
View Source
const (
CommandName = "check"
)
Variables ¶
This section is empty.
Functions ¶
func CheckDependencyVersion ¶
func CheckForGoModules ¶
func CheckGoVersion ¶
func CheckSDKPackageImports ¶
func CheckSDKPackageImports(details *ProviderImportDetails) ([]string, error)
func ReadVersionFromModFile ¶
Types ¶
type AlreadyMigrated ¶
type AlreadyMigrated struct {
// contains filtered or unexported fields
}
func (*AlreadyMigrated) Error ¶
func (am *AlreadyMigrated) Error() string
type Offence ¶
func CheckSDKPackageRefs ¶
func CheckSDKPackageRefs(providerImportDetails *ProviderImportDetails) ([]*Offence, error)
type ProviderImportDetails ¶
type ProviderImportDetails struct { AllImportPathsHash map[string]bool Packages map[string]ProviderPackage }
ProviderImports is a data structure we parse the `go list` output into for efficient searching
func GoListPackageImports ¶
func GoListPackageImports(providerPath string) (*ProviderImportDetails, error)
Click to show internal directories.
Click to hide internal directories.