Documentation
¶
Index ¶
- type Agent
- type AgentCommand
- type AgentCommandStatus
- type AgentConfiguration
- type AgentGroup
- type AgentMalwareDetection
- type AgentMalwareExclusion
- type AgentMalwareHistory
- type AgentModule
- type AgentModuleConfiguration
- type AgentType
- type Collector
- type CollectorConfigGroup
- type CollectorGroupConfigurations
- type CollectorModule
- type LastSeen
- type LogCollectorClass
- type MalwareStatus
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { gorm.Model Ip string Hostname string `gorm:"uniqueIndex:idx_hostname_deleted;not null"` Os string Platform string Version string AgentKey string `gorm:"type:string;index"` Commands []AgentCommand `gorm:"foreignKey:AgentID"` AgentConfigs []AgentConfiguration `gorm:"foreignKey:AgentID"` AgentModules []AgentConfiguration `gorm:"foreignKey:AgentID"` DeletedAt *time.Time `gorm:"uniqueIndex:idx_hostname_deleted;index:idx_agent_delete"` RegisterBy string `gorm:"not null"` DeletedBy string `gorm:""` AgentTypeID *uint AgentType *AgentType `gorm:"foreignKey:AgentTypeID"` AgentGroupID *uint AgentGroup *AgentGroup `gorm:"foreignKey:AgentGroupID"` Mac string OsMajorVersion string OsMinorVersion string Aliases string Addresses string }
type AgentCommand ¶
type AgentCommand struct { gorm.Model AgentID uint Command string CommandStatus AgentCommandStatus Result string Agent Agent `gorm:"foreignKey:AgentID"` ExecutedBy string `gorm:"not null"` CmdId string `gorm:"not null"` OriginType string `gorm:"not null"` OriginId string `gorm:"not null"` Reason string `gorm:"not null"` }
type AgentCommandStatus ¶
type AgentCommandStatus int32
const ( Queue AgentCommandStatus = 1 Pending AgentCommandStatus = 2 Executed AgentCommandStatus = 3 Error AgentCommandStatus = 4 )
type AgentConfiguration ¶
type AgentGroup ¶
type AgentMalwareDetection ¶
type AgentMalwareExclusion ¶
type AgentMalwareHistory ¶
type AgentMalwareHistory struct { gorm.Model MalwareId uint PrevStatus MalwareStatus ToStatus MalwareStatus ChangedBy string }
type AgentModule ¶
type Collector ¶
type Collector struct { gorm.Model CollectorKey string `json:"collectorKey" gorm:"uniqueIndex;type:varchar(255)"` Ip string `json:"ip" gorm:"type:varchar(100)"` Hostname string `json:"hostname" gorm:"type:varchar(255)"` Version string `json:"version" gorm:"type:varchar(100)"` Module CollectorModule `json:"module" gorm:"type:varchar(100)"` Groups []CollectorConfigGroup `json:"configuration" gorm:"foreignKey:CollectorID"` DeletedBy string `json:"deletedBy" gorm:"type:varchar(255)"` }
type CollectorConfigGroup ¶
type CollectorConfigGroup struct { ID uint `gorm:"primaryKey"` GroupName string `json:"groupName" gorm:"type:varchar(255)"` GroupDescription string `json:"groupDescription" gorm:"type:text"` Configurations []CollectorGroupConfigurations `json:"collectorGroupConfigs" gorm:"foreignKey:ConfigGroupID"` CollectorID uint `json:"collectorId"` }
type CollectorGroupConfigurations ¶
type CollectorGroupConfigurations struct { ConfigGroupID uint `gorm:"primaryKey"` ConfKey string `json:"confKey" gorm:"primaryKey;type:varchar(255)"` ConfValue string `json:"confValue" gorm:"type:text"` ConfName string `json:"confName" gorm:"type:varchar(255)"` ConfDescription string `json:"confDescription" gorm:"type:text"` ConfDataType string `json:"confDataType" gorm:"type:varchar(100)"` ConfRequired bool `json:"confRequired" gorm:"type:boolean"` }
type LogCollectorClass ¶
type LogCollectorClass string
const ( CollectorClass LogCollectorClass = "collector" AgentClass LogCollectorClass = "agent" )
type MalwareStatus ¶
type MalwareStatus string
const ( New MalwareStatus = "NEW" Deleted MalwareStatus = "DELETED" Excluded MalwareStatus = "EXCLUDED" Restored MalwareStatus = "RESTORED" )
Click to show internal directories.
Click to hide internal directories.