containergroup

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 {
	// Commands: list of string, optional
	Commands terra.ListValue[terra.StringValue] `hcl:"commands,attr"`
	// Cpu: number, required
	Cpu terra.NumberValue `hcl:"cpu,attr" validate:"required"`
	// CpuLimit: number, optional
	CpuLimit terra.NumberValue `hcl:"cpu_limit,attr"`
	// EnvironmentVariables: map of string, optional
	EnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"environment_variables,attr"`
	// Image: string, required
	Image terra.StringValue `hcl:"image,attr" validate:"required"`
	// Memory: number, required
	Memory terra.NumberValue `hcl:"memory,attr" validate:"required"`
	// MemoryLimit: number, optional
	MemoryLimit terra.NumberValue `hcl:"memory_limit,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// SecureEnvironmentVariables: map of string, optional
	SecureEnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"secure_environment_variables,attr"`
	// Gpu: optional
	Gpu *Gpu `hcl:"gpu,block"`
	// GpuLimit: optional
	GpuLimit *GpuLimit `hcl:"gpu_limit,block"`
	// LivenessProbe: optional
	LivenessProbe *LivenessProbe `hcl:"liveness_probe,block"`
	// Ports: min=0
	Ports []Ports `hcl:"ports,block" validate:"min=0"`
	// ReadinessProbe: optional
	ReadinessProbe *ReadinessProbe `hcl:"readiness_probe,block"`
	// ContainerVolume: min=0
	Volume []ContainerVolume `hcl:"volume,block" validate:"min=0"`
}

type ContainerAttributes

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

func (ContainerAttributes) Commands

func (ContainerAttributes) Cpu

func (ContainerAttributes) CpuLimit

func (c ContainerAttributes) CpuLimit() terra.NumberValue

func (ContainerAttributes) EnvironmentVariables

func (c ContainerAttributes) EnvironmentVariables() terra.MapValue[terra.StringValue]

func (ContainerAttributes) Gpu

func (ContainerAttributes) GpuLimit

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

func (c ContainerAttributes) MemoryLimit() terra.NumberValue

func (ContainerAttributes) Name

func (ContainerAttributes) Ports

func (ContainerAttributes) ReadinessProbe

func (ContainerAttributes) SecureEnvironmentVariables

func (c ContainerAttributes) SecureEnvironmentVariables() terra.MapValue[terra.StringValue]

func (ContainerAttributes) Volume

type ContainerState

type ContainerState struct {
	Commands                   []string               `json:"commands"`
	Cpu                        float64                `json:"cpu"`
	CpuLimit                   float64                `json:"cpu_limit"`
	EnvironmentVariables       map[string]string      `json:"environment_variables"`
	Image                      string                 `json:"image"`
	Memory                     float64                `json:"memory"`
	MemoryLimit                float64                `json:"memory_limit"`
	Name                       string                 `json:"name"`
	SecureEnvironmentVariables map[string]string      `json:"secure_environment_variables"`
	Gpu                        []GpuState             `json:"gpu"`
	GpuLimit                   []GpuLimitState        `json:"gpu_limit"`
	LivenessProbe              []LivenessProbeState   `json:"liveness_probe"`
	Ports                      []PortsState           `json:"ports"`
	ReadinessProbe             []ReadinessProbeState  `json:"readiness_probe"`
	Volume                     []ContainerVolumeState `json:"volume"`
}

type ContainerVolume

type ContainerVolume struct {
	// EmptyDir: bool, optional
	EmptyDir terra.BoolValue `hcl:"empty_dir,attr"`
	// MountPath: string, required
	MountPath terra.StringValue `hcl:"mount_path,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ReadOnly: bool, optional
	ReadOnly terra.BoolValue `hcl:"read_only,attr"`
	// Secret: map of string, optional
	Secret terra.MapValue[terra.StringValue] `hcl:"secret,attr"`
	// ShareName: string, optional
	ShareName terra.StringValue `hcl:"share_name,attr"`
	// StorageAccountKey: string, optional
	StorageAccountKey terra.StringValue `hcl:"storage_account_key,attr"`
	// StorageAccountName: string, optional
	StorageAccountName terra.StringValue `hcl:"storage_account_name,attr"`
	// ContainerVolumeGitRepo: optional
	GitRepo *ContainerVolumeGitRepo `hcl:"git_repo,block"`
}

type ContainerVolumeAttributes

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

func (ContainerVolumeAttributes) EmptyDir

func (ContainerVolumeAttributes) GitRepo

func (ContainerVolumeAttributes) InternalRef

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

func (ContainerVolumeAttributes) InternalTokens

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

func (ContainerVolumeAttributes) InternalWithRef

func (ContainerVolumeAttributes) MountPath

func (ContainerVolumeAttributes) Name

func (ContainerVolumeAttributes) ReadOnly

func (ContainerVolumeAttributes) Secret

func (ContainerVolumeAttributes) ShareName

func (ContainerVolumeAttributes) StorageAccountKey

func (v ContainerVolumeAttributes) StorageAccountKey() terra.StringValue

func (ContainerVolumeAttributes) StorageAccountName

func (v ContainerVolumeAttributes) StorageAccountName() terra.StringValue

type ContainerVolumeGitRepo

type ContainerVolumeGitRepo struct {
	// Directory: string, optional
	Directory terra.StringValue `hcl:"directory,attr"`
	// Revision: string, optional
	Revision terra.StringValue `hcl:"revision,attr"`
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
}

type ContainerVolumeGitRepoAttributes

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

func (ContainerVolumeGitRepoAttributes) Directory

func (ContainerVolumeGitRepoAttributes) InternalRef

func (ContainerVolumeGitRepoAttributes) InternalTokens

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

func (ContainerVolumeGitRepoAttributes) InternalWithRef

func (ContainerVolumeGitRepoAttributes) Revision

func (ContainerVolumeGitRepoAttributes) Url

type ContainerVolumeGitRepoState

type ContainerVolumeGitRepoState struct {
	Directory string `json:"directory"`
	Revision  string `json:"revision"`
	Url       string `json:"url"`
}

type ContainerVolumeState

type ContainerVolumeState struct {
	EmptyDir           bool                          `json:"empty_dir"`
	MountPath          string                        `json:"mount_path"`
	Name               string                        `json:"name"`
	ReadOnly           bool                          `json:"read_only"`
	Secret             map[string]string             `json:"secret"`
	ShareName          string                        `json:"share_name"`
	StorageAccountKey  string                        `json:"storage_account_key"`
	StorageAccountName string                        `json:"storage_account_name"`
	GitRepo            []ContainerVolumeGitRepoState `json:"git_repo"`
}

type Diagnostics

type Diagnostics struct {
	// LogAnalytics: required
	LogAnalytics *LogAnalytics `hcl:"log_analytics,block" validate:"required"`
}

type DiagnosticsAttributes

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

func (DiagnosticsAttributes) InternalRef

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

func (DiagnosticsAttributes) InternalTokens

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

func (DiagnosticsAttributes) InternalWithRef

func (DiagnosticsAttributes) LogAnalytics

type DiagnosticsState

type DiagnosticsState struct {
	LogAnalytics []LogAnalyticsState `json:"log_analytics"`
}

type DnsConfig

type DnsConfig struct {
	// Nameservers: list of string, required
	Nameservers terra.ListValue[terra.StringValue] `hcl:"nameservers,attr" validate:"required"`
	// Options: set of string, optional
	Options terra.SetValue[terra.StringValue] `hcl:"options,attr"`
	// SearchDomains: set of string, optional
	SearchDomains terra.SetValue[terra.StringValue] `hcl:"search_domains,attr"`
}

type DnsConfigAttributes

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

func (DnsConfigAttributes) InternalRef

func (dc DnsConfigAttributes) InternalRef() (terra.Reference, error)

func (DnsConfigAttributes) InternalTokens

func (dc DnsConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DnsConfigAttributes) InternalWithRef

func (dc DnsConfigAttributes) InternalWithRef(ref terra.Reference) DnsConfigAttributes

func (DnsConfigAttributes) Nameservers

func (DnsConfigAttributes) Options

func (DnsConfigAttributes) SearchDomains

func (dc DnsConfigAttributes) SearchDomains() terra.SetValue[terra.StringValue]

type DnsConfigState

type DnsConfigState struct {
	Nameservers   []string `json:"nameservers"`
	Options       []string `json:"options"`
	SearchDomains []string `json:"search_domains"`
}

type ExposedPort

type ExposedPort struct {
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
}

type ExposedPortAttributes

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

func (ExposedPortAttributes) InternalRef

func (ep ExposedPortAttributes) InternalRef() (terra.Reference, error)

func (ExposedPortAttributes) InternalTokens

func (ep ExposedPortAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExposedPortAttributes) InternalWithRef

func (ExposedPortAttributes) Port

func (ExposedPortAttributes) Protocol

