config

package
v0.0.0-...-7735c78 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Mbus      string    `yaml:"mbus"`
	NTP       []string  `yaml:"ntp"`
	Blobstore Blobstore `yaml:"blobstore"`
}

type Blobstore

type Blobstore struct {
	Provider string                 `yaml:"provider"`
	Options  map[string]interface{} `yaml:"options"`
}

type Config

type Config struct {
	NetworkType    string `yaml:"network_type"`
	NetworkAddress string `yaml:"address"`
	Agent          Agent  `yaml:"agent"`
}

func New

func New(configPath string) (Config, error)

func (*Config) ServerAddr

func (c *Config) ServerAddr() string

type ServerConfig

type ServerConfig struct {
	CIDR           string `yaml:"cidr"`
	NetworkType    string `yaml:"network_type"`
	NetworkAddress string `yaml:"address"`
	WorkDir        string `yaml:"work_dir"`
	StemcellDir    string `yaml:"stemcell_dir"`
	DiskDir        string `yaml:"disk_dir"`
	VMDir          string `yaml:"vm_dir"`
	TempDir        string `yaml:"temp_dir"`
}

func NewServerConfig

func NewServerConfig(configPath string) (ServerConfig, error)

Jump to

Keyboard shortcuts

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