tools

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultGitHubClientVersion is the version of gh that is installed when it's not present
	DefaultGitHubClientVersion = "2.27.0"

	// DefaultKindVersion is the default version of KinD that is installed when it's not present
	DefaultKindVersion = "v0.20.0"

	// DefaultStaticCheckVersion is the default version of StaticCheck that is installed when it's not present
	DefaultStaticCheckVersion = "2023.1.6"

	// DefaultGolangCILintVersion is the default version of golangci-lint that is installed when it's not present
	DefaultGolangCILintVersion = "1.62.0"
)

Functions

func EnforceGoVersion

func EnforceGoVersion(constraint string)

Fail if the go version doesn't match the specified constraint Examples: >=1.16

func EnsureGitHubClient

func EnsureGitHubClient()

Install gh

func EnsureGolangCILint added in v0.6.4

func EnsureGolangCILint()

Install golangci-lint

func EnsureGolangCILintAt added in v0.6.4

func EnsureGolangCILintAt(version string)

Install golangci-lint at the specified version

func EnsureKind

func EnsureKind()

Install kind

func EnsureKindAt added in v0.1.3

func EnsureKindAt(version string)

Install kind at the specified version

func EnsureMage

func EnsureMage() error

Install mage

func EnsureStaticCheck added in v0.3.0

func EnsureStaticCheck()

Install Staticcheck

func EnsureStaticCheckAt added in v0.3.0

func EnsureStaticCheckAt(version string)

Install Staticcheck at the specified version

Types

This section is empty.

Jump to

Keyboard shortcuts

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