tmmd

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateYamlBlockExtension

func CreateYamlBlockExtension(blocks ...string) *yamlBlockExt

Threat is an extension to allow for documenting threat modeling threats.

func GetErrors

func GetErrors(pc parser.Context) []error

Returns any errors found while parsing YAML

func GetItems

func GetItems(name string, factory func() interface{}, pc parser.Context) []interface{}

Get returns YAML items

Types

type TMBlockRenderer

type TMBlockRenderer struct {
	// contains filtered or unexported fields
}

func (*TMBlockRenderer) RegisterFuncs

func (r *TMBlockRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

type YamlData

type YamlData struct {
	Data map[string][]interface{}
	// TODO better error handling
	Errors []error
}

func Get

func Get(pc parser.Context) *YamlData

Get returns a YAML metadata.

type YamlNode

type YamlNode struct {
	gast.BaseBlock
	// contains filtered or unexported fields
}

A TaskCheckBox struct represents a checkbox of a task list.

func NewYamlNode

func NewYamlNode(kind gast.NodeKind) *YamlNode

Returns a new ThreatNode

func (*YamlNode) Dump

func (n *YamlNode) Dump(source []byte, level int)

Dump implements Node.Dump.

func (*YamlNode) IsRaw

func (n *YamlNode) IsRaw() bool

IsRaw seems to prevent any child nodes from being parsed

func (*YamlNode) Kind

func (n *YamlNode) Kind() gast.NodeKind

Kind implements Node.Kind.

Jump to

Keyboard shortcuts

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