Documentation ¶
Index ¶
- func Domain() string
- func MacAddresses() []string
- type Cache
- func (cache *Cache) AddActiveService(serviceId string)
- func (cache *Cache) Evaluate()
- func (cache *Cache) GetChangedResponses() []rest_model.PostureResponseCreate
- func (cache *Cache) Refresh()
- func (cache *Cache) RemoveActiveService(serviceId string)
- func (cache *Cache) SendResponses(responses []rest_model.PostureResponseCreate) []error
- func (cache *Cache) SetServiceQueryMap(serviceQueryMap map[string]map[string]rest_model.PostureQuery)
- type CacheData
- type OsInfo
- type ProcessInfo
- type Submitter
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() []rest_model.PostureResponseCreate
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 []rest_model.PostureResponseCreate) []error
func (*Cache) SetServiceQueryMap ¶
func (cache *Cache) SetServiceQueryMap(serviceQueryMap map[string]map[string]rest_model.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[string, ProcessInfo] // map[processPath]ProcessInfo MacAddresses []string Os OsInfo Domain string Evaluated atomic.Bool //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
type Submitter ¶ added in v0.19.0
type Submitter interface { SendPostureResponse(response rest_model.PostureResponseCreate) error SendPostureResponseBulk(responses []rest_model.PostureResponseCreate) error }
Click to show internal directories.
Click to hide internal directories.