appmeshroute

package
v0.0.0-...-964ba77 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 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 GrpcRoute

type GrpcRoute struct {
	// GrpcRouteAction: required
	Action *GrpcRouteAction `hcl:"action,block" validate:"required"`
	// GrpcRouteMatch: optional
	Match *GrpcRouteMatch `hcl:"match,block"`
	// GrpcRouteRetryPolicy: optional
	RetryPolicy *GrpcRouteRetryPolicy `hcl:"retry_policy,block"`
	// GrpcRouteTimeout: optional
	Timeout *GrpcRouteTimeout `hcl:"timeout,block"`
}

type GrpcRouteAction

type GrpcRouteAction struct {
	// GrpcRouteActionWeightedTarget: min=1,max=10
	WeightedTarget []GrpcRouteActionWeightedTarget `hcl:"weighted_target,block" validate:"min=1,max=10"`
}

type GrpcRouteActionAttributes

type GrpcRouteActionAttributes struct {
	// contains filtered or unexported fields
}

func (GrpcRouteActionAttributes) InternalRef

func (a GrpcRouteActionAttributes) InternalRef() (terra.Reference, error)

func (GrpcRouteActionAttributes) InternalTokens

func (a GrpcRouteActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GrpcRouteActionAttributes) InternalWithRef

func (GrpcRouteActionAttributes) WeightedTarget

type GrpcRouteActionState

type GrpcRouteActionState struct {
	WeightedTarget []GrpcRouteActionWeightedTargetState `json:"weighted_target"`
}

type GrpcRouteActionWeightedTarget

type GrpcRouteActionWeightedTarget struct {
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// VirtualNode: string, required
	VirtualNode terra.StringValue `hcl:"virtual_node,attr" validate:"required"`
	// Weight: number, required
	Weight terra.NumberValue `hcl:"weight,attr" validate:"required"`
}

type GrpcRouteActionWeightedTargetAttributes

type GrpcRouteActionWeightedTargetAttributes struct {
	// contains filtered or unexported fields
}

func (GrpcRouteActionWeightedTargetAttributes) InternalRef

func (GrpcRouteActionWeightedTargetAttributes) InternalTokens

func (GrpcRouteActionWeightedTargetAttributes) InternalWithRef

func (GrpcRouteActionWeightedTargetAttributes) Port

func (GrpcRouteActionWeightedTargetAttributes) VirtualNode

func (GrpcRouteActionWeightedTargetAttributes) Weight

type GrpcRouteActionWeightedTargetState

type GrpcRouteActionWeightedTargetState struct {
	Port        float64 `json:"port"`
	VirtualNode string  `json:"virtual_node"`
	Weight      float64 `json:"weight"`
}

type GrpcRouteAttributes

type GrpcRouteAttributes struct {
	// contains filtered or unexported fields
}

func (GrpcRouteAttributes) Action

func (GrpcRouteAttributes) InternalRef

func (gr GrpcRouteAttributes) InternalRef() (terra.Reference, error)

func (GrpcRouteAttributes) InternalTokens

func (gr GrpcRouteAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GrpcRouteAttributes) InternalWithRef

func (gr GrpcRouteAttributes) InternalWithRef(ref terra.Reference) GrpcRouteAttributes

func (GrpcRouteAttributes) Match

func (GrpcRouteAttributes) RetryPolicy

func (GrpcRouteAttributes) Timeout

type GrpcRouteMatch

