terraform

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProviders

func GetProviders() map[string]cuexruntime.ProviderFn

GetProviders returns the cue providers.

func GetTemplate

func GetTemplate() string

GetTemplate returns the cue template.

Types

type ComponentNameVars

type ComponentNameVars struct {
	ComponentName string `json:"componentName"`
}

ComponentNameVars is the input parameters for GetConnectionStatus.

type ComponentReturns

type ComponentReturns = Outputs[ComponentVars]

ComponentReturns is the return value for LoadTerraformComponents.

func LoadTerraformComponents

func LoadTerraformComponents(ctx context.Context, params *oamprovidertypes.OAMParams[any]) (*ComponentReturns, error)

LoadTerraformComponents loads Terraform components.

type ComponentVars

type ComponentVars struct {
	Components []common.ApplicationComponent `json:"components"`
}

ComponentVars is the input parameters for LoadTerraformComponents.

type ConnectionParams

ConnectionParams is the input parameters for GetConnectionStatus.

type ConnectionResult

type ConnectionResult struct {
	Healthy bool `json:"healthy"`
}

ConnectionResult is the result for connection status.

type ConnectionReturns

type ConnectionReturns = Outputs[ConnectionResult]

ConnectionReturns is the return value for connection status.

func GetConnectionStatus

func GetConnectionStatus(_ context.Context, params *ConnectionParams) (*ConnectionReturns, error)

GetConnectionStatus returns the connection status of a component.

type Inputs

type Inputs[T any] struct {
	Inputs T `json:"inputs"`
}

Inputs is the input parameters for Terraform components.

type Outputs

type Outputs[T any] struct {
	Outputs T `json:"outputs"`
}

Outputs is the output parameters for Terraform components.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