Documentation ¶
Index ¶
- Variables
- func ConnectMySQL(dsn string) (*sql.DB, error)
- func CopyFile(src, dst string) error
- func Debug(logChan chan *proto.LogEntry)
- func DrainBoolChan(c chan bool)
- func DrainLogChan(c chan *proto.LogEntry)
- func DrainRecvChan(c chan *proto.Reply)
- func DrainSendChan(c chan *proto.Cmd)
- func DrainTraceChan(c chan string)
- func Dump(v interface{})
- func FileExists(file string) bool
- func FileSize(fileName string) (int64, error)
- func GetStatus(sendChan chan *proto.Cmd, recvChan chan *proto.Reply) map[string]string
- func IsDeeply(got, expect interface{}) (result bool, error string)
- func LoadMmReport(file string, v interface{}) error
- func Sign(file string) ([]byte, []byte, error)
- func WaitBytes(dataChan chan []byte) [][]byte
- func WaitCmd(replyChan chan *proto.Cmd) []proto.Cmd
- func WaitCollection(cChan chan *mm.Collection, n int) []*mm.Collection
- func WaitData(recvDataChan chan interface{}) []interface{}
- func WaitErr(errChan chan error) []error
- func WaitFileSize(fileName string, originalSize int64)
- func WaitFiles(dir string, n int) []os.FileInfo
- func WaitLog(recvDataChan chan interface{}, n int) []proto.LogEntry
- func WaitLogChan(logChan chan *proto.LogEntry, n int) []proto.LogEntry
- func WaitMmReport(dataChan chan interface{}) *mm.Report
- func WaitReply(replyChan chan *proto.Reply) []proto.Reply
- func WaitState(c chan bool) bool
- func WaitStatus(timeout int, r pct.StatusReporter, proc string, state string) bool
- func WaitStatusPrefix(timeout int, r pct.StatusReporter, proc string, state string) bool
- func WaitStatusReply(replyChan chan *proto.Reply) map[string]string
- func WaitSystemConfig(cChan chan *sysconfig.Report, n int) []*sysconfig.Report
- func WaitTrace(traceChan chan string) []string
- func WriteData(data interface{}, filename string)
Constants ¶
This section is empty.
Variables ¶
View Source
var DeepEquals gocheck.Checker = &eventsChecker{ &gocheck.CheckerInfo{Name: "DeepEquals", Params: []string{"got", "expected"}}, }
View Source
var FileEquals gocheck.Checker = &fileChecker{ &gocheck.CheckerInfo{Name: "FileEquals", Params: []string{"got", "expected"}}, }
View Source
var RootDir string
View Source
var Ts, _ = time.Parse("2006-01-02 15:04:05", "2013-12-30 18:36:00")
Functions ¶
func DrainBoolChan ¶
func DrainBoolChan(c chan bool)
func DrainLogChan ¶
func DrainRecvChan ¶
func DrainSendChan ¶
func DrainTraceChan ¶
func DrainTraceChan(c chan string)
func FileExists ¶
func LoadMmReport ¶
func WaitCollection ¶
func WaitCollection(cChan chan *mm.Collection, n int) []*mm.Collection
func WaitFileSize ¶
func WaitMmReport ¶
func WaitStatus ¶
func WaitStatusPrefix ¶
func WaitSystemConfig ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.