MCPcopy
hub / github.com/caddyserver/certmagic / Lock

Method Lock

account_test.go:129–132  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

127 return r.Storage.Load(ctx, key)
128}
129func (r *recordingStorage) Lock(ctx context.Context, name string) error {
130 r.record("Lock", name)
131 return r.Storage.Lock(ctx, name)
132}
133func (r *recordingStorage) Stat(ctx context.Context, key string) (KeyInfo, error) {
134 r.record("Stat", key)
135 return r.Storage.Stat(ctx, key)

Callers

nothing calls this directly

Calls 2

recordMethod · 0.95
LockMethod · 0.65

Tested by

no test coverage detected