Documentation
¶
Index ¶
Constants ¶
View Source
const ( CONTAINER_MISS = 0 CONTAINER_START = 1 CONTAINER_STOP = 2 CONTAINER_PAUSE = 3 CONTAINER_UNPAUSE = 4 CONTAINER_DIE = 5 CONTAINER_RESTART = 6 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerStatusBinding ¶
type HostInfoBinding ¶
type HostModel ¶
type HostModel struct {
Id bson.ObjectId "_id"
HostIp string
SensorId string
HostType string
ParentId string
}
func HostByHostIp ¶
func HostByHostIp(db *mgo.Collection, hostip string) (HostModel, error)
func HostBySensorId ¶
func HostBySensorId(db *mgo.Collection, sensorid string) (HostModel, error)
func HostsByConditions ¶
func HostsByConditions(db *mgo.Collection, conditions map[string]interface{}) ([]HostModel, error)
Click to show internal directories.
Click to hide internal directories.