starboard

package
v0.8.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// NamespaceName the name of the namespace in which Starboard stores its
	// configuration and where it runs scan jobs.
	NamespaceName = "starboard"

	// ServiceAccountName the name of the service account used to provide
	// identity for scan jobs run by Starboard.
	ServiceAccountName = "starboard"

	// ConfigMapName the name of the ConfigMap where Starboard stores its
	// configuration.
	ConfigMapName = "starboard"

	// SecretName the name of the secret where Starboard stores is sensitive
	// configuration.
	SecretName = "starboard"
)

Variables

This section is empty.

Functions

func GetVersionFromImageRef

func GetVersionFromImageRef(imageRef string) (string, error)

GetVersionFromImageRef returns the image identifier for the specified image reference.

func NewScheme added in v0.7.0

func NewScheme() *runtime.Scheme

Types

type BuildInfo

type BuildInfo struct {
	Version    string
	Commit     string
	Date       string
	Executable string
}

BuildInfo holds build info such as Git revision, Git SHA-1, build datetime, and the name of the executable binary.

type ConfigData

type ConfigData map[string]string

ConfigData holds Starboard configuration settings as a set of key-value pairs.

func GetDefaultConfig

func GetDefaultConfig() ConfigData

GetDefaultConfig returns the default configuration settings.

func (ConfigData) GetAquaImageRef added in v0.8.0

func (c ConfigData) GetAquaImageRef() (string, error)

func (ConfigData) GetKubeBenchImageRef

func (c ConfigData) GetKubeBenchImageRef() (string, error)

func (ConfigData) GetKubeHunterImageRef added in v0.8.0

func (c ConfigData) GetKubeHunterImageRef() (string, error)

func (ConfigData) GetPolarisImageRef added in v0.8.0

func (c ConfigData) GetPolarisImageRef() (string, error)

func (ConfigData) GetTrivyImageRef

func (c ConfigData) GetTrivyImageRef() (string, error)

func (ConfigData) GetTrivyMode added in v0.7.0

func (c ConfigData) GetTrivyMode() (TrivyMode, error)

func (ConfigData) GetTrivyServerURL added in v0.7.0

func (c ConfigData) GetTrivyServerURL() (string, error)

func (ConfigData) GetVulnerabilityReportsScanner added in v0.8.0

func (c ConfigData) GetVulnerabilityReportsScanner() (Scanner, error)

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 Scanner added in v0.8.0

type Scanner string

Scanner represents unique, human readable identifier of a security scanner.

const (
	Trivy Scanner = "Trivy"
	Aqua  Scanner = "Aqua"
)

type TrivyMode added in v0.7.0

type TrivyMode string

TrivyMode describes mode in which Trivy client operates.

const (
	Standalone   TrivyMode = "Standalone"
	ClientServer TrivyMode = "ClientServer"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL