rg

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MPL-2.0 Imports: 8 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 GetDefaultResourceGroupId

func GetDefaultResourceGroupId() hcl.Expression

func GetResourceGroupName

func GetResourceGroupName(name string, cloud common.CloudProvider) 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"`
	Location   string `hcl:"location"`
	App        string `hcl:"app"`
}

func DefaultResourceGroup

func DefaultResourceGroup(id string) *Type

func (*Type) GetDependencies

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

func (*Type) GetLocation

func (rg *Type) GetLocation(cloud common.CloudProvider, ctx resources.MultyContext) string

func (*Type) GetMainResourceName

func (rg *Type) GetMainResourceName(cloud common.CloudProvider) (string, error)

func (*Type) GetOutputValues

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

func (*Type) GetResourceId

func (rg *Type) GetResourceId() string

func (*Type) Translate

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

func (*Type) Validate

Jump to

Keyboard shortcuts

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