util

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 6 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 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 WithSetHostVar added in v0.3.6

func WithSetHostVar(ctx context.Context, h *dagger.Host, varName string) *dagger.HostVariable

Types

This section is empty.

Jump to

Keyboard shortcuts

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