Documentation ¶
Index ¶
Constants ¶
View Source
const ( // NamespaceName the name of the namespace in which Starboard stores its // configuration and runs scan Jobs. NamespaceName = "starboard" // ServiceAccountName the name of the ServiceAccount used to run scan Jobs. ServiceAccountName = "starboard" // ConfigMapName the name of the ConfigMap that stored configuration of // Starboard and the underlying scanners. ConfigMapName = "starboard" )
Variables ¶
This section is empty.
Functions ¶
func GetVersionFromImageRef ¶
GetVersionFromImageRef returns the image identifier for the specified image reference.
Types ¶
type ConfigData ¶
ConfigData holds Starboard configuration settings as a set of key-value pairs.
func GetDefaultConfig ¶
func GetDefaultConfig() ConfigData
GetDefaultConfig returns the default configuration data.
func (ConfigData) GetKubeBenchImageRef ¶
func (c ConfigData) GetKubeBenchImageRef() string
GetKubeBenchImageRef returns Docker image of kube-bench scanner.
func (ConfigData) GetTrivyImageRef ¶
func (c ConfigData) GetTrivyImageRef() string
func (ConfigData) GetTrivyMode ¶ added in v0.7.0
func (c ConfigData) GetTrivyMode() TrivyMode
func (ConfigData) GetTrivyServerURL ¶ added in v0.7.0
func (c ConfigData) GetTrivyServerURL() string
type ConfigManager ¶ added in v0.7.0
type ConfigManager interface { EnsureDefault(ctx context.Context) error Read(ctx context.Context) (ConfigData, error) Delete(ctx context.Context) error }
ConfigManager defines methods for managing ConfigData.
func NewConfigManager ¶ added in v0.7.0
func NewConfigManager(client kubernetes.Interface, namespace string) ConfigManager
NewConfigManager constructs a new ConfigManager that is using kubernetes.Interface to manage ConfigData backed by the the ConfigMap stored in the specified namespace.
type TrivyConfig ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.