This commit is contained in:
crusader
2018-05-11 11:24:21 +09:00
parent 3ae9f53619
commit f547c15d95
33 changed files with 84 additions and 84 deletions

View File

@@ -12,7 +12,7 @@ import (
type Infra struct {
ID json.Number `json:"id,Number,omitempty"`
MetaInfraType *meta.MetaInfraType `json:"type,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
Probe *probe.Probe `json:"probe,omitempty"`
Target *target.Target `json:"target,omitempty"`
}

View File

@@ -6,8 +6,8 @@ import (
type InfraHost struct {
Infra
InfraOS *InfraOS `json:"os,omitempty"`
IP string `json:"ip,omitempty"`
Mac string `json:"mac,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
InfraOS *InfraOS `json:"os,omitempty"`
IP string `json:"ip,omitempty"`
Mac string `json:"mac,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
}

View File

@@ -4,6 +4,6 @@ import "git.loafle.net/overflow/commons-go/core/util"
type InfraMachine struct {
Infra
Meta string `json:"meta,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
Meta string `json:"meta,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
}

View File

@@ -9,6 +9,6 @@ type InfraOS struct {
Infra
InfraMachine *InfraMachine `json:"machine,omitempty"`
Meta string `json:"meta,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
MetaInfraVendor *meta.MetaInfraVendor `json:"vendor,omitempty"`
}

View File

@@ -4,7 +4,7 @@ import "git.loafle.net/overflow/commons-go/core/util"
type InfraOSApplication struct {
Infra
InfraOS *InfraOS `json:"os,omitempty"`
Name string `json:"name,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
InfraOS *InfraOS `json:"os,omitempty"`
Name string `json:"name,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
}

View File

@@ -6,7 +6,7 @@ import (
type InfraOSDaemon struct {
Infra
InfraOS *InfraOS `json:"os,omitempty"`
Name string `json:"name,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
InfraOS *InfraOS `json:"os,omitempty"`
Name string `json:"name,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
}

View File

@@ -10,7 +10,7 @@ import (
type InfraOSPort struct {
Infra
InfraOS *InfraOS `json:"os,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
Port json.Number `json:"port,omitempty"`
PortType string `json:"portType,omitempty"`
MetaInfraVendor *meta.MetaInfraVendor `json:"vendor,omitempty"`

View File

@@ -13,6 +13,6 @@ type InfraServiceApplication struct {
PortType string `json:"portType,omitempty"`
Port json.Number `json:"port,omitempty"`
MetaInfraVendor *meta.MetaInfraVendor `json:"vendor,omitempty"`
CreateDate util.Timestamp `json:"createDate,omitempty"`
CreateDate *util.Timestamp `json:"createDate,omitempty"`
TLSType bool `json:"tlsType,omitempty"`
}