Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶ added in v0.2.0
Copy is a modification of io.copyBuffer. It runs the given callback after every chunk. If it returns true the copy will be resumed, on false it'll abort the copy
Types ¶
type BarMaker ¶ added in v0.2.0
type BarMaker func() *pb.ProgressBar
BarMaker is a function that allows you to create a bar on demand for functions that might need it during their run time. For example, CopyWithSlowBar runs it if the copy takes too long by running this function to allow bar customization.
type CopyCallback ¶ added in v0.2.0
CopyCallback is a callback you can use to hook into a copy
Click to show internal directories.
Click to hide internal directories.