Documentation
¶
Index ¶
- func AddAccountIntegration(theAccount *models.AccountSchema, name string, ...) error
- func CheckAgentBackups(baseObjectPath string, theAgent *modelsv2.AgentSchema) error
- func CheckAgentSaves(baseObjectPath string, theAgent *modelsv2.AgentSchema) error
- func CheckForInactiveAccounts() error
- func CleanupAccountFiles() error
- func CreateAccount(theUser *models.UserSchema, accountName string) error
- func DeleteAccount(theUser *models.UserSchema, accountId bson.ObjectID) error
- func DeleteAccountIntegration(theAccount *models.AccountSchema, integrationId bson.ObjectID) error
- func DeleteInactiveAccounts() error
- func GetMyAccountIntegrations(theAccount *models.AccountSchema) (*[]models.AccountIntegrationSchema, error)
- func GetMyUserLinkedAccounts(theUser *models.UserSchema) ([]models.AccountSchema, 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 InitAccountService()
- func JoinAccount(theUser *models.UserSchema, joinCode string) error
- func PurgeAccount(theAccount *models.AccountSchema) error
- func ShutdownAccountService() error
- func SwitchAccount(theUser *models.UserSchema, accountId bson.ObjectID) error
- func UpdateAccountIntegration(integrationId bson.ObjectID, name string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAccountIntegration ¶ added in v1.0.77
func AddAccountIntegration(theAccount *models.AccountSchema, name string, integrationType models.IntegrationType, url string, eventTypes []models.IntegrationEventType) error
func CheckAgentBackups ¶
func CheckAgentBackups(baseObjectPath string, theAgent *modelsv2.AgentSchema) error
func CheckAgentSaves ¶
func CheckAgentSaves(baseObjectPath string, theAgent *modelsv2.AgentSchema) error
func CheckForInactiveAccounts ¶
func CheckForInactiveAccounts() error
func CleanupAccountFiles ¶
func CleanupAccountFiles() error
func CreateAccount ¶ added in v1.0.77
func CreateAccount(theUser *models.UserSchema, accountName string) error
func DeleteAccount ¶ added in v1.0.77
func DeleteAccount(theUser *models.UserSchema, accountId bson.ObjectID) error
func DeleteAccountIntegration ¶ added in v1.0.77
func DeleteAccountIntegration(theAccount *models.AccountSchema, integrationId bson.ObjectID) error
func DeleteInactiveAccounts ¶
func DeleteInactiveAccounts() error
func GetMyAccountIntegrations ¶ added in v1.0.77
func GetMyAccountIntegrations(theAccount *models.AccountSchema) (*[]models.AccountIntegrationSchema, error)
func GetMyUserLinkedAccounts ¶ added in v1.0.77
func GetMyUserLinkedAccounts(theUser *models.UserSchema) ([]models.AccountSchema, error)
func GetUserAccountAudit ¶ added in v1.0.77
func GetUserAccountAudit(theUser *models.UserSchema) (*[]models.AccountAuditSchema, error)
func GetUserAccountUsers ¶ added in v1.0.77
func GetUserAccountUsers(theAccount *models.AccountSchema) (*[]models.UserSchema, error)
func GetUserActiveAccount ¶ added in v1.0.77
func GetUserActiveAccount(theUser *models.UserSchema) (*models.AccountSchema, error)
func InitAccountService ¶
func InitAccountService()
func JoinAccount ¶ added in v1.0.77
func JoinAccount(theUser *models.UserSchema, joinCode string) error
func PurgeAccount ¶ added in v1.0.77
func PurgeAccount(theAccount *models.AccountSchema) error
PurgeAccount fully removes an account and everything belonging to it: its agents, audits and integrations, its stored files, and the account record itself. It also unlinks the account from any users that reference it. This is the single source of truth for account deletion, used by both the admin delete endpoint and the inactive-account cleanup job.
func ShutdownAccountService ¶
func ShutdownAccountService() error
func SwitchAccount ¶ added in v1.0.77
func SwitchAccount(theUser *models.UserSchema, accountId bson.ObjectID) error
func UpdateAccountIntegration ¶ added in v1.0.77
func UpdateAccountIntegration(integrationId bson.ObjectID, name string, integrationType models.IntegrationType, url string, eventTypes []models.IntegrationEventType) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.