daggers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 11 Imported by: 0

README

daggers

import "github.com/eunomie/dague/daggers"

Index

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 added in v0.3.0

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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