containerapp

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 Container

type Container struct {
	// Args: list of string, optional
	Args terra.ListValue[terra.StringValue] `hcl:"args,attr"`
	// Command: list of string, optional
	Command terra.ListValue[terra.StringValue] `hcl:"command,attr"`
	// Cpu: number, required
	Cpu terra.NumberValue `hcl:"cpu,attr" validate:"required"`
	// Image: string, required
	Image terra.StringValue `hcl:"image,attr" validate:"required"`
	// Memory: string, required
	Memory terra.StringValue `hcl:"memory,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Env: min=0
	Env []Env `hcl:"env,block" validate:"min=0"`
	// LivenessProbe: min=0
	LivenessProbe []LivenessProbe `hcl:"liveness_probe,block" validate:"min=0"`
	// ReadinessProbe: min=0
	ReadinessProbe []ReadinessProbe `hcl:"readiness_probe,block" validate:"min=0"`
	// StartupProbe: min=0
	StartupProbe []StartupProbe `hcl:"startup_probe,block" validate:"min=0"`
	// VolumeMounts: min=0
	VolumeMounts []VolumeMounts `hcl:"volume_mounts,block" validate:"min=0"`
}

type ContainerAttributes

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

func (ContainerAttributes) Args

func (ContainerAttributes) Command

func (ContainerAttributes) Cpu

func (ContainerAttributes) Env

func (ContainerAttributes) EphemeralStorage

func (c ContainerAttributes) EphemeralStorage() terra.StringValue

func (ContainerAttributes) Image

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) LivenessProbe

func (ContainerAttributes) Memory

func (ContainerAttributes) Name

func (ContainerAttributes) ReadinessProbe

func (ContainerAttributes) StartupProbe

func (ContainerAttributes) VolumeMounts

type ContainerState

type ContainerState struct {
	Args             []string              `json:"args"`
	Command          []string              `json:"command"`
	Cpu              float64               `json:"cpu"`
	EphemeralStorage string                `json:"ephemeral_storage"`
	Image            string                `json:"image"`
	Memory           string                `json:"memory"`
	Name             string                `json:"name"`
	Env              []EnvState            `json:"env"`
	LivenessProbe    []LivenessProbeState  `json:"liveness_probe"`
	ReadinessProbe   []ReadinessProbeState `json:"readiness_probe"`
	StartupProbe     []StartupProbeState   `json:"startup_probe"`
	VolumeMounts     []VolumeMountsState   `json:"volume_mounts"`
}

type CustomDomain

type CustomDomain struct {
	// CertificateBindingType: string, optional
	CertificateBindingType terra.StringValue `hcl:"certificate_binding_type,attr"`
	// CertificateId: string, required
	CertificateId terra.StringValue `hcl:"certificate_id,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type CustomDomainAttributes

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

func (CustomDomainAttributes) CertificateBindingType

func (cd CustomDomainAttributes) CertificateBindingType() terra.StringValue

func (CustomDomainAttributes) CertificateId

func (cd CustomDomainAttributes) CertificateId() terra.StringValue

func (CustomDomainAttributes) InternalRef

func (cd CustomDomainAttributes) InternalRef() (terra.Reference, error)

func (CustomDomainAttributes) InternalTokens

func (cd CustomDomainAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomDomainAttributes) InternalWithRef

func (CustomDomainAttributes) Name

type CustomDomainState

type CustomDomainState struct {
	CertificateBindingType string `json:"certificate_binding_type"`
	CertificateId          string `json:"certificate_id"`
	Name                   string `json:"name"`
}

type Dapr

type Dapr struct {
	// AppId: string, required
	AppId terra.StringValue `hcl:"app_id,attr" validate:"required"`
	// AppPort: number, required
	AppPort terra.NumberValue `hcl:"app_port,attr" validate:"required"`
	// AppProtocol: string, optional
	AppProtocol terra.StringValue `hcl:"app_protocol,attr"`
}

type DaprAttributes

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

func (DaprAttributes) AppId

func (d DaprAttributes) AppId() terra.StringValue

func (DaprAttributes) AppPort

func (d DaprAttributes) AppPort() terra.NumberValue

func (DaprAttributes) AppProtocol

func (d DaprAttributes) AppProtocol() terra.StringValue

func (DaprAttributes) InternalRef

func (d DaprAttributes) InternalRef() (terra.Reference, error)

func (DaprAttributes) InternalTokens

func (d DaprAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DaprAttributes) InternalWithRef

func (d DaprAttributes) InternalWithRef(ref terra.Reference) DaprAttributes

type DaprState

type DaprState struct {
	AppId       string  `json:"app_id"`
	AppPort     float64 `json:"app_port"`
	AppProtocol string  `json:"app_protocol"`
}

type Env

type Env struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// SecretName: string, optional
	SecretName terra.StringValue `hcl:"secret_name,attr"`
	// Value: string, optional
	Value terra.StringValue `hcl:"value,attr"`
}

type EnvAttributes

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

func (EnvAttributes) InternalRef

func (e EnvAttributes) InternalRef() (terra.Reference, error)

func (EnvAttributes) InternalTokens

func (e EnvAttributes) InternalTokens() (hclwrite.Tokens, error)

func (EnvAttributes) InternalWithRef

func (e EnvAttributes) InternalWithRef(ref terra.Reference) EnvAttributes

func (EnvAttributes) Name

func (e EnvAttributes) Name() terra.StringValue

func (EnvAttributes) SecretName

func (e EnvAttributes) SecretName() terra.StringValue

func (EnvAttributes) Value

func (e EnvAttributes) Value() terra.StringValue

type EnvState

type EnvState struct {
	Name       string `json:"name"`
	SecretName string `json:"secret_name"`
	Value      string `json:"value"`
}

type Identity

type Identity struct {
	// IdentityIds: set of string, optional
	IdentityIds terra.SetValue[terra.StringValue] `hcl:"identity_ids,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type IdentityAttributes

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

func (IdentityAttributes) IdentityIds

func (IdentityAttributes) InternalRef

func (i IdentityAttributes) InternalRef() (terra.Reference, error)

func (IdentityAttributes) InternalTokens

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

func (IdentityAttributes) InternalWithRef

func (i IdentityAttributes) InternalWithRef(ref terra.Reference) IdentityAttributes

func (IdentityAttributes) PrincipalId

func (i IdentityAttributes) PrincipalId() terra.StringValue

func (IdentityAttributes) TenantId

func (i IdentityAttributes) TenantId() terra.StringValue

func (IdentityAttributes) Type

type IdentityState

type IdentityState struct {
	IdentityIds []string `json:"identity_ids"`
	PrincipalId string   `json:"principal_id"`
	TenantId    string   `json:"tenant_id"`
	Type        string   `json:"type"`
}

type Ingress

type Ingress struct {
	// AllowInsecureConnections: bool, optional
	AllowInsecureConnections terra.BoolValue `hcl:"allow_insecure_connections,attr"`
	// ExternalEnabled: bool, optional
	ExternalEnabled terra.BoolValue `hcl:"external_enabled,attr"`
	// TargetPort: number, required
	TargetPort terra.NumberValue `hcl:"target_port,attr" validate:"required"`
	// Transport: string, optional
	Transport terra.StringValue `hcl:"transport,attr"`
	// CustomDomain: optional
	CustomDomain *CustomDomain `hcl:"custom_domain,block"`
	// TrafficWeight: min=1
	TrafficWeight []TrafficWeight `hcl:"traffic_weight,block" validate:"min=1"`
}

type IngressAttributes

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

func (IngressAttributes) AllowInsecureConnections

func (i IngressAttributes) AllowInsecureConnections() terra.BoolValue

func (IngressAttributes) CustomDomain

func (IngressAttributes) ExternalEnabled

func (i IngressAttributes) ExternalEnabled() terra.BoolValue

func (IngressAttributes) Fqdn

func (IngressAttributes) InternalRef

func (i IngressAttributes) InternalRef() (terra.Reference, error)

func (IngressAttributes) InternalTokens

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

func (IngressAttributes) InternalWithRef

func (i IngressAttributes) InternalWithRef(ref terra.Reference) IngressAttributes

func (IngressAttributes) TargetPort

func (i IngressAttributes) TargetPort() terra.NumberValue

func (IngressAttributes) TrafficWeight

func (IngressAttributes) Transport

func (i IngressAttributes) Transport() terra.StringValue

type IngressState

type IngressState struct {
	AllowInsecureConnections bool                 `json:"allow_insecure_connections"`
	ExternalEnabled          bool                 `json:"external_enabled"`
	Fqdn                     string               `json:"fqdn"`
	TargetPort               float64              `json:"target_port"`
	Transport                string               `json:"transport"`
	CustomDomain             []CustomDomainState  `json:"custom_domain"`
	TrafficWeight            []TrafficWeightState `json:"traffic_weight"`
}

type LivenessProbe

type LivenessProbe struct {
	// FailureCountThreshold: number, optional
	FailureCountThreshold terra.NumberValue `hcl:"failure_count_threshold,attr"`
	// Host: string, optional
	Host terra.StringValue `hcl:"host,attr"`
	// InitialDelay: number, optional
	InitialDelay terra.NumberValue `hcl:"initial_delay,attr"`
	// IntervalSeconds: number, optional
	IntervalSeconds terra.NumberValue `hcl:"interval_seconds,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Port: number, required
	Port terra.NumberValue `hcl:"port,attr" validate:"required"`
	// Timeout: number, optional
	Timeout terra.NumberValue `hcl:"timeout,attr"`
	// Transport: string, required
	Transport terra.StringValue `hcl:"transport,attr" validate:"required"`
	// LivenessProbeHeader: min=0
	Header []LivenessProbeHeader `hcl:"header,block" validate:"min=0"`
}

