Documentation
¶
Index ¶
- func AddAccountAudit(theAccount *models.AccountSchema, auditType models.AuditType, message string) error
- func AddAccountIntegration(theAccount *models.AccountSchema, name string, ...) error
- func AddAgentStat(theAgent *modelsv2.AgentSchema, runningState bool, cpu float64, memory float32) error
- func AddIntegrationEvent(theAccount *v2.AccountSchema, eventType v2.IntegrationEventType, ...) error
- func AdminAddUserToAccount(userId, accountId string, setActive bool) error
- func AdminDeleteAccount(accountId string) error
- func AdminDeleteAgent(agentId string) error
- func AdminDeleteUser(userId string) error
- func AdminGetAccount(accountId string) (*models.AccountSchema, error)
- func AdminGetAgent(agentId string) (*models.AgentSchema, error)
- func AdminGetUser(userId, externalId, email string) (*models.UserSchema, error)
- func AdminListAccounts(page, pageSize int32, search string) ([]models.AccountSchema, int, error)
- func AdminListAgents(page, pageSize int32, search string) ([]models.AgentSchema, int, error)
- func AdminListUserAccounts(userId string) ([]models.AccountSchema, string, error)
- func AdminListUsers(page, pageSize int32, search string) ([]models.UserSchema, int, error)
- func AdminRemoveUserFromAccount(userId, accountId string) error
- func AdminSetUserActiveAccount(userId, accountId string) error
- func AdminUpdateAccount(accountId, accountName string) (*models.AccountSchema, error)
- func AdminUpdateAgent(agentId, agentName, apiKey string) (*models.AgentSchema, error)
- func AdminUpdateUser(userId, externalId, email, username string) (*models.UserSchema, error)
- func BuildDiscordEventPayload(eventType v2.IntegrationEventType, payload interface{}) (*discordwebhook.Message, error)
- func CreateAccount(theUser *models.UserSchema, accountName string) error
- func CreateAgentTask(theAgent *modelsv2.AgentSchema, action string, data interface{}) error
- func CreateUser(eid string, email string, username string) (*models.UserSchema, error)
- func DeleteAccount(theUser *models.UserSchema, accountId bson.ObjectID) error
- func DeleteAccountAudit(theAccount *models.AccountSchema, auditId bson.ObjectID) error
- func DeleteAccountIntegration(theAccount *models.AccountSchema, integrationId bson.ObjectID) error
- func DeleteAgent(theAccount *modelsv2.AccountSchema, agentId bson.ObjectID) error
- func GetAccountIntegrationsWithEventType(theAccount *v2.AccountSchema, eventType v2.IntegrationEventType) ([]*v2.AccountIntegrationSchema, error)
- func GetAgentLog(theAgent *modelsv2.AgentSchema, logType string) (*modelsv2.AgentLogSchema, error)
- func GetAgentStats(theAgent *modelsv2.AgentSchema) ([]*modelsv2.AgentStatSchema, error)
- func GetAllModsFromAPI() ([]models.ModSchema, error)
- func GetDBModCount() (int64, error)
- func GetModCountFromAPI() (int, error)
- func GetModsFromAPI(offset int) ([]models.ModSchema, error)
- func GetModsFromDB(page int, sort string, direction string, search string) (*[]models.ModSchema, error)
- func GetMyAccountIntegrations(theAccount *models.AccountSchema) (*[]models.AccountIntegrationSchema, error)
- func GetMyAccountIntegrationsEvents(integrationId bson.ObjectID) ([]v2.IntegrationEventSchema, error)
- func GetMyUserLinkedAccounts(theUser *models.UserSchema) ([]models.AccountSchema, error)
- func GetUser(id bson.ObjectID, externalId string, email string, username string) (*models.UserSchema, error)
- func GetUserAccountAgents(theAccount *modelsv2.AccountSchema, agentId bson.ObjectID) ([]*modelsv2.AgentSchema, error)
- func GetUserAccountAudit(theUser *models.UserSchema) (*[]models.AccountAuditSchema, error)
- func GetUserAccountUsers(theAccount *models.AccountSchema) (*[]models.UserSchema, error)
- func GetUserActiveAccount(theUser *models.UserSchema) (*models.AccountSchema, error)
- func InitIntegrationService() error
- func InitModService()
- func InitWorkflowService()
- func InstallMod(theAgent *modelsv2.AgentSchema, modReference string, version string) error
- func JoinAccount(theUser *models.UserSchema, joinCode string) error
- func NewWorkflow_CreateAgent(accountId bson.ObjectID, PostData *modelsv2.CreateAgentWorkflowData) (string, error)
- func ProcessWorkflow(workflow *v2.WorkflowSchema) error
- func ProcessWorkflows() error
- func PurgeAgentStats() error
- func RegisterWorkflowAction(name string, handler v2.IWorkflowAction)
- func ShutdownIntegrationService() error
- func ShutdownModService() error
- func ShutdownWorkflowService() error
- func SwitchAccount(theUser *models.UserSchema, accountId bson.ObjectID) error
- func UninstallMod(theAgent *modelsv2.AgentSchema, modReference string) error
- func UpdateAccountIntegration(integrationId bson.ObjectID, name string, ...) error
- func UpdateAgentSettings(theAgent *modelsv2.AgentSchema, PostData *types.APIUpdateServerSettings) error
- func UpdateMod(theAgent *modelsv2.AgentSchema, modReference string) error
- func UpdateModsInDB() error
- func UpdateUserProfilePicture(theUser *models.UserSchema, avatarUrl string) error
- func ValidateStatus(obj *v2.WorkflowSchema)
- type ClaimServerAction
- type CreateAgentAction
- type InstallServerAction
- type StartServerAction
- type WaitForInstallAction
- type WaitForOnlineAction
- type WaitForRunningAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccountAudit ¶
func AddAccountIntegration ¶
func AddAccountIntegration(theAccount *models.AccountSchema, name string, integrationType models.IntegrationType, url string, eventTypes []models.IntegrationEventType) error
func AddAgentStat ¶
func AddIntegrationEvent ¶
func AddIntegrationEvent(theAccount *v2.AccountSchema, eventType v2.IntegrationEventType, payload interface{}) error
func AdminAddUserToAccount ¶ added in v1.0.71
func AdminDeleteAccount ¶ added in v1.0.71
func AdminDeleteAgent ¶ added in v1.0.71
func AdminDeleteUser ¶ added in v1.0.71
func AdminGetAccount ¶ added in v1.0.71
func AdminGetAccount(accountId string) (*models.AccountSchema, error)
func AdminGetAgent ¶ added in v1.0.71
func AdminGetAgent(agentId string) (*models.AgentSchema, error)
func AdminGetUser ¶ added in v1.0.71
func AdminGetUser(userId, externalId, email string) (*models.UserSchema, error)
func AdminListAccounts ¶ added in v1.0.71
func AdminListAgents ¶ added in v1.0.71
func AdminListUserAccounts ¶ added in v1.0.71
func AdminListUserAccounts(userId string) ([]models.AccountSchema, string, error)
func AdminListUsers ¶ added in v1.0.71
func AdminRemoveUserFromAccount ¶ added in v1.0.71
func AdminSetUserActiveAccount ¶ added in v1.0.71
func AdminUpdateAccount ¶ added in v1.0.71
func AdminUpdateAccount(accountId, accountName string) (*models.AccountSchema, error)
func AdminUpdateAgent ¶ added in v1.0.71
func AdminUpdateAgent(agentId, agentName, apiKey string) (*models.AgentSchema, error)
func AdminUpdateUser ¶ added in v1.0.71
func AdminUpdateUser(userId, externalId, email, username string) (*models.UserSchema, error)
func BuildDiscordEventPayload ¶
func BuildDiscordEventPayload(eventType v2.IntegrationEventType, payload interface{}) (*discordwebhook.Message, error)
func CreateAccount ¶
func CreateAccount(theUser *models.UserSchema, accountName string) error
func CreateAgentTask ¶
func CreateAgentTask(theAgent *modelsv2.AgentSchema, action string, data interface{}) error
func CreateUser ¶ added in v1.0.70
func DeleteAccount ¶ added in v1.0.71
func DeleteAccount(theUser *models.UserSchema, accountId bson.ObjectID) error
func DeleteAccountAudit ¶ added in v1.0.71
func DeleteAccountAudit(theAccount *models.AccountSchema, auditId bson.ObjectID) error
func DeleteAccountIntegration ¶
func DeleteAccountIntegration(theAccount *models.AccountSchema, integrationId bson.ObjectID) error
func DeleteAgent ¶
func DeleteAgent(theAccount *modelsv2.AccountSchema, agentId bson.ObjectID) error
func GetAccountIntegrationsWithEventType ¶
func GetAccountIntegrationsWithEventType(theAccount *v2.AccountSchema, eventType v2.IntegrationEventType) ([]*v2.AccountIntegrationSchema, error)
func GetAgentLog ¶
func GetAgentLog(theAgent *modelsv2.AgentSchema, logType string) (*modelsv2.AgentLogSchema, error)
func GetAgentStats ¶
func GetAgentStats(theAgent *modelsv2.AgentSchema) ([]*modelsv2.AgentStatSchema, error)
func GetAllModsFromAPI ¶
func GetDBModCount ¶
func GetModCountFromAPI ¶
func GetModsFromDB ¶
func GetMyAccountIntegrations ¶
func GetMyAccountIntegrations(theAccount *models.AccountSchema) (*[]models.AccountIntegrationSchema, error)
func GetMyAccountIntegrationsEvents ¶
func GetMyAccountIntegrationsEvents(integrationId bson.ObjectID) ([]v2.IntegrationEventSchema, error)
func GetMyUserLinkedAccounts ¶
func GetMyUserLinkedAccounts(theUser *models.UserSchema) ([]models.AccountSchema, error)
func GetUserAccountAgents ¶ added in v1.0.71
func GetUserAccountAgents(theAccount *modelsv2.AccountSchema, agentId bson.ObjectID) ([]*modelsv2.AgentSchema, error)
func GetUserAccountAudit ¶ added in v1.0.71
func GetUserAccountAudit(theUser *models.UserSchema) (*[]models.AccountAuditSchema, error)
func GetUserAccountUsers ¶ added in v1.0.71
func GetUserAccountUsers(theAccount *models.AccountSchema) (*[]models.UserSchema, error)
func GetUserActiveAccount ¶ added in v1.0.71
func GetUserActiveAccount(theUser *models.UserSchema) (*models.AccountSchema, error)
func InitIntegrationService ¶
func InitIntegrationService() error
func InitModService ¶
func InitModService()
func InitWorkflowService ¶
func InitWorkflowService()
func InstallMod ¶
func InstallMod(theAgent *modelsv2.AgentSchema, modReference string, version string) error
func JoinAccount ¶
func JoinAccount(theUser *models.UserSchema, joinCode string) error
func NewWorkflow_CreateAgent ¶ added in v1.0.71
func ProcessWorkflow ¶
func ProcessWorkflow(workflow *v2.WorkflowSchema) error
func ProcessWorkflows ¶
func ProcessWorkflows() error
func PurgeAgentStats ¶
func PurgeAgentStats() error
func RegisterWorkflowAction ¶
func RegisterWorkflowAction(name string, handler v2.IWorkflowAction)
func ShutdownIntegrationService ¶
func ShutdownIntegrationService() error
func ShutdownModService ¶
func ShutdownModService() error
func ShutdownWorkflowService ¶
func ShutdownWorkflowService() error
func SwitchAccount ¶
func SwitchAccount(theUser *models.UserSchema, accountId bson.ObjectID) error
func UninstallMod ¶
func UninstallMod(theAgent *modelsv2.AgentSchema, modReference string) error
func UpdateAccountIntegration ¶
func UpdateAccountIntegration(integrationId bson.ObjectID, name string, integrationType models.IntegrationType, url string, eventTypes []models.IntegrationEventType) error
func UpdateAgentSettings ¶
func UpdateAgentSettings(theAgent *modelsv2.AgentSchema, PostData *types.APIUpdateServerSettings) error
func UpdateModsInDB ¶
func UpdateModsInDB() error
func UpdateUserProfilePicture ¶
func UpdateUserProfilePicture(theUser *models.UserSchema, avatarUrl string) error
func ValidateStatus ¶
func ValidateStatus(obj *v2.WorkflowSchema)
Types ¶
type ClaimServerAction ¶
type ClaimServerAction struct{}
func (ClaimServerAction) Execute ¶
func (a ClaimServerAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema) error
type CreateAgentAction ¶
type CreateAgentAction struct{}
func (CreateAgentAction) Execute ¶
func (a CreateAgentAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema) error
type InstallServerAction ¶
type InstallServerAction struct{}
func (InstallServerAction) Execute ¶
func (a InstallServerAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema) error
type StartServerAction ¶
type StartServerAction struct{}
func (StartServerAction) Execute ¶
func (a StartServerAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema) error
type WaitForInstallAction ¶
type WaitForInstallAction struct{}
func (WaitForInstallAction) Execute ¶
func (a WaitForInstallAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema) error
type WaitForOnlineAction ¶
type WaitForOnlineAction struct{}
func (WaitForOnlineAction) Execute ¶
func (a WaitForOnlineAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema) error
type WaitForRunningAction ¶
type WaitForRunningAction struct{}
func (WaitForRunningAction) Execute ¶
func (a WaitForRunningAction) Execute(action *v2.WorkflowAction, d interface{}, theAccount *v2.AccountSchema) error
Click to show internal directories.
Click to hide internal directories.