Versions in this module Expand all Collapse all v0 v0.0.2 Apr 8, 2026 Changes in this version + const Success + var ErrDNSLookupMissing = errors.New("you must pass a lookup parameter for DNS test") + var ErrDidNotMatchExpectedOutput = errors.New("did not match Expected Output") + var ErrFTPNeedsEitherTextOrReadFile = errors.New("FTP check_service needs either text, or read_file parameter") + var ErrFTPNeedsUsernameAndPassword = errors.New("FTP check_service needs username and password") + var ErrIMAPRequiresUsernameAndPassword = errors.New("IMAP check_service needs password, and username to operate") + var ErrInvalidResponseCodeReceived = errors.New("invalid response code received") + var ErrLDAPRequiresUsernamePasswordDomain = errors.New("LDAP check_service needs password, username, and Domain to operate") + var ErrNonZeroReturn = errors.New("process returned a non-zero code") + var ErrNumberOfRowsLessThanExpected = errors.New("number of rows was less than expected") + var ErrNumberOfRowsMoreThanExpected = errors.New("number of rows was more than expected") + var ErrParameterShouldBeEither = errors.New("parameter Operation should be one of the following") + var ErrSQLNeedsUsernameOrPassword = errors.New("sql check_service needs username, and password") + var ErrSQLRequiresCommand = errors.New("sql check needs a command parameter") + var ErrSSHRequiresUsernameAndPassword = errors.New("ssh check_service needs username, and password") + var ErrShareShouldNotBeEmpty = errors.New("parameter Share should not be empty") + var ErrUnsupportedDBType = errors.New("DBType should either be mysql, or postgres") + var ErrUnsupportedParameter = errors.New("invalid protocol selected") + var ErrWinrmRequiresUsernameAndPassword = errors.New("winrm check_service needs username, and password") + func ConstructURI(port, subdomain, host, path, scheme string) *url.URL + func ContainsString(s []string, e string) bool + func IsSecure(s string) bool + type CalDav struct + ExpectedOutput string + Password string + Path string + Port string + Scheme string + Subdomain string + Username string + func NewCalDav() *CalDav + func (h *CalDav) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (h *CalDav) Validate() error + type DNS struct + ExpectedOutput string + Lookup string + func NewDNS() *DNS + func (p *DNS) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (p *DNS) Validate() error + type FTP struct + ExpectedOutput string + Password string + Port string + ReadFilename string + Text string + Username string + WriteFilename string + func NewFTP() *FTP + func (f *FTP) Execute(e exec.Exec) (passed bool, l string, err error) + func (f *FTP) Validate() error + type HTTP struct + ExpectedOutput string + Path string + Port string + Scheme string + Subdomain string + func NewHTTP() *HTTP + func (h *HTTP) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (h *HTTP) Validate() error + type IMAP struct + Password string + Port string + Scheme string + Username string + func NewIMAP() *IMAP + func (i *IMAP) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (i *IMAP) Validate() error + type LDAP struct + ApplicationProtocol string + Attributes string + BaseDN string + Domain string + Filter string + Password string + Port string + TransportProtocol string + Username string + func NewLDAP() *LDAP + func (l *LDAP) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (l *LDAP) Validate() error + type Ping struct + Attempts string + Protocol string + func NewPing() *Ping + func (p *Ping) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (p *Ping) Validate() error + type SMB struct + Domain string + ExpectedOutput string + FileName string + Operation string + Password string + Port string + Share string + Text string + TransportProtocol string + Username string + func NewSMB() *SMB + func (s *SMB) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (s *SMB) Validate() error + type SQL struct + Command string + DBName string + DBType string + MaxExpectedRows string + MinExpectedRows string + Password string + Port string + Username string + func NewSQL() *SQL + func (w *SQL) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (w *SQL) Validate() error + type SSH struct + Command string + ExpectedOutput string + Password string + Port string + Username string + func NewSSH() *SSH + func (s *SSH) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (s *SSH) Validate() error + type Winrm struct + ClientType string + Command string + ExpectedOutput string + Password string + Port string + Scheme string + Username string + func NewWinrm() *Winrm + func (w *Winrm) Execute(e exec.Exec) (passed bool, logOutput string, err error) + func (w *Winrm) Validate() error