Versions in this module Expand all Collapse all v4 v4.0.0 May 16, 2022 Changes in this version + const DefaultTTL + func IsAlreadyExists(err error) bool + func IsInvalidConfig(err error) bool + func IsNotFound(err error) bool + func IsOwnerMismatch(err error) bool + type AcquireOptions struct + Owner string + TTL time.Duration + type Config struct + DynClient dynamic.Interface + GVR schema.GroupVersionResource + type Interface interface + Lock func(name string) NamespaceableLock + type KubeLock struct + func New(config Config) (*KubeLock, error) + func (k *KubeLock) Lock(name string) NamespaceableLock + type Lock interface + Acquire func(ctx context.Context, name string, options AcquireOptions) error + Release func(ctx context.Context, name string, options ReleaseOptions) error + type NamespaceableLock interface + Namespace func(ns string) Lock + type ReleaseOptions struct + Owner string Other modules containing this package github.com/giantswarm/kubelock github.com/giantswarm/kubelock/v2 github.com/giantswarm/kubelock/v3