devtool

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CatalogInfoDockerfile string

CatalogInfoDockerfile the content of policy-bot.Dockerfile

View Source
var PolicyBotConfigCheckDocker string

PolicyBotConfigCheckDocker the content of policy-bot.Dockerfile

View Source
var ToolsDockerfile string

ToolsDockerfile the content of tools.Dockerfile

Functions

func Build

func Build(tool, dockerfile string) error

Build allow a mage target to depend on a Docker image. This will pull the image from a Docker registry.

func GetImageName

func GetImageName(target string) (string, error)

GetImageName returns the name of a devtools OCI image

func Run

func Run(tool string, dockerRunArgs []string, cmd string, args ...string) error

Run will run the specified command with arguments in the specified Docker image

func RunWith

func RunWith(env map[string]string, tool string, dockerRunArgs []string, cmd string, args ...string) error

RunWith will run the specified command with arguments in the specified Docker image with environment variables defined.

Types

type CatalogInfo added in v0.21.0

type CatalogInfo struct{}

CatalogInfo holds the devtool for policy-bot

func (CatalogInfo) Run added in v0.21.0

func (cataloginfo CatalogInfo) Run(env map[string]string, args ...string) error

Run runs the policy-bot devtool

type Go added in v0.21.0

type Go struct{}

Go holds the devtool for Go

func (Go) Run added in v0.21.0

func (g Go) Run(env map[string]string, args ...string) error

Run runs the Go devtool

type GoLangCILint added in v0.21.0

type GoLangCILint struct{}

GoLangCILint holds the devtool for golnagci lint

func (GoLangCILint) Run added in v0.21.0

func (gl GoLangCILint) Run(env map[string]string, workdir string, args ...string) error

Run runs the Go devtool

type KubeConform added in v0.21.0

type KubeConform struct{}

KubeConform holds the devtool for kubeconform

func (KubeConform) Run added in v0.21.0

func (kf KubeConform) Run(env map[string]string, args ...string) error

Run runs the kubeconform devtool

type PolicyBot added in v0.21.0

type PolicyBot struct{}

PolicyBot holds the devtool for policy-bot

func (PolicyBot) Run added in v0.21.0

func (pb PolicyBot) Run(env map[string]string, args ...string) error

Run runs the policy-bot devtool

type TFLint added in v0.21.0

type TFLint struct{}

TFLint holds the devtool for tflint

func (TFLint) Run added in v0.21.0

func (tfl TFLint) Run(env map[string]string, workdir string, args ...string) error

Run runs the tflint devtool

type Terraform added in v0.21.0

type Terraform struct{}

Terraform holds the devtool for terraform

func (Terraform) Run added in v0.21.0

func (tf Terraform) Run(env map[string]string, workdir string, args ...string) error

Run runs the terraform devtool

type TerraformDocs added in v0.21.0

type TerraformDocs struct{}

TerraformDocs holds the devtool for terraform-docs

func (TerraformDocs) Run added in v0.21.0

func (tfdocs TerraformDocs) Run(env map[string]string, workdir string, args ...string) error

Run runs the terraform-docs devtool

type Trivy added in v0.21.0

type Trivy struct{}

Trivy holds the devtool for trivy

func (Trivy) Run added in v0.21.0

func (trivy Trivy) Run(env map[string]string, workdir string, args ...string) error

Run runs the trivy devtool

Jump to

Keyboard shortcuts

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