Versions in this module Expand all Collapse all v0 v0.0.2 Sep 17, 2024 Changes in this version + func ToProtobuf(pipeline *Pipeline) *lispb.Pipeline + func ToTlsProtobuf(tls *TlsConfig) *lispb.TLS + type EncryptionConfig struct + Enable bool + Key string + Type string type FileDescription + NickName string + func (td *FileDescription) ToJsonString() (string, error) type Operator + Remote string + Type string + type Pipeline struct + CreatedAt time.Time + Enable bool + Encryption EncryptionConfig + Host string + ID uuid.UUID + ListenerID string + Name string + Port uint16 + Tls TlsConfig + Type string + WebPath string + func ProtoBufToDB(pipeline *lispb.Pipeline) Pipeline + func (l *Pipeline) BeforeCreate(tx *gorm.DB) (err error) type Session + IsRemoved bool type Task + func (t *Task) ToFileProtobuf() *clientpb.File + type TlsConfig struct + Cert string + Enable bool + Key string + func ToTlsDB(tls *lispb.TLS) TlsConfig v0.0.1 Aug 21, 2024 Changes in this version + type Certificate struct + CAType int + CertificatePEM string + CommonName string + CreatedAt time.Time + ID uuid.UUID + KeyType string + PrivateKeyPEM string + func (c *Certificate) BeforeCreate(tx *gorm.DB) (err error) + type FileDescription struct + Command string + Name string + Path string + Size int64 + func (td *FileDescription) ToJson() (string, error) + type Listener struct + CreatedAt time.Time + ID uuid.UUID + Name string + func (l *Listener) BeforeCreate(tx *gorm.DB) (err error) + type Operator struct + CreatedAt time.Time + ID uuid.UUID + Name string + func (o *Operator) BeforeCreate(tx *gorm.DB) (err error) + type Os struct + Arch string + Hostname string + Locale string + Name string + Username string + Version string + type Process struct + Arch string + Args string + Name string + Owner string + Path string + Pid int32 + Ppid int32 + type Session struct + CreatedAt time.Time + Extensions string + GroupName string + IsAlive bool + Last time.Time + ListenerId string + Modules string + Note string + Os *Os + Process *Process + RemoteAddr string + SessionID string + Time *Timer + func ConvertToSessionDB(session *core.Session) *Session + func (s *Session) BeforeCreate(tx *gorm.DB) (err error) + func (s *Session) ToClientProtobuf() *clientpb.Session + func (s *Session) ToRegisterProtobuf() *lispb.RegisterSession + type Task struct + CreatedAt time.Time + Cur int + Description string + ID string + Session Session + SessionID string + Total int + Type string + func (t *Task) BeforeCreate(tx *gorm.DB) (err error) + func (t *Task) ToDescProtobuf() *clientpb.TaskDesc + func (t *Task) ToProtobuf() *clientpb.Task + func (t *Task) UpdateCur(db *gorm.DB, newCur int) error + type Timer struct + Heartbeat uint64 + Interval uint64 + Jitter uint64 + LastCheckin uint64 + type WebContent struct + ContentType string + ID uuid.UUID + Path string + Size uint64 + Website Website + WebsiteID uuid.UUID + func WebContentFromProtobuf(pbWebContent *lispb.WebContent) WebContent + func (wc *WebContent) BeforeCreate(tx *gorm.DB) (err error) + func (wc *WebContent) ToProtobuf(content *[]byte) *lispb.WebContent + type Website struct + CreatedAt time.Time + ID uuid.UUID + Name string + WebContents []WebContent + func (w *Website) BeforeCreate(tx *gorm.DB) (err error) + func (w *Website) ToProtobuf(webContentDir string) *lispb.Website