type LivenessProbeAttributes

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

func (LivenessProbeAttributes) FailureCountThreshold

func (lp LivenessProbeAttributes) FailureCountThreshold() terra.NumberValue

func (LivenessProbeAttributes) Header

func (LivenessProbeAttributes) Host

func (LivenessProbeAttributes) InitialDelay

func (lp LivenessProbeAttributes) InitialDelay() terra.NumberValue

func (LivenessProbeAttributes) InternalRef

func (lp LivenessProbeAttributes) InternalRef() (terra.Reference, error)

func (LivenessProbeAttributes) InternalTokens

func (lp LivenessProbeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LivenessProbeAttributes) InternalWithRef

func (LivenessProbeAttributes) IntervalSeconds

func (lp LivenessProbeAttributes) IntervalSeconds() terra.NumberValue

func (LivenessProbeAttributes) Path

func (LivenessProbeAttributes) Port

func (LivenessProbeAttributes) TerminationGracePeriodSeconds

func (lp LivenessProbeAttributes) TerminationGracePeriodSeconds() terra.NumberValue

func (LivenessProbeAttributes) Timeout

func (LivenessProbeAttributes) Transport

func (lp LivenessProbeAttributes) Transport() terra.StringValue

type LivenessProbeHeader

type LivenessProbeHeader struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type LivenessProbeHeaderAttributes

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

func (LivenessProbeHeaderAttributes) InternalRef

func (LivenessProbeHeaderAttributes) InternalTokens

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

func (LivenessProbeHeaderAttributes) InternalWithRef

func (LivenessProbeHeaderAttributes) Name

func (LivenessProbeHeaderAttributes) Value

type LivenessProbeHeaderState

type LivenessProbeHeaderState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type LivenessProbeState

type LivenessProbeState struct {
	FailureCountThreshold         float64                    `json:"failure_count_threshold"`
	Host                          string                     `json:"host"`
	InitialDelay                  float64                    `json:"initial_delay"`
	IntervalSeconds               float64                    `json:"interval_seconds"`
	Path                          string                     `json:"path"`
	Port                          float64                    `json:"port"`
	TerminationGracePeriodSeconds float64                    `json:"termination_grace_period_seconds"`
	Timeout                       float64                    `json:"timeout"`
	Transport                     string                     `json:"transport"`
	Header                        []LivenessProbeHeaderState `json:"header"`
}

type ReadinessProbe

type ReadinessProbe struct {
	// FailureCountThreshold: number, optional
	FailureCountThreshold terra.NumberValue `hcl:"failure_count_threshold,attr"`
	// Host: string, optional
	Host terra.StringValue `hcl:"host,attr"`
	// IntervalSeconds: number, optional
	IntervalSeconds terra.NumberValue `hcl:"interval_seconds,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Port: number, required
	Port terra.NumberValue `hcl:"port,attr" validate:"required"`
	// SuccessCountThreshold: number, optional
	SuccessCountThreshold terra.NumberValue `hcl:"success_count_threshold,attr"`
	// Timeout: number, optional
	Timeout terra.NumberValue `hcl:"timeout,attr"`
	// Transport: string, required
	Transport terra.StringValue `hcl:"transport,attr" validate:"required"`
	// ReadinessProbeHeader: min=0
	Header []ReadinessProbeHeader `hcl:"header,block" validate:"min=0"`
}

type ReadinessProbeAttributes

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

func (ReadinessProbeAttributes) FailureCountThreshold

func (rp ReadinessProbeAttributes) FailureCountThreshold() terra.NumberValue

func (ReadinessProbeAttributes) Header

func (ReadinessProbeAttributes) Host

func (ReadinessProbeAttributes) InternalRef

func (rp ReadinessProbeAttributes) InternalRef() (terra.Reference, error)

func (ReadinessProbeAttributes) InternalTokens

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

func (ReadinessProbeAttributes) InternalWithRef

func (ReadinessProbeAttributes) IntervalSeconds

func (rp ReadinessProbeAttributes) IntervalSeconds() terra.NumberValue

func (ReadinessProbeAttributes) Path

func (ReadinessProbeAttributes) Port

func (ReadinessProbeAttributes) SuccessCountThreshold

func (rp ReadinessProbeAttributes) SuccessCountThreshold() terra.NumberValue

func (ReadinessProbeAttributes) Timeout

func (ReadinessProbeAttributes) Transport

type ReadinessProbeHeader

type ReadinessProbeHeader struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type ReadinessProbeHeaderAttributes

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

func (ReadinessProbeHeaderAttributes) InternalRef

func (ReadinessProbeHeaderAttributes) InternalTokens

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

func (ReadinessProbeHeaderAttributes) InternalWithRef

func (ReadinessProbeHeaderAttributes) Name

func (ReadinessProbeHeaderAttributes) Value

type ReadinessProbeHeaderState

type ReadinessProbeHeaderState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type ReadinessProbeState

type ReadinessProbeState struct {
	FailureCountThreshold float64                     `json:"failure_count_threshold"`
	Host                  string                      `json:"host"`
	IntervalSeconds       float64                     `json:"interval_seconds"`
	Path                  string                      `json:"path"`
	Port                  float64                     `json:"port"`
	SuccessCountThreshold float64                     `json:"success_count_threshold"`
	Timeout               float64                     `json:"timeout"`
	Transport             string                      `json:"transport"`
	Header                []ReadinessProbeHeaderState `json:"header"`
}

type Registry

type Registry struct {
	// Identity: string, optional
	Identity terra.StringValue `hcl:"identity,attr"`
	// PasswordSecretName: string, optional
	PasswordSecretName terra.StringValue `hcl:"password_secret_name,attr"`
	// Server: string, required
	Server terra.StringValue `hcl:"server,attr" validate:"required"`
	// Username: string, optional
	Username terra.StringValue `hcl:"username,attr"`
}

type RegistryAttributes

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

func (RegistryAttributes) Identity

func (r RegistryAttributes) Identity() terra.StringValue

func (RegistryAttributes) InternalRef

func (r RegistryAttributes) InternalRef() (terra.Reference, error)

func (RegistryAttributes) InternalTokens

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

func (RegistryAttributes) InternalWithRef

func (r RegistryAttributes) InternalWithRef(ref terra.Reference) RegistryAttributes

func (RegistryAttributes) PasswordSecretName

func (r RegistryAttributes) PasswordSecretName() terra.StringValue

func (RegistryAttributes) Server

func (RegistryAttributes) Username

func (r RegistryAttributes) Username() terra.StringValue

type RegistryState

type RegistryState struct {
	Identity           string `json:"identity"`
	PasswordSecretName string `json:"password_secret_name"`
	Server             string `json:"server"`
	Username           string `json:"username"`
}

type Secret

type Secret struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type SecretAttributes

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

func (SecretAttributes) InternalRef

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

func (SecretAttributes) InternalTokens

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

func (SecretAttributes) InternalWithRef

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

func (SecretAttributes) Name

func (SecretAttributes) Value

type SecretState

type SecretState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type StartupProbe

type StartupProbe struct {
	// FailureCountThreshold: number, optional
	FailureCountThreshold terra.NumberValue `hcl:"failure_count_threshold,attr"`
	// Host: string, optional
	Host terra.StringValue `hcl:"host,attr"`
	// IntervalSeconds: number, optional
	IntervalSeconds terra.NumberValue `hcl:"interval_seconds,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Port: number, required
	Port terra.NumberValue `hcl:"port,attr" validate:"required"`
	// Timeout: number, optional
	Timeout terra.NumberValue `hcl:"timeout,attr"`
	// Transport: string, required
	Transport terra.StringValue `hcl:"transport,attr" validate:"required"`
	// StartupProbeHeader: min=0
	Header []StartupProbeHeader `hcl:"header,block" validate:"min=0"`
}

type StartupProbeAttributes

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

func (StartupProbeAttributes) FailureCountThreshold

func (sp StartupProbeAttributes) FailureCountThreshold() terra.NumberValue

func (StartupProbeAttributes) Header

func (StartupProbeAttributes) Host

func (StartupProbeAttributes) InternalRef

func (sp StartupProbeAttributes) InternalRef() (terra.Reference, error)

func (StartupProbeAttributes) InternalTokens

func (sp StartupProbeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StartupProbeAttributes) InternalWithRef

func (StartupProbeAttributes) IntervalSeconds

func (sp StartupProbeAttributes) IntervalSeconds() terra.NumberValue

func (StartupProbeAttributes) Path

func (StartupProbeAttributes) Port

func (StartupProbeAttributes) TerminationGracePeriodSeconds

func (sp StartupProbeAttributes) TerminationGracePeriodSeconds() terra.NumberValue

func (StartupProbeAttributes) Timeout

func (StartupProbeAttributes) Transport

func (sp StartupProbeAttributes) Transport() terra.StringValue

type StartupProbeHeader

type StartupProbeHeader struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type StartupProbeHeaderAttributes

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

func (StartupProbeHeaderAttributes) InternalRef

func (StartupProbeHeaderAttributes) InternalTokens

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

func (StartupProbeHeaderAttributes) InternalWithRef

func (StartupProbeHeaderAttributes) Name

func (StartupProbeHeaderAttributes) Value

type StartupProbeHeaderState

type StartupProbeHeaderState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type StartupProbeState

type StartupProbeState struct {
	FailureCountThreshold         float64                   `json:"failure_count_threshold"`
	Host                          string                    `json:"host"`
	IntervalSeconds               float64                   `json:"interval_seconds"`
	Path                          string                    `json:"path"`
	Port                          float64                   `json:"port"`
	TerminationGracePeriodSeconds float64                   `json:"termination_grace_period_seconds"`
	Timeout                       float64                   `json:"timeout"`
	Transport                     string                    `json:"transport"`
	Header                        []StartupProbeHeaderState `json:"header"`
}

type Template

type Template struct {
	// MaxReplicas: number, optional
	MaxReplicas terra.NumberValue `hcl:"max_replicas,attr"`
	// MinReplicas: number, optional
	MinReplicas terra.NumberValue `hcl:"min_replicas,attr"`
	// RevisionSuffix: string, optional
	RevisionSuffix terra.StringValue `hcl:"revision_suffix,attr"`
	// Container: min=1
	Container []Container `hcl:"container,block" validate:"min=1"`
	// Volume: min=0
	Volume []Volume `hcl:"volume,block" validate:"min=0"`
}

type TemplateAttributes

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

func (TemplateAttributes) Container

