Documentation ¶
Index ¶
Constants ¶
View Source
const ( SessionStatusActive = "active" SessionStatusInactive = "inactive" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { CommandID int64 `gorm:"primary_key"` Session Session `gorm:"foreignkey:SessionID;association_foreignkey:SessionID"` SessionID int64 User string `gorm:"index"` Content string CreatedAt time.Time `sql:"not null;DEFAULT:current_timestamp"` }
Command denotes the command typed by user
func (Command) SwaggerModel ¶
func (c Command) SwaggerModel() swaggermodels.Command
SwaggerModel return the swagger version
type Session ¶
type Session struct { SessionID int64 `gorm:"primary_key"` User string `gorm:"index"` SourceIP string `gorm:"index"` AppName string `gorm:"index"` ProcName string InstanceNo string ContainerID string NodeIP string Status string CreatedAt time.Time `sql:"not null;DEFAULT:current_timestamp"` EndedAt time.Time UpdatedAt time.Time `sql:"not null;DEFAULT:current_timestamp"` }
Session denotes a user session connected to a container
func NewSession ¶
NewSession initialize a session
func (Session) SwaggerModel ¶
func (s Session) SwaggerModel() swaggermodels.Session
SwaggerModel return the swagger version
func (Session) TimingFile ¶
TimingFile return the file path which record time info for scriptrelpay
func (Session) TypescriptFile ¶
TypescriptFile return the file path which record stdout/stderr for scriptrelpay
Click to show internal directories.
Click to hide internal directories.