mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
* remove hardcoded urls Signed-off-by: Amir Malka <amirm@armosec.io> * update Signed-off-by: Amir Malka <amirm@armosec.io> * fix test Signed-off-by: Amir Malka <amirm@armosec.io> * update providers docs Signed-off-by: Amir Malka <amirm@armosec.io> * fix Signed-off-by: Amir Malka <amirm@armosec.io> * hardcoded systests branch Signed-off-by: Amir Malka <amirm@armosec.io> * fix Signed-off-by: Amir Malka <amirm@armosec.io> * added logs Signed-off-by: Amir Malka <amirm@armosec.io> * added logs Signed-off-by: Amir Malka <amirm@armosec.io> * create config path if it does not exist Signed-off-by: Amir Malka <amirm@armosec.io> * fix Signed-off-by: Amir Malka <amirm@armosec.io> * fix Signed-off-by: Amir Malka <amirm@armosec.io> --------- Signed-off-by: Amir Malka <amirm@armosec.io>
35 lines
1.0 KiB
Go
35 lines
1.0 KiB
Go
package getter
|
|
|
|
import (
|
|
"github.com/armosec/armoapi-go/armotypes"
|
|
"github.com/kubescape/opa-utils/reporthandling"
|
|
"github.com/kubescape/opa-utils/reporthandling/attacktrack/v1alpha1"
|
|
)
|
|
|
|
type (
|
|
// IPolicyGetter knows how to retrieve policies, i.e. frameworks and their controls.
|
|
IPolicyGetter interface {
|
|
GetFramework(name string) (*reporthandling.Framework, error)
|
|
GetFrameworks() ([]reporthandling.Framework, error)
|
|
GetControl(ID string) (*reporthandling.Control, error)
|
|
|
|
ListFrameworks() ([]string, error)
|
|
ListControls() ([]string, error)
|
|
}
|
|
|
|
// IExceptionsGetter knows how to retrieve exceptions.
|
|
IExceptionsGetter interface {
|
|
GetExceptions(clusterName string) ([]armotypes.PostureExceptionPolicy, error)
|
|
}
|
|
|
|
// IControlsInputsGetter knows how to retrieve controls inputs.
|
|
IControlsInputsGetter interface {
|
|
GetControlsInputs(clusterName string) (map[string][]string, error)
|
|
}
|
|
|
|
// IAttackTracksGetter knows how to retrieve attack tracks.
|
|
IAttackTracksGetter interface {
|
|
GetAttackTracks() ([]v1alpha1.AttackTrack, error)
|
|
}
|
|
)
|