daggers
import "github.com/eunomie/dague/daggers"
Index
- func ApplyGofmt(ctx context.Context, c *dagger.Client) error
- func ApplyGofumpt(ctx context.Context, c *dagger.Client) error
- func Base(c *dagger.Client) *dagger.Container
- func CheckGoDoc(ctx context.Context, c *dagger.Client) error
- func CrossBuild(ctx context.Context, c *dagger.Client, buildOpts types.CrossBuildOpts) error
- func ExportGoMod(ctx context.Context, c *dagger.Client) error
- func GoDeps(c *dagger.Client) *dagger.Container
- func GoDoc(ctx context.Context, c *dagger.Client) error
- func GoMod(c *dagger.Client) *dagger.Container
- func GoVulnCheck(ctx context.Context, c *dagger.Client) error
- func LocalBuild(ctx context.Context, c *dagger.Client, buildOpts types.LocalBuildOpts) error
- func PrintGofmt(ctx context.Context, c *dagger.Client) error
- func PrintGofumpt(ctx context.Context, c *dagger.Client) error
- func RunGoTests(ctx context.Context, c *dagger.Client) error
- func Sources(c *dagger.Client) *dagger.Container
- func SourcesNoDeps(c *dagger.Client) *dagger.Container
- func applyGoformatter(ctx context.Context, c *dagger.Client, formatter string) error
- func exportFiles(ctx context.Context, cont *dagger.Container, files []string) error
- func goBuild(ctx context.Context, src *dagger.Container, os, arch string, buildOpts types.BuildOpts, buildFile string) error
- func sources(c *dagger.Client, cont *dagger.Container) *dagger.Container
func ApplyGofmt
func ApplyGofmt(ctx context.Context, c *dagger.Client) error
func ApplyGofumpt
func ApplyGofumpt(ctx context.Context, c *dagger.Client) error
func Base
func Base(c *dagger.Client) *dagger.Container
Base is a default container based on a Golang build image (see config.BuildImage) on top of which is installed several packages and Go packages. The workdir is also set based on config.AppDir.
This container is used as the root of many other commands, allowing to share cache as much as possible.
func CheckGoDoc
func CheckGoDoc(ctx context.Context, c *dagger.Client) error
func CrossBuild
func CrossBuild(ctx context.Context, c *dagger.Client, buildOpts types.CrossBuildOpts) error
func ExportGoMod
func ExportGoMod(ctx context.Context, c *dagger.Client) error
func GoDeps
func GoDeps(c *dagger.Client) *dagger.Container
GoDeps mount the Go module files and download the needed dependencies.
func GoDoc
func GoDoc(ctx context.Context, c *dagger.Client) error
func GoMod
func GoMod(c *dagger.Client) *dagger.Container
func GoVulnCheck
func GoVulnCheck(ctx context.Context, c *dagger.Client) error
func LocalBuild
func LocalBuild(ctx context.Context, c *dagger.Client, buildOpts types.LocalBuildOpts) error
func PrintGofmt
func PrintGofmt(ctx context.Context, c *dagger.Client) error
func PrintGofumpt
func PrintGofumpt(ctx context.Context, c *dagger.Client) error
func RunGoTests
func RunGoTests(ctx context.Context, c *dagger.Client) error
func Sources
func Sources(c *dagger.Client) *dagger.Container
Sources is a container based on GoDeps. It contains the Go source code but also all the needed dependencies from Go modules.
func SourcesNoDeps
func SourcesNoDeps(c *dagger.Client) *dagger.Container
SourcesNoDeps is a container including all the source code, but without the Go modules downloaded. It can be helpful with projects where dependencies are vendored but also just minimise the number of steps when it's not required.
func applyGoformatter(ctx context.Context, c *dagger.Client, formatter string) error
func exportFiles
func exportFiles(ctx context.Context, cont *dagger.Container, files []string) error
func goBuild
func goBuild(ctx context.Context, src *dagger.Container, os, arch string, buildOpts types.BuildOpts, buildFile string) error
func sources
func sources(c *dagger.Client, cont *dagger.Container) *dagger.Container
Generated by gomarkdoc