dagger

package
v0.6.9-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	Ctx    context.Context
	Client *dagger.Client
}

so we don't have to pass these around everywhere

func (*Runtime) AddDevTools

func (R *Runtime) AddDevTools(c *dagger.Container) *dagger.Container

func (*Runtime) AddDockerCLI

func (R *Runtime) AddDockerCLI(c *dagger.Container) *dagger.Container

func (*Runtime) AddNerdctl

func (R *Runtime) AddNerdctl(c *dagger.Container) *dagger.Container

func (*Runtime) AttachDaemonAsService

func (R *Runtime) AttachDaemonAsService(c, daemon *dagger.Container) (*dagger.Container, error)

Attaches the daemon as a dagger service to the container with the right settings. A single daemon can be shared among many containers this way, running separately from each of them.

func (*Runtime) BuildHof

func (R *Runtime) BuildHof(c *dagger.Container, source *dagger.Directory) *dagger.Container

func (*Runtime) BuildHofMatrix

func (R *Runtime) BuildHofMatrix(c *dagger.Container) (*dagger.Directory, error)

func (*Runtime) DockerClientContainer

func (R *Runtime) DockerClientContainer() (*dagger.Container, error)

func (*Runtime) DockerDaemonContainer

func (R *Runtime) DockerDaemonContainer() (*dagger.Container, error)

Defines an image or container that runs the dockerd daemon inside a container. We attach this to another container as a service, so that things running there can interact with the docker client, pull images, or run containers. We need this because hof will exec out to docker cli and then http request at the containers. When just mounting the docker socket, these containers were unreachable.

func (*Runtime) FetchDeps

func (R *Runtime) FetchDeps(c *dagger.Container, source *dagger.Directory) *dagger.Container

func (*Runtime) GcloudImage

func (R *Runtime) GcloudImage() *dagger.Container

func (*Runtime) GolangImage

func (R *Runtime) GolangImage(platform string) *dagger.Container

func (*Runtime) HofVersion

func (R *Runtime) HofVersion(c *dagger.Container) error

func (*Runtime) RunTestscriptDir

func (R *Runtime) RunTestscriptDir(c *dagger.Container, source *dagger.Directory, name, dir, pattern string) error

func (*Runtime) RuntimeContainer

func (R *Runtime) RuntimeContainer(builder *dagger.Container, platform string) *dagger.Container

func (*Runtime) SetupTestingEnv

func (R *Runtime) SetupTestingEnv(c *dagger.Container, source *dagger.Directory) *dagger.Container

func (*Runtime) ShowWorkdir

func (R *Runtime) ShowWorkdir(c *dagger.Container) *dagger.Container

func (*Runtime) TestAdhocRender

func (R *Runtime) TestAdhocRender(c *dagger.Container, source *dagger.Directory) error

func (*Runtime) TestCommandFmt

func (R *Runtime) TestCommandFmt(c *dagger.Container, source *dagger.Directory) error

func (*Runtime) TestCreate

func (R *Runtime) TestCreate(c *dagger.Container, source *dagger.Directory) error

func (*Runtime) TestCuecmd added in v0.6.9

func (R *Runtime) TestCuecmd(c *dagger.Container, source *dagger.Directory) error

func (*Runtime) TestDatamodel

func (R *Runtime) TestDatamodel(c *dagger.Container, source *dagger.Directory) error

func (*Runtime) TestFlow

func (R *Runtime) TestFlow(c *dagger.Container, source *dagger.Directory) error

func (*Runtime) TestHack added in v0.6.9

func (R *Runtime) TestHack(c *dagger.Container, source *dagger.Directory) error

func (*Runtime) TestMod

func (R *Runtime) TestMod(c *dagger.Container, source *dagger.Directory) error

func (*Runtime) TestStructural

func (R *Runtime) TestStructural(c *dagger.Container, source *dagger.Directory) error

func (*Runtime) WithLocalGcloudConfig

func (R *Runtime) WithLocalGcloudConfig(c *dagger.Container) *dagger.Container

func (*Runtime) WithLocalSSHDir

func (R *Runtime) WithLocalSSHDir(c *dagger.Container) *dagger.Container

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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