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

Function WithPrefix

pkg/blobmanager/oci/backend.go:56–60  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

54type NewBackendOpt func(*Backend)
55
56func WithPrefix(prefix string) NewBackendOpt {
57 return func(b *Backend) {
58 b.prefix = prefix
59 }
60}
61
62func NewBackend(repository string, regOpts *RegistryOptions, opts ...NewBackendOpt) (*Backend, error) {
63 b := &Backend{

Callers 1

TestNewBackendMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestNewBackendMethod · 0.68