MCPcopy Create free account
hub / github.com/bufbuild/buf / WithArchiveDefaultCompressionType

Function WithArchiveDefaultCompressionType

private/buf/buffetch/internal/internal.go:719–723  ·  view source on GitHub ↗

WithArchiveDefaultCompressionType sets the default compression type. Note this should never be set for zip.

(defaultCompressionType CompressionType)

Source from the content-addressed store, hash-verified

717//
718// Note this should never be set for zip.
719func WithArchiveDefaultCompressionType(defaultCompressionType CompressionType) ArchiveFormatOption {
720 return func(archiveFormatInfo *archiveFormatInfo) {
721 archiveFormatInfo.defaultCompressionType = defaultCompressionType
722 }
723}
724
725// DirFormatOption is a dir format option.
726type DirFormatOption func(*dirFormatInfo)

Callers 3

newRefParserFunction · 0.92
newSourceRefParserFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…