policyimporter

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ManualCheck []string

Functions

func Find

func Find(root, ext string) []string

Types

type Converter

type Converter struct {
	OpalRegoPath string
	DestPath     string
	TestPath     string
}

func (*Converter) ConvertOpalBuiltIns

func (c *Converter) ConvertOpalBuiltIns() error

func (*Converter) PromptInput

func (c *Converter) PromptInput() error

type Custom

type Custom struct {
	Controls map[string]interface{}
	Severity string
}

type Metadata

type Metadata struct {
	Category    string                 `yaml:"category"`
	CheckTool   string                 `yaml:"checkTool"`
	CheckType   []string               `yaml:"checkType"`
	Description yaml.Node              `yaml:"description"`
	Provider    string                 `yaml:"provider"`
	Severity    string                 `yaml:"severity"`
	Title       yaml.Node              `yaml:"title"`
	ID          yaml.Node              `yaml:"id"`
	LwIds       map[string]interface{} `yaml:"lwids"`
}

type Metadoc

type Metadoc struct {
	Custom      Custom
	Description string
	Title       string
	ID          string
}

type Policy

type Policy struct {
	Name      string
	CheckType string
	Tool      string
	Dir       string
	Desc      string
	Title     string
	Severity  string
	RsrcType  string
	Provider  string
}

Jump to

Keyboard shortcuts

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