diff options
author | Dario Maiocchi <dmaiocchi@suse.com> | 2017-11-10 19:45:43 +0100 |
---|---|---|
committer | Dario Maiocchi <dmaiocchi@suse.com> | 2017-11-16 11:26:28 +0100 |
commit | 5ea65823d419c7238d83acd2d7bc9cf85398bdef (patch) | |
tree | a6dee0752d87f7580cbcb88f66275fa7c45baac5 /libvirt/stream.go | |
parent | 2e1a19e5d457d8dd75f20e9b6ca19bde9a628a8d (diff) | |
download | terraform-provider-libvirt-5ea65823d419c7238d83acd2d7bc9cf85398bdef.tar terraform-provider-libvirt-5ea65823d419c7238d83acd2d7bc9cf85398bdef.tar.gz |
fix golint on stream and volume_def.go
Diffstat (limited to 'libvirt/stream.go')
-rw-r--r-- | libvirt/stream.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libvirt/stream.go b/libvirt/stream.go index fcfed2cf..e8d9b3e8 100644 --- a/libvirt/stream.go +++ b/libvirt/stream.go @@ -2,10 +2,12 @@ package libvirt import libvirt "github.com/libvirt/libvirt-go" +// StreamIO struct type StreamIO struct { Stream libvirt.Stream } +// NewStreamIO return libvirt StreamIO func NewStreamIO(s libvirt.Stream) *StreamIO { return &StreamIO{Stream: s} } @@ -18,6 +20,7 @@ func (sio *StreamIO) Write(p []byte) (int, error) { return sio.Stream.Send(p) } +// Close StreamIO func (sio *StreamIO) Close() error { return sio.Stream.Finish() } |