Documentation
¶
Index ¶
- type AllLists
- func (all *AllLists) All() []string
- func (all *AllLists) Append(status apis.ScanningStatus, str string)
- func (all *AllLists) Excluded() []string
- func (all *AllLists) Failed() []string
- func (all *AllLists) Other() []string
- func (all *AllLists) Passed() []string
- func (all *AllLists) Skipped() []string
- func (all *AllLists) ToUnique()
- func (all *AllLists) Update(all2 *AllLists)
- type Filters
- type ReportObject
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllLists ¶
type AllLists struct {
// contains filtered or unexported fields
}
AllLists lists of resources/policies grouped by the status, this structure is meant for internal use of report handling and not an API
type Filters ¶
type Filters struct {
FrameworkNames []string // Framework name may effect the status
}
Filters fields that might take effect on the resource status. If this objects is empty or nil, the status will be as determined by pre-defined logic
func (*Filters) FilterExceptions ¶
func (f *Filters) FilterExceptions(exceptions []armotypes.PostureExceptionPolicy) []armotypes.PostureExceptionPolicy
FilterExceptions get list of exceptions and return the list of filtered exceptions
func (*Filters) ListFrameworkNames ¶ added in v0.0.80
ListFrameworkNames list the framework name in filter object. Removes empty names
type ReportObject ¶
type ReportObject map[string]interface{}
ReportObject any report object must be compliment with a map[string]interface{} structures
type Status ¶ added in v0.0.79
type Status struct {
// contains filtered or unexported fields
}
func NewStatus ¶ added in v0.0.79
func NewStatus(status apis.ScanningStatus) *Status
func (*Status) IsExcluded ¶ added in v0.0.79
IsExcluded is the status excluded
func (*Status) Status ¶ added in v0.0.79
func (s *Status) Status() apis.ScanningStatus
Click to show internal directories.
Click to hide internal directories.