Documentation ¶
Index ¶
- Variables
- func CreateWorkingVolume(ctx context.Context, backend containerbackend.ContainerBackend, ...) (agentVolume *Volume, vol *Volume, err error)
- func CreateWorkingVolumeFromConfig(ctx context.Context, config *runconfig.RunConfig, platform platform.Platform, ...) (*Volume, *Volume, error)
- type Volume
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrVolumeCreationFailed = errors.New("working volume creation failed") ErrVolumeCleanupFailed = errors.New("failed to clean up working volume") )
Functions ¶
func CreateWorkingVolume ¶
func CreateWorkingVolume( ctx context.Context, backend containerbackend.ContainerBackend, containerOptions options.ContainerOptions, agentVolumeName string, workingVolumeName string, projectDir string, dontPopulate bool, agentVersion string, platform platform.Platform, architecture *api.Architecture, ) (agentVolume *Volume, vol *Volume, err error)
CreateWorkingVolume returns name of the working volume created according to the specification in arguments.
func CreateWorkingVolumeFromConfig ¶
func CreateWorkingVolumeFromConfig( ctx context.Context, config *runconfig.RunConfig, platform platform.Platform, architecture *api.Architecture, ) (*Volume, *Volume, error)
CreateWorkingVolumeFromConfig returns name of the working volume created according to the specification in config.
Types ¶
Click to show internal directories.
Click to hide internal directories.