type GrpcRouteMatch struct {
	// MethodName: string, optional
	MethodName terra.StringValue `hcl:"method_name,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// ServiceName: string, optional
	ServiceName terra.StringValue `hcl:"service_name,attr"`
	// Metadata: min=0,max=10
	Metadata []Metadata `hcl:"metadata,block" validate:"min=0,max=10"`
}

type GrpcRouteMatchAttributes

type GrpcRouteMatchAttributes struct {
	// contains filtered or unexported fields
}

func (GrpcRouteMatchAttributes) InternalRef

func (m GrpcRouteMatchAttributes) InternalRef() (terra.Reference, error)

func (GrpcRouteMatchAttributes) InternalTokens

func (m GrpcRouteMatchAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GrpcRouteMatchAttributes) InternalWithRef

func (GrpcRouteMatchAttributes) Metadata

func (GrpcRouteMatchAttributes) MethodName

func (GrpcRouteMatchAttributes) Port

func (GrpcRouteMatchAttributes) Prefix

func (GrpcRouteMatchAttributes) ServiceName

func (m GrpcRouteMatchAttributes) ServiceName() terra.StringValue

type GrpcRouteMatchState

type GrpcRouteMatchState struct {
	MethodName  string          `json:"method_name"`
	Port        float64         `json:"port"`
	Prefix      string          `json:"prefix"`
	ServiceName string          `json:"service_name"`
	Metadata    []MetadataState `json:"metadata"`
}

type GrpcRouteRetryPolicy

type GrpcRouteRetryPolicy struct {
	// GrpcRetryEvents: set of string, optional
	GrpcRetryEvents terra.SetValue[terra.StringValue] `hcl:"grpc_retry_events,attr"`
	// HttpRetryEvents: set of string, optional
	HttpRetryEvents terra.SetValue[terra.StringValue] `hcl:"http_retry_events,attr"`
	// MaxRetries: number, required
	MaxRetries terra.NumberValue `hcl:"max_retries,attr" validate:"required"`
	// TcpRetryEvents: set of string, optional
	TcpRetryEvents terra.SetValue[terra.StringValue] `hcl:"tcp_retry_events,attr"`
	// GrpcRouteRetryPolicyPerRetryTimeout: required
	PerRetryTimeout *GrpcRouteRetryPolicyPerRetryTimeout `hcl:"per_retry_timeout,block" validate:"required"`
}

type GrpcRouteRetryPolicyAttributes

type GrpcRouteRetryPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (GrpcRouteRetryPolicyAttributes) GrpcRetryEvents

func (GrpcRouteRetryPolicyAttributes) HttpRetryEvents

func (GrpcRouteRetryPolicyAttributes) InternalRef

func (GrpcRouteRetryPolicyAttributes) InternalTokens

func (rp GrpcRouteRetryPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GrpcRouteRetryPolicyAttributes) InternalWithRef

func (GrpcRouteRetryPolicyAttributes) MaxRetries

func (GrpcRouteRetryPolicyAttributes) PerRetryTimeout

func (GrpcRouteRetryPolicyAttributes) TcpRetryEvents

type GrpcRouteRetryPolicyPerRetryTimeout

type GrpcRouteRetryPolicyPerRetryTimeout struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type GrpcRouteRetryPolicyPerRetryTimeoutAttributes

type GrpcRouteRetryPolicyPerRetryTimeoutAttributes struct {
	// contains filtered or unexported fields
}

func (GrpcRouteRetryPolicyPerRetryTimeoutAttributes) InternalRef

func (GrpcRouteRetryPolicyPerRetryTimeoutAttributes) InternalTokens

func (GrpcRouteRetryPolicyPerRetryTimeoutAttributes) InternalWithRef

func (GrpcRouteRetryPolicyPerRetryTimeoutAttributes) Unit

func (GrpcRouteRetryPolicyPerRetryTimeoutAttributes) Value

type GrpcRouteRetryPolicyPerRetryTimeoutState

type GrpcRouteRetryPolicyPerRetryTimeoutState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type GrpcRouteRetryPolicyState

type GrpcRouteRetryPolicyState struct {
	GrpcRetryEvents []string                                   `json:"grpc_retry_events"`
	HttpRetryEvents []string                                   `json:"http_retry_events"`
	MaxRetries      float64                                    `json:"max_retries"`
	TcpRetryEvents  []string                                   `json:"tcp_retry_events"`
	PerRetryTimeout []GrpcRouteRetryPolicyPerRetryTimeoutState `json:"per_retry_timeout"`
}

type GrpcRouteState

type GrpcRouteState struct {
	Action      []GrpcRouteActionState      `json:"action"`
	Match       []GrpcRouteMatchState       `json:"match"`
	RetryPolicy []GrpcRouteRetryPolicyState `json:"retry_policy"`
	Timeout     []GrpcRouteTimeoutState     `json:"timeout"`
}

type GrpcRouteTimeout

type GrpcRouteTimeout struct {
	// GrpcRouteTimeoutIdle: optional
	Idle *GrpcRouteTimeoutIdle `hcl:"idle,block"`
	// GrpcRouteTimeoutPerRequest: optional
	PerRequest *GrpcRouteTimeoutPerRequest `hcl:"per_request,block"`
}

type GrpcRouteTimeoutAttributes

type GrpcRouteTimeoutAttributes struct {
	// contains filtered or unexported fields
}

func (GrpcRouteTimeoutAttributes) Idle

func (GrpcRouteTimeoutAttributes) InternalRef

func (t GrpcRouteTimeoutAttributes) InternalRef() (terra.Reference, error)

func (GrpcRouteTimeoutAttributes) InternalTokens

func (t GrpcRouteTimeoutAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GrpcRouteTimeoutAttributes) InternalWithRef

func (GrpcRouteTimeoutAttributes) PerRequest

type GrpcRouteTimeoutIdle

type GrpcRouteTimeoutIdle struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type GrpcRouteTimeoutIdleAttributes

type GrpcRouteTimeoutIdleAttributes struct {
	// contains filtered or unexported fields
}

func (GrpcRouteTimeoutIdleAttributes) InternalRef

func (GrpcRouteTimeoutIdleAttributes) InternalTokens

func (i GrpcRouteTimeoutIdleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GrpcRouteTimeoutIdleAttributes) InternalWithRef

func (GrpcRouteTimeoutIdleAttributes) Unit

func (GrpcRouteTimeoutIdleAttributes) Value

type GrpcRouteTimeoutIdleState

type GrpcRouteTimeoutIdleState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type GrpcRouteTimeoutPerRequest

type GrpcRouteTimeoutPerRequest struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type GrpcRouteTimeoutPerRequestAttributes

type GrpcRouteTimeoutPerRequestAttributes struct {
	// contains filtered or unexported fields
}

func (GrpcRouteTimeoutPerRequestAttributes) InternalRef

func (GrpcRouteTimeoutPerRequestAttributes) InternalTokens

func (GrpcRouteTimeoutPerRequestAttributes) InternalWithRef

func (GrpcRouteTimeoutPerRequestAttributes) Unit

func (GrpcRouteTimeoutPerRequestAttributes) Value

type GrpcRouteTimeoutPerRequestState

type GrpcRouteTimeoutPerRequestState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type GrpcRouteTimeoutState

type GrpcRouteTimeoutState struct {
	Idle       []GrpcRouteTimeoutIdleState       `json:"idle"`
	PerRequest []GrpcRouteTimeoutPerRequestState `json:"per_request"`
}

type Http2Route

type Http2Route struct {
	// Http2RouteAction: required
	Action *Http2RouteAction `hcl:"action,block" validate:"required"`
	// Http2RouteMatch: required
	Match *Http2RouteMatch `hcl:"match,block" validate:"required"`
	// Http2RouteRetryPolicy: optional
	RetryPolicy *Http2RouteRetryPolicy `hcl:"retry_policy,block"`
	// Http2RouteTimeout: optional
	Timeout *Http2RouteTimeout `hcl:"timeout,block"`
}

type Http2RouteAction

type Http2RouteAction struct {
	// Http2RouteActionWeightedTarget: min=1,max=10
	WeightedTarget []Http2RouteActionWeightedTarget `hcl:"weighted_target,block" validate:"min=1,max=10"`
}

type Http2RouteActionAttributes

type Http2RouteActionAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteActionAttributes) InternalRef

func (a Http2RouteActionAttributes) InternalRef() (terra.Reference, error)

func (Http2RouteActionAttributes) InternalTokens

func (a Http2RouteActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (Http2RouteActionAttributes) InternalWithRef

func (Http2RouteActionAttributes) WeightedTarget

type Http2RouteActionState

type Http2RouteActionState struct {
	WeightedTarget []Http2RouteActionWeightedTargetState `json:"weighted_target"`
}

type Http2RouteActionWeightedTarget

type Http2RouteActionWeightedTarget struct {
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// VirtualNode: string, required
	VirtualNode terra.StringValue `hcl:"virtual_node,attr" validate:"required"`
	// Weight: number, required
	Weight terra.NumberValue `hcl:"weight,attr" validate:"required"`
}

type Http2RouteActionWeightedTargetAttributes

type Http2RouteActionWeightedTargetAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteActionWeightedTargetAttributes) InternalRef

func (Http2RouteActionWeightedTargetAttributes) InternalTokens

func (Http2RouteActionWeightedTargetAttributes) InternalWithRef

func (Http2RouteActionWeightedTargetAttributes) Port

func (Http2RouteActionWeightedTargetAttributes) VirtualNode

func (Http2RouteActionWeightedTargetAttributes) Weight

type Http2RouteActionWeightedTargetState

type Http2RouteActionWeightedTargetState struct {
	Port        float64 `json:"port"`
	VirtualNode string  `json:"virtual_node"`
	Weight      float64 `json:"weight"`
}

type Http2RouteAttributes

type Http2RouteAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteAttributes) Action

func (Http2RouteAttributes) InternalRef

func (hr Http2RouteAttributes) InternalRef() (terra.Reference, error)

func (Http2RouteAttributes) InternalTokens

func (hr Http2RouteAttributes) InternalTokens() (hclwrite.Tokens, error)

func (Http2RouteAttributes) InternalWithRef

func (hr Http2RouteAttributes) InternalWithRef(ref terra.Reference) Http2RouteAttributes

func (Http2RouteAttributes) Match

func (Http2RouteAttributes) RetryPolicy

func (Http2RouteAttributes) Timeout

type Http2RouteMatch

type Http2RouteMatch struct {
	// Method: string, optional
	Method terra.StringValue `hcl:"method,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Scheme: string, optional
	Scheme terra.StringValue `hcl:"scheme,attr"`
	// Http2RouteMatchHeader: min=0,max=10
	Header []Http2RouteMatchHeader `hcl:"header,block" validate:"min=0,max=10"`
	// Http2RouteMatchPath: optional
	Path *Http2RouteMatchPath `hcl:"path,block"`
	// Http2RouteMatchQueryParameter: min=0,max=10
	QueryParameter []Http2RouteMatchQueryParameter `hcl:"query_parameter,block" validate:"min=0,max=10"`
}

type Http2RouteMatchAttributes

type Http2RouteMatchAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteMatchAttributes) Header

func (Http2RouteMatchAttributes) InternalRef

func (m Http2RouteMatchAttributes) InternalRef() (terra.Reference, error)

func (Http2RouteMatchAttributes) InternalTokens

func (m Http2RouteMatchAttributes) InternalTokens() (hclwrite.Tokens, error)

func (Http2RouteMatchAttributes) InternalWithRef

func (Http2RouteMatchAttributes) Method

func (Http2RouteMatchAttributes) Path

func (Http2RouteMatchAttributes) Port

func (Http2RouteMatchAttributes) Prefix

func (Http2RouteMatchAttributes) QueryParameter

func (Http2RouteMatchAttributes) Scheme

type Http2RouteMatchHeader

type Http2RouteMatchHeader struct {
	// Invert: bool, optional
	Invert terra.BoolValue `hcl:"invert,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Http2RouteMatchHeaderMatch: optional
	Match *Http2RouteMatchHeaderMatch `hcl:"match,block"`
}

type Http2RouteMatchHeaderAttributes

type Http2RouteMatchHeaderAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteMatchHeaderAttributes) InternalRef

func (Http2RouteMatchHeaderAttributes) InternalTokens

func (h Http2RouteMatchHeaderAttributes) InternalTokens() (hclwrite.Tokens, error)

func (Http2RouteMatchHeaderAttributes) InternalWithRef

func (Http2RouteMatchHeaderAttributes) Invert

func (Http2RouteMatchHeaderAttributes) Match

func (Http2RouteMatchHeaderAttributes) Name

type Http2RouteMatchHeaderMatch

type Http2RouteMatchHeaderMatch struct {
	// Exact: string, optional
	Exact terra.StringValue `hcl:"exact,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Regex: string, optional
	Regex terra.StringValue `hcl:"regex,attr"`
	// Suffix: string, optional
	Suffix terra.StringValue `hcl:"suffix,attr"`
	// Http2RouteMatchHeaderMatchRange: optional
	Range *Http2RouteMatchHeaderMatchRange `hcl:"range,block"`
}

type Http2RouteMatchHeaderMatchAttributes

type Http2RouteMatchHeaderMatchAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteMatchHeaderMatchAttributes) Exact

func (Http2RouteMatchHeaderMatchAttributes) InternalRef

func (Http2RouteMatchHeaderMatchAttributes) InternalTokens

func (Http2RouteMatchHeaderMatchAttributes) InternalWithRef

func (Http2RouteMatchHeaderMatchAttributes) Prefix

func (Http2RouteMatchHeaderMatchAttributes) Range

func (Http2RouteMatchHeaderMatchAttributes) Regex

func (Http2RouteMatchHeaderMatchAttributes) Suffix

type Http2RouteMatchHeaderMatchRange

type Http2RouteMatchHeaderMatchRange struct {
	// End: number, required
	End terra.NumberValue `hcl:"end,attr" validate:"required"`
	// Start: number, required
	Start terra.NumberValue `hcl:"start,attr" validate:"required"`
}

type Http2RouteMatchHeaderMatchRangeAttributes

type Http2RouteMatchHeaderMatchRangeAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteMatchHeaderMatchRangeAttributes) End

func (Http2RouteMatchHeaderMatchRangeAttributes) InternalRef

func (Http2RouteMatchHeaderMatchRangeAttributes) InternalTokens

func (Http2RouteMatchHeaderMatchRangeAttributes) InternalWithRef

func (Http2RouteMatchHeaderMatchRangeAttributes) Start

type Http2RouteMatchHeaderMatchRangeState

type Http2RouteMatchHeaderMatchRangeState struct {
	End   float64 `json:"end"`
	Start float64 `json:"start"`
}

type Http2RouteMatchHeaderMatchState

type Http2RouteMatchHeaderMatchState struct {
	Exact  string                                 `json:"exact"`
	Prefix string                                 `json:"prefix"`
	Regex  string                                 `json:"regex"`
	Suffix string                                 `json:"suffix"`
	Range  []Http2RouteMatchHeaderMatchRangeState `json:"range"`
}

type Http2RouteMatchHeaderState

type Http2RouteMatchHeaderState struct {
	Invert bool                              `json:"invert"`
	Name   string                            `json:"name"`
	Match  []Http2RouteMatchHeaderMatchState `json:"match"`
}

type Http2RouteMatchPath

type Http2RouteMatchPath struct {
	// Exact: string, optional
	Exact terra.StringValue `hcl:"exact,attr"`
	// Regex: string, optional
	Regex terra.StringValue `hcl:"regex,attr"`
}

type Http2RouteMatchPathAttributes

type Http2RouteMatchPathAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteMatchPathAttributes) Exact

func (Http2RouteMatchPathAttributes) InternalRef

func (Http2RouteMatchPathAttributes) InternalTokens

func (p Http2RouteMatchPathAttributes) InternalTokens() (hclwrite.Tokens, error)

func (Http2RouteMatchPathAttributes) InternalWithRef

func (Http2RouteMatchPathAttributes) Regex

type Http2RouteMatchPathState

type Http2RouteMatchPathState struct {
	Exact string `json:"exact"`
	Regex string `json:"regex"`
}

type Http2RouteMatchQueryParameter

type Http2RouteMatchQueryParameter struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Http2RouteMatchQueryParameterMatch: optional
	Match *Http2RouteMatchQueryParameterMatch `hcl:"match,block"`
}

type Http2RouteMatchQueryParameterAttributes

type Http2RouteMatchQueryParameterAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteMatchQueryParameterAttributes) InternalRef

func (Http2RouteMatchQueryParameterAttributes) InternalTokens

func (Http2RouteMatchQueryParameterAttributes) InternalWithRef

func (Http2RouteMatchQueryParameterAttributes) Match

func (Http2RouteMatchQueryParameterAttributes) Name

type Http2RouteMatchQueryParameterMatch

type Http2RouteMatchQueryParameterMatch struct {
	// Exact: string, optional
	Exact terra.StringValue `hcl:"exact,attr"`
}

type Http2RouteMatchQueryParameterMatchAttributes

type Http2RouteMatchQueryParameterMatchAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteMatchQueryParameterMatchAttributes) Exact

func (Http2RouteMatchQueryParameterMatchAttributes) InternalRef

func (Http2RouteMatchQueryParameterMatchAttributes) InternalTokens

func (Http2RouteMatchQueryParameterMatchAttributes) InternalWithRef

type Http2RouteMatchQueryParameterMatchState

type Http2RouteMatchQueryParameterMatchState struct {
	Exact string `json:"exact"`
}

type Http2RouteMatchQueryParameterState

type Http2RouteMatchQueryParameterState struct {
	Name  string                                    `json:"name"`
	Match []Http2RouteMatchQueryParameterMatchState `json:"match"`
}

type Http2RouteMatchState

type Http2RouteMatchState struct {
	Method         string                               `json:"method"`
	Port           float64                              `json:"port"`
	Prefix         string                               `json:"prefix"`
	Scheme         string                               `json:"scheme"`
	Header         []Http2RouteMatchHeaderState         `json:"header"`
	Path           []Http2RouteMatchPathState           `json:"path"`
	QueryParameter []Http2RouteMatchQueryParameterState `json:"query_parameter"`
}

type Http2RouteRetryPolicy

type Http2RouteRetryPolicy struct {
	// HttpRetryEvents: set of string, optional
	HttpRetryEvents terra.SetValue[terra.StringValue] `hcl:"http_retry_events,attr"`
	// MaxRetries: number, required
	MaxRetries terra.NumberValue `hcl:"max_retries,attr" validate:"required"`
	// TcpRetryEvents: set of string, optional
	TcpRetryEvents terra.SetValue[terra.StringValue] `hcl:"tcp_retry_events,attr"`
	// Http2RouteRetryPolicyPerRetryTimeout: required
	PerRetryTimeout *Http2RouteRetryPolicyPerRetryTimeout `hcl:"per_retry_timeout,block" validate:"required"`
}

type Http2RouteRetryPolicyAttributes

type Http2RouteRetryPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteRetryPolicyAttributes) HttpRetryEvents

func (Http2RouteRetryPolicyAttributes) InternalRef

func (Http2RouteRetryPolicyAttributes) InternalTokens

func (rp Http2RouteRetryPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (Http2RouteRetryPolicyAttributes) InternalWithRef

func (Http2RouteRetryPolicyAttributes) MaxRetries

func (Http2RouteRetryPolicyAttributes) PerRetryTimeout

func (Http2RouteRetryPolicyAttributes) TcpRetryEvents

type Http2RouteRetryPolicyPerRetryTimeout

type Http2RouteRetryPolicyPerRetryTimeout struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type Http2RouteRetryPolicyPerRetryTimeoutAttributes

type Http2RouteRetryPolicyPerRetryTimeoutAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteRetryPolicyPerRetryTimeoutAttributes) InternalRef

func (Http2RouteRetryPolicyPerRetryTimeoutAttributes) InternalTokens

func (Http2RouteRetryPolicyPerRetryTimeoutAttributes) InternalWithRef

func (Http2RouteRetryPolicyPerRetryTimeoutAttributes) Unit

func (Http2RouteRetryPolicyPerRetryTimeoutAttributes) Value

type Http2RouteRetryPolicyPerRetryTimeoutState

type Http2RouteRetryPolicyPerRetryTimeoutState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type Http2RouteRetryPolicyState

type Http2RouteRetryPolicyState struct {
	HttpRetryEvents []string                                    `json:"http_retry_events"`
	MaxRetries      float64                                     `json:"max_retries"`
	TcpRetryEvents  []string                                    `json:"tcp_retry_events"`
	PerRetryTimeout []Http2RouteRetryPolicyPerRetryTimeoutState `json:"per_retry_timeout"`
}

type Http2RouteState

type Http2RouteState struct {
	Action      []Http2RouteActionState      `json:"action"`
	Match       []Http2RouteMatchState       `json:"match"`
	RetryPolicy []Http2RouteRetryPolicyState `json:"retry_policy"`
	Timeout     []Http2RouteTimeoutState     `json:"timeout"`
}

type Http2RouteTimeout

type Http2RouteTimeout struct {
	// Http2RouteTimeoutIdle: optional
	Idle *Http2RouteTimeoutIdle `hcl:"idle,block"`
	// Http2RouteTimeoutPerRequest: optional
	PerRequest *Http2RouteTimeoutPerRequest `hcl:"per_request,block"`
}

type Http2RouteTimeoutAttributes

type Http2RouteTimeoutAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteTimeoutAttributes) Idle

func (Http2RouteTimeoutAttributes) InternalRef

func (t Http2RouteTimeoutAttributes) InternalRef() (terra.Reference, error)

func (Http2RouteTimeoutAttributes) InternalTokens

func (t Http2RouteTimeoutAttributes) InternalTokens() (hclwrite.Tokens, error)

func (Http2RouteTimeoutAttributes) InternalWithRef

func (Http2RouteTimeoutAttributes) PerRequest

type Http2RouteTimeoutIdle

type Http2RouteTimeoutIdle struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type Http2RouteTimeoutIdleAttributes

type Http2RouteTimeoutIdleAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteTimeoutIdleAttributes) InternalRef

func (Http2RouteTimeoutIdleAttributes) InternalTokens

func (i Http2RouteTimeoutIdleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (Http2RouteTimeoutIdleAttributes) InternalWithRef

func (Http2RouteTimeoutIdleAttributes) Unit

func (Http2RouteTimeoutIdleAttributes) Value

type Http2RouteTimeoutIdleState

type Http2RouteTimeoutIdleState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type Http2RouteTimeoutPerRequest

type Http2RouteTimeoutPerRequest struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type Http2RouteTimeoutPerRequestAttributes

type Http2RouteTimeoutPerRequestAttributes struct {
	// contains filtered or unexported fields
}

func (Http2RouteTimeoutPerRequestAttributes) InternalRef

func (Http2RouteTimeoutPerRequestAttributes) InternalTokens

func (Http2RouteTimeoutPerRequestAttributes) InternalWithRef

func (Http2RouteTimeoutPerRequestAttributes) Unit

func (Http2RouteTimeoutPerRequestAttributes) Value

type Http2RouteTimeoutPerRequestState

type Http2RouteTimeoutPerRequestState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type Http2RouteTimeoutState

type Http2RouteTimeoutState struct {
	Idle       []Http2RouteTimeoutIdleState       `json:"idle"`
	PerRequest []Http2RouteTimeoutPerRequestState `json:"per_request"`
}

type HttpRoute

type HttpRoute struct {
	// HttpRouteAction: required
	Action *HttpRouteAction `hcl:"action,block" validate:"required"`
	// HttpRouteMatch: required
	Match *HttpRouteMatch `hcl:"match,block" validate:"required"`
	// HttpRouteRetryPolicy: optional
	RetryPolicy *HttpRouteRetryPolicy `hcl:"retry_policy,block"`
	// HttpRouteTimeout: optional
	Timeout *HttpRouteTimeout `hcl:"timeout,block"`
}

type HttpRouteAction

type HttpRouteAction struct {
	// HttpRouteActionWeightedTarget: min=1,max=10
	WeightedTarget []HttpRouteActionWeightedTarget `hcl:"weighted_target,block" validate:"min=1,max=10"`
}

type HttpRouteActionAttributes

type HttpRouteActionAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteActionAttributes) InternalRef

func (a HttpRouteActionAttributes) InternalRef() (terra.Reference, error)

func (HttpRouteActionAttributes) InternalTokens

func (a HttpRouteActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpRouteActionAttributes) InternalWithRef

func (HttpRouteActionAttributes) WeightedTarget

type HttpRouteActionState

type HttpRouteActionState struct {
	WeightedTarget []HttpRouteActionWeightedTargetState `json:"weighted_target"`
}

type HttpRouteActionWeightedTarget

type HttpRouteActionWeightedTarget struct {
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// VirtualNode: string, required
	VirtualNode terra.StringValue `hcl:"virtual_node,attr" validate:"required"`
	// Weight: number, required
	Weight terra.NumberValue `hcl:"weight,attr" validate:"required"`
}

type HttpRouteActionWeightedTargetAttributes

type HttpRouteActionWeightedTargetAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteActionWeightedTargetAttributes) InternalRef

func (HttpRouteActionWeightedTargetAttributes) InternalTokens

func (HttpRouteActionWeightedTargetAttributes) InternalWithRef

func (HttpRouteActionWeightedTargetAttributes) Port

func (HttpRouteActionWeightedTargetAttributes) VirtualNode

func (HttpRouteActionWeightedTargetAttributes) Weight

type HttpRouteActionWeightedTargetState

type HttpRouteActionWeightedTargetState struct {
	Port        float64 `json:"port"`
	VirtualNode string  `json:"virtual_node"`
	Weight      float64 `json:"weight"`
}

type HttpRouteAttributes

type HttpRouteAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteAttributes) Action

func (HttpRouteAttributes) InternalRef

func (hr HttpRouteAttributes) InternalRef() (terra.Reference, error)

func (HttpRouteAttributes) InternalTokens

func (hr HttpRouteAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpRouteAttributes) InternalWithRef

func (hr HttpRouteAttributes) InternalWithRef(ref terra.Reference) HttpRouteAttributes

func (HttpRouteAttributes) Match

func (HttpRouteAttributes) RetryPolicy

func (HttpRouteAttributes) Timeout

type HttpRouteMatch

type HttpRouteMatch struct {
	// Method: string, optional
	Method terra.StringValue `hcl:"method,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Scheme: string, optional
	Scheme terra.StringValue `hcl:"scheme,attr"`
	// HttpRouteMatchHeader: min=0,max=10
	Header []HttpRouteMatchHeader `hcl:"header,block" validate:"min=0,max=10"`
	// HttpRouteMatchPath: optional
	Path *HttpRouteMatchPath `hcl:"path,block"`
	// HttpRouteMatchQueryParameter: min=0,max=10
	QueryParameter []HttpRouteMatchQueryParameter `hcl:"query_parameter,block" validate:"min=0,max=10"`
}

type HttpRouteMatchAttributes

type HttpRouteMatchAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteMatchAttributes) Header

func (HttpRouteMatchAttributes) InternalRef

func (m HttpRouteMatchAttributes) InternalRef() (terra.Reference, error)

func (HttpRouteMatchAttributes) InternalTokens

func (m HttpRouteMatchAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpRouteMatchAttributes) InternalWithRef

func (HttpRouteMatchAttributes) Method

func (HttpRouteMatchAttributes) Path

func (HttpRouteMatchAttributes) Port

func (HttpRouteMatchAttributes) Prefix

func (HttpRouteMatchAttributes) QueryParameter

func (HttpRouteMatchAttributes) Scheme

type HttpRouteMatchHeader

type HttpRouteMatchHeader struct {
	// Invert: bool, optional
	Invert terra.BoolValue `hcl:"invert,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// HttpRouteMatchHeaderMatch: optional
	Match *HttpRouteMatchHeaderMatch `hcl:"match,block"`
}

type HttpRouteMatchHeaderAttributes

type HttpRouteMatchHeaderAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteMatchHeaderAttributes) InternalRef

func (HttpRouteMatchHeaderAttributes) InternalTokens

func (h HttpRouteMatchHeaderAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpRouteMatchHeaderAttributes) InternalWithRef

func (HttpRouteMatchHeaderAttributes) Invert

func (HttpRouteMatchHeaderAttributes) Match

func (HttpRouteMatchHeaderAttributes) Name

type HttpRouteMatchHeaderMatch

