rg

package
v0.1.33 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PREFIX       = "Prefix"
	ENVIRONMENT  = "Env"
	APP          = "App"
	RESOURCETYPE = "ResourceType"
	LOCATION     = "Location"
	SUFFIX       = "Suffix"
)
View Source
const AzureResourceName = "azurerm_resource_group"

Variables

This section is empty.

Functions

func GetDefaultResourceGroupIdString added in v0.1.15

func GetDefaultResourceGroupIdString(resourceType string, groupId string) string

func GetResourceGroupName

func GetResourceGroupName(name string) string

Types

type ResourceGroup

type ResourceGroup struct {
	*common.AzResource `hcl:",squash" default:"name=azurerm_resource_group"`
	Location           string `hcl:"location"`
}

type Type

type Type struct {
	ResourceId string
	Name       string `hcl:"name"`
	App        string `hcl:"app"`
	Location   commonpb.Location
	Cloud      commonpb.CloudProvider
}

func (*Type) GetCloud added in v0.1.15

func (rg *Type) GetCloud() commonpb.CloudProvider

func (*Type) GetCloudSpecificLocation added in v0.1.15

func (rg *Type) GetCloudSpecificLocation() string

func (*Type) GetCommonArgs added in v0.1.30

func (rg *Type) GetCommonArgs() any

func (*Type) GetDependencies

func (rg *Type) GetDependencies(ctx resources.MultyContext) []resources.CloudSpecificResource

func (*Type) GetMainResourceName

func (rg *Type) GetMainResourceName() (string, error)

func (*Type) GetOutputValues

func (rg *Type) GetOutputValues(cloud commonpb.CloudProvider) map[string]cty.Value

func (*Type) GetResourceId

func (rg *Type) GetResourceId() string

func (*Type) Translate

func (rg *Type) Translate(resources.MultyContext) ([]output.TfBlock, error)

func (*Type) Validate

func (rg *Type) Validate(ctx resources.MultyContext) []validate.ValidationError

Jump to

Keyboard shortcuts

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