Documentation ¶
Index ¶
Constants ¶
View Source
const InitCommandTimeout = 60
InitCommandTimeout timeout
Variables ¶
This section is empty.
Functions ¶
func OpenGitRepo ¶
func OpenGitRepo(repoPath string) *git.Repository
OpenGitRepo checks if a directory is a git repo
func RunInitCommand ¶
func RunInitCommand(terrascanBinaryPath string, outWriter, errWriter io.Writer, exitCode int) *gexec.Session
RunInitCommand will execute the init command and verify exit code
func ValidateGitRepo ¶
func ValidateGitRepo(repo *git.Repository, gitURL string)
ValidateGitRepo validates a git repo and verifies the git url
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.