libarcane

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DepotTokenSettingKey = "depotToken"
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 IsCronSettingKey added in v1.16.0

func IsCronSettingKey(key string) bool

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 IsTimeoutSettingKey added in v1.16.0

func IsTimeoutSettingKey(key 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).

func ValidateCronSetting added in v1.16.0

func ValidateCronSetting(key, value string) error

Types

type SettingUpdate added in v1.16.0

type SettingUpdate struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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