MCPcopy Create free account
hub / github.com/coder/coder / DataBuilder

Struct DataBuilder

provisionersdk/proto/dataupload.go:16–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14)
15
16type DataBuilder struct {
17 Type DataUploadType
18 Hash []byte
19 Size int64
20 ChunkCount int32
21
22 // chunkIndex is the index of the next chunk to be added.
23 chunkIndex int32
24 mu sync.Mutex
25 data []byte
26}
27
28func NewDataBuilder(req *DataUpload) (*DataBuilder, error) {
29 if len(req.DataHash) != 32 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected