Versions in this module Expand all Collapse all v1 v1.3.4 Apr 16, 2020 v1.0.0 May 17, 2020 Changes in this version + const GRPCHeader + func FromContext(ctx context.Context) (string, bool) + func SynchronousDelete(ctx context.Context, o *DeleteOptions) error + func WithLease(ctx context.Context, lid string) context.Context + type DeleteOpt func(context.Context, *DeleteOptions) error + type DeleteOptions struct + Synchronous bool + type Lease struct + CreatedAt time.Time + ID string + Labels map[string]string + type Manager interface + AddResource func(context.Context, Lease, Resource) error + Create func(context.Context, ...Opt) (Lease, error) + Delete func(context.Context, Lease, ...DeleteOpt) error + DeleteResource func(context.Context, Lease, Resource) error + List func(context.Context, ...string) ([]Lease, error) + ListResources func(context.Context, Lease) ([]Resource, error) + type Opt func(*Lease) error + func WithExpiration(d time.Duration) Opt + func WithID(id string) Opt + func WithLabels(labels map[string]string) Opt + func WithRandomID() Opt + type Resource struct + ID string + Type string