mkvm/libvirtx/stream.go

21 lines
320 B
Go
Raw Normal View History

2024-12-03 04:22:30 +00:00
// Copyright Entanglement Garden Developers
// SPDX-License-Identifier: AGPL-3.0-only
package libvirtx
import (
"libvirt.org/go/libvirt"
)
type Stream struct {
*libvirt.Stream
}
func (s Stream) Read(buf []byte) (int, error) {
return s.Stream.Recv(buf)
}
func (s Stream) Close() error {
return s.Stream.Free()
}