resources

package
v1.0.76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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

func LoadRegoFiles(dir string) map[string]string

LoadRegoDependenciesFromDir loads the policies list from *.rego file in given directory

func LoadRegoModules

func LoadRegoModules() map[string]string

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

func (*RegoDependenciesData) TOStorage

func (data *RegoDependenciesData) TOStorage() (storage.Store, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL