pachyderm: Index | Files

package lease

import ""


Package Files


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.