deploy

package
v0.1.42 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AwsCredsNotSetErr   = status.Error(codes.InvalidArgument, "aws credentials are required but not set")
	AzureCredsNotSetErr = status.Error(codes.InvalidArgument, "azure credentials are required but not set")
)

Functions

func GetTempDirForUser added in v0.1.38

func GetTempDirForUser(readonly bool, userId string) string

func GetTerraformBlock added in v0.1.18

func GetTerraformBlock(userId string) (string, error)

Types

type DeploymentExecutor added in v0.1.38

type DeploymentExecutor struct {
	TfCmd TerraformCommand
}

func NewDeploymentExecutor added in v0.1.38

func NewDeploymentExecutor() DeploymentExecutor

func (DeploymentExecutor) Deploy added in v0.1.38

func (DeploymentExecutor) EncodeAndStoreTfFile added in v0.1.38

func (d DeploymentExecutor) EncodeAndStoreTfFile(ctx context.Context, c *resources.MultyConfig, prev resources.Resource, curr resources.Resource, readonly bool) (EncodedResources, error)

func (DeploymentExecutor) GetState added in v0.1.38

func (d DeploymentExecutor) GetState(ctx context.Context, userId string, readonly bool) (*output.TfState, error)

func (DeploymentExecutor) MaybeInit added in v0.1.38

func (d DeploymentExecutor) MaybeInit(ctx context.Context, userId string, readonly bool) error

func (DeploymentExecutor) RefreshState added in v0.1.38

func (d DeploymentExecutor) RefreshState(ctx context.Context, userId string, c *resources.MultyConfig) error

type EncodedResources added in v0.1.18

type EncodedResources struct {
	HclString string
	// contains filtered or unexported fields
}

func EncodeTfFile added in v0.1.38

type TerraformCommand added in v0.1.38

type TerraformCommand interface {
	Init(ctx context.Context, dir string) error
	Apply(ctx context.Context, dir string, resources []string) error
	Refresh(ctx context.Context, dir string) error
	GetState(ctx context.Context, dir string) (*output.TfState, error)
}

Jump to

Keyboard shortcuts

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