mirror of
https://github.com/kubescape/kubescape.git
synced 2026-03-04 18:50:41 +00:00
17 lines
610 B
Go
17 lines
610 B
Go
package resourcehandler
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/armosec/armoapi-go/armotypes"
|
|
"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, *armotypes.PortalDesignator, opaprocessor.IJobProgressNotificationClient) (*cautils.K8SResources, map[string]workloadinterface.IMetadata, *cautils.KSResources, error)
|
|
GetClusterAPIServerInfo(ctx context.Context) *version.Info
|
|
}
|