Documentation ¶
Index ¶
- func NewPkgEnv() (c *dagger.Container)
- type Runtime
- func (R *Runtime) AddDockerCLI(c *dagger.Container) *dagger.Container
- func (R *Runtime) AddNerdctl(c *dagger.Container) *dagger.Container
- func (R *Runtime) AttachDaemonAsService(c, daemon *dagger.Container) (*dagger.Container, error)
- func (R *Runtime) BaseImage() *dagger.Container
- func (R *Runtime) BuildHof(c *dagger.Container, source *dagger.Directory) *dagger.Container
- func (R *Runtime) DockerClientContainer() (*dagger.Container, error)
- func (R *Runtime) DockerDaemonContainer() (*dagger.Container, error)
- func (R *Runtime) FetchGoDeps(c *dagger.Container, source *dagger.Directory) *dagger.Container
- func (R *Runtime) GitSource(url, ref string) *dagger.Directory
- func (R *Runtime) HarmonizeCue(c *dagger.Container, source *dagger.Directory) *dagger.Directory
- func (R *Runtime) HarmonizeHof(c *dagger.Container, source *dagger.Directory) *dagger.Directory
- func (R *Runtime) HofImage(builder *dagger.Container) *dagger.Container
- func (R *Runtime) HofSource() *dagger.Directory
- func (R *Runtime) NewCliEnv() (c *dagger.Container)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runtime ¶
type Runtime struct { Ctx context.Context Client *dagger.Client HofVer string CueVer string GoVer string ContainerRuntime string ContainerVersion string RunGroup string RunCase string Verbose bool }
so we don't have to pass these around everywhere
func NewRuntime ¶
func (*Runtime) AddDockerCLI ¶
func (*Runtime) AttachDaemonAsService ¶
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) DockerClientContainer ¶
func (*Runtime) DockerDaemonContainer ¶
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) FetchGoDeps ¶
func (*Runtime) HarmonizeCue ¶
func (*Runtime) HarmonizeHof ¶
Click to show internal directories.
Click to hide internal directories.