package
0.0.0-20250207191401-950a7b2d7eaf
Repository: https://github.com/digitalocean/go-libvirt.git
Documentation: pkg.go.dev

# Functions

IsIO returns a boolean indicating whether the error is known to report that the underlying reader or writer encountered an ErrIO.
Marshal writes the XDR encoding of v to writer w and returns the number of bytes written.
NewDecoder returns a Decoder that can be used to manually decode XDR data from a provided reader.
NewDecoderCustomTypes returns a decoder with support for custom types known to the caller.
NewDecoderLimited is identical to NewDecoder but it sets maxReadSize in order to cap reads.
NewEncoder returns an object that can be used to manually choose fields to XDR encode to the passed writer w.
Unmarshal parses XDR-encoded data into the value pointed to by v reading from reader r and returning the total number of bytes read.
UnmarshalLimited is identical to Unmarshal but it sets maxReadSize in order to cap reads.

# Constants

ErrBadArguments indicates arguments passed to the function are not what was expected.
ErrBadEnumValue indicates an enumeration value is not in the list of valid values.
ErrIO indicates an error was encountered while reading or writing to an io.Reader or io.Writer, respectively.
ErrNilInterface indicates an interface with no concrete type information was encountered.
ErrNotSettable indicates an interface value cannot be written to.
ErrOverflow indicates that the data in question is too large to fit into the corresponding Go or XDR data type.
ErrParseTime indicates an error was encountered while parsing an RFC3339 formatted time value.
ErrUnsupportedType indicates the Go type is not a supported type for marshalling and unmarshalling XDR data.

# Structs

A Decoder wraps an io.Reader that is expected to provide an XDR-encoded byte stream and provides several exposed methods to manually decode various XDR primitives without relying on reflection.
An Encoder wraps an io.Writer that will receive the XDR encoded byte stream.
MarshalError describes a problem encountered while marshaling data.
UnmarshalError describes a problem encountered while unmarshaling data.

# Interfaces

TypeDecoder lets a caller provide a custom decode routine for a custom type.

# Type aliases

ErrorCode identifies a kind of error.