core

package
v3.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TargetControlsInputs = "controls-inputs"
	TargetExceptions     = "exceptions"
	TargetControl        = "control"
	TargetFramework      = "framework"
	TargetArtifacts      = "artifacts"
	TargetAttackTracks   = "attack-tracks"
)

Variables

This section is empty.

Functions

func DownloadSupportCommands

func DownloadSupportCommands() []string

func GetOutputPrinters

func GetOutputPrinters(scanInfo *cautils.ScanInfo, ctx context.Context, clusterName string) []printer.IPrinter

func GetUIPrinter

func GetUIPrinter(ctx context.Context, scanInfo *cautils.ScanInfo, clusterName string) printer.IPrinter

getUIPrinter returns a printer that will be used to print to the program’s UI (terminal)

func ListSupportActions

func ListSupportActions() []string

Types

type Kubescape

type Kubescape struct{}

func NewKubescape

func NewKubescape() *Kubescape

func (*Kubescape) DeleteCachedConfig

func (ks *Kubescape) DeleteCachedConfig(ctx context.Context, deleteConfig *metav1.DeleteConfig) error

func (*Kubescape) Download

func (ks *Kubescape) Download(ctx context.Context, downloadInfo *metav1.DownloadInfo) error

func (*Kubescape) Fix

func (ks *Kubescape) Fix(ctx context.Context, fixInfo *metav1.FixInfo) error

func (*Kubescape) List

func (ks *Kubescape) List(ctx context.Context, listPolicies *metav1.ListPolicies) error

func (*Kubescape) Patch

func (ks *Kubescape) Patch(ctx context.Context, patchInfo *ksmetav1.PatchInfo, scanInfo *cautils.ScanInfo) (*models.PresenterConfig, error)

func (*Kubescape) Scan

func (*Kubescape) ScanImage

func (ks *Kubescape) ScanImage(ctx context.Context, imgScanInfo *ksmetav1.ImageScanInfo, scanInfo *cautils.ScanInfo) (*models.PresenterConfig, error)

func (*Kubescape) SetCachedConfig

func (ks *Kubescape) SetCachedConfig(setConfig *metav1.SetConfig) error

func (*Kubescape) ViewCachedConfig

func (ks *Kubescape) ViewCachedConfig(viewConfig *metav1.ViewConfig) error

View cached configurations

type OperatorAdapter

type OperatorAdapter struct {
	cautils.OperatorScanInfo
	cautils.OperatorConnector
	// contains filtered or unexported fields
}

func NewOperatorAdapter

func NewOperatorAdapter(scanInfo cautils.OperatorScanInfo, ns string) (*OperatorAdapter, error)

func (*OperatorAdapter) OperatorScan

func (a *OperatorAdapter) OperatorScan() (string, error)

Jump to

Keyboard shortcuts

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