type HttpRouteMatchHeaderMatch struct {
	// Exact: string, optional
	Exact terra.StringValue `hcl:"exact,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Regex: string, optional
	Regex terra.StringValue `hcl:"regex,attr"`
	// Suffix: string, optional
	Suffix terra.StringValue `hcl:"suffix,attr"`
	// HttpRouteMatchHeaderMatchRange: optional
	Range *HttpRouteMatchHeaderMatchRange `hcl:"range,block"`
}

type HttpRouteMatchHeaderMatchAttributes

type HttpRouteMatchHeaderMatchAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteMatchHeaderMatchAttributes) Exact

func (HttpRouteMatchHeaderMatchAttributes) InternalRef

func (HttpRouteMatchHeaderMatchAttributes) InternalTokens

func (HttpRouteMatchHeaderMatchAttributes) InternalWithRef

func (HttpRouteMatchHeaderMatchAttributes) Prefix

func (HttpRouteMatchHeaderMatchAttributes) Range

func (HttpRouteMatchHeaderMatchAttributes) Regex

func (HttpRouteMatchHeaderMatchAttributes) Suffix

type HttpRouteMatchHeaderMatchRange

type HttpRouteMatchHeaderMatchRange struct {
	// End: number, required
	End terra.NumberValue `hcl:"end,attr" validate:"required"`
	// Start: number, required
	Start terra.NumberValue `hcl:"start,attr" validate:"required"`
}

type HttpRouteMatchHeaderMatchRangeAttributes

type HttpRouteMatchHeaderMatchRangeAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteMatchHeaderMatchRangeAttributes) End

func (HttpRouteMatchHeaderMatchRangeAttributes) InternalRef

func (HttpRouteMatchHeaderMatchRangeAttributes) InternalTokens

func (HttpRouteMatchHeaderMatchRangeAttributes) InternalWithRef

func (HttpRouteMatchHeaderMatchRangeAttributes) Start

type HttpRouteMatchHeaderMatchRangeState

type HttpRouteMatchHeaderMatchRangeState struct {
	End   float64 `json:"end"`
	Start float64 `json:"start"`
}

type HttpRouteMatchHeaderMatchState

type HttpRouteMatchHeaderMatchState struct {
	Exact  string                                `json:"exact"`
	Prefix string                                `json:"prefix"`
	Regex  string                                `json:"regex"`
	Suffix string                                `json:"suffix"`
	Range  []HttpRouteMatchHeaderMatchRangeState `json:"range"`
}

type HttpRouteMatchHeaderState

type HttpRouteMatchHeaderState struct {
	Invert bool                             `json:"invert"`
	Name   string                           `json:"name"`
	Match  []HttpRouteMatchHeaderMatchState `json:"match"`
}

type HttpRouteMatchPath

type HttpRouteMatchPath struct {
	// Exact: string, optional
	Exact terra.StringValue `hcl:"exact,attr"`
	// Regex: string, optional
	Regex terra.StringValue `hcl:"regex,attr"`
}

type HttpRouteMatchPathAttributes

type HttpRouteMatchPathAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteMatchPathAttributes) Exact

func (HttpRouteMatchPathAttributes) InternalRef

func (HttpRouteMatchPathAttributes) InternalTokens

func (p HttpRouteMatchPathAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpRouteMatchPathAttributes) InternalWithRef

func (HttpRouteMatchPathAttributes) Regex

type HttpRouteMatchPathState

type HttpRouteMatchPathState struct {
	Exact string `json:"exact"`
	Regex string `json:"regex"`
}

type HttpRouteMatchQueryParameter

type HttpRouteMatchQueryParameter struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// HttpRouteMatchQueryParameterMatch: optional
	Match *HttpRouteMatchQueryParameterMatch `hcl:"match,block"`
}

type HttpRouteMatchQueryParameterAttributes

type HttpRouteMatchQueryParameterAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteMatchQueryParameterAttributes) InternalRef

func (HttpRouteMatchQueryParameterAttributes) InternalTokens

func (HttpRouteMatchQueryParameterAttributes) InternalWithRef

func (HttpRouteMatchQueryParameterAttributes) Match

func (HttpRouteMatchQueryParameterAttributes) Name

type HttpRouteMatchQueryParameterMatch

type HttpRouteMatchQueryParameterMatch struct {
	// Exact: string, optional
	Exact terra.StringValue `hcl:"exact,attr"`
}

type HttpRouteMatchQueryParameterMatchAttributes

type HttpRouteMatchQueryParameterMatchAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteMatchQueryParameterMatchAttributes) Exact

func (HttpRouteMatchQueryParameterMatchAttributes) InternalRef

func (HttpRouteMatchQueryParameterMatchAttributes) InternalTokens

func (HttpRouteMatchQueryParameterMatchAttributes) InternalWithRef

type HttpRouteMatchQueryParameterMatchState

type HttpRouteMatchQueryParameterMatchState struct {
	Exact string `json:"exact"`
}

type HttpRouteMatchQueryParameterState

type HttpRouteMatchQueryParameterState struct {
	Name  string                                   `json:"name"`
	Match []HttpRouteMatchQueryParameterMatchState `json:"match"`
}

type HttpRouteMatchState

type HttpRouteMatchState struct {
	Method         string                              `json:"method"`
	Port           float64                             `json:"port"`
	Prefix         string                              `json:"prefix"`
	Scheme         string                              `json:"scheme"`
	Header         []HttpRouteMatchHeaderState         `json:"header"`
	Path           []HttpRouteMatchPathState           `json:"path"`
	QueryParameter []HttpRouteMatchQueryParameterState `json:"query_parameter"`
}

type HttpRouteRetryPolicy

type HttpRouteRetryPolicy struct {
	// HttpRetryEvents: set of string, optional
	HttpRetryEvents terra.SetValue[terra.StringValue] `hcl:"http_retry_events,attr"`
	// MaxRetries: number, required
	MaxRetries terra.NumberValue `hcl:"max_retries,attr" validate:"required"`
	// TcpRetryEvents: set of string, optional
	TcpRetryEvents terra.SetValue[terra.StringValue] `hcl:"tcp_retry_events,attr"`
	// HttpRouteRetryPolicyPerRetryTimeout: required
	PerRetryTimeout *HttpRouteRetryPolicyPerRetryTimeout `hcl:"per_retry_timeout,block" validate:"required"`
}

type HttpRouteRetryPolicyAttributes

type HttpRouteRetryPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteRetryPolicyAttributes) HttpRetryEvents

func (HttpRouteRetryPolicyAttributes) InternalRef

func (HttpRouteRetryPolicyAttributes) InternalTokens

func (rp HttpRouteRetryPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpRouteRetryPolicyAttributes) InternalWithRef

func (HttpRouteRetryPolicyAttributes) MaxRetries

func (HttpRouteRetryPolicyAttributes) PerRetryTimeout

func (HttpRouteRetryPolicyAttributes) TcpRetryEvents

type HttpRouteRetryPolicyPerRetryTimeout

type HttpRouteRetryPolicyPerRetryTimeout struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type HttpRouteRetryPolicyPerRetryTimeoutAttributes

type HttpRouteRetryPolicyPerRetryTimeoutAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteRetryPolicyPerRetryTimeoutAttributes) InternalRef

func (HttpRouteRetryPolicyPerRetryTimeoutAttributes) InternalTokens

func (HttpRouteRetryPolicyPerRetryTimeoutAttributes) InternalWithRef

func (HttpRouteRetryPolicyPerRetryTimeoutAttributes) Unit

func (HttpRouteRetryPolicyPerRetryTimeoutAttributes) Value

type HttpRouteRetryPolicyPerRetryTimeoutState

type HttpRouteRetryPolicyPerRetryTimeoutState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type HttpRouteRetryPolicyState

type HttpRouteRetryPolicyState struct {
	HttpRetryEvents []string                                   `json:"http_retry_events"`
	MaxRetries      float64                                    `json:"max_retries"`
	TcpRetryEvents  []string                                   `json:"tcp_retry_events"`
	PerRetryTimeout []HttpRouteRetryPolicyPerRetryTimeoutState `json:"per_retry_timeout"`
}

type HttpRouteState

type HttpRouteState struct {
	Action      []HttpRouteActionState      `json:"action"`
	Match       []HttpRouteMatchState       `json:"match"`
	RetryPolicy []HttpRouteRetryPolicyState `json:"retry_policy"`
	Timeout     []HttpRouteTimeoutState     `json:"timeout"`
}

type HttpRouteTimeout

type HttpRouteTimeout struct {
	// HttpRouteTimeoutIdle: optional
	Idle *HttpRouteTimeoutIdle `hcl:"idle,block"`
	// HttpRouteTimeoutPerRequest: optional
	PerRequest *HttpRouteTimeoutPerRequest `hcl:"per_request,block"`
}

type HttpRouteTimeoutAttributes

type HttpRouteTimeoutAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteTimeoutAttributes) Idle

func (HttpRouteTimeoutAttributes) InternalRef

func (t HttpRouteTimeoutAttributes) InternalRef() (terra.Reference, error)

func (HttpRouteTimeoutAttributes) InternalTokens

func (t HttpRouteTimeoutAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpRouteTimeoutAttributes) InternalWithRef

func (HttpRouteTimeoutAttributes) PerRequest

type HttpRouteTimeoutIdle

type HttpRouteTimeoutIdle struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type HttpRouteTimeoutIdleAttributes

type HttpRouteTimeoutIdleAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteTimeoutIdleAttributes) InternalRef

func (HttpRouteTimeoutIdleAttributes) InternalTokens

func (i HttpRouteTimeoutIdleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HttpRouteTimeoutIdleAttributes) InternalWithRef

func (HttpRouteTimeoutIdleAttributes) Unit

func (HttpRouteTimeoutIdleAttributes) Value

type HttpRouteTimeoutIdleState

type HttpRouteTimeoutIdleState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type HttpRouteTimeoutPerRequest

type HttpRouteTimeoutPerRequest struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type HttpRouteTimeoutPerRequestAttributes

type HttpRouteTimeoutPerRequestAttributes struct {
	// contains filtered or unexported fields
}

func (HttpRouteTimeoutPerRequestAttributes) InternalRef

func (HttpRouteTimeoutPerRequestAttributes) InternalTokens

func (HttpRouteTimeoutPerRequestAttributes) InternalWithRef

func (HttpRouteTimeoutPerRequestAttributes) Unit

func (HttpRouteTimeoutPerRequestAttributes) Value

type HttpRouteTimeoutPerRequestState

type HttpRouteTimeoutPerRequestState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type HttpRouteTimeoutState

type HttpRouteTimeoutState struct {
	Idle       []HttpRouteTimeoutIdleState       `json:"idle"`
	PerRequest []HttpRouteTimeoutPerRequestState `json:"per_request"`
}

type Metadata

type Metadata struct {
	// Invert: bool, optional
	Invert terra.BoolValue `hcl:"invert,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// MetadataMatch: optional
	Match *MetadataMatch `hcl:"match,block"`
}

