Documentation ¶
Index ¶
- Constants
- func DownloadSupportCommands() []string
- func GetOutputPrinters(scanInfo *cautils.ScanInfo, ctx context.Context, clusterName string) []printer.IPrinter
- func GetUIPrinter(ctx context.Context, scanInfo *cautils.ScanInfo, clusterName string) printer.IPrinter
- func ListSupportActions() []string
- type Kubescape
- func (ks *Kubescape) DeleteCachedConfig(ctx context.Context, deleteConfig *metav1.DeleteConfig) error
- func (ks *Kubescape) Download(ctx context.Context, downloadInfo *metav1.DownloadInfo) error
- func (ks *Kubescape) Fix(ctx context.Context, fixInfo *metav1.FixInfo) error
- func (ks *Kubescape) List(ctx context.Context, listPolicies *metav1.ListPolicies) error
- func (ks *Kubescape) Patch(ctx context.Context, patchInfo *ksmetav1.PatchInfo, scanInfo *cautils.ScanInfo) (*models.PresenterConfig, error)
- func (ks *Kubescape) Scan(ctx context.Context, scanInfo *cautils.ScanInfo) (*resultshandling.ResultsHandler, error)
- func (ks *Kubescape) ScanImage(ctx context.Context, imgScanInfo *ksmetav1.ImageScanInfo, ...) (*models.PresenterConfig, error)
- func (ks *Kubescape) SetCachedConfig(setConfig *metav1.SetConfig) error
- func (ks *Kubescape) ViewCachedConfig(viewConfig *metav1.ViewConfig) error
- type OperatorAdapter
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 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 (*Kubescape) Scan ¶
func (ks *Kubescape) Scan(ctx context.Context, scanInfo *cautils.ScanInfo) (*resultshandling.ResultsHandler, error)
func (*Kubescape) ScanImage ¶
func (ks *Kubescape) ScanImage(ctx context.Context, imgScanInfo *ksmetav1.ImageScanInfo, scanInfo *cautils.ScanInfo) (*models.PresenterConfig, error)
func (*Kubescape) SetCachedConfig ¶
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)
Click to show internal directories.
Click to hide internal directories.