Documentation ¶
Index ¶
- func CheckGitConfigExists() bool
- func EnsureBoilerplateScript(version, boilerplateScript string, forceInstall bool) error
- func EnsureCosign(version string) error
- func EnsureGitConfig() error
- func EnsureGolangCILint(version string, forceInstall bool) error
- func EnsureKO(version string) error
- func EnsureZeitgeist(version string) error
- func GenerateLDFlags() (string, error)
- func InstallCosign(version string) error
- func InstallKO(version string) error
- func RunGolangCILint(version string, forceInstall bool, args ...string) error
- func TestGo(verbose bool, pkgs ...string) error
- func TestGoWithTags(verbose bool, tags string, pkgs ...string) error
- func VerifyBoilerplate(version, binDir, boilerplateDir string, forceInstall bool) error
- func VerifyBuild(scriptDir string) error
- func VerifyDeps(version, basePath, configPath string, localOnly bool) error
- func VerifyGoMod() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGitConfigExists ¶ added in v0.5.0
func CheckGitConfigExists() bool
func EnsureBoilerplateScript ¶
EnsureBoilerplateScript downloads copyright header boilerplate script, if not already present in the repository.
func EnsureCosign ¶ added in v0.7.0
EnsureCosign makes sure that the specified cosign version is available
func EnsureGitConfig ¶ added in v0.5.0
func EnsureGitConfig() error
func EnsureGolangCILint ¶
Ensure golangci-lint is installed and on the PATH.
func EnsureZeitgeist ¶
Ensure zeitgeist is installed and on the PATH.
func GenerateLDFlags ¶ added in v0.5.0
GenerateLDFlags returns the string to use in the `-ldflags` flag.
func InstallCosign ¶ added in v0.7.0
InstallCosign installs the required cosign version
func RunGolangCILint ¶
RunGolangCILint runs all golang linters
func TestGoWithTags ¶ added in v0.5.0
func VerifyBoilerplate ¶
VerifyBoilerplate runs copyright header checks
func VerifyBuild ¶
VerifyBuild builds the project for a chosen set of platforms
func VerifyDeps ¶
VerifyDeps runs zeitgeist to verify dependency versions
func VerifyGoMod ¶
func VerifyGoMod() error
VerifyGoMod runs `go mod tidy` and `git diff --exit-code go.*` to ensure all module updates have been checked in.
Types ¶
This section is empty.