Documentation ¶
Index ¶
- Variables
- func Create(v interface{}) error
- func Delete(v interface{}) error
- func DeleteOne(v interface{}) error
- func Find(v interface{}) error
- func FindConditional(query, target, v interface{}) error
- func FindOneConditional(query, target, v interface{}) error
- func GetIDByUsername(user string) (string, error)
- func Initialize() string
- func Where(query interface{}, target ...interface{}) *gorm.DB
- type Agent
- type Builder
- type Player
- type Profile
- type ProfileRecord
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPlayerNotFound = errors.New("player not found")
)
Functions ¶
func FindConditional ¶
func FindConditional(query, target, v interface{}) error
FindConditional retrieves rows based on one specific condition
func FindOneConditional ¶
func FindOneConditional(query, target, v interface{}) error
FindOneConditional works like FindConditional but returns the first instance
func GetIDByUsername ¶
Types ¶
type Agent ¶
type Agent struct { AgentID string `gorm:"primaryKey"` Name string Version string OS string Arch string Host string Port string Builder string // The builder used to build the agent File string // binary file associated with agent CreatedBy string // TODO:use this field for notifications and whatnot CreatedAt time.Time AgentInfo string }
type Builder ¶
type Builder struct { // A UUID that identifies an agent BuilderID string `gorm:"primaryKey"` CreatedAt time.Time UpdatedAt time.Time Name string `gorm:"unique"` // This is technically the agent name and is used as so Version string Author string Url string SupportedOS string // Array of comma-separated operating systems // The path that the agent files are installed at InstalledAt string // ImageID and ContainerID identify the image / container used to build implants ImageID string ContainerID string }
Click to show internal directories.
Click to hide internal directories.