Пример #1
0
func New() InfrastructureType {
	var obj InfrastructureType
	obj.MessageType = "infrastructure"
	obj.Id = stix.NewId("infrastructure")
	obj.Created = stix.GetCurrentTime().UTC().Format(defs.TIME_RFC_3339)
	obj.Modified = obj.Created
	obj.Version = 1
	return obj
}
Пример #2
0
func New() CampaignType {
	var obj CampaignType
	obj.MessageType = "campaign"
	obj.Id = stix.NewId("campaign")
	obj.Created = stix.GetCurrentTime().UTC().Format(defs.TIME_RFC_3339)
	obj.Modified = obj.Created
	obj.Version = 1
	return obj
}
Пример #3
0
func New() SightingType {
	var obj SightingType
	obj.MessageType = "sighting"
	obj.Id = stix.NewId("sighting")
	obj.Created = stix.GetCurrentTime().UTC().Format(defs.TIME_RFC_3339)
	obj.Modified = obj.Created
	obj.Version = 1
	return obj
}
Пример #4
0
func New() ReportType {
	var obj ReportType
	obj.MessageType = "report"
	obj.Id = stix.NewId("report")
	obj.Created = stix.GetCurrentTime().UTC().Format(defs.TIME_RFC_3339)
	obj.Modified = obj.Created
	obj.Version = 1
	return obj
}
Пример #5
0
func New() ObservedDataType {
	var obj ObservedDataType
	obj.MessageType = "observed-data"
	obj.Id = stix.NewId("observed-data")
	obj.Created = stix.GetCurrentTime().UTC().Format(defs.TIME_RFC_3339)
	obj.Modified = obj.Created
	obj.Version = 1
	return obj
}