khulnasoft

package
v0.15.15 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package khulnasoft provides primitives for working with Khulnasoft Enterprise scanner.

Index

Constants

View Source
const (
	FsSharedVolumeName = "starboard-khulnasoft"
)

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(
	idGenerator ext.IDGenerator,
	buildInfo starboard.BuildInfo,
) vulnerabilityreport.Plugin

NewPlugin constructs a new vulnerabilityreport.Plugin, which is using the Khulnasoft Enterprise to scan container images of Kubernetes workloads.

Types

type Command

type Command string

Command to scan image or filesystem.

const (
	Filesystem Command = "filesystem"
	Image      Command = "image"
)

type Config

type Config struct {
	starboard.PluginConfig
}

Config defines configuration params for this plugin.

func (Config) GetCommand

func (c Config) GetCommand() (Command, error)

func (Config) GetResourceRequirements

func (c Config) GetResourceRequirements() (corev1.ResourceRequirements, error)

GetResourceRequirements creates ResourceRequirements from the Config.

func (Config) GetStarboardKhulnasoftScannerImage

func (c Config) GetStarboardKhulnasoftScannerImage() (string, error)

Directories

Path Synopsis
Package client provides an HTTP client for selected Khulnasoft Enterprise API endpoints.
Package client provides an HTTP client for selected Khulnasoft Enterprise API endpoints.
scanner
api
Package api provides primitives for getting vulnerability reports via Khulnasoft Enterprise API
Package api provides primitives for getting vulnerability reports via Khulnasoft Enterprise API
cli
Package cli provides primitives for getting vulnerability reports by executing the scannercli command.
Package cli provides primitives for getting vulnerability reports by executing the scannercli command.

Jump to

Keyboard shortcuts

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