Documentation ¶
Index ¶
- func Domain() string
- func MacAddresses() []string
- type Cache
- func (cache *Cache) AddActiveService(serviceId string)
- func (cache *Cache) Evaluate()
- func (cache *Cache) GetChangedResponses() []*api.PostureResponse
- func (cache *Cache) Refresh()
- func (cache *Cache) RemoveActiveService(serviceId string)
- func (cache *Cache) SendResponses(responses []*api.PostureResponse) error
- func (cache *Cache) SetServiceQueryMap(serviceQueryMap map[string]map[string]edge.PostureQuery)
- type CacheData
- type OsInfo
- type ProcessInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MacAddresses ¶
func MacAddresses() []string
Types ¶
type Cache ¶
type Cache struct { DomainFunc func() string // contains filtered or unexported fields }
func (*Cache) AddActiveService ¶
func (*Cache) Evaluate ¶ added in v0.15.46
func (cache *Cache) Evaluate()
Evaluate refreshes all posture data and determines if new posture responses should be sent out
func (*Cache) GetChangedResponses ¶ added in v0.15.46
func (cache *Cache) GetChangedResponses() []*api.PostureResponse
GetChangedResponses determines if posture responses should be sent out.
func (*Cache) RemoveActiveService ¶ added in v0.15.46
func (*Cache) SendResponses ¶ added in v0.15.46
func (cache *Cache) SendResponses(responses []*api.PostureResponse) error
func (*Cache) SetServiceQueryMap ¶
func (cache *Cache) SetServiceQueryMap(serviceQueryMap map[string]map[string]edge.PostureQuery)
SetServiceQueryMap receives of a list of serviceId -> queryId -> queries. Used to determine which queries are necessary to provide data for on a per-service basis.
type CacheData ¶ added in v0.15.46
type CacheData struct { Processes cmap.ConcurrentMap[ProcessInfo] // map[processPath]ProcessInfo MacAddresses []string Os OsInfo Domain string Evaluated concurrenz.AtomicBoolean //marks whether posture responses for this data have been sent out }
func NewCacheData ¶ added in v0.15.46
func NewCacheData() *CacheData
type ProcessInfo ¶
func Process ¶
func Process(providedPath string) ProcessInfo
Click to show internal directories.
Click to hide internal directories.