Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConverter = NewConverter(ext.NewSystemClock())
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type ContainerResult ¶
type Converter ¶
type Converter interface {
Convert(reader io.Reader) ([]sec.ConfigAudit, error)
}
func NewConverter ¶
type PodResult ¶
type PodResult struct { Name string `json:"Name"` Results map[string]Check `json:"Results"` ContainerResults []ContainerResult `json:"ContainerResults"` }
type Report ¶
type Report struct { PolarisOutputVersion string `json:"PolarisOutputVersion"` SourceType string `json:"SourceType"` ClusterInfo *ClusterInfo `json:"ClusterInfo"` Results []Result `json:"Results"` }
type Writer ¶
type Writer interface { Write(report sec.ConfigAudit) (err error) WriteAll(reports []sec.ConfigAudit) (err error) }
Write is the interface that wraps basic methods for persisting ConfigAudit reports.
Write persists the given ConfigAudit report.
WriteAll persists the given slice of ConfigAudit reports.
Click to show internal directories.
Click to hide internal directories.