mirror of
https://github.com/kubescape/kubescape.git
synced 2026-03-03 18:20:19 +00:00
16 lines
501 B
Go
16 lines
501 B
Go
package resourcehandler
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kubescape/k8s-interface/workloadinterface"
|
|
"github.com/kubescape/kubescape/v3/core/cautils"
|
|
"k8s.io/apimachinery/pkg/version"
|
|
)
|
|
|
|
type IResourceHandler interface {
|
|
GetResources(context.Context, *cautils.OPASessionObj, *cautils.ScanInfo) (cautils.K8SResources, map[string]workloadinterface.IMetadata, cautils.ExternalResources, map[string]bool, error)
|
|
GetClusterAPIServerInfo(ctx context.Context) *version.Info
|
|
GetCloudProvider() string
|
|
}
|