-
-
Notifications
You must be signed in to change notification settings - Fork 545
/
config.go
29 lines (25 loc) · 753 Bytes
/
config.go
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
package joinserver
// Config holds the join-server configuration.
type Config struct {
Pool Pool
ResolveJoinEUI bool `mapstructure:"resolve_join_eui"`
ResolveDomainSuffix string `mapstructure:"resolve_domain_suffix"`
Certificates []struct {
JoinEUI string `mapstructure:"join_eui"`
CaCert string `mapstructure:"ca_cert"`
TLSCert string `mapstructure:"tls_cert"`
TLSKey string `mapstructure:"tls_key"`
} `mapstructure:"certificates"`
Default struct {
Server string
CACert string `mapstructure:"ca_cert"`
TLSCert string `mapstructure:"tls_cert"`
TLSKey string `mapstructure:"tls_key"`
}
KEK struct {
Set []struct {
Label string
KEK string `mapstructure:"kek"`
}
} `mapstructure:"kek"`
}