Documentation ¶
Index ¶
- Variables
- func ClearDir(path ...string) error
- 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 DrainDataChan(c chan []byte)
- func DrainLogChan(c chan *proto.LogEntry)
- func DrainRecvChan(c chan *proto.Reply)
- func DrainRecvData(c chan interface{})
- func DrainSendChan(c chan *proto.Cmd)
- func DrainTraceChan(c chan string) []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{}, want 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)
- type ByInternalService
Constants ¶
This section is empty.
Variables ¶
View Source
var DeepEquals check.Checker = &eventsChecker{ &check.CheckerInfo{Name: "DeepEquals", Params: []string{"got", "expected"}}, }
View Source
var FileEquals check.Checker = &fileChecker{ &check.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 DrainDataChan ¶ added in v1.0.7
func DrainDataChan(c chan []byte)
func DrainLogChan ¶
func DrainLogChan(c chan *proto.LogEntry)
func DrainRecvChan ¶
func DrainRecvChan(c chan *proto.Reply)
func DrainRecvData ¶ added in v1.0.7
func DrainRecvData(c chan interface{})
func DrainSendChan ¶
func DrainSendChan(c chan *proto.Cmd)
func DrainTraceChan ¶
func FileExists ¶
func LoadMmReport ¶
func WaitCollection ¶
func WaitCollection(cChan chan *mm.Collection, n int) []*mm.Collection
func WaitFileSize ¶
func WaitLogChan ¶
func WaitLogChan(logChan chan *proto.LogEntry, n int) []proto.LogEntry
func WaitMmReport ¶
func WaitStatus ¶
func WaitStatusPrefix ¶
func WaitStatusReply ¶
func WaitSystemConfig ¶
Types ¶
type ByInternalService ¶ added in v1.0.13
type ByInternalService []proto.AgentConfig
func (ByInternalService) Len ¶ added in v1.0.13
func (a ByInternalService) Len() int
func (ByInternalService) Less ¶ added in v1.0.13
func (a ByInternalService) Less(i, j int) bool
func (ByInternalService) Swap ¶ added in v1.0.13
func (a ByInternalService) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.