func (ep ExposedPortAttributes) Protocol() terra.StringValue

type ExposedPortState

type ExposedPortState struct {
	Port     float64 `json:"port"`
	Protocol string  `json:"protocol"`
}

type Gpu

type Gpu struct {
	// Count: number, optional
	Count terra.NumberValue `hcl:"count,attr"`
	// Sku: string, optional
	Sku terra.StringValue `hcl:"sku,attr"`
}

type GpuAttributes

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

func (GpuAttributes) Count

func (g GpuAttributes) Count() terra.NumberValue

func (GpuAttributes) InternalRef

func (g GpuAttributes) InternalRef() (terra.Reference, error)

func (GpuAttributes) InternalTokens

func (g GpuAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GpuAttributes) InternalWithRef

func (g GpuAttributes) InternalWithRef(ref terra.Reference) GpuAttributes

func (GpuAttributes) Sku

type GpuLimit

type GpuLimit struct {
	// Count: number, optional
	Count terra.NumberValue `hcl:"count,attr"`
	// Sku: string, optional
	Sku terra.StringValue `hcl:"sku,attr"`
}

type GpuLimitAttributes

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

func (GpuLimitAttributes) Count

func (GpuLimitAttributes) InternalRef

func (gl GpuLimitAttributes) InternalRef() (terra.Reference, error)

func (GpuLimitAttributes) InternalTokens

func (gl GpuLimitAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GpuLimitAttributes) InternalWithRef

func (gl GpuLimitAttributes) InternalWithRef(ref terra.Reference) GpuLimitAttributes

func (GpuLimitAttributes) Sku

type GpuLimitState

type GpuLimitState struct {
	Count float64 `json:"count"`
	Sku   string  `json:"sku"`
}

type GpuState

type GpuState struct {
	Count float64 `json:"count"`
	Sku   string  `json:"sku"`
}

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 ImageRegistryCredential

type ImageRegistryCredential struct {
	// Password: string, optional
	Password terra.StringValue `hcl:"password,attr"`
	// Server: string, required
	Server terra.StringValue `hcl:"server,attr" validate:"required"`
	// UserAssignedIdentityId: string, optional
	UserAssignedIdentityId terra.StringValue `hcl:"user_assigned_identity_id,attr"`
	// Username: string, optional
	Username terra.StringValue `hcl:"username,attr"`
}

type ImageRegistryCredentialAttributes

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

func (ImageRegistryCredentialAttributes) InternalRef

func (ImageRegistryCredentialAttributes) InternalTokens

func (irc ImageRegistryCredentialAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ImageRegistryCredentialAttributes) InternalWithRef

func (ImageRegistryCredentialAttributes) Password

func (ImageRegistryCredentialAttributes) Server

func (ImageRegistryCredentialAttributes) UserAssignedIdentityId

func (irc ImageRegistryCredentialAttributes) UserAssignedIdentityId() terra.StringValue

func (ImageRegistryCredentialAttributes) Username

type ImageRegistryCredentialState

type ImageRegistryCredentialState struct {
	Password               string `json:"password"`
	Server                 string `json:"server"`
	UserAssignedIdentityId string `json:"user_assigned_identity_id"`
	Username               string `json:"username"`
}

type InitContainer

type InitContainer struct {
	// Commands: list of string, optional
	Commands terra.ListValue[terra.StringValue] `hcl:"commands,attr"`
	// EnvironmentVariables: map of string, optional
	EnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"environment_variables,attr"`
	// Image: string, required
	Image terra.StringValue `hcl:"image,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// SecureEnvironmentVariables: map of string, optional
	SecureEnvironmentVariables terra.MapValue[terra.StringValue] `hcl:"secure_environment_variables,attr"`
	// InitContainerVolume: min=0
	Volume []InitContainerVolume `hcl:"volume,block" validate:"min=0"`
}

type InitContainerAttributes

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

func (InitContainerAttributes) Commands

func (InitContainerAttributes) EnvironmentVariables

func (ic InitContainerAttributes) EnvironmentVariables() terra.MapValue[terra.StringValue]

func (InitContainerAttributes) Image

func (InitContainerAttributes) InternalRef

func (ic InitContainerAttributes) InternalRef() (terra.Reference, error)

func (InitContainerAttributes) InternalTokens

func (ic InitContainerAttributes) InternalTokens() (hclwrite.Tokens, error)

func (InitContainerAttributes) InternalWithRef

func (InitContainerAttributes) Name

func (InitContainerAttributes) SecureEnvironmentVariables

func (ic InitContainerAttributes) SecureEnvironmentVariables() terra.MapValue[terra.StringValue]

func (InitContainerAttributes) Volume

type InitContainerState

type InitContainerState struct {
	Commands                   []string                   `json:"commands"`
	EnvironmentVariables       map[string]string          `json:"environment_variables"`
	Image                      string                     `json:"image"`
	Name                       string                     `json:"name"`
	SecureEnvironmentVariables map[string]string          `json:"secure_environment_variables"`
	Volume                     []InitContainerVolumeState `json:"volume"`
}

type InitContainerVolume

type InitContainerVolume struct {
	// EmptyDir: bool, optional
	EmptyDir terra.BoolValue `hcl:"empty_dir,attr"`
	// MountPath: string, required
	MountPath terra.StringValue `hcl:"mount_path,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ReadOnly: bool, optional
	ReadOnly terra.BoolValue `hcl:"read_only,attr"`
	// Secret: map of string, optional
	Secret terra.MapValue[terra.StringValue] `hcl:"secret,attr"`
	// ShareName: string, optional
	ShareName terra.StringValue `hcl:"share_name,attr"`
	// StorageAccountKey: string, optional
	StorageAccountKey terra.StringValue `hcl:"storage_account_key,attr"`
	// StorageAccountName: string, optional
	StorageAccountName terra.StringValue `hcl:"storage_account_name,attr"`
	// InitContainerVolumeGitRepo: optional
	GitRepo *InitContainerVolumeGitRepo `hcl:"git_repo,block"`
}

type InitContainerVolumeAttributes

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

func (InitContainerVolumeAttributes) EmptyDir

func (InitContainerVolumeAttributes) GitRepo

func (InitContainerVolumeAttributes) InternalRef

func (InitContainerVolumeAttributes) InternalTokens

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

func (InitContainerVolumeAttributes) InternalWithRef

func (InitContainerVolumeAttributes) MountPath

func (InitContainerVolumeAttributes) Name

func (InitContainerVolumeAttributes) ReadOnly

func (InitContainerVolumeAttributes) Secret

func (InitContainerVolumeAttributes) ShareName

func (InitContainerVolumeAttributes) StorageAccountKey

func (v InitContainerVolumeAttributes) StorageAccountKey() terra.StringValue

func (InitContainerVolumeAttributes) StorageAccountName

func (v InitContainerVolumeAttributes) StorageAccountName() terra.StringValue

type InitContainerVolumeGitRepo

type InitContainerVolumeGitRepo struct {
	// Directory: string, optional
	Directory terra.StringValue `hcl:"directory,attr"`
	// Revision: string, optional
	Revision terra.StringValue `hcl:"revision,attr"`
	// Url: string, required
	Url terra.StringValue `hcl:"url,attr" validate:"required"`
}

type InitContainerVolumeGitRepoAttributes

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

func (InitContainerVolumeGitRepoAttributes) Directory

func (InitContainerVolumeGitRepoAttributes) InternalRef

func (InitContainerVolumeGitRepoAttributes) InternalTokens

func (InitContainerVolumeGitRepoAttributes) InternalWithRef

func (InitContainerVolumeGitRepoAttributes) Revision

func (InitContainerVolumeGitRepoAttributes) Url

type InitContainerVolumeGitRepoState

type InitContainerVolumeGitRepoState struct {
	Directory string `json:"directory"`
	Revision  string `json:"revision"`
	Url       string `json:"url"`
}

type InitContainerVolumeState

type InitContainerVolumeState struct {
	EmptyDir           bool                              `json:"empty_dir"`
	MountPath          string                            `json:"mount_path"`
	Name               string                            `json:"name"`
	ReadOnly           bool                              `json:"read_only"`
	Secret             map[string]string                 `json:"secret"`
	ShareName          string                            `json:"share_name"`
	StorageAccountKey  string                            `json:"storage_account_key"`
	StorageAccountName string                            `json:"storage_account_name"`
	GitRepo            []InitContainerVolumeGitRepoState `json:"git_repo"`
}

type LivenessProbe

type LivenessProbe struct {
	// Exec: list of string, optional
	Exec terra.ListValue[terra.StringValue] `hcl:"exec,attr"`
	// FailureThreshold: number, optional
	FailureThreshold terra.NumberValue `hcl:"failure_threshold,attr"`
	// InitialDelaySeconds: number, optional
	InitialDelaySeconds terra.NumberValue `hcl:"initial_delay_seconds,attr"`
	// PeriodSeconds: number, optional
	PeriodSeconds terra.NumberValue `hcl:"period_seconds,attr"`
	// SuccessThreshold: number, optional
	SuccessThreshold terra.NumberValue `hcl:"success_threshold,attr"`
	// TimeoutSeconds: number, optional
	TimeoutSeconds terra.NumberValue `hcl:"timeout_seconds,attr"`
	// LivenessProbeHttpGet: min=0
	HttpGet []LivenessProbeHttpGet `hcl:"http_get,block" validate:"min=0"`
}

type LivenessProbeAttributes

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

func (LivenessProbeAttributes) Exec

func (LivenessProbeAttributes) FailureThreshold

func (lp LivenessProbeAttributes) FailureThreshold() terra.NumberValue

func (LivenessProbeAttributes) HttpGet

func (LivenessProbeAttributes) InitialDelaySeconds

func (lp LivenessProbeAttributes) InitialDelaySeconds() 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) PeriodSeconds

func (lp LivenessProbeAttributes) PeriodSeconds() terra.NumberValue

func (LivenessProbeAttributes) SuccessThreshold

func (lp LivenessProbeAttributes) SuccessThreshold() terra.NumberValue

func (LivenessProbeAttributes) TimeoutSeconds

func (lp LivenessProbeAttributes) TimeoutSeconds() terra.NumberValue

type LivenessProbeHttpGet

type LivenessProbeHttpGet struct {
	// HttpHeaders: map of string, optional
	HttpHeaders terra.MapValue[terra.StringValue] `hcl:"http_headers,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// Scheme: string, optional
	Scheme terra.StringValue `hcl:"scheme,attr"`
}

type LivenessProbeHttpGetAttributes

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

func (LivenessProbeHttpGetAttributes) HttpHeaders

func (LivenessProbeHttpGetAttributes) InternalRef

func (LivenessProbeHttpGetAttributes) InternalTokens

func (hg LivenessProbeHttpGetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LivenessProbeHttpGetAttributes) InternalWithRef

func (LivenessProbeHttpGetAttributes) Path

func (LivenessProbeHttpGetAttributes) Port

func (LivenessProbeHttpGetAttributes) Scheme

type LivenessProbeHttpGetState

type LivenessProbeHttpGetState struct {
	HttpHeaders map[string]string `json:"http_headers"`
	Path        string            `json:"path"`
	Port        float64           `json:"port"`
	Scheme      string            `json:"scheme"`
}

type LivenessProbeState

type LivenessProbeState struct {
	Exec                []string                    `json:"exec"`
	FailureThreshold    float64                     `json:"failure_threshold"`
	InitialDelaySeconds float64                     `json:"initial_delay_seconds"`
	PeriodSeconds       float64                     `json:"period_seconds"`
	SuccessThreshold    float64                     `json:"success_threshold"`
	TimeoutSeconds      float64                     `json:"timeout_seconds"`
	HttpGet             []LivenessProbeHttpGetState `json:"http_get"`
}

type LogAnalytics

type LogAnalytics struct {
	// LogType: string, optional
	LogType terra.StringValue `hcl:"log_type,attr"`
	// Metadata: map of string, optional
	Metadata terra.MapValue[terra.StringValue] `hcl:"metadata,attr"`
	// WorkspaceId: string, required
	WorkspaceId terra.StringValue `hcl:"workspace_id,attr" validate:"required"`
	// WorkspaceKey: string, required
	WorkspaceKey terra.StringValue `hcl:"workspace_key,attr" validate:"required"`
}

type LogAnalyticsAttributes

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

func (LogAnalyticsAttributes) InternalRef

func (la LogAnalyticsAttributes) InternalRef() (terra.Reference, error)

func (LogAnalyticsAttributes) InternalTokens

func (la LogAnalyticsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LogAnalyticsAttributes) InternalWithRef

func (LogAnalyticsAttributes) LogType

func (LogAnalyticsAttributes) Metadata

func (LogAnalyticsAttributes) WorkspaceId

func (la LogAnalyticsAttributes) WorkspaceId() terra.StringValue

func (LogAnalyticsAttributes) WorkspaceKey

func (la LogAnalyticsAttributes) WorkspaceKey() terra.StringValue

type LogAnalyticsState

type LogAnalyticsState struct {
	LogType      string            `json:"log_type"`
	Metadata     map[string]string `json:"metadata"`
	WorkspaceId  string            `json:"workspace_id"`
	WorkspaceKey string            `json:"workspace_key"`
}

