File: satellite.go

package info (click to toggle)
golang-github-linbit-golinstor 0.58.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 472 kB
  • sloc: makefile: 11
file content (30 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download | duplicates (3)
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
package linstortoml

import lapi "github.com/LINBIT/golinstor/client"

type Satellite struct {
	NetCom  *SatelliteNetCom  `toml:"netcom,omitempty"`
	Logging *SatelliteLogging `toml:"logging,omitempty"`
	Files   *SatelliteFiles   `toml:"files,omitempty"`
}

type SatelliteNetCom struct {
	Type                string `toml:"type,omitempty"`
	BindAddress         string `toml:"bind_address,omitempty"`
	Port                int    `toml:"port,omitzero"`
	ServerCertificate   string `toml:"server_certificate,omitempty"`
	KeyPassword         string `toml:"key_password,omitempty"`
	KeystorePassword    string `toml:"keystore_password,omitempty"`
	TrustedCertificates string `toml:"trusted_certificates,omitempty"`
	TruststorePassword  string `toml:"truststore_password,omitempty"`
	SslProtocol         string `toml:"ssl_protocol,omitempty"`
}

type SatelliteLogging struct {
	Level        lapi.LogLevel `toml:"level,omitempty"`
	LinstorLevel lapi.LogLevel `toml:"linstor_level,omitempty"`
}

type SatelliteFiles struct {
	AllowExtFiles []string `toml:"allowExtFiles,omitempty"`
}