config

package
v0.0.0-...-745c2c7 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterCfg

type ClusterCfg struct {
	Discovery string
	Address   string
	Heartbeat uint64
}

ClusterCfg represents cluster configuration

type Config

type Config struct {
	Daemon    DaemonCfg
	Cluster   ClusterCfg
	Datastore DatastoreCfg
}

Config encapsulates configurations of various Libnetwork components

func ParseConfig

func ParseConfig(tomlCfgFile string) (*Config, error)

ParseConfig parses the libnetwork configuration file

type DaemonCfg

type DaemonCfg struct {
	Debug bool
}

DaemonCfg represents libnetwork core configuration

type DatastoreCfg

type DatastoreCfg struct {
	Embedded bool
	Client   DatastoreClientCfg
}

DatastoreCfg represents Datastore configuration.

type DatastoreClientCfg

type DatastoreClientCfg struct {
	Provider string
	Address  string
}

DatastoreClientCfg represents Datastore Client-only mode configuration

Jump to

Keyboard shortcuts

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