shell

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TypePowershell = "powershell"

Variables

This section is empty.

Functions

This section is empty.

Types

type PowerShell

type PowerShell struct {
	Cmd map[string]string

	OsType string
	// contains filtered or unexported fields
}

func NewPowerShell

func NewPowerShell() (*PowerShell, error)

func (*PowerShell) Execute

func (p *PowerShell) Execute(customConfig ...interface{}) (result string, errMessage string, state check.State)

Execute - Implements the 'check.Auditer' interface It uses the aquasecurity/go-powershell package to interface with the windows powershell to execute the command.

func (*PowerShell) Exit

func (p *PowerShell) Exit()

Jump to

Keyboard shortcuts

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