agent

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultAgentVolumePath is a path to an agent's binary in the volume that GetAgentVolume creates.
	DefaultAgentVolumePath = "/cirrus-ci-agent"
)

Variables

This section is empty.

Functions

func GetAgentVolume

func GetAgentVolume(ctx context.Context) (string, error)

GetAgentVolume returns a Docker volume name with the agent residing at the DefaultAgentVolumePath inside of it.

A special helper container is used to extract the agent from the image into a volume. This container's name is updated afterwards to indicate a successful completion and skip unnecessary steps in the future invocations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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