runner

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

View Source
const StratusRunnerForce = true
View Source
const StratusRunnerNoForce = false
View Source
const TerraformVersion = "1.1.2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	Technique        *stratus.AttackTechnique
	TechniqueState   stratus.AttackTechniqueState
	TerraformDir     string
	ShouldForce      bool
	TerraformManager TerraformManager
	StateManager     state.StateManager
}

func NewRunner

func NewRunner(technique *stratus.AttackTechnique, force bool) Runner

func (*Runner) CleanUp

func (m *Runner) CleanUp() error

func (*Runner) Detonate

func (m *Runner) Detonate() error

func (*Runner) GetState

func (m *Runner) GetState() stratus.AttackTechniqueState

func (*Runner) GetUniqueExecutionId

func (m *Runner) GetUniqueExecutionId() string

GetUniqueExecutionId returns an unique execution ID, unique per run of Stratus Red Team (not for each TTP detonated)

func (*Runner) Revert

func (m *Runner) Revert() error

func (*Runner) WarmUp

func (m *Runner) WarmUp() (map[string]string, error)

type TerraformManager

type TerraformManager interface {
	Initialize()
	TerraformInitAndApply(directory string) (map[string]string, error)
	TerraformDestroy(directory string) error
}

func NewTerraformManager

func NewTerraformManager(terraformBinaryPath string) TerraformManager

type TerraformManagerImpl

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

func (*TerraformManagerImpl) Initialize

func (m *TerraformManagerImpl) Initialize()

func (*TerraformManagerImpl) TerraformDestroy

func (m *TerraformManagerImpl) TerraformDestroy(directory string) error

func (*TerraformManagerImpl) TerraformInitAndApply

func (m *TerraformManagerImpl) TerraformInitAndApply(directory string) (map[string]string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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