summaryrefslogtreecommitdiff
tag namev0.28.0 (c6d2dad5982cd59076488db48c50354e21dd5632)
tag date2021-07-06 09:38:26 +0700
tagged byShulhan <ms@kilabit.info>
tagged objectcommit 17963c194c...
downloadpakakeh.go-0.28.0.tar.xz
Release share v0.28.0 (2021-07-06)
=== Breaking changes * lib/ssh: rename method Get to ScpGet and Put to ScpPut This changes is to make clear that the methods to copy the files, either from local or from remote, is using the "scp" through exec package, not using the native SSH file transfer protocol. While at it, use consistent log prefix for error message. * ssh: rename the NewClient function to NewClientFromConfig This is to differentiate it with x/crypto ssh package that have the same function name. * ssh: move the config parser to subpackage "config" There are two reasons for moving to sub-package. First, the code for parsing the ssh_config(5) take almost 99% of the lines in the ssh package. Second, in case we want to submit the code to upstream, golang.org/x/crypto, we need the package to be independent, less external dependencies as possible. * http: remove the Memfs field from Server Now that Options field has been exported, we did not need to have duplicate Memfs, so this field is removed in favor of Options.Memfs. === Enhancements * websocket: export the Options field on the Server Previously, the Options field is not exported to prevent user from changing it once it set through NewServer() function. This changes export the Options field to allow user of Server access its values. We can create a method on server to return read-only options, but that will over complicated the Server API. * http: export the Options field on the Server Previously, the Options field is not exported to prevent user from changing it once it set through NewServer() function. This changes export the Options field to allow user of Server access its values. We can create a method on server to return read-only options, but that will over complicated the Server API. * websocket: store all the handshake headers to Handshake.Header Previously only non-required headers are stored in the Handshake Header field, while the required header value stored on their respective fields. This commit store all request header key and values into the Header field. -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEzvGqh+M3psOQ3lVQ+FB+6RSKTOMFAmDjwikACgkQ+FB+6RSK TOMk/Qf9FVGwEJLCtaEHYFy5fRlNcTecpGRBpkjpg3GP1qpxZ+xikP5HztpoB463 140ok04KYCjv85dsg7C1dTl9arYUqtrmXpTmppFEdMvnvYc0gAnocpwwnMjK1igp telE2cpeO58AMwTT0rCA65tVlO9zJUyNYUBIgExo4WVyALsw+5ZP5zVHCL0cqIee Ci1X2hnOaUGPINUaAPJEkOlVTRQA2X41e2aYyzPsq5dmouANyejaVWuIjrFxrmq3 GyIYMA6R/gUiC+8mr+D6LF/vu9X/Ixwyq3cz7AyTbXaBm6u/C/HPmIc9vm0t2QJr 9OqDjSumu5WOPxv2M5dwT2xHQtHtfg== =xCiM -----END PGP SIGNATURE-----