mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
* bump version Signed-off-by: David Wertenteil <dwertent@armosec.io> * change default view Signed-off-by: David Wertenteil <dwertent@armosec.io> * fixed tests Signed-off-by: David Wertenteil <dwertent@armosec.io> * fixed go mod Signed-off-by: David Wertenteil <dwertent@armosec.io> --------- Signed-off-by: David Wertenteil <dwertent@armosec.io>
33 lines
1.2 KiB
Go
33 lines
1.2 KiB
Go
package meta
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/anchore/grype/grype/presenter/models"
|
|
"github.com/kubescape/kubescape/v3/core/cautils"
|
|
metav1 "github.com/kubescape/kubescape/v3/core/meta/datastructures/v1"
|
|
"github.com/kubescape/kubescape/v3/core/pkg/resultshandling"
|
|
)
|
|
|
|
type IKubescape interface {
|
|
Scan(ctx context.Context, scanInfo *cautils.ScanInfo) (*resultshandling.ResultsHandler, error) // TODO - use scanInfo from v1
|
|
|
|
// policies
|
|
List(ctx context.Context, listPolicies *metav1.ListPolicies) error // TODO - return list response
|
|
Download(ctx context.Context, downloadInfo *metav1.DownloadInfo) error // TODO - return downloaded policies
|
|
|
|
// config
|
|
SetCachedConfig(setConfig *metav1.SetConfig) error
|
|
ViewCachedConfig(viewConfig *metav1.ViewConfig) error
|
|
DeleteCachedConfig(ctx context.Context, deleteConfig *metav1.DeleteConfig) error
|
|
|
|
// fix
|
|
Fix(ctx context.Context, fixInfo *metav1.FixInfo) error
|
|
|
|
// patch
|
|
Patch(ctx context.Context, patchInfo *metav1.PatchInfo, scanInfo *cautils.ScanInfo) (*models.PresenterConfig, error)
|
|
|
|
// scan image
|
|
ScanImage(ctx context.Context, imgScanInfo *metav1.ImageScanInfo, scanInfo *cautils.ScanInfo) (*models.PresenterConfig, error)
|
|
}
|