utils

package
v0.0.0-...-71a68d1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamedFileLock

type NamedFileLock struct {
	Name     string
	FileLock *flock.Flock
}

func NewNamedFileLock

func NewNamedFileLock(lockName string) *NamedFileLock

func (*NamedFileLock) Lock

func (l *NamedFileLock) Lock() error

func (*NamedFileLock) Unlock

func (l *NamedFileLock) Unlock() error

type Process

type Process struct {
	Executable string
	Args       []string
}

func NewProcess

func NewProcess(executable string) *Process

func (*Process) AddArg

func (e *Process) AddArg(Arg string)

func (*Process) AsCmd

func (e *Process) AsCmd(Arg string) string

type TLVFileReader

type TLVFileReader struct {
	FilePath string
	Map      map[string]string
}

func NewTLVFileReader

func NewTLVFileReader(filePath string) *TLVFileReader

func (*TLVFileReader) Parse

func (t *TLVFileReader) Parse() error

type Task

type Task struct {
	Config         map[string]string
	CrackingEngine *Process
	Generator      *Process
}

func NewTask

func NewTask(taskConfig map[string]string, crackingEnginePath string, generatorPath string) *Task

type ZipFile

type ZipFile struct {
	Path string
}

func (*ZipFile) UnpackTo

func (z *ZipFile) UnpackTo(folder string) error

Jump to

Keyboard shortcuts

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