rego

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RegoMetadata

type RegoMetadata struct {
	ID                 string   `json:"id"`
	AVDID              string   `json:"avd_id"`
	Title              string   `json:"title"`
	ShortCode          string   `json:"short_code"`
	Version            string   `json:"version"`
	Type               string   `json:"type"`
	Description        string   `json:"description"`
	Url                string   `json:"url"`
	Severity           string   `json:"severity"`
	RecommendedActions string   `json:"recommended_actions"`
	Links              []string `json:"-"`
	Name               string   `json:"-"`
	FileName           string   `json:"-"`
}

func GetAllNonTestRegoFiles

func GetAllNonTestRegoFiles() ([]*RegoMetadata, error)

func NewRegoMetadata

func NewRegoMetadata(filename string) (*RegoMetadata, error)

func (*RegoMetadata) DocsFilePath

func (m *RegoMetadata) DocsFilePath() string

func (*RegoMetadata) DocsFolder

func (m *RegoMetadata) DocsFolder() string

func (*RegoMetadata) HasDocsMarkdown

func (m *RegoMetadata) HasDocsMarkdown() bool

func (*RegoMetadata) Validate

func (m *RegoMetadata) Validate() (bool, []string)

Jump to

Keyboard shortcuts

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