Logo
Explore Help
Register Sign in
nemith/netconf
1
1
Fork
You've already forked netconf
0
Code Issues 5 Pull requests Projects Releases 4 Packages Wiki Activity Actions 2
4 releases 4 tags
  • v0.0.4 8d43db445f

    v0.0.4 Stable

    nemith released this 2026-01-08 17:00:49 +00:00 | 8 commits to main since this release

    v0.0.3 had a regression that didn't allow multiple rpc requests at once (i.e calling Do or Exec at the same time in different goroutines would error). This probably isn't that widely used but it should be supported by the session.

    As part of this the closing has been reworked quite a bit to make sure resouces and such are cleaned up properly.

    What's Changed

    • refactor: Move from testify to be by @nemith in https://github.com/nemith/netconf/pull/130
    • chore: Update license by @nemith in https://github.com/nemith/netconf/pull/131
    • bug: serialize send to allow for concurrent session use by @nemith in https://github.com/nemith/netconf/pull/132
    • refactor: Use ECDSA instead of RSA for TLS tests by @nemith in https://github.com/nemith/netconf/pull/133

    Full Changelog: https://github.com/nemith/netconf/compare/v0.0.3...v0.0.4

    Downloads
    • Source code (ZIP)
      0 downloads
    • Source code (TAR.GZ)
      0 downloads
  • v0.0.3 594bf53733

    v0.0.3 Stable

    nemith released this 2026-01-07 18:53:25 +00:00 | 12 commits to main since this release

    This is a breaking release to clean up some final things for a 1.0.0 release. The biggest changes are

    • Import path has changed! This packge is now nemith.io/netconf. Please update!
    • Do() and Exec() now deal with full <rpc-reply> messages. So when decoding custom types you could include the <rpc-reply. For using encoding/xml you can just embed netconf.RPCReply into your types, but really it doesn't matter.
    • There is a new session.Prepare(*RPC) RPC which will clone and add a message-id if one is missing.
    • When using the low-level Do() method you will get back a Message object. This is a io.ReadCloser that MUST BE CLOSED. This means stream is direcly from the underlying transport. This should drastically increase performance and move allocations to the client. For those who don't care there is still netconf.Exec which will inspect <rpc-errors> and decode into your objects using encoding/xml.
    • Another side affect of the streaming nature is that you can use any XML library to process the results! Use your favorite xpath or regexp (this is a joke. seriously don't do this)
    • RPC have been moved into their own package nemith.io/netconf/rpc and are no longer methods on Session. Also full RPC coverage for RFC6241 is provided!
    • Open() has been renamed to NewSession() This is to prepare for a pool like session manager with retries, etc.

    What's Changed

    • build(deps): bump golang.org/x/crypto from 0.29.0 to 0.30.0 by @dependabot[bot] in https://github.com/nemith/netconf/pull/88
    • transport: use uint32 to track chuck length by @nemith in https://github.com/nemith/netconf/pull/91
    • Fix inttests using docker-compose instead of docker compose by @nemith in https://github.com/nemith/netconf/pull/93
    • build(deps): bump golang.org/x/crypto from 0.30.0 to 0.32.0 by @dependabot[bot] in https://github.com/nemith/netconf/pull/96
    • build(deps): bump golang.org/x/crypto from 0.32.0 to 0.33.0 by @dependabot[bot] in https://github.com/nemith/netconf/pull/97
    • build(deps): bump golang.org/x/crypto from 0.33.0 to 0.34.0 by @dependabot[bot] in https://github.com/nemith/netconf/pull/98
    • build(deps): bump github.com/stretchr/testify from 1.10.0 to 1.11.0 by @dependabot[bot] in https://github.com/nemith/netconf/pull/102
    • migrate import path to nemith.io/netconf by @nemith in https://github.com/nemith/netconf/pull/105
    • Bump Go to 1.24/1.25 by @nemith in https://github.com/nemith/netconf/pull/106
    • chore: bump dependencies by @nemith in https://github.com/nemith/netconf/pull/107
    • chore: refactor Framer transport by @nemith in https://github.com/nemith/netconf/pull/108
    • chore(transport/ssh): Increase test coverage (+bug fixes) by @nemith in https://github.com/nemith/netconf/pull/109
    • chore(transport/tls): Increase test coverage by @nemith in https://github.com/nemith/netconf/pull/110
    • feat: Make CapabilitySet public by @nemith in https://github.com/nemith/netconf/pull/111
    • feat!: Rework Request/Respose to be lower level + streaming by @nemith in https://github.com/nemith/netconf/pull/112
    • refactor!: rename Response->Message and remove Response types by @nemith in https://github.com/nemith/netconf/pull/114
    • feat: add custom structured logger support by @nemith in https://github.com/nemith/netconf/pull/115
    • bug: fix race on closing recvLoop by @nemith in https://github.com/nemith/netconf/pull/118
    • bug: discard logs if a nil logger is provided by @nemith in https://github.com/nemith/netconf/pull/116
    • feat: restore notification support using streaming messages by @nemith in https://github.com/nemith/netconf/pull/117
    • refactor: rename NotificationHandler -> NotifHandler by @nemith in https://github.com/nemith/netconf/pull/121
    • test: add more Session tests and fix TestServer by @nemith in https://github.com/nemith/netconf/pull/120
    • feat: add discard-changes rpc call by @nemith in https://github.com/nemith/netconf/pull/122
    • fix: don't log warn/errors on connection close after a legit close by @nemith in https://github.com/nemith/netconf/pull/123
    • refactor!: rename Open()->NewSession() by @nemith in https://github.com/nemith/netconf/pull/124
    • feat: Add hello timeouts by @nemith in https://github.com/nemith/netconf/pull/125
    • fix: use a larger maxChunk size when using 64-bit platforms by @nemith in https://github.com/nemith/netconf/pull/126
    • fix: add logging when closing transport by @nemith in https://github.com/nemith/netconf/pull/127
    • chore: Update README by @nemith in https://github.com/nemith/netconf/pull/128

    Full Changelog: https://github.com/nemith/netconf/compare/v0.0.2...v0.0.3

    Downloads
    • Source code (ZIP)
      0 downloads
    • Source code (TAR.GZ)
      0 downloads
  • v0.0.2 b5fd09a7d7

    v0.0.2 Stable

    nemith released this 2024-12-06 16:10:37 +00:00 | 42 commits to main since this release

    What's Changed

    • new session.Do API by @nemith in https://github.com/nemith/netconf/pull/60
    • allow more control of filtering Reply errors by @nemith in https://github.com/nemith/netconf/pull/61
    • build(deps): bump golang.org/x/crypto from 0.12.0 to 0.13.0 by @dependabot in https://github.com/nemith/netconf/pull/64
    • build(deps): bump golang.org/x/crypto from 0.13.0 to 0.15.0 by @dependabot in https://github.com/nemith/netconf/pull/66
    • build(deps): bump golang.org/x/crypto from 0.15.0 to 0.16.0 by @dependabot in https://github.com/nemith/netconf/pull/67
    • build(deps): bump golang.org/x/crypto from 0.16.0 to 0.17.0 by @dependabot in https://github.com/nemith/netconf/pull/68
    • build(deps): bump golang.org/x/crypto from 0.17.0 to 0.18.0 by @dependabot in https://github.com/nemith/netconf/pull/70
    • transport: fix infinate loop on chunkReader.Close() by @nemith in https://github.com/nemith/netconf/pull/71
    • build(deps): bump golang.org/x/crypto from 0.18.0 to 0.19.0 by @dependabot in https://github.com/nemith/netconf/pull/72
    • build(deps): bump golang.org/x/crypto from 0.19.0 to 0.21.0 by @dependabot in https://github.com/nemith/netconf/pull/75
    • build(deps): bump github.com/stretchr/testify from 1.8.4 to 1.9.0 by @dependabot in https://github.com/nemith/netconf/pull/74
    • bump for Go version 1.21 and 1.22 by @nemith in https://github.com/nemith/netconf/pull/76
    • build(deps): bump golang.org/x/crypto from 0.21.0 to 0.23.0 by @dependabot in https://github.com/nemith/netconf/pull/78
    • build(deps): bump golang.org/x/crypto from 0.23.0 to 0.24.0 by @dependabot in https://github.com/nemith/netconf/pull/79
    • build(deps): bump golang.org/x/crypto from 0.24.0 to 0.25.0 by @dependabot in https://github.com/nemith/netconf/pull/80
    • build(deps): bump golang.org/x/crypto from 0.25.0 to 0.27.0 by @dependabot in https://github.com/nemith/netconf/pull/82
    • build(deps): bump golang.org/x/crypto from 0.27.0 to 0.28.0 by @dependabot in https://github.com/nemith/netconf/pull/83
    • build(deps): bump golang.org/x/crypto from 0.28.0 to 0.29.0 by @dependabot in https://github.com/nemith/netconf/pull/86
    • bug fix in main receive loop by @ksproska in https://github.com/nemith/netconf/pull/85
    • build(deps): bump github.com/stretchr/testify from 1.9.0 to 1.10.0 by @dependabot in https://github.com/nemith/netconf/pull/87

    New Contributors

    • @ksproska made their first contribution in https://github.com/nemith/netconf/pull/85

    Full Changelog: https://github.com/nemith/netconf/compare/v0.0.1...v0.0.2

    Downloads
    • Source code (ZIP)
      0 downloads
    • Source code (TAR.GZ)
      0 downloads
  • v0.0.1 2cc824ffbf

    v0.0.1 Pre-release

    nemith released this 2023-08-07 14:53:49 +00:00 | 62 commits to main since this release

    Initial release of the github.com/nemith/netconf package, a complete rewrite of the github.com/Juniper/go-netconf package (by the original author).

    Note the API is not stable, however I will try to cut releases for breaking API changes in v0. Once the API has been stablized a 1.0 release will be cut and no breaking changes will be added (unless there is a v2 package).

    This is being used in production and feedback is welcome.

    Downloads
    • Source code (ZIP)
      0 downloads
    • Source code (TAR.GZ)
      0 downloads
Powered by Forgejo Version: 15.0.7 Page: 138ms Template: 81ms
English
Bahasa Indonesia Dansk Deutsch English Español Esperanto Filipino Français Italiano Latviešu Magyar nyelv Nederlands Plattdüütsch Polski Português de Portugal Português do Brasil Slovenščina Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API