executer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 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) 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)
}

Jump to

Keyboard shortcuts

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