executer

package
Version: v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executer

type Executer struct {
}

func (*Executer) ExecuteWithTimeout

func (e *Executer) ExecuteWithTimeout(mSeconds int, command string, args []string) ([]byte, error)

func (*Executer) FileWriteString

func (e *Executer) FileWriteString(f *os.File, s string) (n int, err error)

func (*Executer) FilepathGlob

func (e *Executer) FilepathGlob(pattern string) (matches []string, err error)

func (*Executer) IoutilReadDir

func (e *Executer) IoutilReadDir(dirname string) ([]os.FileInfo, error)

func (*Executer) IoutilReadFile

func (e *Executer) IoutilReadFile(filename string) ([]byte, error)

func (*Executer) IsExecutable added in v1.3.0

func (e *Executer) IsExecutable(path string) error

func (*Executer) OsOpenFile

func (e *Executer) OsOpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
func (e *Executer) OsReadlink(name string) (string, error)

type ExecuterInterface

type ExecuterInterface interface {
	ExecuteWithTimeout(mSeconds int, command string, args []string) ([]byte, error)
	OsOpenFile(name string, flag int, perm os.FileMode) (*os.File, error)
	OsReadlink(name string) (string, error)
	FilepathGlob(pattern string) (matches []string, err error)
	IoutilReadDir(dirname string) ([]os.FileInfo, error)
	IoutilReadFile(filename string) ([]byte, error)
	FileWriteString(f *os.File, s string) (n int, err error)
	IsExecutable(path string) error
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL