Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct { ID string `bson:"_id"` Name string `bson:"name"` NetworkID string `bson:"network_id"` IPAddress string `bson:"ip_address"` PublicIP string `bson:"public_ip"` Role string `bson:"role"` EnrollCode string `bson:"enroll_code"` Owner string `bson:"owner"` Port int `bson:"port"` Tags map[string]interface{} `bson:"tags"` CreatedAt int64 `bson:"created_at"` UpdatedAt int64 `bson:"updated_at"` DeletedAt int64 `bson:"deleted_at"` LastSeenAt int64 `bson:"last_seen_at"` EnrollAt int64 `bson:"enroll_at"` EnrollCodeExpiredAt int64 `bson:"enroll_code_expired_at"` Status int8 `bson:"status"` Config config.HostConfig `bson:"config"` }
type HostRuleRelation ¶
type Network ¶
type Network struct { ID string `bson:"_id,omitempty"` Owner string `bson:"owner"` Name string `bson:"name"` Cidr string `bson:"cidr"` UsedIPs []string `bson:"used_ips"` Status uint `bson:"status"` CreatedAt int64 `bson:"created_at"` UpdatedAt int64 `bson:"updated_at"` DeletedAt int64 `bson:"deleted_at"` }
type Rule ¶
type Rule struct { ID string `bson:"_id"` UserID string `bson:"user_id"` Name string `bson:"name"` Description string `bson:"description"` HostID string `bson:"host_id"` Port string `bson:"port"` Proto string `bson:"proto"` Host string `bson:"host,omitempty"` CreatedAt int64 `bson:"created_at"` UpdatedAt int64 `bson:"updated_at"` DeletedAt int64 `bson:"deleted_at"` Type uint8 `bson:"type"` Action uint8 `bson:"action"` }
type User ¶
type User struct { ID string `bson:"_id,omitempty"` Name string `bson:"name"` Email string `bson:"email"` Token string `bson:"token"` Password string `bson:"password"` Status uint `bson:"status"` Verification string `bson:"verification"` CreatedAt int64 `bson:"created_at"` UpdatedAt int64 `bson:"updated_at"` DeletedAt int64 `bson:"deleted_at"` LastLoginAt int64 `bson:"last_login_at"` }
Click to show internal directories.
Click to hide internal directories.