services

package
v1.0.47 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AcceptInviteCode added in v1.0.14

func AcceptInviteCode(inviteCode string, password string) error

func AccountSignup

func AccountSignup(accountName string, email string, password string) error

func CheckAgentModsConfigs added in v1.0.14

func CheckAgentModsConfigs() error

func CheckAllAgentsLastComms added in v1.0.14

func CheckAllAgentsLastComms() error

func CheckForInactiveAccounts added in v1.0.46

func CheckForInactiveAccounts() error

func CleanupAccountFiles added in v1.0.21

func CleanupAccountFiles() error

func CreateAccountUser added in v1.0.14

func CreateAccountUser(accountIdStr string, email string) error

func CreateAgent

func CreateAgent(accountIdStr string, agentName string, port int, memory int64) error

func CreateAgentWorkflow added in v1.0.42

func CreateAgentWorkflow(accountIdStr string, PostData models.API_AccountCreateAgent_PostData) (string, error)

func CreateUserAPIKey added in v1.0.39

func CreateUserAPIKey(accountIdStr string, userIdStr string, apiKey string) error

func DeleteAgent added in v1.0.14

func DeleteAgent(accountIdStr string, agentIdStr string) error

func DeleteUserAPIKey added in v1.0.39

func DeleteUserAPIKey(accountIdStr string, userIdStr string, shortApiKey string) error

func GenerateUserTwoFASecret added in v1.0.10

func GenerateUserTwoFASecret(accountIdStr string, userIdStr string) (string, error)

func GetAccount added in v1.0.13

func GetAccount(accountIdStr string) (models.Accounts, error)

func GetAccountByAgentId added in v1.0.35

func GetAccountByAgentId(agentIdStr string) (models.Accounts, error)

func GetAccountSession

func GetAccountSession(sessionIdStr string) (models.AccountSessions, error)

func GetAgentByAPIKey added in v1.0.14

func GetAgentByAPIKey(agentAPIKey string) (models.Agents, error)

func GetAgentById added in v1.0.14

func GetAgentById(accountIdStr string, agentIdStr string) (models.Agents, error)

func GetAgentByIdNoAccount added in v1.0.19

func GetAgentByIdNoAccount(agentIdStr string) (models.Agents, error)

func GetAgentConfig added in v1.0.14

func GetAgentConfig(agentAPIKey string) (app.API_AgentConfig_ResData, error)

func GetAgentLogs added in v1.0.14

func GetAgentLogs(accountIdStr string, agentIdStr string) ([]models.AgentLogs, error)

func GetAgentModConfig added in v1.0.14

func GetAgentModConfig(agentAPIKey string) (models.AgentModConfig, error)

func GetAgentTasks added in v1.0.14

func GetAgentTasks(accountIdStr string, agentIdStr string) ([]models.AgentTask, error)

func GetAgentTasksApi added in v1.0.14

func GetAgentTasksApi(agentAPIKey string) ([]models.AgentTask, error)

func GetAllAgents

func GetAllAgents(accountIdStr string) ([]models.Agents, error)

func GetAllModsFromAPI added in v1.0.14

func GetAllModsFromAPI() ([]models.Mods, error)

func GetAllUsers

func GetAllUsers(accountIdStr string) ([]models.Users, error)

func GetModCountFromAPI added in v1.0.14

func GetModCountFromAPI() (int, error)

func GetModsFromAPI added in v1.0.14

func GetModsFromAPI(offset int) ([]models.Mods, error)

func GetMyUser added in v1.0.4

func GetMyUser(accountIdStr string, userIdStr string) (models.Users, error)

func GetUserByInviteCode added in v1.0.14

func GetUserByInviteCode(inviteCode string) (models.Users, error)

func InitAccountService added in v1.0.25

func InitAccountService()

func InitAgentService added in v1.0.14

func InitAgentService()

func InitAllServices added in v1.0.14

func InitAllServices()

func InitModService added in v1.0.14

