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

View Source

V1LifecycleHandler()

Declaration
public V1LifecycleHandler()
View Source

V1LifecycleHandler(V1LifecycleHandler)

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

Properties

View Source

EqualityContract

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

Exec

Exec specifies a command to execute in the container.

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

HttpGet

HTTPGet specifies an HTTP GET request to perform.

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

Sleep

Sleep represents a duration that the container should sleep.

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

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

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(V1LifecycleHandler?)

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

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

View Source

operator ==(V1LifecycleHandler?, V1LifecycleHandler?)

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

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>
  • View Source
In this article
Back to top Generated by DocFX