Documentation ¶
Index ¶
- Variables
- func LoadRegoFiles(dir string) map[string]string
- func LoadRegoModules() map[string]string
- func TOStorage(postureControlInputs map[string][]string) (storage.Store, error)
- type RegoDependenciesData
- func (data *RegoDependenciesData) GetFilteredPostureControlConfigInputs(settings []reporthandling.ControlConfigInputs) map[string][]string
- func (data *RegoDependenciesData) GetFilteredPostureControlInputs(settings []string) map[string][]string
- func (data *RegoDependenciesData) TOStorage() (storage.Store, error)
- type RegoK8sConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var RegoCAUtils = `` /* 3180-byte string literal not displayed */
View Source
var RegoDesignators = `` /* 974-byte string literal not displayed */
View Source
var RegoKubernetesApiClient = `` /* 4414-byte string literal not displayed */
Functions ¶
func LoadRegoFiles ¶
LoadRegoDependenciesFromDir loads the policies list from *.rego file in given directory
func LoadRegoModules ¶
LoadRegoModules loads the policies from variables
Types ¶
type RegoDependenciesData ¶
type RegoDependenciesData struct { ClusterName string `json:"clusterName"` // Configurable control data inputs PostureControlInputs map[string][]string `json:"postureControlInputs"` // Not Configurable control data inputs (such as cloud provider) DataControlInputs map[string]string `json:"dataControlInputs"` K8sConfig RegoK8sConfig `json:"k8sconfig"` }
func NewRegoDependenciesData ¶
func NewRegoDependenciesData(k8sConfig *rest.Config, clusterName string) *RegoDependenciesData
func NewRegoDependenciesDataMock ¶
func NewRegoDependenciesDataMock() *RegoDependenciesData
func (*RegoDependenciesData) GetFilteredPostureControlConfigInputs ¶ added in v0.0.270
func (data *RegoDependenciesData) GetFilteredPostureControlConfigInputs(settings []reporthandling.ControlConfigInputs) map[string][]string
func (*RegoDependenciesData) GetFilteredPostureControlInputs ¶
func (data *RegoDependenciesData) GetFilteredPostureControlInputs(settings []string) map[string][]string
type RegoK8sConfig ¶
type RegoK8sConfig struct { Token string `json:"token"` IP string `json:"ip"` Host string `json:"host"` Port string `json:"port"` CrtFile string `json:"crtfile"` ClientCrtFile string `json:"clientcrtfile"` ClientKeyFile string `json:"clientkeyfile"` }
func NewRegoK8sConfig ¶
func NewRegoK8sConfig(k8sConfig *rest.Config) *RegoK8sConfig
Click to show internal directories.
Click to hide internal directories.