mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
34 lines
1.2 KiB
Go
34 lines
1.2 KiB
Go
package meta
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kubescape/kubescape/v2/core/cautils"
|
|
"github.com/kubescape/kubescape/v2/core/meta/cliinterfaces"
|
|
metav1 "github.com/kubescape/kubescape/v2/core/meta/datastructures/v1"
|
|
"github.com/kubescape/kubescape/v2/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
|
|
|
|
// submit
|
|
Submit(ctx context.Context, submitInterfaces cliinterfaces.SubmitInterfaces) error // TODO - func should receive object
|
|
SubmitExceptions(ctx context.Context, credentials *cautils.Credentials, excPath string) error // TODO - remove
|
|
|
|
// config
|
|
SetCachedConfig(setConfig *metav1.SetConfig) error
|
|
ViewCachedConfig(viewConfig *metav1.ViewConfig) error
|
|
DeleteCachedConfig(ctx context.Context, deleteConfig *metav1.DeleteConfig) error
|
|
|
|
// delete
|
|
DeleteExceptions(deleteexceptions *metav1.DeleteExceptions) error
|
|
|
|
// fix
|
|
Fix(ctx context.Context, fixInfo *metav1.FixInfo) error
|
|
}
|