Displaying 3 results from an estimated 3 matches for "nbdkitplugin".
Did you mean:
nbdkit_plugin
2020 Apr 15
2
Re: [PATCH nbdkit UNFINISHED] Add the ability to write plugins in golang.
...kit plugin should require nothing more
that providing pure Go code that satisfies a well defined
Go "interface" type definition. There should not be any
copy+paste of example boilerplate, nor any use of CGo.
As an illustration, consider an interface and basic infrastructure:
package nbdkitplugin
type NBDKitFeature int
const (
NBDKitFeatureGetSize NBDKitFeature = iota
NBDKitFeaturePread
...other optional methods...
)
type NBDKitPlugin interface {
NBDGetFeatures() []NBDKitFeature
NBDOpen(readonly bool)
NBDClose()
NBDGetSize() int64
N...
2020 Apr 10
3
[PATCH nbdkit UNFINISHED] Add the ability to write plugins in golang.
Sorry Dan, but I really do dislike golang with a passion :-)
Here is a patch that allows you to write nbdkit plugins in golang. As
with C, OCaml and Rust, you can write a plugin in Go which compiles
directly to a .so file that can be loaded into golang, so in that
sense it works completely differently from scripting language plugins
like Perl and Python where there's an
2019 Feb 08
1
Re: [PATCH nbdkit] Add support for writing plugins in Rust.
On 2/8/19 5:55 AM, Richard W.M. Jones wrote:
> ---
> +* Consider supporting a more idiomatic style for writing Rust plugins.
> +
Considering I've written nothing in Rust, I'm no good at deciding what
forms idiomatic Rust plugins.
> +++ b/configure.ac
> @@ -545,6 +545,15 @@ AS_IF([test "x$OCAMLOPT" != "xno" && test "x$enable_ocaml" !=