Movatterモバイル変換


[0]ホーム

URL:


config

package
v2.0.0-beta.5Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License:Apache-2.0Imports:9Imported by:0

Details

Repository

github.com/moby/moby

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeConfig

type Config struct {PlatformConfigDataDirstring// ExecRoot is the base-path for libnetwork external key listeners// (created in "<ExecRoot>/libnetwork/<Controller-Short-ID>.sock"),// and is passed as "-exec-root: argument for "libnetwork-setkey".//// It is only used on Linux, but referenced in some "unix" files// (linux and freebsd).//// FIXME(thaJeztah): ExecRoot is only used for Controller.startExternalKeyListener(), but "libnetwork-setkey" is only implemented on Linux.ExecRootstringDefaultNetworkstringDefaultDriverstringLabels                 []stringClusterProvidercluster.ProviderNetworkControlPlaneMTUintDefaultAddressPool     []*ipamutils.NetworkToSplitDatastoreBucketstringActiveSandboxes        map[string]anyPluginGetterplugingetter.PluginGetterFirewallBackendstringRootlessboolEnableUserlandProxyboolUserlandProxyPathstring}

Config encapsulates configurations of various Libnetwork components

funcNew

func New(opts ...Option) *Config

New creates a new Config and initializes it with the given Options.

typeOption

type Option func(c *Config)

Option is an option setter function type used to pass various configurationsto the controller

funcOptionActiveSandboxes

func OptionActiveSandboxes(sandboxes map[string]any)Option

OptionActiveSandboxes function returns an option setter for passing the sandboxeswhich were active during previous daemon life

funcOptionBridgeConfig

func OptionBridgeConfig(configbridge.Configuration)Option

OptionBridgeConfig returns an option setter for bridge driver config.

funcOptionDataDir

func OptionDataDir(dataDirstring)Option

OptionDataDir function returns an option setter for data folder

funcOptionDefaultAddressPoolConfig

func OptionDefaultAddressPoolConfig(addressPool []*ipamutils.NetworkToSplit)Option

OptionDefaultAddressPoolConfig function returns an option setter for default address pool

funcOptionDefaultDriver

func OptionDefaultDriver(ddstring)Option

OptionDefaultDriver function returns an option setter for default driver

funcOptionDefaultNetwork

func OptionDefaultNetwork(dnstring)Option

OptionDefaultNetwork function returns an option setter for a default network

funcOptionExecRoot

func OptionExecRoot(execRootstring)Option

OptionExecRoot function returns an option setter for exec root folder.

On Linux, it sets both the controller's ExecRoot and osl.basePath, whereason FreeBSD, it only sets the controller's ExecRoot. It is a no-op on otherplatforms.

funcOptionFirewallBackend

func OptionFirewallBackend(valstring)Option

OptionFirewallBackend returns an option setter for selection of the firewall backend.

funcOptionNetworkControlPlaneMTU

func OptionNetworkControlPlaneMTU(expint)Option

OptionNetworkControlPlaneMTU function returns an option setter for control plane MTU

funcOptionPluginGetter

func OptionPluginGetter(pgplugingetter.PluginGetter)Option

OptionPluginGetter returns a plugingetter for remote drivers.

funcOptionRootless

func OptionRootless(rootlessbool)Option

OptionRootless returns an option setter that indicates whether the daemon isrunning in rootless mode.

funcOptionUserlandProxy

func OptionUserlandProxy(enabledbool, proxyPathstring)Option

OptionUserlandProxy returns an option setter that indicates whether theuserland proxy is enabled, and sets the path to the proxy binary.

typePlatformConfig

type PlatformConfig struct {BridgeConfigbridge.Configuration}

PlatformConfig defines platform-specific configuration.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp