pachyderm: github.com/pachyderm/pachyderm/src/server/pkg/lease Index | Files

package lease

import "github.com/pachyderm/pachyderm/src/server/pkg/lease"

Index

Package Files

lease.go

type Leaser Uses

type Leaser interface {
    // lease the resource r for duration d.  When the lease expires, invoke `revoke`
    // a lease can be refreshed by calling Lease() again on the same resource
    Lease(r string, d time.Duration, revoke func())
    // return the resource r.
    Return(r string)
}

Leaser manages resources via leases

func NewLeaser Uses

func NewLeaser() Leaser

NewLeaser creates a new lease leaser

Package lease imports 1 packages (graph). Updated 2019-02-24. Refresh now. Tools for package owners.