Documentation ¶
Overview ¶
package mageutil provides util functions for Magefile. For usage please refer to documentation provided by Magefile. For autocompletions see completions.
Index ¶
- Constants
- func AwsVault(ctx context.Context, args ...string) errordeprecated
- func AwsVaultCredentials(ctx context.Context, awsProfile string) (aws.Credentials, error)deprecated
- func AwsVaultEnv(ctx context.Context, awsProfile string) (map[string]string, error)deprecated
- func AwsVaultExec(ctx context.Context, awsProfile string, args ...string) errordeprecated
- func AwsWithEnvCredentials(ctx context.Context, awsProfile string, fn func() error) errordeprecated
- func BinDir() (string, error)deprecated
- func Build(ctx context.Context, name string) errordeprecated
- func BuildAll(ctx context.Context) errordeprecated
- func BuildFor(ctx context.Context, goos, goarch, name string) errordeprecated
- func BuildForArmMac(ctx context.Context, name string)deprecated
- func BuildForLinux(ctx context.Context, name string)deprecated
- func BuildForMac(ctx context.Context, name string)deprecated
- func BuildForWindows(ctx context.Context, name string)deprecated
- func BuildWithSHA(ctx context.Context, goos, goarch, name string)deprecated
- func CGO(enabled bool)
- func Clean(ctx context.Context) errordeprecated
- func CoverInfo(ctx context.Context, profile string) errordeprecated
- func DefaultLabels(imageName, url, desc string) map[string]stringdeprecated
- func Docker(ctx context.Context, args ...string) errordeprecated
- func DockerBuild(ctx context.Context, platform, dockerfile, buildCtx string, tags []string, ...) errordeprecated
- func DockerBuildDefault(ctx context.Context, imageName, url string) errordeprecated
- func DockerPushAllTags(ctx context.Context, imageName string) errordeprecated
- func DockerTags(imageName string, tags ...string) []stringdeprecated
- func Ensure(ctx context.Context) errordeprecated
- func EnsureInSync(ctx context.Context) errordeprecated
- func Git(ctx context.Context, args ...string) errordeprecated
- func Go(ctx context.Context, args ...string) errordeprecated
- func GoList(ctx context.Context, target string) ([]string, error)deprecated
- func GoWith(ctx context.Context, env map[string]string, args ...string) errordeprecated
- func GolangCILint(ctx context.Context, args ...string) errordeprecated
- func IntegrationTest(ctx context.Context, pkg string) errordeprecated
- func LicenseCheck(ctx context.Context, w io.Writer, targets ...string) errordeprecated
- func LintAll(ctx context.Context) errordeprecated
- func MergeCover(ctx context.Context, coverFiles []string, w io.Writer) errordeprecated
- func MergeCoverProfiles(ctx context.Context) errordeprecated
- func MustSetEnv(k, v string)
- func Npm(ctx context.Context, args ...string) errordeprecated
- func NpmCleanInstall(ctx context.Context) errordeprecated
- func NpmInstall(ctx context.Context) errordeprecated
- func NpmRun(ctx context.Context, args ...string) errordeprecated
- func NpmUpdate(ctx context.Context) errordeprecated
- func NpmWith(_ context.Context, env map[string]string, args ...string) errordeprecated
- func Run(ctx context.Context, name string, args ...string) errordeprecated
- func SHA256Sum(ctx context.Context, name string) error
- func SopsDecryptFile(ctx context.Context, file string) ([]byte, error)deprecated
- func SopsDecryptWithAwsEnv(ctx context.Context, file, profile string) ([]byte, error)deprecated
- func SwaggerDocs(ctx context.Context, searchDir, apiFile, outputDir string) errordeprecated
- func SwaggerDocsWithConf(ctx context.Context, conf gen.Config) errordeprecated
- func Targets(ctx context.Context) ([]string, error)deprecated
- func Tidy(ctx context.Context) errordeprecated
- func TidyAndVerifyNoChanges(ctx context.Context) errordeprecated
- func UnitTest(ctx context.Context) errordeprecated
- func Verbose(enabled bool)
- func VulnCheck(ctx context.Context, args ...string) errordeprecated
- func VulnCheckAll(ctx context.Context) errordeprecated
- func YamlFmt(ctx context.Context, paths ...string) errordeprecated
- func YamlLint(ctx context.Context, paths ...string) errordeprecated
- func YamlOperationWithDefaultConfig(ctx context.Context, op command.Operation, paths ...string) errordeprecated
- type BuildInfo
- func BuildForArmMacWithInfo(ctx context.Context, name string) (BuildInfo, error)deprecated
- func BuildForLinuxWithInfo(ctx context.Context, name string) (BuildInfo, error)deprecated
- func BuildForMacWithInfo(ctx context.Context, name string) (BuildInfo, error)deprecated
- func BuildForWindowsWithInfo(ctx context.Context, name string) (BuildInfo, error)deprecated
- func BuildForWithInfo(ctx context.Context, goos, goarch, name string) (BuildInfo, error)deprecated
- func BuildWithInfo(ctx context.Context, name string) (BuildInfo, error)deprecated
- func BuildWithSHAWithInfo(ctx context.Context, goos, goarch, name string) (BuildInfo, error)deprecated
- type NpmCmd
- func NewNpmCmd(args ...string) NpmCmddeprecated
- func (npm NpmCmd) Audit(ctx context.Context) errordeprecated
- func (npm NpmCmd) CleanInstall(ctx context.Context) errordeprecated
- func (npm NpmCmd) Install(ctx context.Context) errordeprecated
- func (npm NpmCmd) Npm(ctx context.Context, args ...string) errordeprecated
- func (npm NpmCmd) Run(ctx context.Context, args ...string) errordeprecated
- func (npm NpmCmd) Update(ctx context.Context) errordeprecated
Constants ¶
View Source
const ( OCILabelTitle = docker.OCILabelTitle OCILabelURL = docker.OCILabelURL OCILabelVersion = docker.OCILabelVersion OCILabelDescription = docker.OCILabelDescription OCILabelCreated = docker.OCILabelCreated OCILabelSource = docker.OCILabelSource OCILabelLicenses = docker.OCILabelLicenses OCILabelAuthors = docker.OCILabelAuthors OCILabelVendor = docker.OCILabelVendor OCILabelRevision = docker.OCILabelRevision )
View Source
const ( DefaultPlatform = docker.DefaultPlatform DefaultDockerfile = docker.DefaultDockerfile DefaultBuildCtx = docker.DefaultBuildCtx DefaultExtraCtx = docker.DefaultExtraCtx )
View Source
const ( CmdDir = "./cmd/" TargetDir = "./target/" ReportsDir = TargetDir + "reports/" )
View Source
const ( UnitCoverProfile = ReportsDir + "unit-test-coverage.out" IntegrationCoverProfile = ReportsDir + "integration-test-coverage.out" MergedCoverProfile = ReportsDir + "merged-test-coverage.out" )
View Source
const (
UNKNOWN = "Unknown"
)
Variables ¶
This section is empty.
Functions ¶
func AwsVaultCredentials
deprecated
added in
v1.3.0
func BuildForArmMac
deprecated
func BuildForLinux
deprecated
func BuildForMac
deprecated
func BuildForWindows
deprecated
func BuildWithSHA
deprecated
func CGO ¶
func CGO(enabled bool)
CGO can be used to enable of disable CGO. By default this package will disable CGO.
func DefaultLabels
deprecated
func DockerBuildDefault
deprecated
func DockerPushAllTags
deprecated
func DockerTags
deprecated
func EnsureInSync
deprecated
added in
v1.1.0
func GolangCILint
deprecated
func IntegrationTest
deprecated
func MergeCoverProfiles
deprecated
func MustSetEnv ¶
func MustSetEnv(k, v string)
func NpmCleanInstall
deprecated
added in
v1.2.0
func NpmInstall
deprecated
added in
v1.2.0
func SHA256Sum ¶
SHA256Sum calculates sum for single file and stores it in file. Output should be compatible with sha256sum program.
func SwaggerDocs
deprecated
func TidyAndVerifyNoChanges
deprecated
added in
v1.2.0
func Verbose ¶
func Verbose(enabled bool)
Verbose can be used to control mage's verbose state. By default this package will set mage in verbose state.
func VulnCheckAll
deprecated
Types ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package awsvault exposes github.com/99designs/aws-vault as library.
|
Package awsvault exposes github.com/99designs/aws-vault as library. |
cdk
|
|
target
Package target exposes cdk targets that can be imported in magefile using [import syntax].
|
Package target exposes cdk targets that can be imported in magefile using [import syntax]. |
target
Package target exposes docker targets that can be imported in magefile using [import syntax].
|
Package target exposes docker targets that can be imported in magefile using [import syntax]. |
Package git exposes git command.
|
Package git exposes git command. |
package golang provides util functions for managing Go project with Go.
|
package golang provides util functions for managing Go project with Go. |
target
Package target exposes Go targets that can be imported in magefile using [import syntax].
|
Package target exposes Go targets that can be imported in magefile using [import syntax]. |
target
Package target exposes golanci-lint targets that can be imported in magefile using [import syntax].
|
Package target exposes golanci-lint targets that can be imported in magefile using [import syntax]. |
Package golicenses exposes github.com/google/go-licenses/licenses as library.
|
Package golicenses exposes github.com/google/go-licenses/licenses as library. |
target
Package target exposes golicenses targets that can be imported in magefile using [import syntax].
|
Package target exposes golicenses targets that can be imported in magefile using [import syntax]. |
Package govulncheck exposes golang.org/x/vuln/scan as library.
|
Package govulncheck exposes golang.org/x/vuln/scan as library. |
target
Package target exposes govulncheck targets that can be imported in magefile using [import syntax].
|
Package target exposes govulncheck targets that can be imported in magefile using [import syntax]. |
target
Package target exposes Lambda targets that can be imported in magefile using [import syntax].
|
Package target exposes Lambda targets that can be imported in magefile using [import syntax]. |
Package npm exposes npm functionality as library.
|
Package npm exposes npm functionality as library. |
target
Package target exposes npm targets that can be imported in magefile using [import syntax].
|
Package target exposes npm targets that can be imported in magefile using [import syntax]. |
Package sops provides sops decrypting functionality.
|
Package sops provides sops decrypting functionality. |
Package swaggo exposes openapi tools as library with sane defaults.
|
Package swaggo exposes openapi tools as library with sane defaults. |
target
Package target exposes swaggo targets that can be imported in magefile using [import syntax].
|
Package target exposes swaggo targets that can be imported in magefile using [import syntax]. |
Package yamlfmt exposes yaml formatting functionality as library with sane defaults.
|
Package yamlfmt exposes yaml formatting functionality as library with sane defaults. |
target
Package target exposes yaml targets that can be imported in magefile using [import syntax].
|
Package target exposes yaml targets that can be imported in magefile using [import syntax]. |
Click to show internal directories.
Click to hide internal directories.