metafs

package
v0.0.0-...-a2178a2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PERM fs.FileMode = 0765

Variables

This section is empty.

Functions

func DeleteAgentTask

func DeleteAgentTask(agentName string, taskName string, isClient bool) error

func DeleteAllAgentLoot

func DeleteAllAgentLoot(agentName string, isClient bool) error

func DeleteAllAgentTasks

func DeleteAllAgentTasks(agentName string, isClient bool) error

func GetAgentDir

func GetAgentDir(agentName string, isClient bool) (string, error)

func GetAgentLootDir

func GetAgentLootDir(agentName string, isClient bool) (string, error)

func GetAgentNoteFile

func GetAgentNoteFile(agentName string, isClient bool) (string, error)

func GetAgentTasksFile

func GetAgentTasksFile(agentName string, isClient bool) (string, error)

func GetAgentsDir

func GetAgentsDir(isClient bool) (string, error)

func GetAppDir

func GetAppDir() (string, error)

func GetCertsDir

func GetCertsDir(listenerDir string) (string, error)

func GetConfigsDir

func GetConfigsDir(isClient bool) (string, error)

func GetDBPath

func GetDBPath() (string, error)

func GetListenerDir

func GetListenerDir(listenerName string, isClient bool) (string, error)

func GetListenerPayloadPaths

func GetListenerPayloadPaths(listenerName string, isClient bool, fileNamesOnly bool) ([]string, error)

func GetListenerPayloadsDir

func GetListenerPayloadsDir(listenerName string, isClient bool) (string, error)

func GetListenersDir

func GetListenersDir(isClient bool) (string, error)

func GetLogsDir

func GetLogsDir(isClient bool) (string, error)

func GetTempDir

func GetTempDir(isClient bool) (string, error)

func MakeAgentChildDirs

func MakeAgentChildDirs(agentName string, isClient bool) error

func MakeAppDirs

func MakeAppDirs(isClient bool) error

func MakeListenerChildDirs

func MakeListenerChildDirs(listenerName string, isClient bool) error

func OpenLogFile

func OpenLogFile(isClient bool) (*os.File, error)

func ReadAgentTasks

func ReadAgentTasks(agentName string, isClient bool) ([]string, error)

func ReadAllAgentLoot

func ReadAllAgentLoot(agentName string, isClient bool) ([]string, error)

func WriteAgentLoot

func WriteAgentLoot(
	agentName string,
	taskJsonStr string,
	taskResult string,
	isClient bool,
) (
	taskFile string,
	err error,
)

func WriteAgentLootFile

func WriteAgentLootFile(
	agentName string,
	data []byte,
	isClient bool,
	fileType string,
) (filename string, err error)

func WriteAgentTask

func WriteAgentTask(
	agentName string,
	taskName string,
	isClient bool,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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