Documentation ¶
Index ¶
- func IsValidName(name string) bool
- type ClusterCfg
- type Config
- type DaemonCfg
- type DatastoreCfg
- type DatastoreClientCfg
- type Option
- func OptionDefaultDriver(dd string) Option
- func OptionDefaultNetwork(dn string) Option
- func OptionDriverConfig(networkType string, config map[string]interface{}) Option
- func OptionKVProvider(provider string) Option
- func OptionKVProviderURL(url string) Option
- func OptionLabels(labels []string) Option
- func OptionLocalKVProvider(provider string) Option
- func OptionLocalKVProviderConfig(config *store.Config) Option
- func OptionLocalKVProviderURL(url string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidName ¶
IsValidName validates configuration objects supported by libnetwork
Types ¶
type ClusterCfg ¶
ClusterCfg represents cluster configuration
type Config ¶
type Config struct { Daemon DaemonCfg Cluster ClusterCfg GlobalStore, LocalStore DatastoreCfg }
Config encapsulates configurations of various Libnetwork components
func ParseConfig ¶
ParseConfig parses the libnetwork configuration file
func (*Config) ProcessOptions ¶
ProcessOptions processes options and stores it in config
type DaemonCfg ¶
type DaemonCfg struct { Debug bool DefaultNetwork string DefaultDriver string Labels []string DriverCfg map[string]interface{} }
DaemonCfg represents libnetwork core configuration
type DatastoreCfg ¶
type DatastoreCfg struct { Embedded bool Client DatastoreClientCfg }
DatastoreCfg represents Datastore configuration.
type DatastoreClientCfg ¶
DatastoreClientCfg represents Datastore Client-only mode configuration
type Option ¶
type Option func(c *Config)
Option is a option setter function type used to pass varios configurations to the controller
func OptionDefaultDriver ¶
OptionDefaultDriver function returns an option setter for default driver
func OptionDefaultNetwork ¶
OptionDefaultNetwork function returns an option setter for a default network
func OptionDriverConfig ¶
OptionDriverConfig returns an option setter for driver configuration.
func OptionKVProvider ¶
OptionKVProvider function returns an option setter for kvstore provider
func OptionKVProviderURL ¶
OptionKVProviderURL function returns an option setter for kvstore url
func OptionLabels ¶
OptionLabels function returns an option setter for labels
func OptionLocalKVProvider ¶
OptionLocalKVProvider function returns an option setter for kvstore provider
func OptionLocalKVProviderConfig ¶
OptionLocalKVProviderConfig function returns an option setter for kvstore config
func OptionLocalKVProviderURL ¶
OptionLocalKVProviderURL function returns an option setter for kvstore url