func (TemplateAttributes) InternalRef

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

func (TemplateAttributes) InternalTokens

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

func (TemplateAttributes) InternalWithRef

func (t TemplateAttributes) InternalWithRef(ref terra.Reference) TemplateAttributes

func (TemplateAttributes) MaxReplicas

func (t TemplateAttributes) MaxReplicas() terra.NumberValue

func (TemplateAttributes) MinReplicas

func (t TemplateAttributes) MinReplicas() terra.NumberValue

func (TemplateAttributes) RevisionSuffix

func (t TemplateAttributes) RevisionSuffix() terra.StringValue

func (TemplateAttributes) Volume

type TemplateState

type TemplateState struct {
	MaxReplicas    float64          `json:"max_replicas"`
	MinReplicas    float64          `json:"min_replicas"`
	RevisionSuffix string           `json:"revision_suffix"`
	Container      []ContainerState `json:"container"`
	Volume         []VolumeState    `json:"volume"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

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

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

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

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

type TrafficWeight

type TrafficWeight struct {
	// Label: string, optional
	Label terra.StringValue `hcl:"label,attr"`
	// LatestRevision: bool, optional
	LatestRevision terra.BoolValue `hcl:"latest_revision,attr"`
	// Percentage: number, required
	Percentage terra.NumberValue `hcl:"percentage,attr" validate:"required"`
	// RevisionSuffix: string, optional
	RevisionSuffix terra.StringValue `hcl:"revision_suffix,attr"`
}

type TrafficWeightAttributes

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

func (TrafficWeightAttributes) InternalRef

func (tw TrafficWeightAttributes) InternalRef() (terra.Reference, error)

func (TrafficWeightAttributes) InternalTokens

func (tw TrafficWeightAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TrafficWeightAttributes) InternalWithRef

func (TrafficWeightAttributes) Label

func (TrafficWeightAttributes) LatestRevision

func (tw TrafficWeightAttributes) LatestRevision() terra.BoolValue

func (TrafficWeightAttributes) Percentage

func (tw TrafficWeightAttributes) Percentage() terra.NumberValue

func (TrafficWeightAttributes) RevisionSuffix

func (tw TrafficWeightAttributes) RevisionSuffix() terra.StringValue

type TrafficWeightState

type TrafficWeightState struct {
	Label          string  `json:"label"`
	LatestRevision bool    `json:"latest_revision"`
	Percentage     float64 `json:"percentage"`
	RevisionSuffix string  `json:"revision_suffix"`
}

type Volume

type Volume struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// StorageName: string, optional
	StorageName terra.StringValue `hcl:"storage_name,attr"`
	// StorageType: string, optional
	StorageType terra.StringValue `hcl:"storage_type,attr"`
}

type VolumeAttributes

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

func (VolumeAttributes) InternalRef

func (v VolumeAttributes) InternalRef() (terra.Reference, error)

func (VolumeAttributes) InternalTokens

func (v VolumeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VolumeAttributes) InternalWithRef

func (v VolumeAttributes) InternalWithRef(ref terra.Reference) VolumeAttributes

func (VolumeAttributes) Name

func (VolumeAttributes) StorageName

func (v VolumeAttributes) StorageName() terra.StringValue

func (VolumeAttributes) StorageType

func (v VolumeAttributes) StorageType() terra.StringValue

type VolumeMounts

type VolumeMounts struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Path: string, required
	Path terra.StringValue `hcl:"path,attr" validate:"required"`
}

type VolumeMountsAttributes

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

func (VolumeMountsAttributes) InternalRef

func (vm VolumeMountsAttributes) InternalRef() (terra.Reference, error)

func (VolumeMountsAttributes) InternalTokens

func (vm VolumeMountsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VolumeMountsAttributes) InternalWithRef

func (VolumeMountsAttributes) Name

func (VolumeMountsAttributes) Path

type VolumeMountsState

type VolumeMountsState struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

type VolumeState

type VolumeState struct {
	Name        string `json:"name"`
	StorageName string `json:"storage_name"`
	StorageType string `json:"storage_type"`
}

Jump to

Keyboard shortcuts

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