Documentation ¶
Index ¶
- func DownloadDependency(dependencyName string) error
- func Error(pattern *gofrogio.CmdOutputPattern) (string, error)
- func GetCachePath() (string, error)
- func GetDependenciesGraph(projectDir string) (map[string][]string, error)
- func GetDependenciesList(projectDir string) (map[string]bool, error)
- func GetFileDetails(filePath string) (modFileContent []byte, modFileStat os.FileInfo, err error)
- func GetGoModCachePath() (string, error)
- func GetGoSum(rootProjectDir string) (sumFileContent []byte, sumFileStat os.FileInfo, err error)
- func GetGoVersion() (string, error)
- func GetModuleNameByDir(projectDir string) (string, error)
- func GetProjectRoot() (string, error)
- func RemoveCredentials(pattern *gofrogio.CmdOutputPattern) (string, error)
- func RestoreSumFile(rootProjectDir string, sumFileContent []byte, sumFileStat os.FileInfo) error
- func RunGo(goArg []string, server auth.ServiceDetails, repo string, noFallback bool) error
- type Cmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadDependency ¶
Using go mod download {dependency} command to download the dependency
func GetCachePath ¶ added in v0.4.0
GetCachePath returns the location of downloads dir insied the GOMODCACHE
func GetDependenciesGraph ¶
Runs 'go mod graph' command and returns map that maps dependencies to their child dependencies slice
func GetDependenciesList ¶ added in v0.2.0
Runs go list -f {{with .Module}}{{.Path}}:{{.Version}}{{end}} all command and returns map of the dependencies
func GetFileDetails ¶
func GetGoModCachePath ¶ added in v0.4.0
GetGoModCachePath returns the location of the go module cache
func GetGoVersion ¶
func GetModuleNameByDir ¶ added in v0.5.0
Runs 'go list -m' command and returns module name
func GetProjectRoot ¶
Returns the root dir where the go.mod located.
func RemoveCredentials ¶ added in v0.1.18
func RemoveCredentials(pattern *gofrogio.CmdOutputPattern) (string, error)
Remove the credentials information from the line.
func RestoreSumFile ¶
Types ¶
type Cmd ¶
type Cmd struct { Go string Command []string CommandFlags []string Dir string StrWriter io.WriteCloser ErrWriter io.WriteCloser }
func (*Cmd) GetErrWriter ¶
func (config *Cmd) GetErrWriter() io.WriteCloser
func (*Cmd) GetStdWriter ¶
func (config *Cmd) GetStdWriter() io.WriteCloser
Click to show internal directories.
Click to hide internal directories.