type Ports

type Ports struct {
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// Protocol: string, optional
	Protocol terra.StringValue `hcl:"protocol,attr"`
}

type PortsAttributes

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

func (PortsAttributes) InternalRef

func (p PortsAttributes) InternalRef() (terra.Reference, error)

func (PortsAttributes) InternalTokens

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

func (PortsAttributes) InternalWithRef

func (p PortsAttributes) InternalWithRef(ref terra.Reference) PortsAttributes

func (PortsAttributes) Port

func (PortsAttributes) Protocol

func (p PortsAttributes) Protocol() terra.StringValue

type PortsState

type PortsState struct {
	Port     float64 `json:"port"`
	Protocol string  `json:"protocol"`
}

type ReadinessProbe

type ReadinessProbe struct {
	// Exec: list of string, optional
	Exec terra.ListValue[terra.StringValue] `hcl:"exec,attr"`
	// FailureThreshold: number, optional
	FailureThreshold terra.NumberValue `hcl:"failure_threshold,attr"`
	// InitialDelaySeconds: number, optional
	InitialDelaySeconds terra.NumberValue `hcl:"initial_delay_seconds,attr"`
	// PeriodSeconds: number, optional
	PeriodSeconds terra.NumberValue `hcl:"period_seconds,attr"`
	// SuccessThreshold: number, optional
	SuccessThreshold terra.NumberValue `hcl:"success_threshold,attr"`
	// TimeoutSeconds: number, optional
	TimeoutSeconds terra.NumberValue `hcl:"timeout_seconds,attr"`
	// ReadinessProbeHttpGet: min=0
	HttpGet []ReadinessProbeHttpGet `hcl:"http_get,block" validate:"min=0"`
}

type ReadinessProbeAttributes

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

func (ReadinessProbeAttributes) Exec

func (ReadinessProbeAttributes) FailureThreshold

func (rp ReadinessProbeAttributes) FailureThreshold() terra.NumberValue

func (ReadinessProbeAttributes) HttpGet

func (ReadinessProbeAttributes) InitialDelaySeconds

func (rp ReadinessProbeAttributes) InitialDelaySeconds() terra.NumberValue

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

func (rp ReadinessProbeAttributes) PeriodSeconds() terra.NumberValue

func (ReadinessProbeAttributes) SuccessThreshold

func (rp ReadinessProbeAttributes) SuccessThreshold() terra.NumberValue

func (ReadinessProbeAttributes) TimeoutSeconds

func (rp ReadinessProbeAttributes) TimeoutSeconds() terra.NumberValue

type ReadinessProbeHttpGet

type ReadinessProbeHttpGet struct {
	// HttpHeaders: map of string, optional
	HttpHeaders terra.MapValue[terra.StringValue] `hcl:"http_headers,attr"`
	// Path: string, optional
	Path terra.StringValue `hcl:"path,attr"`
	// Port: number, optional
	Port terra.NumberValue `hcl:"port,attr"`
	// Scheme: string, optional
	Scheme terra.StringValue `hcl:"scheme,attr"`
}

type ReadinessProbeHttpGetAttributes

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

func (ReadinessProbeHttpGetAttributes) HttpHeaders

func (ReadinessProbeHttpGetAttributes) InternalRef

func (ReadinessProbeHttpGetAttributes) InternalTokens

func (hg ReadinessProbeHttpGetAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReadinessProbeHttpGetAttributes) InternalWithRef

func (ReadinessProbeHttpGetAttributes) Path

func (ReadinessProbeHttpGetAttributes) Port

func (ReadinessProbeHttpGetAttributes) Scheme

type ReadinessProbeHttpGetState

type ReadinessProbeHttpGetState struct {
	HttpHeaders map[string]string `json:"http_headers"`
	Path        string            `json:"path"`
	Port        float64           `json:"port"`
	Scheme      string            `json:"scheme"`
}

type ReadinessProbeState

type ReadinessProbeState struct {
	Exec                []string                     `json:"exec"`
	FailureThreshold    float64                      `json:"failure_threshold"`
	InitialDelaySeconds float64                      `json:"initial_delay_seconds"`
	PeriodSeconds       float64                      `json:"period_seconds"`
	SuccessThreshold    float64                      `json:"success_threshold"`
	TimeoutSeconds      float64                      `json:"timeout_seconds"`
	HttpGet             []ReadinessProbeHttpGetState `json:"http_get"`
}

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

Jump to

Keyboard shortcuts

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