package
2.0.0-20210917042219-c89ff57a6b74
Repository: https://github.com/flowkeeper/flowutils.git
Documentation: pkg.go.dev
# Functions
AddTriggerAssignment persist a mapping between an agent and a trigger.
AddTriggerAssignments persist a mapping between an agent and one or multiple triggers.
GetAgent returns the appropriate agent for the given ID.
GetAgentByUUID returns the appropriate agent for the given UUID.
GetAllAgents returns all agents from the database.
GetAllTemplates returns all templates from the datbase.
GetItemByName gets the appropriate item which matches the specified NameWARNING: The query is case sensitive.
GetItems returns one or multiple item structs for the specified IDsIf a item id isn't found in the database, no error is causedInstead the missing item is omitted from the returned item slice.
GetTemplates returns one or multiple template structs for the specified IDsIf a template id isn't found in the database, no error is causedInstead the missing template is omitted from the returned item slice.
GetTrigger gets the appropriate trigger which matches the specified ID.
GetTriggerByName gets the appropriate trigger which matches the specified Name.
GetTriggers returns one or multiple trigger structs for the specified IDsIf a trigger id isn't found in the database, no error is causedInstead the missing trigger is omitted from the returned item slice.