kubernetes/staging/src/k8s.io/client-go/tools/leaderelection/resourcelock/leaselock.go

type LeaseLock

// Get returns the election record from a Lease spec
func (ll *LeaseLock) Get(ctx context.Context) (*LeaderElectionRecord, []byte, error) {}

// Create attempts to create a Lease
func (ll *LeaseLock) Create(ctx context.Context, ler LeaderElectionRecord) error {}

// Update will update an existing Lease spec.
func (ll *LeaseLock) Update(ctx context.Context, ler LeaderElectionRecord) error {}

// RecordEvent in leader election while adding meta-data
func (ll *LeaseLock) RecordEvent(s string) {}

// Describe is used to convert details on current resource lock
// into a string
func (ll *LeaseLock) Describe() string {}

// Identity returns the Identity of the lock
func (ll *LeaseLock) Identity() string {}

func LeaseSpecToLeaderElectionRecord(spec *coordinationv1.LeaseSpec) *LeaderElectionRecord {}

func LeaderElectionRecordToLeaseSpec(ler *LeaderElectionRecord) coordinationv1.LeaseSpec {}