type MetadataAttributes

type MetadataAttributes struct {
	// contains filtered or unexported fields
}

func (MetadataAttributes) InternalRef

func (m MetadataAttributes) InternalRef() (terra.Reference, error)

func (MetadataAttributes) InternalTokens

func (m MetadataAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetadataAttributes) InternalWithRef

func (m MetadataAttributes) InternalWithRef(ref terra.Reference) MetadataAttributes

func (MetadataAttributes) Invert

func (m MetadataAttributes) Invert() terra.BoolValue

func (MetadataAttributes) Match

func (MetadataAttributes) Name

type MetadataMatch

type MetadataMatch struct {
	// Exact: string, optional
	Exact terra.StringValue `hcl:"exact,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Regex: string, optional
	Regex terra.StringValue `hcl:"regex,attr"`
	// Suffix: string, optional
	Suffix terra.StringValue `hcl:"suffix,attr"`
	// MetadataMatchRange: optional
	Range *MetadataMatchRange `hcl:"range,block"`
}

type MetadataMatchAttributes

type MetadataMatchAttributes struct {
	// contains filtered or unexported fields
}

func (MetadataMatchAttributes) Exact

func (MetadataMatchAttributes) InternalRef

func (m MetadataMatchAttributes) InternalRef() (terra.Reference, error)

func (MetadataMatchAttributes) InternalTokens

func (m MetadataMatchAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetadataMatchAttributes) InternalWithRef

func (MetadataMatchAttributes) Prefix

func (MetadataMatchAttributes) Range

func (MetadataMatchAttributes) Regex

func (MetadataMatchAttributes) Suffix

type MetadataMatchRange

type MetadataMatchRange struct {
	// End: number, required
	End terra.NumberValue `hcl:"end,attr" validate:"required"`
	// Start: number, required
	Start terra.NumberValue `hcl:"start,attr" validate:"required"`
}

type MetadataMatchRangeAttributes

type MetadataMatchRangeAttributes struct {
	// contains filtered or unexported fields
}

func (MetadataMatchRangeAttributes) End

func (MetadataMatchRangeAttributes) InternalRef

func (MetadataMatchRangeAttributes) InternalTokens

func (r MetadataMatchRangeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetadataMatchRangeAttributes) InternalWithRef

func (MetadataMatchRangeAttributes) Start

type MetadataMatchRangeState

type MetadataMatchRangeState struct {
	End   float64 `json:"end"`
	Start float64 `json:"start"`
}

type MetadataMatchState

type MetadataMatchState struct {
	Exact  string                    `json:"exact"`
	Prefix string                    `json:"prefix"`
	Regex  string                    `json:"regex"`
	Suffix string                    `json:"suffix"`
	Range  []MetadataMatchRangeState `json:"range"`
}

type MetadataState

type MetadataState struct {
	Invert bool                 `json:"invert"`
	Name   string               `json:"name"`
	Match  []MetadataMatchState `json:"match"`
}

type Spec

type Spec struct {
	// Priority: number, optional
	Priority terra.NumberValue `hcl:"priority,attr"`
	// GrpcRoute: optional
	GrpcRoute *GrpcRoute `hcl:"grpc_route,block"`
	// Http2Route: optional
	Http2Route *Http2Route `hcl:"http2_route,block"`
	// HttpRoute: optional
	HttpRoute *HttpRoute `hcl:"http_route,block"`
	// TcpRoute: optional
	TcpRoute *TcpRoute `hcl:"tcp_route,block"`
}

type SpecAttributes

type SpecAttributes struct {
	// contains filtered or unexported fields
}

func (SpecAttributes) GrpcRoute

func (SpecAttributes) Http2Route

func (SpecAttributes) HttpRoute

func (SpecAttributes) InternalRef

func (s SpecAttributes) InternalRef() (terra.Reference, error)

func (SpecAttributes) InternalTokens

func (s SpecAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SpecAttributes) InternalWithRef

func (s SpecAttributes) InternalWithRef(ref terra.Reference) SpecAttributes

func (SpecAttributes) Priority

func (s SpecAttributes) Priority() terra.NumberValue

func (SpecAttributes) TcpRoute

type SpecState

type SpecState struct {
	Priority   float64           `json:"priority"`
	GrpcRoute  []GrpcRouteState  `json:"grpc_route"`
	Http2Route []Http2RouteState `json:"http2_route"`
	HttpRoute  []HttpRouteState  `json:"http_route"`
	TcpRoute   []TcpRouteState   `json:"tcp_route"`
}

type TcpRoute

type TcpRoute struct {
	// TcpRouteAction: required
	Action *TcpRouteAction `hcl:"action,block" validate:"required"`
	// TcpRouteMatch: optional
	Match *TcpRouteMatch `hcl:"match,block"`
	// TcpRouteTimeout: optional
	Timeout *TcpRouteTimeout `hcl:"timeout,block"`
}

type TcpRouteAction

type TcpRouteAction struct {
	// TcpRouteActionWeightedTarget: min=1,max=10
	WeightedTarget []TcpRouteActionWeightedTarget `hcl:"weighted_target,block" validate:"min=1,max=10"`
}

type TcpRouteActionAttributes

type TcpRouteActionAttributes struct {
	// contains filtered or unexported fields
}

func (TcpRouteActionAttributes) InternalRef

func (a TcpRouteActionAttributes) InternalRef() (terra.Reference, error)

func (TcpRouteActionAttributes) InternalTokens

func (a TcpRouteActionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TcpRouteActionAttributes) InternalWithRef

func (TcpRouteActionAttributes) WeightedTarget

type TcpRouteActionState

type TcpRouteActionState struct {
	WeightedTarget []TcpRouteActionWeightedTargetState `json:"weighted_target"`
}

type TcpRouteActionWeightedTarget

type TcpRouteActionWeightedTarget struct {
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// VirtualNode: string, required
	VirtualNode terra.StringValue `hcl:"virtual_node,attr" validate:"required"`
	// Weight: number, required
	Weight terra.NumberValue `hcl:"weight,attr" validate:"required"`
}

type TcpRouteActionWeightedTargetAttributes

type TcpRouteActionWeightedTargetAttributes struct {
	// contains filtered or unexported fields
}

func (TcpRouteActionWeightedTargetAttributes) InternalRef

func (TcpRouteActionWeightedTargetAttributes) InternalTokens

func (TcpRouteActionWeightedTargetAttributes) InternalWithRef

func (TcpRouteActionWeightedTargetAttributes) Port

func (TcpRouteActionWeightedTargetAttributes) VirtualNode

func (TcpRouteActionWeightedTargetAttributes) Weight

type TcpRouteActionWeightedTargetState

type TcpRouteActionWeightedTargetState struct {
	Port        float64 `json:"port"`
	VirtualNode string  `json:"virtual_node"`
	Weight      float64 `json:"weight"`
}

type TcpRouteAttributes

type TcpRouteAttributes struct {
	// contains filtered or unexported fields
}

func (TcpRouteAttributes) Action

func (TcpRouteAttributes) InternalRef

func (tr TcpRouteAttributes) InternalRef() (terra.Reference, error)

func (TcpRouteAttributes) InternalTokens

func (tr TcpRouteAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TcpRouteAttributes) InternalWithRef

func (tr TcpRouteAttributes) InternalWithRef(ref terra.Reference) TcpRouteAttributes

func (TcpRouteAttributes) Match

func (TcpRouteAttributes) Timeout

type TcpRouteMatch

type TcpRouteMatch struct {
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
}

type TcpRouteMatchAttributes

type TcpRouteMatchAttributes struct {
	// contains filtered or unexported fields
}

func (TcpRouteMatchAttributes) InternalRef

func (m TcpRouteMatchAttributes) InternalRef() (terra.Reference, error)

func (TcpRouteMatchAttributes) InternalTokens

func (m TcpRouteMatchAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TcpRouteMatchAttributes) InternalWithRef

func (TcpRouteMatchAttributes) Port

type TcpRouteMatchState

type TcpRouteMatchState struct {
	Port float64 `json:"port"`
}

type TcpRouteState

type TcpRouteState struct {
	Action  []TcpRouteActionState  `json:"action"`
	Match   []TcpRouteMatchState   `json:"match"`
	Timeout []TcpRouteTimeoutState `json:"timeout"`
}

type TcpRouteTimeout

type TcpRouteTimeout struct {
	// TcpRouteTimeoutIdle: optional
	Idle *TcpRouteTimeoutIdle `hcl:"idle,block"`
}

type TcpRouteTimeoutAttributes

type TcpRouteTimeoutAttributes struct {
	// contains filtered or unexported fields
}

func (TcpRouteTimeoutAttributes) Idle

func (TcpRouteTimeoutAttributes) InternalRef

func (t TcpRouteTimeoutAttributes) InternalRef() (terra.Reference, error)

func (TcpRouteTimeoutAttributes) InternalTokens

func (t TcpRouteTimeoutAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TcpRouteTimeoutAttributes) InternalWithRef

type TcpRouteTimeoutIdle

type TcpRouteTimeoutIdle struct {
	// Unit: string, required
	Unit terra.StringValue `hcl:"unit,attr" validate:"required"`
	// Value: number, required
	Value terra.NumberValue `hcl:"value,attr" validate:"required"`
}

type TcpRouteTimeoutIdleAttributes

type TcpRouteTimeoutIdleAttributes struct {
	// contains filtered or unexported fields
}

func (TcpRouteTimeoutIdleAttributes) InternalRef

func (TcpRouteTimeoutIdleAttributes) InternalTokens

func (i TcpRouteTimeoutIdleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TcpRouteTimeoutIdleAttributes) InternalWithRef

func (TcpRouteTimeoutIdleAttributes) Unit

func (TcpRouteTimeoutIdleAttributes) Value

type TcpRouteTimeoutIdleState

type TcpRouteTimeoutIdleState struct {
	Unit  string  `json:"unit"`
	Value float64 `json:"value"`
}

type TcpRouteTimeoutState

type TcpRouteTimeoutState struct {
	Idle []TcpRouteTimeoutIdleState `json:"idle"`
}

Jump to

Keyboard shortcuts

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