Show / Hide Table of Contents

Class LeaderElectionRecord

LeaderElectionRecord is the record that is stored in the leader election annotation. This information should be used for observational purposes only and could be replaced with a random string (e.g. UUID) with only slight modification of this code.

Inheritance
object
LeaderElectionRecord
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.LeaderElection
Assembly: KubernetesClient.dll
Syntax
public class LeaderElectionRecord

Constructors

View Source

LeaderElectionRecord()

Declaration
public LeaderElectionRecord()

Properties

View Source

AcquireTime

acquire time

Declaration
public DateTime? AcquireTime { get; set; }
Property Value
Type Description
DateTime?
View Source

HolderIdentity

the ID that owns the lease. If empty, no one owns this lease and all callers may acquire.

Declaration
public string HolderIdentity { get; set; }
Property Value
Type Description
string
View Source

LeaderTransitions

leader transitions

Declaration
public int LeaderTransitions { get; set; }
Property Value
Type Description
int
View Source

LeaseDurationSeconds

LeaseDuration in seconds

Declaration
public int LeaseDurationSeconds { get; set; }
Property Value
Type Description
int
View Source

RenewTime

renew time

Declaration
public DateTime? RenewTime { get; set; }
Property Value
Type Description
DateTime?

Methods

View Source

Equals(object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(LeaderElectionRecord)

Declaration
protected bool Equals(LeaderElectionRecord other)
Parameters
Type Name Description
LeaderElectionRecord other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
  • View Source
In this article
Back to top Generated by DocFX