Documentation ¶
Index ¶
- func NewStatusInfo(status apis.ScanningStatus, subStatus apis.ScanningSubStatus, info string) *apis.StatusInfo
- func PutAllListsToPool(l *AllLists)
- type AKSMetadata
- type AllLists
- func (all *AllLists) All() map[string]apis.ScanningStatus
- func (all *AllLists) Append(status apis.ScanningStatus, str ...string)
- func (all *AllLists) Clear()
- func (all *AllLists) Failed() int
- func (all *AllLists) GetItems(status apis.ScanningStatus) []string
- func (all *AllLists) Initialize(size int)
- func (all *AllLists) Len() int
- func (all *AllLists) Other() int
- func (all *AllLists) Passed() int
- func (all *AllLists) Skipped() int
- func (all *AllLists) Update(all2 *AllLists)
- type EKSMetadata
- type Filters
- type GKEMetadata
- type ListingFilters
- type ReportObject
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStatusInfo ¶
func NewStatusInfo(status apis.ScanningStatus, subStatus apis.ScanningSubStatus, info string) *apis.StatusInfo
func PutAllListsToPool ¶ added in v0.0.247
func PutAllListsToPool(l *AllLists)
PutAllListsToPool put the AllLists object back to the pool
Types ¶
type AKSMetadata ¶ added in v0.0.217
type AKSMetadata struct {
// contains filtered or unexported fields
}
func NewAKSMetadata ¶ added in v0.0.217
func NewAKSMetadata(name string) *AKSMetadata
func (*AKSMetadata) GetName ¶ added in v0.0.217
func (aks *AKSMetadata) GetName() string
GetName returns the full name of the cluster
func (*AKSMetadata) Parse ¶ added in v0.0.217
func (aks *AKSMetadata) Parse() (string, string, error)
func (AKSMetadata) Provider ¶ added in v0.0.217
func (aks AKSMetadata) Provider() apis.CloudProviderName
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
func GetAllListsFromPool ¶ added in v0.0.247
func GetAllListsFromPool() *AllLists
GetAllListsFromPool get the AllLists object from the pool
func MockAllListsForIntegration ¶
func MockAllListsForIntegration() *AllLists
func (*AllLists) Append ¶
func (all *AllLists) Append(status apis.ScanningStatus, str ...string)
Append append single string to matching status list
func (*AllLists) Clear ¶ added in v0.0.247
func (all *AllLists) Clear()
Clear remove all items and reset the counters
func (*AllLists) GetItems ¶ added in v0.0.247
func (all *AllLists) GetItems(status apis.ScanningStatus) []string
func (*AllLists) Initialize ¶ added in v0.0.247
Initialize initialize the AllLists object map with the given size - this is an optimization for the map
type EKSMetadata ¶ added in v0.0.217
type EKSMetadata struct {
// contains filtered or unexported fields
}
func NewEKSMetadata ¶ added in v0.0.217
func NewEKSMetadata(name string) *EKSMetadata
func (*EKSMetadata) GetName ¶ added in v0.0.217
func (eks *EKSMetadata) GetName() string
GetName returns the full name of the cluster
func (*EKSMetadata) Parse ¶ added in v0.0.217
func (eks *EKSMetadata) Parse() (string, string, error)
func (EKSMetadata) Provider ¶ added in v0.0.217
func (eks EKSMetadata) Provider() apis.CloudProviderName
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 ¶
ListFrameworkNames list the framework name in filter object. Removes empty names
type GKEMetadata ¶ added in v0.0.217
type GKEMetadata struct {
// contains filtered or unexported fields
}
func NewGKEMetadata ¶ added in v0.0.217
func NewGKEMetadata(name string) *GKEMetadata
func (*GKEMetadata) GetName ¶ added in v0.0.217
func (gke *GKEMetadata) GetName() string
GetName returns the full name of the cluster
func (*GKEMetadata) Parse ¶ added in v0.0.217
func (gke *GKEMetadata) Parse() (string, string, error)
func (GKEMetadata) Provider ¶ added in v0.0.217
func (gke GKEMetadata) Provider() apis.CloudProviderName
type ListingFilters ¶
type ListingFilters struct { FrameworkNames []string // Framework name may effect the status ControlsNames []string // Framework name may effect the status ControlsIDs []string // Framework name may effect the status Statuses []apis.ScanningStatus // Framework name may effect the status }
ListingFilters filter list based on filters. If nil of empty list, the list will be ignored
type ReportObject ¶
type ReportObject map[string]interface{}
ReportObject any report object must be compliment with a map[string]interface{} structures
type Status ¶
type Status struct {
// contains filtered or unexported fields
}
func NewStatus ¶
func NewStatus(status apis.ScanningStatus) *Status
func (*Status) GetSubStatus ¶ added in v0.0.231
func (s *Status) GetSubStatus() apis.ScanningSubStatus
func (*Status) Status ¶
func (s *Status) Status() apis.ScanningStatus