util

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientGenBinary added in v0.3.5

func ClientGenBinary(c *dagger.Client) *dagger.File

ClientGenBinary returns a compiled dagger binary

func DaggerBinary

func DaggerBinary(c *dagger.Client) *dagger.File

DaggerBinary returns a compiled dagger binary

func DevEngine

func DevEngine(ctx context.Context, c *dagger.Client) (string, error)

func DevEngineContainer

func DevEngineContainer(c *dagger.Client, arches, oses []string) []*dagger.Container

func EngineSessionBinary added in v0.3.5

func EngineSessionBinary(c *dagger.Client) *dagger.File

func GoBase

func GoBase(c *dagger.Client) *dagger.Container

GoBase is a standardized base image for running Go, cache optimized for the layout of this repository

NOTE: this function is a shared util ONLY because it's used both by the Engine and the Go SDK. Other languages shouldn't have a common helper.

func HostDockerDir added in v0.3.5

func HostDockerDir(c *dagger.Client) *dagger.Directory

HostDockerCredentials returns the host's ~/.docker dir if it exists, otherwise just an empty dir

func Repository

func Repository(c *dagger.Client) *dagger.Directory

Repository with common set of exclude filters to speed up upload

func RepositoryGoCodeOnly

func RepositoryGoCodeOnly(c *dagger.Client) *dagger.Directory

RepositoryGoCodeOnly is Repository, filtered to only contain Go code.

NOTE: this function is a shared util ONLY because it's used both by the Engine and the Go SDK. Other languages shouldn't have a common helper.

func WithDevEngine

func WithDevEngine(ctx context.Context, c *dagger.Client, cb func(context.Context, *dagger.Client) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