Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Client ¶
Client returns a storage object that will talk to the storage server at the given network address (see Serve)
func ClientTLS ¶
ClientTLS returns a storage object that will talk to the storage server at the given network address (see Serve), using TLS. The client is given an authentication key, which the server will verify for Put and Remove* operations.
func Serve ¶
Serve runs a storage server on the given network address, relaying requests to the given storage implementation. It returns the network listener. This can then be attached to with Client.
func ServeTLS ¶
func ServeTLS(addr string, stor storage.Storage, caCertPEM, caKeyPEM string, hostnames []string, authkey string) (net.Listener, error)
ServeTLS runs a storage server on the given network address, relaying requests to the given storage implementation. The server runs a TLS listener, and verifies client certificates (if given) against the specified CA certificate. A client certificate is only required for PUT and DELETE methods.
This method returns the network listener, which can then be attached to with ClientTLS.
Types ¶
This section is empty.