Rename ManifestBuilder to Builder
This commit is contained in:
10
README.md
10
README.md
@@ -192,13 +192,13 @@ Reading file contents and computing cryptographic hashes for manifest generation
|
||||
### builder.go
|
||||
- **Types**
|
||||
- `FileProgress func(bytesRead int64)` - Callback for file processing progress
|
||||
- `ManifestBuilder struct` - Constructs manifests by adding files one at a time
|
||||
- `Builder struct` - Constructs manifests by adding files one at a time
|
||||
- **Functions**
|
||||
- `NewBuilder() *ManifestBuilder` - Creates a new ManifestBuilder
|
||||
- `NewBuilder() *Builder` - Creates a new Builder
|
||||
- **Methods**
|
||||
- `(*ManifestBuilder) AddFile(path string, size int64, mtime time.Time, reader io.Reader, progress FileProgress) (int64, error)` - Reads file, computes hash, adds to manifest
|
||||
- `(*ManifestBuilder) FileCount() int` - Returns number of files added
|
||||
- `(*ManifestBuilder) Build(w io.Writer) error` - Finalizes and writes manifest
|
||||
- `(*Builder) AddFile(path string, size int64, mtime time.Time, reader io.Reader, progress FileProgress) (int64, error)` - Reads file, computes hash, adds to manifest
|
||||
- `(*Builder) FileCount() int` - Returns number of files added
|
||||
- `(*Builder) Build(w io.Writer) error` - Finalizes and writes manifest
|
||||
|
||||
### serialize.go
|
||||
- **Constants**
|
||||
|
||||
Reference in New Issue
Block a user