Caturvarnaya

package module
v0.0.0-...-7b8d924 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 13 Imported by: 0

README

Caturvarnaya

Documentation

Index

Constants

View Source
const CONNECTIONSTRING = "mongodb://localhost:27017"

CONNECTIONSTRING DB connection string

Variables

View Source
var DBNAME = "masternodedb"

DBNAME Database name

Functions

func ADFSRoleExist

func ADFSRoleExist(familyname string, groupsarr string) (bool, error)

func CancelSelectedPendingSearches

func CancelSelectedPendingSearches(SearchKey string) (string, error)

func CheckGFMFMsExists

func CheckGFMFMsExists(fmname string) (bool, error)

func CheckGFMNodeExists

func CheckGFMNodeExists(fmip string) (bool, error)

func CheckGFMPivotingTokenExists

func CheckGFMPivotingTokenExists(pivottoken string) (bool, error)

func CheckGFMRegionExists

func CheckGFMRegionExists(regionname string) (bool, error)

func CheckGFMSearchExistsInCompleted

func CheckGFMSearchExistsInCompleted(searchname string) (bool, error)

func CheckGFMSearchExistsInPending

func CheckGFMSearchExistsInPending(searchname string) (bool, error)

func CheckSearchExists

func CheckSearchExists(searchname string) (bool, error)

func CheckaSurveillancerule

func CheckaSurveillancerule(content string) (bool, error)

func Checkactivetrigger

func Checkactivetrigger(trigger_name string, search_filter string) (bool, error)

func D1eleteOneFMGroup

func D1eleteOneFMGroup(fmgroup Atmabhuve.FMGroups) string

func DeleteAllCompletedSearches

func DeleteAllCompletedSearches(SearchKey string) (string, error)

func DeleteAllSearchLibraries

func DeleteAllSearchLibraries() (int64, error)

func DeleteAugmentation

func DeleteAugmentation(augtype string) (int64, error)

func DeleteNCRoleByRole

func DeleteNCRoleByRole(rolename string) (int64, error)

func DeleteOneFMGroup

func DeleteOneFMGroup(filter bson.M) int64

func Deletelogreceiver

func Deletelogreceiver(ipaddress string, port string) (int64, error)

func DisplayAllFMGroups

func DisplayAllFMGroups() (string, error)

func DisplayAllFMGroupsbyrole

func DisplayAllFMGroupsbyrole(rolename string) (string, error)

func DisplayAllGFMFMs

func DisplayAllGFMFMs() (string, error)

func DisplayAllRegions

func DisplayAllRegions() (string, error)

func DisplayAllRegionsbyrole

func DisplayAllRegionsbyrole(rolename string) ([]Atmabhuve.FMGroups, error)

func DisplayUsersInfo

func DisplayUsersInfo() (string, error)

func FindActiveTrigger

func FindActiveTrigger(triggername string) (*Atmabhuve.Activetrigger, error)

func FindBPFSearchLibrary

func FindBPFSearchLibrary(searchfilter string) (bool, error)

func FindGFMNodeIP

func FindGFMNodeIP(nodeip string) (bool, error)

func FindGroupName

func FindGroupName(groupname string) (*Atmabhuve.FMGroups, error)

func FindIDSRuleIsActivatedOrDeactivatedBySID

func FindIDSRuleIsActivatedOrDeactivatedBySID(sid string, classname string) ([]Atmabhuve.Idsrules, error)

func FindNodeIP

func FindNodeIP(nodeip string) (bool, error)

func GFMGetAllMasterCompletedSearches

func GFMGetAllMasterCompletedSearches() ([]Atmabhuve.Mastersearchcompletedcollections, error)

func GFMGetAllPendingSearches

func GFMGetAllPendingSearches() ([]Atmabhuve.Mastersearchpendingcollections, error)

func GetActiveTriggerByTriggerName

func GetActiveTriggerByTriggerName(triggername string) (*Atmabhuve.Activetrigger, error)

func GetActiveTriggersCount

func GetActiveTriggersCount() (int64, error)

func GetAllADFSRoles

func GetAllADFSRoles() (string, error)

func GetAllActiveTriggers

func GetAllActiveTriggers() ([]Atmabhuve.Activetrigger, error)

func GetAllCompletedSearches

func GetAllCompletedSearches() (string, error)

func GetAllFMGroups

func GetAllFMGroups() ([]Atmabhuve.FMGroups, error)

func GetAllFMNodes

func GetAllFMNodes() (string, error)

func GetAllFMNodesBasedNode

func GetAllFMNodesBasedNode(nodename string) ([]Atmabhuve.FMNodes, error)

func GetAllFMNodesByGroupsList

func GetAllFMNodesByGroupsList(groupslist string) (string, error)

func GetAllFMNodesByGroupsList2

func GetAllFMNodesByGroupsList2(groupslist string) ([]Atmabhuve.FMNodes, error)

func GetAllFMNodesRest

func GetAllFMNodesRest() ([]Atmabhuve.FMNodes, error)

func GetAllFMSharePermissions

func GetAllFMSharePermissions() ([]Atmabhuve.FMSharePermissions, error)

func GetAllFMSharePermissionsByUserName

func GetAllFMSharePermissionsByUserName(username string) (*Atmabhuve.FMSharePermissions, error)

func GetAllGFMCompletedSearchesByPageAndLimit

func GetAllGFMCompletedSearchesByPageAndLimit(pagestr string, limitstr string, etime string) (map[string]interface{}, error)

func GetAllGFMCompletedSearchesByPageAndLimitAndCancled

func GetAllGFMCompletedSearchesByPageAndLimitAndCancled(pagestr string, limitstr string, etime string) (map[string]interface{}, error)

func GetAllGFMFMS

func GetAllGFMFMS() (string, error)

func GetAllGFMNodes

func GetAllGFMNodes() (string, error)

func GetAllGFMNodesforGFM

func GetAllGFMNodesforGFM() ([]Atmabhuve.FMNodes, error)

func GetAllGFMPendingSearchesByPageAndLimit

func GetAllGFMPendingSearchesByPageAndLimit(pagestr string, limitstr string, etime string) (map[string]interface{}, error)

func GetAllGFMSFMSData

func GetAllGFMSFMSData() ([]Atmabhuve.GFMFMs, error)

func GetAllMappedNodes

func GetAllMappedNodes(rolename string) ([]Atmabhuve.FMNodes, error)

func GetAllMasterCompletedSearches

func GetAllMasterCompletedSearches() (string, error)

func GetAllMasterCompletedSearchesBasedonCount

func GetAllMasterCompletedSearchesBasedonCount(searchcount int64) (string, error)

func GetAllMasterCompletedSearchesByPageAndLimit

func GetAllMasterCompletedSearchesByPageAndLimit(pagestr string, limitstr string, etime string) (map[string]interface{}, error)

func GetAllMasterCompletedSearchesByPageAndLimitAndCancled

func GetAllMasterCompletedSearchesByPageAndLimitAndCancled(pagestr string, limitstr string, etime string) (map[string]interface{}, error)

func GetAllMasterCompletedSearchesByPageAndLimitWithoutTimeRange

func GetAllMasterCompletedSearchesByPageAndLimitWithoutTimeRange(pagestr string, limitstr string) (map[string]interface{}, error)

func GetAllMasterPendingSearchesByPageAndLimit

func GetAllMasterPendingSearchesByPageAndLimit(pagestr string, limitstr string, etime string) (map[string]interface{}, error)

func GetAllNCRoles

func GetAllNCRoles() ([]Atmabhuve.NCRoles, error)

func GetAllNCRolesRetrunStringArr

func GetAllNCRolesRetrunStringArr() (string, error)

func GetAllPendingSearches

func GetAllPendingSearches() (string, error)

func GetAllPendingSearchesBasedonCount

func GetAllPendingSearchesBasedonCount(searchcount int64) (string, error)

func GetAllPreCaptures

func GetAllPreCaptures() ([]Atmabhuve.PreCaptures, error)

func GetAllRegionsforGFM

func GetAllRegionsforGFM() ([]Atmabhuve.GFMRegions, error)

func GetAllRoleByRoleName

func GetAllRoleByRoleName(role string) (string, error)

func GetAllRoleNames

func GetAllRoleNames() (string, error)

func GetAllSearchFlows

func GetAllSearchFlows(stime int64, etime int64, host string, destport string, appproto string) ([]Atmabhuve.ELasticMDP, error)

func GetAllSurveillanceRulesData

func GetAllSurveillanceRulesData() ([]Atmabhuve.Surveillancerules, error)

func GetAllUsers

func GetAllUsers() ([]Atmabhuve.GetUser, error)

func GetAugmentation

func GetAugmentation(atype string) ([]Atmabhuve.Augmentation, error)

func GetBPFSearchLibrary

func GetBPFSearchLibrary() ([]Atmabhuve.SearchLibrary, error)

func GetCounts

func GetCounts() (map[string]string, error)

func GetFMAdminResults

func GetFMAdminResults(admintoken string) (string, string, error)

func GetFMAdminToken

func GetFMAdminToken(admintoken string) (bool, error)

func GetFMLDAPUser

func GetFMLDAPUser(username string) (*Atmabhuve.FMLdapUsers, error)

func GetFMLDAPUsers

func GetFMLDAPUsers() ([]Atmabhuve.FMLdapUsers, error)

func GetFMNodes

func GetFMNodes() ([]Atmabhuve.FMNodes, error)

func GetFMNodesByGroup

func GetFMNodesByGroup() ([]Atmabhuve.FMNodes, error)

func GetFMRadiusUsers

func GetFMRadiusUsers() ([]Atmabhuve.FMRadiusUsers, error)

func GetGFMAdminTokenResults

func GetGFMAdminTokenResults(nodeip string) (*Atmabhuve.GFMFMs, error)

func GetGFMDataByIP

func GetGFMDataByIP(nodeip string) (string, error)

func GetGFMFMsByRegionname

func GetGFMFMsByRegionname(regionname string) ([]Atmabhuve.GFMFMs, error)

func GetGFMNodeIPbyNodeName

func GetGFMNodeIPbyNodeName(nodename string) (string, error)

func GetGFMNodesByGroup

func GetGFMNodesByGroup() ([]Atmabhuve.GFMNodes, error)

func GetGFMRegionsAggregate

func GetGFMRegionsAggregate() ([]map[string]string, error)

func GetGroupByFMNodes

func GetGroupByFMNodes(groupname string) (bool, error)

func GetGroupsByFMGroups

func GetGroupsByFMGroups(groupname string) (*Atmabhuve.FMGroups, error)

func GetLdapRole

func GetLdapRole(username string) (string, error)

func GetLdapUserName

func GetLdapUserName(username string) (bool, error)

func GetLogReceiverData

func GetLogReceiverData() ([]Atmabhuve.LogReceiver, error)

func GetNCRoleByRole

func GetNCRoleByRole(role string) (*Atmabhuve.NCRoles, error)

func GetNodeByFMNodes

func GetNodeByFMNodes(nodename string) (bool, error)

func GetNodeIPbyNodeName

func GetNodeIPbyNodeName(nodename string) (string, error)

func GetNodeNameByIP

func GetNodeNameByIP(nodeip string) (string, error)

func GetNodesByGroupName

func GetNodesByGroupName(groupname string) ([]Atmabhuve.FMNodes, error)

func GetNodesBySearch

func GetNodesBySearch(searchname string) ([]Atmabhuve.Mastersearchcompletedcollections, error)

func GetNonAdminUsers

func GetNonAdminUsers() ([]Atmabhuve.NCRoles, error)

func GetParticularFMNodes

func GetParticularFMNodes() ([]Atmabhuve.ParticularFMNodes, error)

func GetRadiusRole

func GetRadiusRole(username string) (string, error)

func GetRadiusUserName

func GetRadiusUserName(username string) (bool, error)

}

func GetRestUser

func GetRestUser(username string) (*Atmabhuve.GetUser, error)

func GetRoleName

func GetRoleName(rolename string) (bool, error)

func GetSearchDataBySearchandNode

func GetSearchDataBySearchandNode(searchname string, nodename string) ([]Atmabhuve.Mastersearchcompletedcollections, error)

func GetSelectedIDsRules

func GetSelectedIDsRules(classname string, ruletype string) ([]Atmabhuve.Idsrules, error)

func GetSelectedSearchNodeNameRegex

func GetSelectedSearchNodeNameRegex(nodename string, searchname string) ([]Atmabhuve.Mastersearchcompletedcollections, error)

func GetSelectedSearchkeyDetails

func GetSelectedSearchkeyDetails(searchkey string) ([]Atmabhuve.Mastersearchcompletedcollections, error)

func GetSurveillancerulesCount

func GetSurveillancerulesCount() (int64, error)

func GetTop10Searches

func GetTop10Searches() (string, error)

func GetUniqueAllMasterCompletedSearches

func GetUniqueAllMasterCompletedSearches() ([]Atmabhuve.Mastersearchcompletedcollections, error)

func GetUser

func GetUser(username string) (*Atmabhuve.Users, error)

func GetUserAndAdmintoken

func GetUserAndAdmintoken(username string, token string) (string, string, error)

func GetUserName

func GetUserName(username string) (bool, error)

func GetUserNameByToken

func GetUserNameByToken(token string) (string, error)

func GetUsers

func GetUsers(username string) ([]Atmabhuve.Users, error)

