forgecloudbuild

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCloudBuildPath = containerfs.WorkingDir + "/cloudbuild"
	DefaultMapping        = &Mapping{
		CloudBuildPath: DefaultCloudBuildPath,
	}
)

Functions

func CopyScriptToContainer

func CopyScriptToContainer(ctx context.Context, container forge.Container, script string) error

func GetImageForStep

func GetImageForStep(ctx context.Context, containerRuntime forge.ContainerRuntime, step *cloudbuild.Step) (forge.Image, error)

func StepToContainerConfigAndScript

func StepToContainerConfigAndScript(step *cloudbuild.Step, home string, image forge.Image) (*forge.ContainerConfig, string, error)

Types

type Mapping

type Mapping struct {
	CloudBuildPath string
}

func (*Mapping) CopyScriptToContainer

func (m *Mapping) CopyScriptToContainer(ctx context.Context, container forge.Container, script string) error

func (*Mapping) StepToContainerConfigAndScript

func (m *Mapping) StepToContainerConfigAndScript(step *cloudbuild.Step, home string, image forge.Image) (*forge.ContainerConfig, string, error)

Jump to

Keyboard shortcuts

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