Documentation ¶
Index ¶
- Variables
- func Die(msg string)
- func Dief(format string, args ...interface{})
- func Log(msg string)
- func Logf(format string, args ...interface{})
- func Marshal(value interface{}) ([]byte, error)
- func Progress(perc float64)
- func Register()
- func Unmarshal(buf []byte) (interface{}, error)
- type CounterWriter
- type FileAdded
- type FilePatched
- type FileRemoved
- type SourceFile
- type UploadParams
- type WriteCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JsonOutput = false Quiet = false )
Functions ¶
Types ¶
type CounterWriter ¶
type CounterWriter struct {
// contains filtered or unexported fields
}
func Counter ¶
func Counter(writer io.Writer) *CounterWriter
func ProgressCounter ¶
func ProgressCounter(onWrite WriteCallback, writer io.Writer) *CounterWriter
func (*CounterWriter) Close ¶
func (w *CounterWriter) Close() error
func (*CounterWriter) Count ¶
func (w *CounterWriter) Count() int64
type FilePatched ¶ added in v0.7.0
type FileRemoved ¶ added in v0.7.0
type FileRemoved struct {
Path string
}
type SourceFile ¶ added in v0.7.0
type SourceFile struct { Path string Hashes []rsync.BlockHash }
type UploadParams ¶ added in v0.7.0
type WriteCallback ¶
type WriteCallback func(count int64)
Click to show internal directories.
Click to hide internal directories.