Documentation ¶
Index ¶
Constants ¶
View Source
const (
Success = "Success!"
)
Variables ¶
View Source
var ErrDNSLookupMissing = errors.New("you must pass a lookup parameter for DNS test")
View Source
var ErrDidNotMatchExpectedOutput = errors.New("did not match Expected Output")
View Source
var ErrFTPNeedsEitherTextOrReadFile = errors.New("FTP check_service needs either text, or read_file parameter")
View Source
var ErrFTPNeedsUsernameAndPassword = errors.New("FTP check_service needs username and password")
View Source
var ErrIMAPRequiresUsernameAndPassword = errors.New("IMAP check_service needs password, and username to operate")
View Source
var ErrInvalidResponseCodeReceived = errors.New("invalid response code received")
View Source
var ErrLDAPRequiresUsernamePasswordDomain = errors.New("LDAP check_service needs password, username, and Domain to operate")
View Source
var ErrNonZeroReturn = errors.New("process returned a non-zero code")
View Source
var ErrNumberOfRowsLessThanExpected = errors.New("number of rows was less than expected")
View Source
var ErrNumberOfRowsMoreThanExpected = errors.New("number of rows was more than expected")
View Source
var ErrParameterShouldBeEither = errors.New("parameter Operation should be one of the following")
View Source
var ErrSQLNeedsUsernameOrPassword = errors.New("sql check_service needs username, and password")
View Source
var ErrSQLRequiresCommand = errors.New("sql check needs a command parameter")
View Source
var ErrSSHRequiresUsernameAndPassword = errors.New("ssh check_service needs username, and password")
View Source
var ErrUnsupportedDBType = errors.New("DBType should either be mysql, or postgres")
View Source
var ErrUnsupportedParameter = errors.New("invalid protocol selected")
View Source
var ErrWinrmRequiresUsernameAndPassword = errors.New("winrm check_service needs username, and password")
Functions ¶
func ConstructURI ¶
func ContainsString ¶
Types ¶
type CalDav ¶
type CalDav struct { Scheme string Port string Path string Subdomain string ExpectedOutput string Username string Password string }
type FTP ¶
type FTP struct { Username string Password string Port string // Text to upload to remote computer Text string // Name of the file to which write the parameter WriteFilename string // Filename to find on a remote computer ReadFilename string // Check expected output of the file ExpectedOutput string }
type LDAP ¶
type LDAP struct { Username string Password string Domain string Port string BaseDN string TransportProtocol string ApplicationProtocol string Filter string Attributes string }
type SMB ¶
type SQL ¶
type SSH ¶
Click to show internal directories.
Click to hide internal directories.