package leases
import "github.com/containerd/containerd/leases"
Index ¶
- Constants
- func Lease(ctx context.Context) (string, bool)
- func WithLease(ctx context.Context, lid string) context.Context
Constants ¶
const ( // GRPCHeader defines the header name for specifying a containerd lease. GRPCHeader = "containerd-lease" )
Functions ¶
func Lease ¶
Lease returns the lease from the context.
func WithLease ¶
WithLease sets a given lease on the context
Source Files ¶
- Version
- v1.1.6
- Published
- Feb 14, 2019
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 36 minutes ago –
Tools for package owners.