Documentation
¶
Index ¶
- Constants
- func GetDefaultResourceGroupId() hcl.Expression
- func GetResourceGroupName(name string, cloud common.CloudProvider) string
- type ResourceGroup
- type Type
- func (rg *Type) GetDependencies(ctx resources.MultyContext) []resources.CloudSpecificResource
- func (rg *Type) GetLocation(cloud common.CloudProvider, ctx resources.MultyContext) string
- func (rg *Type) GetMainResourceName(cloud common.CloudProvider) (string, error)
- func (rg *Type) GetOutputValues(cloud common.CloudProvider) map[string]cty.Value
- func (rg *Type) GetResourceId() string
- func (rg *Type) Translate(cloud common.CloudProvider, ctx resources.MultyContext) ([]output.TfBlock, error)
- func (rg *Type) Validate(ctx resources.MultyContext, cloud common.CloudProvider) []validate.ValidationError
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 (*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 (*Type) GetResourceId ¶
func (*Type) Translate ¶
func (rg *Type) Translate(cloud common.CloudProvider, ctx resources.MultyContext) ([]output.TfBlock, error)
func (*Type) Validate ¶
func (rg *Type) Validate(ctx resources.MultyContext, cloud common.CloudProvider) []validate.ValidationError
Click to show internal directories.
Click to hide internal directories.