1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
|
package linstortoml
import lapi "github.com/LINBIT/golinstor/client"
type Controller struct {
Http *ControllerHttp `toml:"http,omitempty"`
Https *ControllerHttps `toml:"https,omitempty"`
Ldap *ControllerLdap `toml:"ldap,omitempty"`
Db *ControllerDb `toml:"db,omitempty"`
Logging *ControllerLogging `toml:"logging,omitempty"`
Encrypt *ControllerEncrypt `toml:"encrypt,omitempty"`
WebUi *ControllerWebUi `toml:"webUi,omitempty"`
}
type ControllerHttp struct {
Enabled *bool `toml:"enabled,omitempty"`
ListenAddr string `toml:"listen_addr,omitempty"`
Port int `toml:"port,omitzero"`
}
type ControllerHttps struct {
Enabled *bool `toml:"enabled,omitempty"`
ListenAddr string `toml:"listen_addr,omitempty"`
Port int `toml:"port,omitzero"`
Keystore string `toml:"keystore,omitempty"`
KeystorePassword string `toml:"keystore_password,omitempty"`
Truststore string `toml:"truststore,omitempty"`
TruststorePassword string `toml:"truststore_password,omitempty"`
}
type ControllerLdap struct {
Enabled *bool `toml:"enabled,omitempty"`
AllowPublicAccess *bool `toml:"allow_pubic_access,omitempty"`
Uri string `toml:"uri,omitempty"`
Dn string `toml:"dn,omitempty"`
SearchBase string `toml:"search_base,omitempty"`
SearchFilter string `toml:"search_filter,omitempty"`
}
type ControllerDb struct {
User string `toml:"user,omitempty"`
Password string `toml:"password,omitempty"`
ConnectionUrl string `toml:"connection_url,omitempty"`
CaCertificate string `toml:"ca_certificate,omitempty"`
ClientCertificate string `toml:"client_certificate,omitempty"`
ClientKeyPkcs8Pem string `toml:"client_key_pkcs8_pem,omitempty"`
ClientKeyPassword string `toml:"client_key_password,omitempty"`
Etcd *ControllerDbEtcd `toml:"etcd,omitempty"`
}
type ControllerDbEtcd struct {
OpsPerTransaction int `toml:"ops_per_transaction,omitzero"`
Prefix string `toml:"prefix,omitempty"`
}
type ControllerLogging struct {
Level lapi.LogLevel `toml:"level,omitempty"`
LinstorLevel lapi.LogLevel `toml:"linstor_level,omitempty"`
RestAccessLogPath string `toml:"rest_access_log_path,omitempty"`
RestAccessLogMode string `toml:"rest_access_log_mode,omitempty"`
}
type ControllerEncrypt struct {
Passphrase string `toml:"passphrase,omitempty"`
}
type ControllerWebUi struct {
Directory string `toml:"directory,omitempty"`
}
|