Versions in this module Expand all Collapse all v1 v1.0.80 Jul 14, 2026 v1.0.79 Jul 14, 2026 Changes in this version + const ActionStart + const ActionStop + const ActionSyncMods + const OpAdd + const OpApplyPending + const OpRemove + const OpSetVersion + const OpUpdateAll + func Apply(agentID, accountID bson.ObjectID, ch ModChange, applyNow bool, ...) ([]string, error) + func ApplyConfigOnly(agentID, accountID bson.ObjectID, modReference, config string, applyNow bool, ...) ([]string, error) + func ApplyPendingNow(agentID, accountID bson.ObjectID, trigger v2.TaskTrigger) ([]string, error) + func Backfill() error + func CountDirectByAgent(agentIDs []bson.ObjectID) (map[bson.ObjectID]int32, error) + func DeleteAbsent(agentID bson.ObjectID, keep []string) error + func EnsureIndexes() error + func Get(agentID bson.ObjectID, modReference string) (*v2.AgentModSchema, error) + func Init() error + func ListForAgent(agentID bson.ObjectID) ([]v2.AgentModSchema, error) + func RefreshNeedsUpdate() error + func ReportInstalled(agentID bson.ObjectID, mods []v2.InstalledMod) error + func Resolve(agentID bson.ObjectID) (v2.Lockfile, error) + func ResolveSelection(agentID bson.ObjectID, direct map[string]string) (v2.Lockfile, error) + func SetConfig(agentID bson.ObjectID, modReference, config string) error + func SetDesiredVersion(agentID bson.ObjectID, modReference, version string) error + func UpsertMany(agentID, accountID bson.ObjectID, locks []v2.ModLock, ...) error + type Change struct + Added []ChangedMod + Changed []ChangedMod + Removed []ChangedMod + func Diff(current []v2.AgentModSchema, next v2.Lockfile) Change + func Preview(agentID bson.ObjectID, ch ModChange) (Change, error) + func (c Change) IsEmpty() bool + type ChangedMod struct + Dependency bool + From string + ModReference string + To string + type ModChange struct + ModReference string + Op string + Version string