config

package
v0.0.0-...-869e999 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: GPL-3.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 Act2

type Act2 struct {
	URL string
}

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
		LocalServer  string
	}
	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"`
	}
	Act2 struct {
		URL string
	}
}

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