func IDsRulesWithCounts

func IDsRulesWithCounts(ruletype string) map[string]string

func IDsRulesbyClassName

func IDsRulesbyClassName(rulesetname string) ([]Atmabhuve.Idsrules, error)

func IDsRulesbySidList

func IDsRulesbySidList(sidarr string) ([]Atmabhuve.Idsrules, error)

func IDsRulesbyType

func IDsRulesbyType(rulestype string) ([]Atmabhuve.Idsrules, error)

func IDsRulesbyTypeAndClassName

func IDsRulesbyTypeAndClassName(rulestype string, rulesetname string) ([]Atmabhuve.Idsrules, error)

func IDsRulesbyTypeAndSidList

func IDsRulesbyTypeAndSidList(rulestype string, sidarr string) ([]Atmabhuve.Idsrules, error)

func InsertBPFSearchLibrary

func InsertBPFSearchLibrary(searchfilter Atmabhuve.SearchLibrary) string

func InsertConfiguration

func InsertConfiguration(config Atmabhuve.Configuration) string

func InsertFMLDAPUser

func InsertFMLDAPUser(ldapusers Atmabhuve.FMLdapUsers) string

func InsertFMRadiusUser

func InsertFMRadiusUser(radiususers Atmabhuve.FMRadiusUsers) string

func InsertGFMCompletedSearch

func InsertGFMCompletedSearch(completedsearcobj Atmabhuve.Completedsearches) string

func InsertGFMPendingSearch

func InsertGFMPendingSearch(pendingsearchobj Atmabhuve.Pendingsearches) string

func InsertIdsrules

func InsertIdsrules(fmidsrules Atmabhuve.Idsrules) string

func InsertIntoAugmentation

func InsertIntoAugmentation(inserts []Atmabhuve.Augmentation) string

func InsertIntoIDSRules

func InsertIntoIDSRules(inserts []Atmabhuve.Idsrules) string

func InsertLogReceiver

func InsertLogReceiver(logreceivedata Atmabhuve.LogReceiver) string

func InsertManySurveillancerules

func InsertManySurveillancerules(inserts []Atmabhuve.Surveillancerules) string

func InsertMasterSearchPending

func InsertMasterSearchPending(config Atmabhuve.Mastersearchpendingcollections) string

func InsertOneActiveTrigger

func InsertOneActiveTrigger(fmactivetrigger Atmabhuve.Activetrigger) string

func InsertOneAdminToken

func InsertOneAdminToken(admintoken Atmabhuve.AdminToken) string

func InsertOneFMGroup

func InsertOneFMGroup(fmgroup Atmabhuve.FMGroups) string

func InsertOneFMNode

func InsertOneFMNode(fmnodes Atmabhuve.FMNodes) string

func InsertOneGFMFMS

func InsertOneGFMFMS(gfmfms Atmabhuve.GFMFMs) string

func InsertOneGFMFNs

func InsertOneGFMFNs(gfmfns Atmabhuve.GFMFNs) string

func InsertOneGFMNode

func InsertOneGFMNode(gfmnodes Atmabhuve.GFMNodes) string

func InsertOneGFMRegions

func InsertOneGFMRegions(gfmregions Atmabhuve.GFMRegions) string

func InsertOnePivotToken

func InsertOnePivotToken(pivottoken Atmabhuve.Pivoting) string

func InsertOnePreCapture

func InsertOnePreCapture(fmaprecaptures Atmabhuve.PreCaptures) string

func InsertOnePrecapture

func InsertOnePrecapture(precaptures Atmabhuve.PreCaptures) string

func InsertOneRole

func InsertOneRole(ncroles Atmabhuve.NCRoles) string

func InsertOneUser

func InsertOneUser(users Atmabhuve.Users) string

func InsertOneUserValue

func InsertOneUserValue(ncuser Atmabhuve.Users) string

func InsertSurveillancerules

func InsertSurveillancerules(surveillancerulesobj Atmabhuve.Surveillancerules) string
	collection := client.Database(DBNAME).Collection("surveillancerules")
	insertManyResults, err := collection.InsertMany(context.TODO(), inserts)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println("Inserted multiple documents: ", insertManyResults.InsertedIDs)
	return "inserted"
}

func MovePendingtoCompletedSearch

func MovePendingtoCompletedSearch(searchkey string) error

func RBNodes

func RBNodes(username string) ([]Atmabhuve.FMNodes, error)

func RemoveActiveTrigger

func RemoveActiveTrigger(trigger_name string) (int64, error)

func RemoveAdminToken

