deploy

package
v0.1.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AwsProviderVersion = "4.8.0"
View Source
const AzureProviderVersion = "3.0.2"

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")
)
View Source
var RequiredProviders = fmt.Sprintf(`
terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "%s"
    }
	azurerm = {
      source = "hashicorp/azurerm"
      version = "%s"
	}
  }
}
`, AwsProviderVersion, AzureProviderVersion)

Functions

func Deploy

func Encode added in v0.1.16

func Encode(credentials *credspb.CloudCredentials, c *configpb.Config, prev *configpb.Resource, curr *configpb.Resource) (string, error)

func GetResources added in v0.1.16

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

func GetState

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

func MaybeInit added in v0.1.14

func MaybeInit(userId string) error

func RefreshState added in v0.1.16

func RefreshState(userId string) error

Types

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