Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RegoCAUtils = `` /* 606-byte string literal not displayed */
View Source
var (
RegoDependenciesPath = "/resources/rego/dependencies"
)
View Source
var RegoDesignators = `` /* 974-byte string literal not displayed */
View Source
var RegoKubernetesApiClient = `` /* 4537-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 {
K8sConfig RegoK8sConfig `json:"k8sconfig"`
}
func NewRegoDependenciesData ¶
func NewRegoDependenciesData(k8sConfig *rest.Config) *RegoDependenciesData
func NewRegoDependenciesDataMock ¶
func NewRegoDependenciesDataMock() *RegoDependenciesData
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.