func RemoveAdminToken(admintoken string) (int64, error)

func RemoveAllIDsRules

func RemoveAllIDsRules() (int64, error)

func RemoveAllIDsRulesByType

func RemoveAllIDsRulesByType(ftype string) (int64, error)

func RemoveAllIDsRulesbyClassName

func RemoveAllIDsRulesbyClassName(rulesetname string) (int64, error)

func RemoveAllIDsRulesbyTypeAndClassName

func RemoveAllIDsRulesbyTypeAndClassName(action string, rulesetname string) (int64, error)

func RemoveCompletedSearch

func RemoveCompletedSearch(searchtoken string) (int64, error)

func RemoveFMLdapUser

func RemoveFMLdapUser(username string) (int64, error)

func RemoveFMRadiusUser

func RemoveFMRadiusUser(username string) (int64, error)

func RemoveGFMFMByRegionName

func RemoveGFMFMByRegionName(fmname string) (int64, error)

func RemoveGFMNodeIP

func RemoveGFMNodeIP(nodeip string) (int64, error)

func RemoveGFMPendingSearchByName

func RemoveGFMPendingSearchByName(searchname string) (int64, error)

func RemoveGFMRegion

func RemoveGFMRegion(regionname string) (int64, error)

func RemoveGroup

func RemoveGroup(groupname string) (int64, error)

func RemoveIDsRulesBySidList

func RemoveIDsRulesBySidList(sidlist string) (string, error)

func RemoveIDsRulesByTypeAndClassName

func RemoveIDsRulesByTypeAndClassName(reultype string, rulesetname string) (int64, error)

func RemoveIDsRulesByTypeAndClassNameAndSid

func RemoveIDsRulesByTypeAndClassNameAndSid(ruletype string, classname string, sid string) (int64, error)

func RemoveIDsRulesByTypeAndSidList

func RemoveIDsRulesByTypeAndSidList(ruletype string, sidlist string) (int64, error)

func RemoveIDsRulesbyClassName

func RemoveIDsRulesbyClassName(rulesetname string) (int64, error)

func RemoveIDsRulesbyRulesetname

func RemoveIDsRulesbyRulesetname(rulesetname string) (int64, error)

func RemoveIDsRulesbySid

func RemoveIDsRulesbySid(sidlist string) (string, error)

func RemoveNode

func RemoveNode(nodename string) (int64, error)

func RemoveNodeIP

func RemoveNodeIP(nodeip string) (int64, error)

func RemovePendingSearch

func RemovePendingSearch(searchtoken string) (int64, error)

func RemovePivotToken

func RemovePivotToken(pivottoken string) (int64, error)

func RemovePrecaptureFilter

func RemovePrecaptureFilter(filtername string) (int64, error)

func RemoveSearch

func RemoveSearch(searchname string) (int64, error)

func RemoveSurveillancerule

func RemoveSurveillancerule(content string) (int64, error)

func RemoveUser

func RemoveUser(username string) (int64, error)

func RestAPICheckFMNodeIP

func RestAPICheckFMNodeIP(nodeip string) (string, string, error)

func RestAuthentication

func RestAuthentication(username string, password string) (bool, error)

func SetDBName

func SetDBName(dbname string)

func UpdateFMGroup

func UpdateFMGroup(GroupName string, UsersList string) string

func UpdateGFMNodes

func UpdateGFMNodes(NodeName string, Alerts string, Dnsevents string, Fileevents string, Httpevents string, Smbevents string, Tlsevents string, Totalevents string, Flowevents string, Smtpevents string) string

func UpdateGroupCount

func UpdateGroupCount(groupname string, count int64) error

func UpdateLogReceiver

func UpdateLogReceiver(Ipaddress string, Port string, Preferences string) (bson.M, error)

func UpdateRoles

func UpdateRoles(RoleName string, Groups bool, Policy bool, Licensing bool, Authentication bool, Authorization bool, Auditing bool, Search bool) string

func UpdateUser

func UpdateUser(Role string, Username string, Password string) string

func UpsertIdsrules

func UpsertIdsrules(sid string, classname string, msg string, ruletype string, expirydate string) error

func UpsertIdsrulesByRuleSetName

func UpsertIdsrulesByRuleSetName(rulesetname string, expiredate string) (bson.M, error)

func UpsertIdsrulesBySidandRuleType

func UpsertIdsrulesBySidandRuleType(sid string, classname string, currentruletype string, updatedruletype string) error

func UpsertPrecapture

func UpsertPrecapture(filtername string, searchfilter string, nodeslist string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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