Documentation ¶
Index ¶
- type EvaluateOnExit
- type EvaluateOnExitAttributes
- func (eoe EvaluateOnExitAttributes) Action() terra.StringValue
- func (eoe EvaluateOnExitAttributes) InternalRef() (terra.Reference, error)
- func (eoe EvaluateOnExitAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (eoe EvaluateOnExitAttributes) InternalWithRef(ref terra.Reference) EvaluateOnExitAttributes
- func (eoe EvaluateOnExitAttributes) OnExitCode() terra.StringValue
- func (eoe EvaluateOnExitAttributes) OnReason() terra.StringValue
- func (eoe EvaluateOnExitAttributes) OnStatusReason() terra.StringValue
- type EvaluateOnExitState
- type RetryStrategy
- type RetryStrategyAttributes
- func (rs RetryStrategyAttributes) Attempts() terra.NumberValue
- func (rs RetryStrategyAttributes) EvaluateOnExit() terra.ListValue[EvaluateOnExitAttributes]
- func (rs RetryStrategyAttributes) InternalRef() (terra.Reference, error)
- func (rs RetryStrategyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (rs RetryStrategyAttributes) InternalWithRef(ref terra.Reference) RetryStrategyAttributes
- type RetryStrategyState
- type Timeout
- type TimeoutAttributes
- type TimeoutState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvaluateOnExit ¶
type EvaluateOnExit struct { // Action: string, required Action terra.StringValue `hcl:"action,attr" validate:"required"` // OnExitCode: string, optional OnExitCode terra.StringValue `hcl:"on_exit_code,attr"` // OnReason: string, optional OnReason terra.StringValue `hcl:"on_reason,attr"` // OnStatusReason: string, optional OnStatusReason terra.StringValue `hcl:"on_status_reason,attr"` }
type EvaluateOnExitAttributes ¶
type EvaluateOnExitAttributes struct {
// contains filtered or unexported fields
}
func (EvaluateOnExitAttributes) Action ¶
func (eoe EvaluateOnExitAttributes) Action() terra.StringValue
func (EvaluateOnExitAttributes) InternalRef ¶
func (eoe EvaluateOnExitAttributes) InternalRef() (terra.Reference, error)
func (EvaluateOnExitAttributes) InternalTokens ¶
func (eoe EvaluateOnExitAttributes) InternalTokens() (hclwrite.Tokens, error)
func (EvaluateOnExitAttributes) InternalWithRef ¶
func (eoe EvaluateOnExitAttributes) InternalWithRef(ref terra.Reference) EvaluateOnExitAttributes
func (EvaluateOnExitAttributes) OnExitCode ¶
func (eoe EvaluateOnExitAttributes) OnExitCode() terra.StringValue
func (EvaluateOnExitAttributes) OnReason ¶
func (eoe EvaluateOnExitAttributes) OnReason() terra.StringValue
func (EvaluateOnExitAttributes) OnStatusReason ¶
func (eoe EvaluateOnExitAttributes) OnStatusReason() terra.StringValue
type EvaluateOnExitState ¶
type RetryStrategy ¶
type RetryStrategy struct { // Attempts: number, optional Attempts terra.NumberValue `hcl:"attempts,attr"` // EvaluateOnExit: min=0,max=5 EvaluateOnExit []EvaluateOnExit `hcl:"evaluate_on_exit,block" validate:"min=0,max=5"` }
type RetryStrategyAttributes ¶
type RetryStrategyAttributes struct {
// contains filtered or unexported fields
}
func (RetryStrategyAttributes) Attempts ¶
func (rs RetryStrategyAttributes) Attempts() terra.NumberValue
func (RetryStrategyAttributes) EvaluateOnExit ¶
func (rs RetryStrategyAttributes) EvaluateOnExit() terra.ListValue[EvaluateOnExitAttributes]
func (RetryStrategyAttributes) InternalRef ¶
func (rs RetryStrategyAttributes) InternalRef() (terra.Reference, error)
func (RetryStrategyAttributes) InternalTokens ¶
func (rs RetryStrategyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (RetryStrategyAttributes) InternalWithRef ¶
func (rs RetryStrategyAttributes) InternalWithRef(ref terra.Reference) RetryStrategyAttributes
type RetryStrategyState ¶
type RetryStrategyState struct { Attempts float64 `json:"attempts"` EvaluateOnExit []EvaluateOnExitState `json:"evaluate_on_exit"` }
type Timeout ¶
type Timeout struct { // AttemptDurationSeconds: number, optional AttemptDurationSeconds terra.NumberValue `hcl:"attempt_duration_seconds,attr"` }
type TimeoutAttributes ¶
type TimeoutAttributes struct {
// contains filtered or unexported fields
}
func (TimeoutAttributes) AttemptDurationSeconds ¶
func (t TimeoutAttributes) AttemptDurationSeconds() terra.NumberValue
func (TimeoutAttributes) InternalRef ¶
func (t TimeoutAttributes) InternalRef() (terra.Reference, error)
func (TimeoutAttributes) InternalTokens ¶
func (t TimeoutAttributes) InternalTokens() (hclwrite.Tokens, error)
func (TimeoutAttributes) InternalWithRef ¶
func (t TimeoutAttributes) InternalWithRef(ref terra.Reference) TimeoutAttributes
type TimeoutState ¶
type TimeoutState struct {
AttemptDurationSeconds float64 `json:"attempt_duration_seconds"`
}
Click to show internal directories.
Click to hide internal directories.