Class LeaseLock
Assembly: KubernetesClient.dll
Syntax
public class LeaseLock : MetaObjectLock<V1Lease>, ILock
Constructors
View Source
LeaseLock(IKubernetes, string, string, string)
Declaration
public LeaseLock(IKubernetes client, string @namespace, string name, string identity)
Parameters
Methods
View Source
Declaration
protected override Task<V1Lease> CreateMetaObjectAsync(IKubernetes client, V1Lease obj, string namespaceParameter, CancellationToken cancellationToken)
Parameters
Returns
Overrides
View Source
GetLeaderElectionRecord(V1Lease)
Declaration
protected override LeaderElectionRecord GetLeaderElectionRecord(V1Lease obj)
Parameters
Returns
Overrides
View Source
Declaration
protected override Task<V1Lease> ReadMetaObjectAsync(IKubernetes client, string name, string namespaceParameter, CancellationToken cancellationToken)
Parameters
Returns
Overrides
View Source
Declaration
protected override Task<V1Lease> ReplaceMetaObjectAsync(IKubernetes client, V1Lease obj, string name, string namespaceParameter, CancellationToken cancellationToken)
Parameters
Returns
Overrides
View Source
SetLeaderElectionRecord(LeaderElectionRecord, V1Lease)
Declaration
protected override V1Lease SetLeaderElectionRecord(LeaderElectionRecord record, V1Lease metaObj)
Parameters
Returns
Overrides
Implements