Show / Hide Table of Contents

Class V1LifecycleHandler

LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.

Inheritance
object
V1LifecycleHandler
Implements
IEquatable<V1LifecycleHandler>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1LifecycleHandler : IEquatable<V1LifecycleHandler>

Constructors

V1LifecycleHandler()

Declaration
public V1LifecycleHandler()

V1LifecycleHandler(V1LifecycleHandler)

Declaration
protected V1LifecycleHandler(V1LifecycleHandler original)
Parameters
Type Name Description
V1LifecycleHandler original

Properties

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

Exec

Exec specifies a command to execute in the container.

Declaration
[JsonPropertyName("exec")]
public V1ExecAction Exec { get; set; }
Property Value
Type Description
V1ExecAction

HttpGet

HTTPGet specifies an HTTP GET request to perform.

Declaration
[JsonPropertyName("httpGet")]
public V1HTTPGetAction HttpGet { get; set; }
Property Value
Type Description
V1HTTPGetAction

Sleep

Sleep represents a duration that the container should sleep.

Declaration
[JsonPropertyName("sleep")]
public V1SleepAction Sleep { get; set; }
Property Value
Type Description
V1SleepAction

TcpSocket

Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for backward compatibility. There is no validation of this field and lifecycle hooks will fail at runtime when it is specified.

Declaration
[JsonPropertyName("tcpSocket")]
public V1TCPSocketAction TcpSocket { get; set; }
Property Value
Type Description
V1TCPSocketAction

Methods

Equals(object?)

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

Equals(V1LifecycleHandler?)

Declaration
public virtual bool Equals(V1LifecycleHandler? other)
Parameters
Type Name Description
V1LifecycleHandler other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1LifecycleHandler?, V1LifecycleHandler?)

Declaration
public static bool operator ==(V1LifecycleHandler? left, V1LifecycleHandler? right)
Parameters
Type Name Description
V1LifecycleHandler left
V1LifecycleHandler right
Returns
Type Description
bool

operator !=(V1LifecycleHandler?, V1LifecycleHandler?)

Declaration
public static bool operator !=(V1LifecycleHandler? left, V1LifecycleHandler? right)
Parameters
Type Name Description
V1LifecycleHandler left
V1LifecycleHandler right
Returns
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX