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
V1LifecycleHandler
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
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
Exec
Exec specifies a command to execute in the container.
Declaration
[JsonPropertyName("exec")]
public V1ExecAction Exec { get; set; }
Property Value
View Source
HttpGet
HTTPGet specifies an HTTP GET request to perform.
Declaration
[JsonPropertyName("httpGet")]
public V1HTTPGetAction HttpGet { get; set; }
Property Value
View Source
Sleep
Sleep represents a duration that the container should sleep.
Declaration
[JsonPropertyName("sleep")]
public V1SleepAction Sleep { get; set; }
Property Value
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1LifecycleHandler?)
Declaration
public virtual bool Equals(V1LifecycleHandler? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1LifecycleHandler?, V1LifecycleHandler?)
Declaration
public static bool operator ==(V1LifecycleHandler? left, V1LifecycleHandler? right)
Parameters
Returns
View Source
operator !=(V1LifecycleHandler?, V1LifecycleHandler?)
Declaration
public static bool operator !=(V1LifecycleHandler? left, V1LifecycleHandler? right)
Parameters
Returns
Implements