Documentation
¶
Index ¶
- func AddAgentLogLine(agentAPIKey string, source string, line string, inital bool) error
- func AddAgentStat(theAgent *modelsv2.AgentSchema, runningState bool, cpu float64, memory float32) error
- func CheckAgentVersions() error
- func CheckAllAgentsLastComms() error
- func CreateAgentTask(theAgent *modelsv2.AgentSchema, theAccount *modelsv2.AccountSchema, ...) (string, error)
- func DeleteAgent(theAccount *modelsv2.AccountSchema, agentId bson.ObjectID) error
- func GetAccountIDForAgent(agentID bson.ObjectID) (bson.ObjectID, error)
- func GetAgentByAPIKey(agentAPIKey string) (*modelsv2.AgentSchema, error)
- func GetAgentById(accountIdStr string, agentIdStr string) (*modelsv2.AgentSchema, error)
- func GetAgentByIdNoAccount(agentIdStr string) (*modelsv2.AgentSchema, error)
- func GetAgentConfig(agentAPIKey string) (types.API_AgentConfig_ResData, error)
- func GetAgentLog(theAgent *modelsv2.AgentSchema, logType string) (*modelsv2.AgentLogSchema, error)
- func GetAgentSaves(agentAPIKey string) ([]modelsv2.AgentSave, error)
- func GetAgentStats(theAgent *modelsv2.AgentSchema) ([]*modelsv2.AgentStatSchema, error)
- func GetAllAgents(accountIdStr string) ([]*modelsv2.AgentSchema, error)
- func GetUserAccountAgents(theAccount *modelsv2.AccountSchema, agentId bson.ObjectID) ([]*modelsv2.AgentSchema, error)
- func InitAgentService()
- func NewWorkflow_CreateAgent(accountId bson.ObjectID, PostData *modelsv2.CreateAgentWorkflowData) (string, error)
- func PostAgentSyncSaves(agentAPIKey string, saves []modelsv2.AgentSave) error
- func PurgeAgentStats() error
- func SaveObjectPathForAPIKey(apiKey, saveFileName string) (string, error)
- func ShutdownAgentService() error
- func UpdateAgentConfigApi(agentAPIKey string, version string, ip string, platform string) error
- func UpdateAgentLastComm(agentAPIKey string) error
- func UpdateAgentSettings(theAgent *modelsv2.AgentSchema, PostData *types.APIUpdateServerSettings) error
- func UpdateAgentStatus(agentAPIKey string, online bool, installed bool, running bool, cpu float64, ...) error
- func UploadPendingLogs() error
- func UploadedAgentBackup(agentAPIKey string, fileIdentity types.StorageFileIdentity) error
- func UploadedAgentLog(agentAPIKey string, fileIdentity types.StorageFileIdentity) error
- func UploadedAgentSave(agentAPIKey string, fileIdentity types.StorageFileIdentity, updateModTime bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAgentLogLine ¶
func AddAgentStat ¶ added in v1.0.77
func CheckAgentVersions ¶
func CheckAgentVersions() error
func CheckAllAgentsLastComms ¶
func CheckAllAgentsLastComms() error
func CreateAgentTask ¶ added in v1.0.77
func CreateAgentTask(theAgent *modelsv2.AgentSchema, theAccount *modelsv2.AccountSchema, externalID, action string, data interface{}) (string, error)
CreateAgentTask enqueues a user-triggered task and returns its id.
func DeleteAgent ¶ added in v1.0.77
func DeleteAgent(theAccount *modelsv2.AccountSchema, agentId bson.ObjectID) error
func GetAccountIDForAgent ¶ added in v1.0.79
GetAccountIDForAgent resolves the account that owns an agent. The agent document has no back-pointer; ownership lives in the account's agents array.
func GetAgentByAPIKey ¶
func GetAgentByAPIKey(agentAPIKey string) (*modelsv2.AgentSchema, error)
func GetAgentById ¶
func GetAgentById(accountIdStr string, agentIdStr string) (*modelsv2.AgentSchema, error)
func GetAgentByIdNoAccount ¶
func GetAgentByIdNoAccount(agentIdStr string) (*modelsv2.AgentSchema, error)
func GetAgentConfig ¶
func GetAgentConfig(agentAPIKey string) (types.API_AgentConfig_ResData, error)
func GetAgentLog ¶ added in v1.0.77
func GetAgentLog(theAgent *modelsv2.AgentSchema, logType string) (*modelsv2.AgentLogSchema, error)
func GetAgentStats ¶ added in v1.0.77
func GetAgentStats(theAgent *modelsv2.AgentSchema) ([]*modelsv2.AgentStatSchema, error)
func GetAllAgents ¶
func GetAllAgents(accountIdStr string) ([]*modelsv2.AgentSchema, error)
func GetUserAccountAgents ¶ added in v1.0.77
func GetUserAccountAgents(theAccount *modelsv2.AccountSchema, agentId bson.ObjectID) ([]*modelsv2.AgentSchema, error)
func InitAgentService ¶
func InitAgentService()
func NewWorkflow_CreateAgent ¶ added in v1.0.77
func PostAgentSyncSaves ¶
func PurgeAgentStats ¶ added in v1.0.77
func PurgeAgentStats() error
func SaveObjectPathForAPIKey ¶ added in v1.0.77
SaveObjectPathForAPIKey resolves the S3 object path for a save file owned by the agent identified by apiKey.
func ShutdownAgentService ¶
func ShutdownAgentService() error
func UpdateAgentConfigApi ¶
func UpdateAgentLastComm ¶
func UpdateAgentSettings ¶ added in v1.0.77
func UpdateAgentSettings(theAgent *modelsv2.AgentSchema, PostData *types.APIUpdateServerSettings) error
func UpdateAgentStatus ¶
func UploadPendingLogs ¶
func UploadPendingLogs() error
func UploadedAgentBackup ¶
func UploadedAgentBackup(agentAPIKey string, fileIdentity types.StorageFileIdentity) error
func UploadedAgentLog ¶
func UploadedAgentLog(agentAPIKey string, fileIdentity types.StorageFileIdentity) error
func UploadedAgentSave ¶
func UploadedAgentSave(agentAPIKey string, fileIdentity types.StorageFileIdentity, updateModTime bool) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.