Documentation ¶
Index ¶
- Constants
- type FileSystem
- type FileSystemStateManager
- func (m *FileSystemStateManager) CleanupTechnique() error
- func (m *FileSystemStateManager) ExtractTechnique() error
- func (m *FileSystemStateManager) GetRootDirectory() string
- func (m *FileSystemStateManager) GetTechniqueState() stratus.AttackTechniqueState
- func (m *FileSystemStateManager) GetTerraformOutputs() (map[string]string, error)
- func (m *FileSystemStateManager) Initialize()
- func (m *FileSystemStateManager) SetTechniqueState(state stratus.AttackTechniqueState) error
- func (m *FileSystemStateManager) WriteTerraformOutputs(outputs map[string]string) error
- type LocalFileSystem
- func (m *LocalFileSystem) CreateDirectory(dir string, mode os.FileMode) error
- func (m *LocalFileSystem) FileExists(fileName string) bool
- func (m *LocalFileSystem) ReadFile(file string) ([]byte, error)
- func (m *LocalFileSystem) RemoveDirectory(dir string) error
- func (m *LocalFileSystem) WriteFile(file string, content []byte, mode os.FileMode) error
- type StateManager
Constants ¶
View Source
const StratusStateDirectoryName = ".stratus-red-team"
View Source
const StratusStateTechniqueStateFileName = ".state"
View Source
const StratusStateTerraformFileName = "main.tf"
View Source
const StratusStateTerraformOutputsFileName = ".terraform-outputs"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
type FileSystemStateManager ¶
type FileSystemStateManager struct { RootDirectory string Technique *stratus.AttackTechnique FileSystem FileSystem }
func NewFileSystemStateManager ¶
func NewFileSystemStateManager(technique *stratus.AttackTechnique) *FileSystemStateManager
func (*FileSystemStateManager) CleanupTechnique ¶
func (m *FileSystemStateManager) CleanupTechnique() error
func (*FileSystemStateManager) ExtractTechnique ¶
func (m *FileSystemStateManager) ExtractTechnique() error
func (*FileSystemStateManager) GetRootDirectory ¶
func (m *FileSystemStateManager) GetRootDirectory() string
func (*FileSystemStateManager) GetTechniqueState ¶
func (m *FileSystemStateManager) GetTechniqueState() stratus.AttackTechniqueState
func (*FileSystemStateManager) GetTerraformOutputs ¶
func (m *FileSystemStateManager) GetTerraformOutputs() (map[string]string, error)
func (*FileSystemStateManager) Initialize ¶
func (m *FileSystemStateManager) Initialize()
func (*FileSystemStateManager) SetTechniqueState ¶
func (m *FileSystemStateManager) SetTechniqueState(state stratus.AttackTechniqueState) error
func (*FileSystemStateManager) WriteTerraformOutputs ¶
func (m *FileSystemStateManager) WriteTerraformOutputs(outputs map[string]string) error
type LocalFileSystem ¶
type LocalFileSystem struct{}
func (*LocalFileSystem) CreateDirectory ¶
func (m *LocalFileSystem) CreateDirectory(dir string, mode os.FileMode) error
func (*LocalFileSystem) FileExists ¶
func (m *LocalFileSystem) FileExists(fileName string) bool
func (*LocalFileSystem) RemoveDirectory ¶
func (m *LocalFileSystem) RemoveDirectory(dir string) error
type StateManager ¶
type StateManager interface { Initialize() GetRootDirectory() string ExtractTechnique() error CleanupTechnique() error GetTerraformOutputs() (map[string]string, error) WriteTerraformOutputs(outputs map[string]string) error GetTechniqueState() stratus.AttackTechniqueState SetTechniqueState(state stratus.AttackTechniqueState) error }
Click to show internal directories.
Click to hide internal directories.