clair: github.com/coreos/clair/database/pgsql/lock Index | Files

package lock

import "github.com/coreos/clair/database/pgsql/lock"

Index

Package Files

lock.go

func AcquireLock Uses

func AcquireLock(tx *sql.Tx, lockName, whoami string, desiredDuration time.Duration) (bool, time.Time, error)

func ExtendLock Uses

func ExtendLock(tx *sql.Tx, lockName, whoami string, desiredDuration time.Duration) (bool, time.Time, error)

func PruneLocks Uses

func PruneLocks(tx *sql.Tx) error

pruneLocks removes every expired locks from the database

func ReleaseLock Uses

func ReleaseLock(tx *sql.Tx, name, owner string) error

Package lock imports 5 packages (graph) and is imported by 2 packages. Updated 2019-03-27. Refresh now. Tools for package owners.