Documentation ¶
Index ¶
- type Container
- type ContainerAttributes
- func (c ContainerAttributes) Command() terra.ListValue[terra.StringValue]
- func (c ContainerAttributes) ContainerName() terra.StringValue
- func (c ContainerAttributes) Environment() terra.MapValue[terra.StringValue]
- func (c ContainerAttributes) Image() terra.StringValue
- func (c ContainerAttributes) InternalRef() (terra.Reference, error)
- func (c ContainerAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (c ContainerAttributes) InternalWithRef(ref terra.Reference) ContainerAttributes
- func (c ContainerAttributes) Ports() terra.MapValue[terra.StringValue]
- type ContainerState
- type HealthCheck
- type HealthCheckAttributes
- func (hc HealthCheckAttributes) HealthyThreshold() terra.NumberValue
- func (hc HealthCheckAttributes) InternalRef() (terra.Reference, error)
- func (hc HealthCheckAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (hc HealthCheckAttributes) InternalWithRef(ref terra.Reference) HealthCheckAttributes
- func (hc HealthCheckAttributes) IntervalSeconds() terra.NumberValue
- func (hc HealthCheckAttributes) Path() terra.StringValue
- func (hc HealthCheckAttributes) SuccessCodes() terra.StringValue
- func (hc HealthCheckAttributes) TimeoutSeconds() terra.NumberValue
- func (hc HealthCheckAttributes) UnhealthyThreshold() terra.NumberValue
- type HealthCheckState
- type PublicEndpoint
- type PublicEndpointAttributes
- func (pe PublicEndpointAttributes) ContainerName() terra.StringValue
- func (pe PublicEndpointAttributes) ContainerPort() terra.NumberValue
- func (pe PublicEndpointAttributes) HealthCheck() terra.ListValue[HealthCheckAttributes]
- func (pe PublicEndpointAttributes) InternalRef() (terra.Reference, error)
- func (pe PublicEndpointAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (pe PublicEndpointAttributes) InternalWithRef(ref terra.Reference) PublicEndpointAttributes
- type PublicEndpointState
- type Timeouts
- type TimeoutsAttributes
- type TimeoutsState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { // Command: list of string, optional Command terra.ListValue[terra.StringValue] `hcl:"command,attr"` // ContainerName: string, required ContainerName terra.StringValue `hcl:"container_name,attr" validate:"required"` // Environment: map of string, optional Environment terra.MapValue[terra.StringValue] `hcl:"environment,attr"` // Image: string, required Image terra.StringValue `hcl:"image,attr" validate:"required"` // Ports: map of string, optional Ports terra.MapValue[terra.StringValue] `hcl:"ports,attr"` }
type ContainerAttributes ¶
type ContainerAttributes struct {
// contains filtered or unexported fields
}
func (ContainerAttributes) Command ¶
func (c ContainerAttributes) Command() terra.ListValue[terra.StringValue]
func (ContainerAttributes) ContainerName ¶
func (c ContainerAttributes) ContainerName() terra.StringValue
func (ContainerAttributes) Environment ¶
func (c ContainerAttributes) Environment() terra.MapValue[terra.StringValue]
func (ContainerAttributes) Image ¶
func (c ContainerAttributes) Image() terra.StringValue
func (ContainerAttributes) InternalRef ¶
func (c ContainerAttributes) InternalRef() (terra.Reference, error)
func (ContainerAttributes) InternalTokens ¶
func (c ContainerAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ContainerAttributes) InternalWithRef ¶
func (c ContainerAttributes) InternalWithRef(ref terra.Reference) ContainerAttributes
func (ContainerAttributes) Ports ¶
func (c ContainerAttributes) Ports() terra.MapValue[terra.StringValue]
type ContainerState ¶
type HealthCheck ¶
type HealthCheck struct { // HealthyThreshold: number, optional HealthyThreshold terra.NumberValue `hcl:"healthy_threshold,attr"` // IntervalSeconds: number, optional IntervalSeconds terra.NumberValue `hcl:"interval_seconds,attr"` // Path: string, optional Path terra.StringValue `hcl:"path,attr"` // SuccessCodes: string, optional SuccessCodes terra.StringValue `hcl:"success_codes,attr"` // TimeoutSeconds: number, optional TimeoutSeconds terra.NumberValue `hcl:"timeout_seconds,attr"` // UnhealthyThreshold: number, optional UnhealthyThreshold terra.NumberValue `hcl:"unhealthy_threshold,attr"` }
type HealthCheckAttributes ¶
type HealthCheckAttributes struct {
// contains filtered or unexported fields
}
func (HealthCheckAttributes) HealthyThreshold ¶
func (hc HealthCheckAttributes) HealthyThreshold() terra.NumberValue
func (HealthCheckAttributes) InternalRef ¶
func (hc HealthCheckAttributes) InternalRef() (terra.Reference, error)
func (HealthCheckAttributes) InternalTokens ¶
func (hc HealthCheckAttributes) InternalTokens() (hclwrite.Tokens, error)
func (HealthCheckAttributes) InternalWithRef ¶
func (hc HealthCheckAttributes) InternalWithRef(ref terra.Reference) HealthCheckAttributes
func (HealthCheckAttributes) IntervalSeconds ¶
func (hc HealthCheckAttributes) IntervalSeconds() terra.NumberValue
func (HealthCheckAttributes) Path ¶
func (hc HealthCheckAttributes) Path() terra.StringValue
func (HealthCheckAttributes) SuccessCodes ¶
func (hc HealthCheckAttributes) SuccessCodes() terra.StringValue
func (HealthCheckAttributes) TimeoutSeconds ¶
func (hc HealthCheckAttributes) TimeoutSeconds() terra.NumberValue
func (HealthCheckAttributes) UnhealthyThreshold ¶
func (hc HealthCheckAttributes) UnhealthyThreshold() terra.NumberValue
type HealthCheckState ¶
type HealthCheckState struct { HealthyThreshold float64 `json:"healthy_threshold"` IntervalSeconds float64 `json:"interval_seconds"` Path string `json:"path"` SuccessCodes string `json:"success_codes"` TimeoutSeconds float64 `json:"timeout_seconds"` UnhealthyThreshold float64 `json:"unhealthy_threshold"` }
type PublicEndpoint ¶
type PublicEndpoint struct { // ContainerName: string, required ContainerName terra.StringValue `hcl:"container_name,attr" validate:"required"` // ContainerPort: number, required ContainerPort terra.NumberValue `hcl:"container_port,attr" validate:"required"` // HealthCheck: required HealthCheck *HealthCheck `hcl:"health_check,block" validate:"required"` }
type PublicEndpointAttributes ¶
type PublicEndpointAttributes struct {
// contains filtered or unexported fields
}
func (PublicEndpointAttributes) ContainerName ¶
func (pe PublicEndpointAttributes) ContainerName() terra.StringValue
func (PublicEndpointAttributes) ContainerPort ¶
func (pe PublicEndpointAttributes) ContainerPort() terra.NumberValue
func (PublicEndpointAttributes) HealthCheck ¶
func (pe PublicEndpointAttributes) HealthCheck() terra.ListValue[HealthCheckAttributes]
func (PublicEndpointAttributes) InternalRef ¶
func (pe PublicEndpointAttributes) InternalRef() (terra.Reference, error)
func (PublicEndpointAttributes) InternalTokens ¶
func (pe PublicEndpointAttributes) InternalTokens() (hclwrite.Tokens, error)
func (PublicEndpointAttributes) InternalWithRef ¶
func (pe PublicEndpointAttributes) InternalWithRef(ref terra.Reference) PublicEndpointAttributes
type PublicEndpointState ¶
type PublicEndpointState struct { ContainerName string `json:"container_name"` ContainerPort float64 `json:"container_port"` HealthCheck []HealthCheckState `json:"health_check"` }
type Timeouts ¶
type Timeouts struct { // Create: string, optional Create terra.StringValue `hcl:"create,attr"` }
type TimeoutsAttributes ¶
type TimeoutsAttributes struct {
// contains filtered or unexported fields
}
func (TimeoutsAttributes) Create ¶
func (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) InternalRef ¶
func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
func (TimeoutsAttributes) InternalTokens ¶
func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
func (TimeoutsAttributes) InternalWithRef ¶
func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
type TimeoutsState ¶
type TimeoutsState struct {
Create string `json:"create"`
}
Click to show internal directories.
Click to hide internal directories.