volumehelper

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultToolsImage = "ghcr.io/getarcaneapp/tools:latest"
	ContainerLabel    = "com.getarcaneapp.volume-helper"
)

Variables

This section is empty.

Functions

func HostConfig

func HostConfig(helperImage string, binds []string, mounts []mount.Mount) *container.HostConfig

HostConfig builds the host config shared by volume helper containers.

func Labels

func Labels() map[string]string

Labels returns the labels used for temporary internal volume helper containers.

func RemoveOptions

func RemoveOptions() client.ContainerRemoveOptions

RemoveOptions returns the container remove options used for volume helpers.

func ResolveHelperImage

func ResolveHelperImage(ctx context.Context, dockerClient *client.Client) (string, error)

ResolveHelperImage returns an image suitable for temporary volume helper containers, pulling the tools image when it is not already present.

Types

type RuntimeImage

type RuntimeImage struct {
	Image      string
	Entrypoint []string
	Command    []string
	Source     string
}

RuntimeImage describes the Arcane runtime image that can run internal helper commands from inside temporary containers.

func ResolveArcaneRuntimeImage

func ResolveArcaneRuntimeImage(ctx context.Context, dockerClient *client.Client) (RuntimeImage, bool)

ResolveArcaneRuntimeImage resolves the current Arcane or Arcane agent image so internal helper commands can run without pulling an external helper image.

Jump to

Keyboard shortcuts

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