steps

package
v0.0.0-...-e5371cd Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ControllerGenVersion = lookupEnv("PROTOC_VERSION", "v0.12.0")

	GolangLint        = lookupEnv("GOLANGCI_LINT", getGoBin()+"/golangci-lint")
	GolangLintPath    = "github.com/golangci/golangci-lint/cmd/golangci-lint"
	GolangLintOpts    = lookupEnv("GOLANGCI_LINT_OPTS", "-v --out-format colored-line-number:stdout,junit-xml:report-lint.xml")
	GolangLintVersion = lookupEnv("GOLANGCI_LINT_VERSION", "v1.53.3")

	ProtocGenGo        = lookupEnv("PROTOC_GENGO", getGoBin()+"/protoc-gen-go")
	ProtocGenGoPath    = "google.golang.org/protobuf/cmd/protoc-gen-go"
	ProtocGenGoVersion = lookupEnv("PROTOC_GENGO_VERSION", "v1.28")

	ProtocGenGoGRPC        = lookupEnv("PROTOC_GENGO_GRPC", getGoBin()+"/protoc-gen-go-grpc")
	ProtocGenGoGRPCPath    = "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
	ProtocGenGoGRPCVersion = lookupEnv("PROTOC_GENGO_GRPC_VERSION", "v1.2")

	CorazaConfig    = "https://raw.githubusercontent.com/corazawaf/coraza/v3/dev/coraza.conf-recommended"
	CoreRuleSetRepo = "https://github.com/coreruleset/coreruleset"
)

Functions

This section is empty.

Types

type Generate

type Generate mg.Namespace

func (Generate) Protobuf

func (Generate) Protobuf() error

Generates the protobuffers

func (Generate) WAFConfig

func (Generate) WAFConfig() error

type Go

type Go mg.Namespace

func (Go) Build

func (Go) Build()

Build builds the program

func (Go) Client

func (Go) Client() error

func (Go) Fmt

func (Go) Fmt() error

Fmt formats the code

func (Go) Server

func (Go) Server() error

func (Go) Test

func (Go) Test() error

Test runs the unittests

func (Go) Tidy

func (Go) Tidy() error

Tidy tidies the go package

func (Go) Vet

func (Go) Vet() error

Vet runs a govet

type Validate

type Validate mg.Namespace

func (Validate) Lint

func (Validate) Lint() error

Lint runs the golangci-lint on the application

func (Validate) Style

func (Validate) Style() error

Style verifies if gofmt was executed properly

func (Validate) Unused

func (Validate) Unused() error

Unused verifies if there are any unused go modules

Jump to

Keyboard shortcuts

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