infra

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEnvironmentFile

func AddEnvironmentFile() error

func AddHandlerFile

func AddHandlerFile(cfg *config.Config) error

func AddHandlerSection

func AddHandlerSection(handlerPath string, sectionName string, sectionContent string) error

func AddMainFile

func AddMainFile(cfg *config.Config) error

func AddPlatform

func AddPlatform(platform platform.Platform, environmentsMainContent string, modulesMainContent string) error

func AddPlatformHandler

func AddPlatformHandler(cfg *config.Config, platform string, handlerCode string) error

func GetHandlerFileName

func GetHandlerFileName(language lang.Language) string

func GetHandlerPath

func GetHandlerPath(language lang.Language) string

func GetMainFileName

func GetMainFileName(language lang.Language) string

func GetMainPath

func GetMainPath(language lang.Language) string

func GetPlatformTerraformDir

func GetPlatformTerraformDir(platform platform.Platform) string

func ListPlatforms

func ListPlatforms() []string

func PreDeployValidate

func PreDeployValidate(cfg *config.Config, platform platform.Platform) error

func WriteEnvironmentVariables

func WriteEnvironmentVariables(platform platform.Platform) error

Types

type TerraformManager

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

func NewTerraformManager

func NewTerraformManager(workDir string) (*TerraformManager, error)

func (*TerraformManager) Apply

func (m *TerraformManager) Apply(ctx context.Context, vars map[string]string) error

func (*TerraformManager) Init

func (m *TerraformManager) Init(ctx context.Context) error

func (*TerraformManager) Output

func (*TerraformManager) Plan

func (m *TerraformManager) Plan(ctx context.Context, vars map[string]string) (bool, error)

Jump to

Keyboard shortcuts

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