drone/internal/gitrpc/lock/interface.go
Enver Bisevac 1cf07b6417 initial work on create repository (#27)
* initial work on create repository

* create repository as single method call using client stream

* resources handler and files

* minor fix for wire dep graph
2022-10-11 17:48:04 +02:00

9 lines
161 B
Go

package lock
import "context"
// Locker acquires new lock based on key.
type Locker interface {
AcquireLock(ctx context.Context, key string) (*Lock, error)
}