config

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveMQ

type ActiveMQ struct {
	Server string `ini:"server"`
}

type Config

type Config struct {
	Logger struct {
		Color     bool   `ini:"color"`
		Level     string `ini:"level"`
		LogFile   string `ini:"logFile"`
		Logger    Logger
		Repo      Repo
		OsInstall OsInstall
		Vm        Vm
		Rsa       Rsa
		Cron      Cron
	}
	Repo struct {
		Connection          string `ini:"connection"`
		ConnectionIsCrypted string `ini:"connectionIsCrypted"`
		Addr                string
	}
	OsInstall struct {
		PxeConfigDir string `ini:"pxeConfigDir"`
	}
	Vm struct {
		Storage string `ini:"storage"`
	}
	Rsa struct {
		PublicKey  string `ini:"publicKey"`
		PrivateKey string `ini:"privateKey"`
	}
	Cron struct {
		InstallTimeout int `ini:"installTimeout"`
	}
	ActiveMQ struct {
		Server string `ini:"server"`
	}
}

Config config 数据结构体

type Cron

type Cron struct {
	InstallTimeout int `ini:"installTimeout"`
}

type Loader

type Loader interface {
	Load() (*Config, error)
	Save(*Config) error
}

Loader 定义统一的配置加载接口

type Logger

type Logger struct {
	Color   bool   `ini:"color"`
	Level   string `ini:"level"`
	LogFile string `ini:"logFile"`
}

type OsInstall

type OsInstall struct {
	HTTPPort     int
	PxeConfigDir string `ini:"pxeConfigDir"`
}

type Repo

type Repo struct {
	Connection          string `ini:"connection"`
	ConnectionIsCrypted string `ini:"connectionIsCrypted"`
	Addr                string
}

type Rsa

type Rsa struct {
	PublicKey  string `ini:"publicKey"`
	PrivateKey string `ini:"privateKey"`
}

type Vm

type Vm struct {
	Storage string `ini:"storage"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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