Documentation ¶
Index ¶
- func ExpandFilename(nodeID, filename string) (string, error)
- func FindDataDirs(identity string) ([]string, error)
- type Config
- type Cpctl
- type Dns
- type Global
- type Namespace
- type NamespaceService
- type Node
- type Params
- func (p Params) GetBool(name string, defaultValue bool) (bool, error)
- func (p Params) GetFloat32(name string, defaultValue float32) (float32, error)
- func (p Params) GetHostPort(name string) (net.IP, uint16, error)
- func (p Params) GetIP(name string) (net.IP, error)
- func (p Params) GetPort(name string) (uint16, error)
- func (p Params) GetString(name string, defaultValue string) string
- type Service
- type TunDev
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandFilename ¶
func FindDataDirs ¶
Types ¶
type Namespace ¶
type Namespace struct { Address proto.IP `yaml:"address"` Cost float32 `yaml:"cost,omitempty"` Services map[string]NamespaceService `yaml:"services,omitempty"` }
type NamespaceService ¶
type NamespaceService struct {
Command string `yaml:"command"`
}
type Node ¶
type Node struct { Address proto.IP `yaml:"address"` Backends map[string]Params `yaml:"backends,omitempty"` Services map[string]Service `yaml:"services,omitempty"` TunDevs map[string]TunDev `yaml:"tun_devs,omitempty"` Namespaces map[string]Namespace `yaml:"namespaces,omitempty"` Cpctl Cpctl `yaml:"cpctl,omitempty"` Dns Dns `yaml:"dns,omitempty"` }
type Params ¶
func (Params) GetFloat32 ¶
Click to show internal directories.
Click to hide internal directories.