package models

Import Path
	github.com/limanmys/render-engine/app/models (on go.dev)

Dependency Relation
	imports 7 packages, and imported by 10 packages


Package-Level Type Names (total 18)
/* sort by: | */
AccessToken Structure of the personal access token CreatedAt string ID string IPRange string LastUsedAt string LastUsedIP string Name string Token string UpdatedAt string UserID string ( AccessToken) TableName() string AccessToken : gorm.io/gorm/schema.Tabler
CommandParams structure of CommandParams object BaseURL string Extension string Locale string LogID string RequestData map[string]string Server string TargetFunction string Token string User string func github.com/limanmys/render-engine/internal/sandbox.GenerateCommand(extension *Extension, credentials *Credentials, params *CommandParams) (string, error) func github.com/limanmys/render-engine/internal/sandbox.GetParams(extension *Extension, credentials *Credentials, params *CommandParams) (*Server, *User, map[string]string, error)
Credentials type of credentials object Certificate or password Connection port Type Username func KeyData.DecryptData(user *User, server *Server) *Credentials func github.com/limanmys/render-engine/internal/liman.GetCredentials(user *User, server *Server) (*Credentials, error) func github.com/limanmys/render-engine/internal/sandbox.GenerateCommand(extension *Extension, credentials *Credentials, params *CommandParams) (string, error) func github.com/limanmys/render-engine/internal/sandbox.GetParams(extension *Extension, credentials *Credentials, params *CommandParams) (*Server, *User, map[string]string, error)
BaseURL string CreatedAt time.Time Day int ExtensionID *uuid.UUID ID *uuid.UUID // Last run message // Last run output Payload string ServerID *uuid.UUID // Last run status Target string Time string UpdatedAt time.Time UserID *uuid.UUID ( CronJob) TableName() string (*CronJob) UpdateAsDone(output string) (*CronJob) UpdateAsFailed(message string) (*CronJob) UpdateAsProcessing() CronJob : gorm.io/gorm/schema.Tabler func NewCronJob() *CronJob func github.com/limanmys/render-engine/pkg/cron_jobs.RegisterAndRun(cj *CronJob) error
Extension Structure of the extension obj CreatedAt string Displays string ID string Icon string Issuer string Language string Name string Order int RequireKey string Service string SslPorts string Status string Support string UpdatedAt string Version string ( Extension) TableName() string Extension : gorm.io/gorm/schema.Tabler func github.com/limanmys/render-engine/internal/liman.GetExtension(extension *Extension) (*Extension, error) func github.com/limanmys/render-engine/internal/liman.GetExtension(extension *Extension) (*Extension, error) func github.com/limanmys/render-engine/internal/liman.GetExtensionJSON(extension *Extension) (map[string]any, error) func github.com/limanmys/render-engine/internal/liman.GetLicence(extension *Extension) (*Licence, error) func github.com/limanmys/render-engine/internal/liman.GetSettings(user *User, server *Server, extension *Extension) (map[string]string, error) func github.com/limanmys/render-engine/internal/sandbox.GenerateCommand(extension *Extension, credentials *Credentials, params *CommandParams) (string, error) func github.com/limanmys/render-engine/internal/sandbox.GetParams(extension *Extension, credentials *Credentials, params *CommandParams) (*Server, *User, map[string]string, error)
ClientPassword string ClientUsername string KeyPort string ( KeyData) DecryptData(user *User, server *Server) *Credentials
Licence structure of Licence object CreatedAt string Data string ExtensionID string ID string UpdatedAt string ( Licence) TableName() string Licence : gorm.io/gorm/schema.Tabler func github.com/limanmys/render-engine/internal/liman.GetLicence(extension *Extension) (*Licence, error)
AccessToken string ExpiresIn int RefreshExpiresIn int RefreshToken string TokenType string UserID string ( Oauth2Token) TableName() string Oauth2Token : gorm.io/gorm/schema.Tabler func github.com/limanmys/render-engine/internal/auth.GetOauth2Token(user_id string) (*Oauth2Token, error) func github.com/limanmys/render-engine/internal/auth.RefreshToken(token *Oauth2Token) error
const OperationCreate const OperationInstall const OperationReport const OperationUpdate
Permission structure of Permission object Blame string CreatedAt string Extra string ID string Key string MorphID string MorphType string Type string UpdatedAt string Value string ( Permission) TableName() string Permission : gorm.io/gorm/schema.Tabler
Queue structure of Queue object CreatedAt time.Time Data gormjsonb.JSONB Error string ID string Path string Status Status Type Operation UpdatedAt time.Time Fill ID of Queue object with UUID beforeCreate (*Queue) BeforeUpdate(tx *gorm.DB) (err error) ( Queue) TableName() string (*Queue) UpdateAsDone(path string) (*Queue) UpdateError(err string) (*Queue) UpdateStatus(status Status) *Queue : gorm.io/gorm/callbacks.BeforeCreateInterface *Queue : gorm.io/gorm/callbacks.BeforeUpdateInterface Queue : gorm.io/gorm/schema.Tabler
RoleUsers structure of Role Users pivot table object CreatedAt string ID string RoleID string Type string UpdatedAt string UserID string ( RoleUsers) TableName() string RoleUsers : gorm.io/gorm/schema.Tabler
ServerModel Structure of the server obj ControlPort string CreatedAt string Enabled string ID string IPAddress string KeyPort int Name string Os string SharedKey int Type string UpdatedAt string UserID string ( Server) TableName() string Server : gorm.io/gorm/schema.Tabler func github.com/limanmys/render-engine/internal/liman.GetServer(server *Server) (*Server, error) func github.com/limanmys/render-engine/internal/sandbox.GetParams(extension *Extension, credentials *Credentials, params *CommandParams) (*Server, *User, map[string]string, error) func KeyData.DecryptData(user *User, server *Server) *Credentials func github.com/limanmys/render-engine/internal/liman.GetCredentials(user *User, server *Server) (*Credentials, error) func github.com/limanmys/render-engine/internal/liman.GetServer(server *Server) (*Server, error) func github.com/limanmys/render-engine/internal/liman.GetSettings(user *User, server *Server, extension *Extension) (map[string]string, error)
ServerKey Structure of the server keys CreatedAt string Data string ID string ServerID string Type string UpdatedAt string UserID string ( ServerKey) TableName() string ServerKey : gorm.io/gorm/schema.Tabler
Settings structure of Settings object CreatedAt string ID string Name string ServerID string UpdatedAt string UserID string Value string (*Settings) BeforeCreate(tx *gorm.DB) error ( Settings) TableName() string *Settings : gorm.io/gorm/callbacks.BeforeCreateInterface Settings : gorm.io/gorm/schema.Tabler
func (*Queue).UpdateStatus(status Status) const StatusDone const StatusFailed const StatusPending const StatusProcessing
TokenModel Structure of the tokens tableD CreatedAt string ID string Token string UpdatedAt string UserID string ( Token) TableName() string Token : gorm.io/gorm/schema.Tabler
UserModel Structure of the users table AuthType string CreatedAt string Email string ForceChange bool ID string LastLoginAt string LastLoginIP string Name string ObjectGUID string Password string RememberToken string Status int UpdatedAt string ( User) TableName() string User : gorm.io/gorm/schema.Tabler func github.com/limanmys/render-engine/internal/liman.GetUser(user *User) (*User, error) func github.com/limanmys/render-engine/internal/sandbox.GetParams(extension *Extension, credentials *Credentials, params *CommandParams) (*Server, *User, map[string]string, error) func KeyData.DecryptData(user *User, server *Server) *Credentials func github.com/limanmys/render-engine/internal/liman.GetCredentials(user *User, server *Server) (*Credentials, error) func github.com/limanmys/render-engine/internal/liman.GetObjectPermissions(user *User) ([]string, error) func github.com/limanmys/render-engine/internal/liman.GetPermissions(user *User, extFilter string) ([]string, map[string]string, error) func github.com/limanmys/render-engine/internal/liman.GetSettings(user *User, server *Server, extension *Extension) (map[string]string, error) func github.com/limanmys/render-engine/internal/liman.GetUser(user *User) (*User, error)
Package-Level Functions (only one)
Package-Level Constants (total 8)
const OperationCreate Operation = "create"
const OperationInstall Operation = "install"
const OperationReport Operation = "report"
const OperationUpdate Operation = "update"
const StatusDone Status = "done"
const StatusFailed Status = "failed"
const StatusPending Status = "pending"
const StatusProcessing Status = "processing"