Show / Hide Table of Contents

Class LeaseLock

Inheritance
object
MetaObjectLock<V1Lease>
LeaseLock
Implements
ILock
Inherited Members
MetaObjectLock<V1Lease>.GetAsync(CancellationToken)
MetaObjectLock<V1Lease>.CreateAsync(LeaderElectionRecord, CancellationToken)
MetaObjectLock<V1Lease>.UpdateAsync(LeaderElectionRecord, CancellationToken)
MetaObjectLock<V1Lease>.Describe()
MetaObjectLock<V1Lease>.Identity
MetaObjectLock<V1Lease>.OnHttpError
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: k8s.LeaderElection.ResourceLock
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
Type Name Description
IKubernetes client
string namespace
string name
string identity

Methods

View Source

CreateMetaObjectAsync(IKubernetes, V1Lease, string, CancellationToken)

Declaration
protected override Task<V1Lease> CreateMetaObjectAsync(IKubernetes client, V1Lease obj, string namespaceParameter, CancellationToken cancellationToken)
Parameters
Type Name Description
IKubernetes client
V1Lease obj
string namespaceParameter
CancellationToken cancellationToken
Returns
Type Description
Task<V1Lease>
Overrides
MetaObjectLock<V1Lease>.CreateMetaObjectAsync(IKubernetes, V1Lease, string, CancellationToken)
View Source

GetLeaderElectionRecord(V1Lease)

Declaration
protected override LeaderElectionRecord GetLeaderElectionRecord(V1Lease obj)
Parameters
Type Name Description
V1Lease obj
Returns
Type Description
LeaderElectionRecord
Overrides
MetaObjectLock<V1Lease>.GetLeaderElectionRecord(V1Lease)
View Source

ReadMetaObjectAsync(IKubernetes, string, string, CancellationToken)

Declaration
protected override Task<V1Lease> ReadMetaObjectAsync(IKubernetes client, string name, string namespaceParameter, CancellationToken cancellationToken)
Parameters
Type Name Description
IKubernetes client
string name
string namespaceParameter
CancellationToken cancellationToken
Returns
Type Description
Task<V1Lease>
Overrides
MetaObjectLock<V1Lease>.ReadMetaObjectAsync(IKubernetes, string, string, CancellationToken)
View Source

ReplaceMetaObjectAsync(IKubernetes, V1Lease, string, string, CancellationToken)

Declaration
protected override Task<V1Lease> ReplaceMetaObjectAsync(IKubernetes client, V1Lease obj, string name, string namespaceParameter, CancellationToken cancellationToken)
Parameters
Type Name Description
IKubernetes client
V1Lease obj
string name
string namespaceParameter
CancellationToken cancellationToken
Returns
Type Description
Task<V1Lease>
Overrides
MetaObjectLock<V1Lease>.ReplaceMetaObjectAsync(IKubernetes, V1Lease, string, string, CancellationToken)
View Source

SetLeaderElectionRecord(LeaderElectionRecord, V1Lease)

Declaration
protected override V1Lease SetLeaderElectionRecord(LeaderElectionRecord record, V1Lease metaObj)
Parameters
Type Name Description
LeaderElectionRecord record
V1Lease metaObj
Returns
Type Description
V1Lease
Overrides
MetaObjectLock<V1Lease>.SetLeaderElectionRecord(LeaderElectionRecord, V1Lease)

Implements

ILock
  • View Source
In this article
Back to top Generated by DocFX