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