libarcane

package
v1.15.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	InternalResourceLabel = "com.getarcaneapp.internal.resource"
)

Internal containers indicate containers used for arcanes utilties, ie: temp containers used for viewing files for volumes etc

View Source
const NetworkScopedMacAddressMinAPIVersion = "1.44"

Variables

This section is empty.

Functions

func DetectDockerAPIVersion

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

DetectDockerAPIVersion returns the negotiated client API version when available, and falls back to querying the daemon server version.

func IsDockerAPIVersionAtLeast

func IsDockerAPIVersionAtLeast(current, minimum string) bool

IsDockerAPIVersionAtLeast performs numeric dot-segment comparison for Docker API versions (e.g. "1.43", "1.44.1"). Returns false when either version cannot be parsed.

func IsInternalContainer

func IsInternalContainer(labels map[string]string) bool

func SanitizeContainerCreateEndpointSettingsForDockerAPI

func SanitizeContainerCreateEndpointSettingsForDockerAPI(endpoints map[string]*network.EndpointSettings, apiVersion string) map[string]*network.EndpointSettings

SanitizeContainerCreateEndpointSettingsForDockerAPI clones endpoint settings for container recreate and removes per-network mac-address when daemon API does not support it (API < 1.44).

func SupportsDockerCreatePerNetworkMACAddress

func SupportsDockerCreatePerNetworkMACAddress(apiVersion string) bool

SupportsDockerCreatePerNetworkMACAddress reports whether the daemon API supports per-network mac-address on container create (Docker API >= 1.44).

Types

This section is empty.

Jump to

Keyboard shortcuts

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