cfgresources

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2018 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ldap

type Ldap struct {
	Server         string `yaml:"server"`
	Port           int    `yaml:"port"`
	Enable         bool   `yaml:"enable"`
	Role           string `yaml:"role"`
	BaseDn         string `yaml:"baseDn"`
	Group          string `yaml:"group"`
	GroupBaseDn    string `yaml:"groupBaseDn"`
	UserAttribute  string `yaml:"userAttribute"`
	GroupAttribute string `yaml:"groupAttribute"`
	SearchFilter   string `yaml:"searchFilter"`
}

type LdapGroup

type LdapGroup struct {
	Role        string `yaml:"role"`
	Group       string `yaml:"group"`
	GroupBaseDn string `yaml:"groupBaseDn"`
	Enable      bool   `yaml:"enable"`
}

type Network

type Network struct {
	Hostname    string `yaml:"hostname"`
	DNSFromDHCP bool   `yaml:"dnsfromdhcp"`
	SshEnable   bool   `yaml:"sshEnable"`
	SshPort     int    `yaml:"sshPort"`
	IpmiEnable  bool   `yaml:"ipmiEnable"`
	DhcpEnable  bool   `yaml:"dhcpEnable"`
	IpmiPort    int    `yaml:"ipmiPort"`
}

type Ntp

type Ntp struct {
	Enable   bool   `yaml:"enable"`
	Server1  string `yaml:"server1"`
	Server2  string `yaml:"server2"`
	Server3  string `yaml:"server3"`
	Timezone string `yaml:"timezone"`
}

type ResourcesConfig

type ResourcesConfig struct {
	Ldap       *Ldap        `yaml:"ldap"`
	LdapGroup  []*LdapGroup `yaml:"ldapGroup"`
	Network    *Network     `yaml:"network"`
	Ntp        *Ntp         `yaml:"ntp"`
	Syslog     *Syslog      `yaml:"syslog"`
	User       []*User      `yaml:"user"`
	Ssl        *Ssl         `yaml:"ssl"`
	Supermicro *Supermicro  `yaml:"supermicro"` //supermicro specific config, example of issue #34
}

type ResourcesSetup

type ResourcesSetup struct {
	FlexAddress  *flexAddress  `yaml:"flexAddress"`
	IpmiOverLan  *ipmiOverLan  `yaml:"ipmiOverLan"`
	DynamicPower *dynamicPower `yaml:"dynamicPower"`
}

type Ssl

type Ssl struct {
	CertFile string `yaml:"certfile"`
	KeyFile  string `yaml:"keyfile"`
}

type Supermicro

type Supermicro struct {
	NetworkCfg *SupermicroNetworkCfg `yaml:"network"`
}

type SupermicroNetworkCfg

type SupermicroNetworkCfg struct {
	Web              string `yaml:"web"`
	WebSsl           int    `yaml:"webSsl"`
	IkvmServerPort   int    `yaml:"ikvmServerPort"`
	VirtualMediaPort int    `yaml:"virtualMediaPort"`
	SshPort          int    `yaml:"sshPort"`
}

this is an example for issue #34

type Syslog

type Syslog struct {
	Server string `yaml:"server"`
	Port   int    `yaml:"port",omitempty`
	Enable bool   `yaml:"enable",omitempty`
}

type User

type User struct {
	Name     string `yaml:"name"`
	Password string `yaml:"password"`
	Role     string `yaml:"role"`
	Enable   bool   `yaml:"enable,omitempty"`
}

Jump to

Keyboard shortcuts

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