package
1.5.4
Repository: https://github.com/greths/brice.git
Documentation: pkg.go.dev

# Functions

CopyData copies the source endpoint (vm image) to the provided destination path.
NewDataStream returns a DataStream object after validating the endpoint and constructing the reader/closer chain.
ParseEndpoint parses the required endpoint and return the url struct.
ResizeImage resizes the images to match the requested size.
SaveStream reads from a stream and saves data to dest.
StreamDataToFile provides a function to stream the specified io.Reader to the specified local file.
ValidateSpaceConstraint - validates wheather there is enough space in PVC for both qcow2 image and converted raw imageAssumes it is possible to retrieve info from qcow2 file by means of qemu-img utilityReturns failure if either of the following happens1.

# Structs

DataStream implements the ReadCloser interface.
DataStreamOptions contains all the values needed for importing from a DataStream.

# Interfaces

DataStreamInterface provides our interface definition required to fulfill a DataStream.