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

Function algorithmsByNames

copy/single.go:994–1004  ·  view source on GitHub ↗

algorithmsByNames returns slice of Algorithms from a sequence of Algorithm Names

(names iter.Seq[string])

Source from the content-addressed store, hash-verified

992
993// algorithmsByNames returns slice of Algorithms from a sequence of Algorithm Names
994func algorithmsByNames(names iter.Seq[string]) ([]compressiontypes.Algorithm, error) {
995 result := []compressiontypes.Algorithm{}
996 for name := range names {
997 algo, err := compression.AlgorithmByName(name)
998 if err != nil {
999 return nil, err
1000 }
1001 result = append(result, algo)
1002 }
1003 return result, nil
1004}

Callers 2

copyLayersMethod · 0.85

Calls 1

AlgorithmByNameFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…