func InitModService()

func InitStorageService added in v1.0.14

func InitStorageService()

func InstallMod added in v1.0.14

func InstallMod(accountIdStr string, agentIdStr string, modReference string, version string) error

func LoginAccountUser

func LoginAccountUser(email string, password string) (string, error)

func NewAgentTask added in v1.0.14

func NewAgentTask(accountIdStr string, agentIdStr string, action string, data interface{}) error

func ProcessAccountIntegrationEvents added in v1.0.35

func ProcessAccountIntegrationEvents() error

func ProcessAccountWorkflows added in v1.0.42

func ProcessAccountWorkflows() error

func PurgeAgentTasks added in v1.0.14

func PurgeAgentTasks() error

func ShutdownAccountService added in v1.0.35

func ShutdownAccountService() error

func ShutdownAgentService added in v1.0.14

func ShutdownAgentService() error

func ShutdownAllServices added in v1.0.14

func ShutdownAllServices() error

func ShutdownModService added in v1.0.14

func ShutdownModService() error

func UninstallMod added in v1.0.14

func UninstallMod(accountIdStr string, agentIdStr string, modReference string) error

func UpdateAgentBuildings added in v1.0.47

func UpdateAgentBuildings(agentApiKey string, PostData app.API_UpdateBuildings_PostData) error

func UpdateAgentConfig added in v1.0.14

func UpdateAgentConfig(accountIdStr string, agentIdStr string, updatedAgent models.Agents) error

func UpdateAgentConfigApi added in v1.0.14

func UpdateAgentConfigApi(agentAPIKey string, version string, ip string) error

func UpdateAgentLastComm added in v1.0.14

func UpdateAgentLastComm(agentAPIKey string) error

func UpdateAgentModConfig added in v1.0.14

func UpdateAgentModConfig(agentAPIKey string, newConfig models.AgentModConfig) error

func UpdateAgentPlayers added in v1.0.16

func UpdateAgentPlayers(agentApiKey string, PostData app.API_UpdatePlayers_PostData) error

func UpdateAgentStatus added in v1.0.14

func UpdateAgentStatus(agentAPIKey string, online bool, installed bool, running bool, cpu float64, mem float32, installedSFVersion int64, latestSFVersion int64) error

func UpdateAgentTaskItem added in v1.0.14

func UpdateAgentTaskItem(agentAPIKey string, taskId string, newTask models.AgentTask) error

func UpdateMod added in v1.0.14

func UpdateMod(accountIdStr string, agentIdStr string, modReference string) error

func UpdateModsInDB added in v1.0.14

func UpdateModsInDB() error

func UploadedAgentBackup added in v1.0.14

func UploadedAgentBackup(agentAPIKey string, fileIdentity StorageFileIdentity) error

func UploadedAgentLog added in v1.0.14

func UploadedAgentLog(agentAPIKey string, fileIdentity StorageFileIdentity) error

func UploadedAgentSave added in v1.0.14

func UploadedAgentSave(agentAPIKey string, fileIdentity StorageFileIdentity) error

func ValidateUserTwoFACode added in v1.0.11

func ValidateUserTwoFACode(accountIdStr string, userIdStr string, code string) error

Types

type SSMProvider added in v1.0.14

type SSMProvider struct{}

func (SSMProvider) GetModName added in v1.0.14

func (p SSMProvider) GetModName(_ context.Context, modReference string) (*resolver.ModName, error)

func (SSMProvider) ModVersionsWithDependencies added in v1.0.14

func (p SSMProvider) ModVersionsWithDependencies(_ context.Context, modID string) ([]resolver.ModVersion, error)

type StorageFileIdentity added in v1.0.14

type StorageFileIdentity struct {
	UUID          string
	FileName      string
	Extension     string
	LocalFilePath string
}

func ConvertUploadToFileIdentity added in v1.0.14

func ConvertUploadToFileIdentity(file *multipart.FileHeader) StorageFileIdentity

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL