yamlconf

package
v0.0.0-...-9c18214 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidatePath

func ValidatePath(templates string) (fixedPath string)

validate the templates dir path

Types

type YamlConfig

type YamlConfig struct {
	Template struct {
		Severity string `yaml:"severity"`
		Author   string `yaml:"author"`
	}

	Request struct {
		Payloads   []string `yaml:"payloads"`
		Paths      string   `yaml:"paths"`
		Parameters bool     `yaml:"parameters"`
		Exclude    []string `yaml:"exclude"`
	}
	Response struct {
		StatusCode int      `yaml:"statusCode"`
		Patterns   []string `yaml:"patterns"`
		Exclude    []string `yaml:"exclude"`
		Header     []string `yaml:"header"`
	}
}

Yaml Contruct

func ReadTemplates

func ReadTemplates(templates string) (conf *YamlConfig)

read the templates directory and return the file

Jump to

Keyboard shortcuts

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