deploy

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AwsProviderVersion   = "4.8.0"
	AzureProviderVersion = "3.0.2"
	StateRegion          = "eu-west-2"
	Bucket               = "multy-users-tfstate"
)

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 Deploy

func GetResources added in v0.1.16

func GetResources(c *configpb.Config, prev *configpb.Resource) (*encoder.DecodedResources, error)

func GetState

func GetState(ctx context.Context, userId string) (*output.TfState, error)

func GetTerraformBlock added in v0.1.18

func GetTerraformBlock(userId string) string

func MaybeInit added in v0.1.14

func MaybeInit(ctx context.Context, userId string) error

func RefreshState added in v0.1.16

func RefreshState(ctx context.Context, userId string) error

Types

type EncodedResources added in v0.1.18

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

func Encode added in v0.1.16

func EncodeAndStoreTfFile added in v0.1.17

func EncodeAndStoreTfFile(ctx context.Context, c *configpb.Config, prev *configpb.Resource, curr *configpb.Resource) (EncodedResources, error)

type WithCommonParams

type WithCommonParams interface {
	GetCommonParameters() *commonpb.ResourceCommonArgs
}

Jump to

Keyboard shortcuts

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