leases

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GRPCHeader defines the header name for specifying a containerd lease.
	GRPCHeader = "containerd-lease"
)

Variables

This section is empty.

Functions

func Lease

func Lease(ctx context.Context) (string, bool)

Lease returns the lease from the context.

func WithLease

func WithLease(ctx context.Context, lid string) context.Context

WithLease sets a given lease on the context

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL