deploy

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 27 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")
	GcpCredsNotSetErr   = status.Error(codes.InvalidArgument, "gcp credentials are required but not set")
)

Functions

func GetTempDirForUser added in v0.1.38

func GetTempDirForUser(configPrefix 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 (d DeploymentExecutor) Deploy(ctx context.Context, c *resources.MultyConfig, prev resources.Resource, curr resources.Resource, configPrefix string) (rollbackFn func(), err error)

func (DeploymentExecutor) EncodeAndStoreTfFile added in v0.1.38

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

func (DeploymentExecutor) GetState added in v0.1.38

func (d DeploymentExecutor) GetState(ctx context.Context, configPrefix string, client db.TfStateReader) (*output.TfState, error)

func (DeploymentExecutor) MaybeInit added in v0.1.38

func (d DeploymentExecutor) MaybeInit(ctx context.Context, configPrefix string) error

func (DeploymentExecutor) RefreshState added in v0.1.38

func (d DeploymentExecutor) RefreshState(ctx context.Context, configPrefix 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, userId string, dir db.TfStateReader) (*output.TfState, error)
}

Jump to

Keyboard shortcuts

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