mage

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGitConfigExists added in v0.5.0

func CheckGitConfigExists() bool

func EnsureBoilerplateScript

func EnsureBoilerplateScript(version, boilerplateScript string, forceInstall bool) error

EnsureBoilerplateScript downloads copyright header boilerplate script, if not already present in the repository.

func EnsureCosign added in v0.7.0

func EnsureCosign(version string) error

EnsureCosign makes sure that the specified cosign version is available

func EnsureGitConfig added in v0.5.0

func EnsureGitConfig() error

func EnsureGolangCILint

func EnsureGolangCILint(version string, forceInstall bool) error

Ensure golangci-lint is installed and on the PATH.

func EnsureKO added in v0.7.0

func EnsureKO(version string) error

EnsureKO

func EnsureZeitgeist

func EnsureZeitgeist(version string) error

Ensure zeitgeist is installed and on the PATH.

func GenerateLDFlags added in v0.5.0

func GenerateLDFlags() (string, error)

GenerateLDFlags returns the string to use in the `-ldflags` flag.

func InstallCosign added in v0.7.0

func InstallCosign(version string) error

InstallCosign installs the required cosign version

func InstallKO added in v0.7.0

func InstallKO(version string) error

Maybe we can move this to release-utils

func RunGolangCILint

func RunGolangCILint(version string, forceInstall bool, args ...string) error

RunGolangCILint runs all golang linters

func TestGo

func TestGo(verbose bool, pkgs ...string) error

func TestGoWithTags added in v0.5.0

func TestGoWithTags(verbose bool, tags string, pkgs ...string) error

func VerifyBoilerplate

func VerifyBoilerplate(version, binDir, boilerplateDir string, forceInstall bool) error

VerifyBoilerplate runs copyright header checks

func VerifyBuild

func VerifyBuild(scriptDir string) error

VerifyBuild builds the project for a chosen set of platforms

func VerifyDeps

func VerifyDeps(version, basePath, configPath string, localOnly bool) error

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.

Jump to

Keyboard shortcuts

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