mitreattack

package
v2.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttackTacticToString

func AttackTacticToString(tactic Tactic) string

Types

type Tactic

type Tactic int
const (
	UNSPECIFIED Tactic = iota
	InitialAccess
	Execution
	Persistence
	PrivilegeEscalation
	DefenseEvasion
	CredentialAccess
	Discovery
	LateralMovement
	Collection
	Exfiltration
	Impact
)

func AttackTacticFromString

func AttackTacticFromString(name string) (Tactic, error)

func (Tactic) MarshalYAML added in v2.4.9

func (t Tactic) MarshalYAML() (interface{}, error)

MarshalYAML implements the Marshaler interface from "gopkg.in/yaml.v3". This method makes Tactic type to return a string rather than an int when marshalling to YAML.

func (Tactic) UnmarshalYAML added in v2.4.9

func (t Tactic) UnmarshalYAML(node *yaml.Node) error

UnmarshalYAML implements the Marshaler interface from "gopkg.in/yaml.v3". This method moes the reverse of MarshalYAML, it gets a string with the tactic name mutates into an int.

Jump to

Keyboard shortcuts

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