Files
kubescape/core/pkg/resourcehandler/interface.go
T

18 lines
727 B
Go

package resourcehandler
import (
"context"
"github.com/armosec/armoapi-go/identifiers"
"github.com/kubescape/k8s-interface/workloadinterface"
"github.com/kubescape/kubescape/v2/core/cautils"
"github.com/kubescape/kubescape/v2/core/pkg/opaprocessor"
"k8s.io/apimachinery/pkg/version"
)
type IResourceHandler interface {
GetResources(context.Context, *cautils.OPASessionObj, *identifiers.PortalDesignator, opaprocessor.IJobProgressNotificationClient, cautils.ScanInfo) (cautils.K8SResources, map[string]workloadinterface.IMetadata, cautils.KSResources, map[string]bool, map[string][]string, error)
GetClusterAPIServerInfo(ctx context.Context) *version.Info
GetWorkloadParentKind(workloadinterface.IWorkload) string
}