metadata

package
v0.5.1-prerelease Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuildSystem

func GetBuildSystem() string

func GetCommitID

func GetCommitID(scanPath string) (commitId string)

GetCommitID gets the current CommitID of the repository

func GetGitUser

func GetGitUser(scanPath string) (gitUser string)

GetGitUser attempts to get the user who performed the most recent commit

func GetRepositoryDetails

func GetRepositoryDetails(scanPath string) (repoName, branch string, err error)

GetRepositoryDetails gets the repository name and branch multiple env vars will be checked first before falling back to the folder name

func GetScmID

func GetScmID(scanPath string) (string, error)

GetScmID extracts the git path from the config file

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL