remote

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL