mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-08 16:34:29 -04:00
Sync zones as well
This commit is contained in:
parent
49d50a779e
commit
b90bc86bb4
2 changed files with 15 additions and 0 deletions
|
|
@ -151,6 +151,7 @@ func main() {
|
|||
v1.NewUsergroup,
|
||||
v1.NewUsergroupCustomvar,
|
||||
v1.NewUsergroupMember,
|
||||
v1.NewZone,
|
||||
} {
|
||||
factoryFunc := factoryFunc
|
||||
|
||||
|
|
|
|||
|
|
@ -12,11 +12,25 @@ type Endpoint struct {
|
|||
ZoneId types.Binary `json:"zone_id"`
|
||||
}
|
||||
|
||||
type Zone struct {
|
||||
EntityWithChecksum `json:",inline"`
|
||||
EnvironmentMeta `json:",inline"`
|
||||
NameCiMeta `json:",inline"`
|
||||
IsGlobal types.Bool `json:"is_global"`
|
||||
ParentId types.Binary `json:"parent_id"`
|
||||
Depth uint8 `json:"depth"`
|
||||
}
|
||||
|
||||
func NewEndpoint() contracts.Entity {
|
||||
return &Endpoint{}
|
||||
}
|
||||
|
||||
func NewZone() contracts.Entity {
|
||||
return &Zone{}
|
||||
}
|
||||
|
||||
// Assert interface compliance.
|
||||
var (
|
||||
_ contracts.Initer = (*Endpoint)(nil)
|
||||
_ contracts.Initer = (*Zone)(nil)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue