MCPcopy Create free account
hub / github.com/containers/image / BaseVariantName

Method BaseVariantName

pkg/compression/internal/types.go:57–59  ·  view source on GitHub ↗

BaseVariantName returns the name of the “base variant” of the compression algorithm. It is either equal to Name() of the same algorithm, or equal to Name() of some other Algorithm (the “base variant”). This supports a single level of “is-a” relationship between compression algorithms, e.g. where "zs

()

Source from the content-addressed store, hash-verified

55// It is either equal to Name() of the same algorithm, or equal to Name() of some other Algorithm (the “base variant”).
56// This supports a single level of “is-a” relationship between compression algorithms, e.g. where "zstd:chunked" data is valid "zstd" data.
57func (c Algorithm) BaseVariantName() string {
58 return c.baseVariantName
59}
60
61// AlgorithmCompressor returns the compressor field of algo.
62// This is a function instead of a public method so that it is only callable by code

Calls

no outgoing calls

Tested by

no test coverage detected