Documentation
¶
Index ¶
Constants ¶
View Source
const ( COMPARISON_RESULT_EQUAL = 0 CONTENT_TYPE_ANY = "" CONTENT_TYPE_BINARY = "application/octet-stream" CONTENT_TYPE_CSV = "text/csv" CONTENT_TYPE_JSON = "application/json" CONTENT_TYPE_MULTIPART = "multipart/form-data" CONTENT_TYPE_URLENCODED = "application/x-www-form-urlencoded" HTTP_METHOD_POST = "POST" PEM_TYPE_CERTIFICATE = "CERTIFICATE" SIZE_KEY_BYTES = 64 TWO_TIMES_SIZE_KEY_BYTES = 2 * SIZE_KEY_BYTES )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface {
Login(name string, password string) (Session, error)
LoginPrivateKey(name string, privateKey *rsa.PrivateKey) (Session, error)
}
* A connection to a remote host.
func CreateConnection ¶
func CreateConnection(host string, port uint16, userAgent string, certificateChain []byte) (Connection, error)
* Creates a new connection to a remote host, expecting a certain certificate chain.
type Session ¶
type Session interface {
ExportActivityCsv() (io.ReadCloser, error)
ExportGeodata(format string) (io.ReadCloser, error)
ImportGeodata(format string, strategy string, data io.ReadSeekCloser) (io.ReadCloser, error)
Logout() error
}
* An authenticated session on a remote host.
Click to show internal directories.
Click to hide internal directories.