Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConverter = NewConverter()
Functions ¶
This section is empty.
Types ¶
type ClusterInfo ¶
type ContainerResult ¶
type Converter ¶
type Converter interface {
Convert(reader io.Reader) ([]sec.ConfigAudit, error)
}
func NewConverter ¶
func NewConverter() Converter
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 Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func NewScanner(clientset kubernetes.Interface) *Scanner
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.