programconfig

package
v0.0.0-...-71ad85e Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfiguration

type APIConfiguration struct {
	PathPrefix string
	Port       uint
}

type Configuration

type Configuration struct {
	ConfigFolder    string
	ConcurrentTasks uint
	Vlan            *Vlan
	API             *APIConfiguration
	VMware          *VMwareConfiguration
	PostgreSQL      *PostgreSQLConfiguration
	LDAP            *LDAPConfiguration
}

Configurations exported

func GetConfigProgramConfig

func GetConfigProgramConfig(path ...string) (configuration *Configuration, err error)

type LDAPConfiguration

type LDAPConfiguration struct {
	URL                string
	BindDN             string
	BindPassword       string
	InsecureSkipVerify bool
	UsernameAttribute  string
	UserGroup          LDAPConfiguration_Group
	AdminGroup         LDAPConfiguration_Group
}

type LDAPConfiguration_Group

type LDAPConfiguration_Group struct {
	UsersDN string
}

type PostgreSQLConfiguration

type PostgreSQLConfiguration struct {
	Host     string
	User     string
	Password string
	Database string
	Port     uint
}

type VMwareConfiguration

type VMwareConfiguration struct {
	URL        string
	User       string
	Password   string
	Insecure   bool
	DataCenter string
	DemoFolder string
	Pool       string
	Hosts      []string
	Vswitch    string
}

DatabaseConfigurations exported

type Vlan

type Vlan struct {
	Id     *[]uint
	Prefix string
}

Jump to

Keyboard shortcuts

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