mirror of
https://github.com/Icinga/icingadb.git
synced 2026-06-09 00:42:37 -04:00
Sync endpoints as well
This commit is contained in:
parent
66d155cdb3
commit
71d1b4a9f4
2 changed files with 23 additions and 0 deletions
|
|
@ -118,6 +118,7 @@ func main() {
|
|||
for _, factoryFunc := range []contracts.EntityFactoryFunc{
|
||||
v1.NewActionUrl,
|
||||
v1.NewCustomvar,
|
||||
v1.NewEndpoint,
|
||||
v1.NewHost,
|
||||
v1.NewHostCustomvar,
|
||||
v1.NewIconImage,
|
||||
|
|
|
|||
22
pkg/icingadb/v1/endpoint.go
Normal file
22
pkg/icingadb/v1/endpoint.go
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package v1
|
||||
|
||||
import (
|
||||
"github.com/icinga/icingadb/pkg/contracts"
|
||||
"github.com/icinga/icingadb/pkg/types"
|
||||
)
|
||||
|
||||
type Endpoint struct {
|
||||
EntityWithChecksum `json:",inline"`
|
||||
EnvironmentMeta `json:",inline"`
|
||||
NameCiMeta `json:",inline"`
|
||||
ZoneId types.Binary `json:"zone_id"`
|
||||
}
|
||||
|
||||
func NewEndpoint() contracts.Entity {
|
||||
return &Endpoint{}
|
||||
}
|
||||
|
||||
// Assert interface compliance.
|
||||
var (
|
||||
_ contracts.Initer = (*Endpoint)(nil)
|
||||
)
|
||||
Loading…
Reference in a new issue