store: Export 'connect-to-daemon'.
* guix/store.scm (connect-to-daemon): Make public. Improve docstring.master
parent
e2f4a5704b
commit
dd14678b9b
|
@ -90,6 +90,7 @@
|
||||||
hash-algo
|
hash-algo
|
||||||
build-mode
|
build-mode
|
||||||
|
|
||||||
|
connect-to-daemon
|
||||||
open-connection
|
open-connection
|
||||||
port->connection
|
port->connection
|
||||||
close-connection
|
close-connection
|
||||||
|
@ -501,7 +502,10 @@
|
||||||
|
|
||||||
(define (connect-to-daemon uri)
|
(define (connect-to-daemon uri)
|
||||||
"Connect to the daemon at URI, a string that may be an actual URI or a file
|
"Connect to the daemon at URI, a string that may be an actual URI or a file
|
||||||
name."
|
name, and return an input/output port.
|
||||||
|
|
||||||
|
This is a low-level procedure that does not perform the initial handshake with
|
||||||
|
the daemon. Use 'open-connection' for that."
|
||||||
(define (not-supported)
|
(define (not-supported)
|
||||||
(raise (condition (&store-connection-error
|
(raise (condition (&store-connection-error
|
||||||
(file uri)
|
(file uri)
|
||||||
|
|
Reference in New Issue