MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / resourcePath

Method resourcePath

pkg/blobmanager/oci/backend.go:138–140  ·  view source on GitHub ↗
(resourceName string)

Source from the content-addressed store, hash-verified

136}
137
138func (b *Backend) resourcePath(resourceName string) string {
139 return fmt.Sprintf("%s/%s-%s", b.repo, b.prefix, resourceName)
140}
141
142func craftImage(content []byte, resource *pb.CASResource) (v1.Image, error) {
143 if len(content) == 0 {

Callers 5

ExistsMethod · 0.95
UploadMethod · 0.95
DescribeMethod · 0.95
DownloadMethod · 0.95
TestExistsMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestExistsMethod · 0.36