config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RedHat is
	RedHat = "redhat"

	// CentOS is
	CentOS = "centos"

	// Debian is
	Debian = "debian"

	// Ubuntu is
	Ubuntu = "ubuntu"

	// Ubuntu12 is Ubuntu Precise
	Ubuntu12 = "precise"

	// Ubuntu14 is Ubuntu Trusty
	Ubuntu14 = "trusty"

	// Ubuntu16 is Ubuntu Xenial
	Ubuntu16 = "xenial"

	// Ubuntu18 is Ubuntu Bionic
	Ubuntu18 = "bionic"

	// Ubuntu19 is Disco Dingo
	Ubuntu19 = "disco"

	// Debian7 is wheezy
	Debian7 = "wheezy"

	// Debian8 is jessie
	Debian8 = "jessie"

	// Debian9 is stretch
	Debian9 = "stretch"

	// Debian10 is buster
	Debian10 = "buster"

	// OpenSUSE is
	OpenSUSE = "opensuse"

	// OpenSUSELeap is
	OpenSUSELeap = "opensuse.leap"

	// SUSEEnterpriseServer is
	SUSEEnterpriseServer = "suse.linux.enterprise.server"

	// SUSEEnterpriseDesktop is
	SUSEEnterpriseDesktop = "suse.linux.enterprise.desktop"

	// SUSEOpenstackCloud is
	SUSEOpenstackCloud = "suse.openstack.cloud"

	// Oracle is
	Oracle = "oracle"

	// Alpine is
	Alpine = "alpine"

	// Amazon is
	Amazon = "amazon"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug     bool
	DebugSQL  bool
	Quiet     bool
	NoDetails bool
	DBPath    string
	DBType    string
	Bind      string `valid:"ipv4"`
	Port      string `valid:"port"`
	HTTPProxy string
}

Config has config

var Conf Config

Conf has Configuration

func (*Config) Validate

func (p *Config) Validate() bool

Validate validates configuration

Jump to

Keyboard shortcuts

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