MCPcopy
hub / github.com/benbjohnson/litestream / lockKey

Method lockKey

s3/leaser.go:83–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83func (l *Leaser) lockKey() string {
84 if l.Path == "" {
85 return DefaultLeasePath
86 }
87 return l.Path + "/" + DefaultLeasePath
88}
89
90func (l *Leaser) AcquireLease(ctx context.Context) (*litestream.Lease, error) {
91 existing, etag, err := l.readLease(ctx)

Callers 4

ReleaseLeaseMethod · 0.95
readLeaseMethod · 0.95
writeLeaseMethod · 0.95
TestLeaser_LockKeyFunction · 0.95

Implementers 1

Leasers3/leaser.go

Calls

no outgoing calls

Tested by 1

TestLeaser_LockKeyFunction · 0.76