Discover Packages
github.com/aquasecurity/starboard
pkg
plugin
polaris
package
Version:
v0.10.1-rc1
Opens a new window with list of versions in this module.
Published: Apr 21, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
The polaris package provides primitives for working with Polaris.
NewPlugin constructs a new configauditreport.Plugin, which is using an
official Polaris container image to audit Kubernetes workloads.
type Check struct {
ID string `json:"ID"`
Message string `json:"Message"`
Success bool `json:"Success"`
Severity string `json:"Severity"`
Category string `json:"Category"`
}
type ClusterInfo struct {
Version string `json:"Version"`
Nodes int `json:"Nodes"`
Pods int `json:"Pods"`
Namespaces int `json:"Namespaces"`
Controllers int `json:"Controllers"`
}
type Config interface {
GetPolarisImageRef() (string , error )
}
type ContainerResult struct {
Name string `json:"Name"`
Results map[string ]Check `json:"Results"`
}
type Report struct {
PolarisOutputVersion string `json:"PolarisOutputVersion"`
SourceType string `json:"SourceType"`
SourceName string `json:"SourceName"`
DisplayName string `json:"DisplayName"`
ClusterInfo *ClusterInfo `json:"ClusterInfo"`
Results []Result `json:"Results"`
}
type Result struct {
Name string `json:"Name"`
Namespace string `json:"Namespace"`
Kind string `json:"Kind"`
PodResult PodResult `json:"PodResult"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.