batchjobdefinition

package
v0.0.0-...-c2cc54e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 (EvaluateOnExitAttributes) InternalRef

func (eoe EvaluateOnExitAttributes) InternalRef() (terra.Reference, error)

func (EvaluateOnExitAttributes) InternalTokens

func (eoe EvaluateOnExitAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EvaluateOnExitAttributes) InternalWithRef

func (EvaluateOnExitAttributes) OnExitCode

func (eoe EvaluateOnExitAttributes) OnExitCode() terra.StringValue

func (EvaluateOnExitAttributes) OnReason

func (EvaluateOnExitAttributes) OnStatusReason

func (eoe EvaluateOnExitAttributes) OnStatusReason() terra.StringValue

type EvaluateOnExitState

type EvaluateOnExitState struct {
	Action         string `json:"action"`
	OnExitCode     string `json:"on_exit_code"`
	OnReason       string `json:"on_reason"`
	OnStatusReason string `json:"on_status_reason"`
}

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 (RetryStrategyAttributes) EvaluateOnExit

func (RetryStrategyAttributes) InternalRef

func (rs RetryStrategyAttributes) InternalRef() (terra.Reference, error)

func (RetryStrategyAttributes) InternalTokens

func (rs RetryStrategyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RetryStrategyAttributes) InternalWithRef

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL