Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCertificate is raised when a supplied certificate isn't // in the right format etc. ErrCertificate = errors.New("certificate error") // ErrAuthentication is raised when something goes wrong with authentication. ErrAuthentication = errors.New("authentication error") )
Functions ¶
Types ¶
type Options ¶
type Options struct { // Host is the hostname to connect to. Host string // Username is the user to connect as. Username string // Password is the user's password. Password string // CA is the certificate to verify the connection against. // This is a single PEM encoded X.509 certificate. CA []byte // UserAgent allows the user agent to be overridden. UserAgent string }
Options define client options to define the connection.
Click to show internal directories.
Click to hide internal directories.