types

package
v0.1.37 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	INGRESS = "ingress"
	EGRESS  = "egress"
	BOTH    = "both"
	ALLOW   = "allow"
	DENY    = "deny"
)
View Source
const (
	INTERNET       = "Internet"
	VIRTUALNETWORK = "VirtualNetwork"
)
View Source
const AzureResourceName = "azurerm_resource_group"
View Source
const SasExpirationDuration = time.Hour * 24 * 365

Variables

View Source
var Metadatas = map[proto.Message]resources.ResourceMetadataInterface{
	&resourcespb.VirtualNetworkArgs{}:        &virtualNetworkMetadata,
	&resourcespb.SubnetArgs{}:                &subnetMetadata,
	&resourcespb.DatabaseArgs{}:              &dbMetadata,
	&resourcespb.PublicIpArgs{}:              &publicIpMetadata,
	&resourcespb.RouteTableArgs{}:            &routeTableMetadata,
	&resourcespb.RouteTableAssociationArgs{}: &routeTableAssociationMetadata,
	&resourcespb.KubernetesNodePoolArgs{}:    &kubernetesNodePoolMetadata,
	&resourcespb.KubernetesClusterArgs{}:     &kubernetesClusterMetadata,
	&resourcespb.LambdaArgs{}:                &lambdaMetadata,
	&resourcespb.NetworkInterfaceArgs{}:      &networkInterfaceMetadata,
	&resourcespb.NetworkSecurityGroupArgs{}:  &networkSecurityGroupMetadata,
	&resourcespb.ObjectStorageArgs{}:         &objectStorageMetadata,
	&resourcespb.ObjectStorageObjectArgs{}:   &objectStorageObjectMetadata,
	&resourcespb.VaultArgs{}:                 &vaultMetadata,
	&resourcespb.VaultAccessPolicyArgs{}:     &vaultAccessPolicyMetadata,
	&resourcespb.VaultSecretArgs{}:           &vaultSecretMetadata,
	&resourcespb.VirtualMachineArgs{}:        &virtualMachineMetadata,
	&resourcespb.ResourceGroupArgs{}:         &resourceGroupMetadata,
}

Functions

func DatabaseFromState added in v0.1.36

func DatabaseFromState(resource *Database, state *output.TfState) (*resourcespb.DatabaseResource, error)

func ExportVirtualNetwork added in v0.1.36

func ExportVirtualNetwork(r *VirtualNetwork, _ *resources.Resources) (*resourcespb.VirtualNetworkArgs, bool, error)

func GetResourceGroupName added in v0.1.36

func GetResourceGroupName(name string) string

func KubernetesClusterFromState added in v0.1.36

func KubernetesClusterFromState(resource *KubernetesCluster, state *output.TfState) (*resourcespb.KubernetesClusterResource, error)

func KubernetesNodePoolFromState added in v0.1.36

func KubernetesNodePoolFromState(resource *KubernetesNodePool, _ *output.TfState) (*resourcespb.KubernetesNodePoolResource, error)

func LambdaFromState added in v0.1.36

func LambdaFromState(resource *Lambda, state *output.TfState) (*resourcespb.LambdaResource, error)

func NetworkInterfaceFromState added in v0.1.36

func NetworkInterfaceFromState(resource *NetworkInterface, _ *output.TfState) (*resourcespb.NetworkInterfaceResource, error)

func NetworkSecurityGroupFromState added in v0.1.36

func NetworkSecurityGroupFromState(resource *NetworkSecurityGroup, _ *output.TfState) (*resourcespb.NetworkSecurityGroupResource, error)

func NewRg added in v0.1.36

func NewRg(resourceType string, r *resources.Resources, location commonpb.Location, cloud commonpb.CloudProvider) string

func NewRgFromParent added in v0.1.36

func NewRgFromParent(resourceType string, parentResourceGroupId string, r *resources.Resources, location commonpb.Location, cloud commonpb.CloudProvider) string

func ObjectStorageFromState added in v0.1.36

func ObjectStorageFromState(resource *ObjectStorage, _ *output.TfState) (*resourcespb.ObjectStorageResource, error)

func ObjectStorageObjectFromState added in v0.1.36

func ObjectStorageObjectFromState(r *ObjectStorageObject, state *output.TfState) (*resourcespb.ObjectStorageObjectResource, error)

func PublicIpFromState added in v0.1.36

func PublicIpFromState(resource *PublicIp, _ *output.TfState) (*resourcespb.PublicIpResource, error)

func ResourceGroupFromState added in v0.1.36

func ResourceGroupFromState(resource *ResourceGroup, _ *output.TfState) (*resourcespb.ResourceGroupResource, error)

func RouteTableAssociationFromState added in v0.1.36

func RouteTableAssociationFromState(resource *RouteTableAssociation, _ *output.TfState) (*resourcespb.RouteTableAssociationResource, error)

func RouteTableFromState added in v0.1.36

func RouteTableFromState(resource *RouteTable, _ *output.TfState) (*resourcespb.RouteTableResource, error)

func SubnetFromState added in v0.1.36

func SubnetFromState(r *Subnet, _ *output.TfState) (*resourcespb.SubnetResource, error)

func UpdateDatabase added in v0.1.36

func UpdateDatabase(resource *Database, vn *resourcespb.DatabaseArgs, others *resources.Resources) error

func UpdateKubernetesCluster added in v0.1.36

func UpdateKubernetesCluster(resource *KubernetesCluster, vn *resourcespb.KubernetesClusterArgs, others *resources.Resources) error

func UpdateKubernetesNodePool added in v0.1.36

func UpdateKubernetesNodePool(resource *KubernetesNodePool, vn *resourcespb.KubernetesNodePoolArgs, others *resources.Resources) error

func UpdateLambda added in v0.1.36

func UpdateLambda(resource *Lambda, vn *resourcespb.LambdaArgs, others *resources.Resources) error

func UpdateNetworkInterface added in v0.1.36

func UpdateNetworkInterface(resource *NetworkInterface, vn *resourcespb.NetworkInterfaceArgs, others *resources.Resources) error

func UpdateNetworkSecurityGroup added in v0.1.36

func UpdateNetworkSecurityGroup(resource *NetworkSecurityGroup, vn *resourcespb.NetworkSecurityGroupArgs, others *resources.Resources) error

func UpdateObjectStorage added in v0.1.36

func UpdateObjectStorage(resource *ObjectStorage, vn *resourcespb.ObjectStorageArgs, others *resources.Resources) error

func UpdateObjectStorageObject added in v0.1.36

func UpdateObjectStorageObject(resource *ObjectStorageObject, vn *resourcespb.ObjectStorageObjectArgs, others *resources.Resources) error

func UpdatePublicIp added in v0.1.36

func UpdatePublicIp(resource *PublicIp, vn *resourcespb.PublicIpArgs, others *resources.Resources) error

func UpdateResourceGroup added in v0.1.36

func UpdateResourceGroup(resource *ResourceGroup, vn *resourcespb.ResourceGroupArgs, others *resources.Resources) error

func UpdateRouteTable added in v0.1.36

func UpdateRouteTable(resource *RouteTable, vn *resourcespb.RouteTableArgs, others *resources.Resources) error

func UpdateRouteTableAssociation added in v0.1.36

func UpdateRouteTableAssociation(resource *RouteTableAssociation, vn *resourcespb.RouteTableAssociationArgs, others *resources.Resources) error

func UpdateSubnet added in v0.1.36

func UpdateSubnet(resource *Subnet, vn *resourcespb.SubnetArgs, others *resources.Resources) error

func UpdateVault added in v0.1.36

func UpdateVault(resource *Vault, vn *resourcespb.VaultArgs, others *resources.Resources) error

func UpdateVaultAccessPolicy added in v0.1.36

func UpdateVaultAccessPolicy(resource *VaultAccessPolicy, vn *resourcespb.VaultAccessPolicyArgs, others *resources.Resources) error

func UpdateVaultSecret added in v0.1.36

func UpdateVaultSecret(resource *VaultSecret, vn *resourcespb.VaultSecretArgs, others *resources.Resources) error

func UpdateVirtualMachine added in v0.1.36

func UpdateVirtualMachine(resource *VirtualMachine, vn *resourcespb.VirtualMachineArgs, others *resources.Resources) error

func UpdateVirtualNetwork added in v0.1.36

func UpdateVirtualNetwork(resource *VirtualNetwork, vn *resourcespb.VirtualNetworkArgs, others *resources.Resources) error

func VaultAccessPolicyFromState added in v0.1.36

func VaultAccessPolicyFromState(resource *VaultAccessPolicy, _ *output.TfState) (*resourcespb.VaultAccessPolicyResource, error)

func VaultFromState added in v0.1.36

func VaultFromState(resource *Vault, _ *output.TfState) (*resourcespb.VaultResource, error)

func VaultSecretFromState added in v0.1.36

func VaultSecretFromState(resource *VaultSecret, _ *output.TfState) (*resourcespb.VaultSecretResource, error)

func VirtualMachineFromState added in v0.1.36

func VirtualMachineFromState(resource *VirtualMachine, state *output.TfState) (*resourcespb.VirtualMachineResource, error)

func VirtualNetworkFromState added in v0.1.36

func VirtualNetworkFromState(r *VirtualNetwork, state *output.TfState) (*resourcespb.VirtualNetworkResource, error)

Types

type AclRules

type AclRules struct{}

type AwsCallerIdentityData

type AwsCallerIdentityData struct {
	*output.TerraformDataSource `hcl:",squash" default:"name=aws_caller_identity"`
}

type AwsRegionData

type AwsRegionData struct {
	*output.TerraformDataSource `hcl:",squash" default:"name=aws_region"`
}

type AzureClientConfig

type AzureClientConfig struct {
	*output.TerraformDataSource `hcl:",squash" default:"name=azurerm_client_config"`
}

type AzureResourceGroup added in v0.1.36

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

type Database

type Database struct {
	resources.ResourceWithId[*resourcespb.DatabaseArgs]

	Subnets []*Subnet
}

func CreateDatabase added in v0.1.36

func CreateDatabase(resourceId string, args *resourcespb.DatabaseArgs, others *resources.Resources) (*Database, error)

func NewDatabase added in v0.1.15

func NewDatabase(resourceId string, db *resourcespb.DatabaseArgs, others *resources.Resources) (*Database, error)

func (*Database) GetMainResourceName

func (r *Database) GetMainResourceName() (string, error)

func (*Database) GetMetadata added in v0.1.36

func (r *Database) GetMetadata() resources.ResourceMetadataInterface

func (*Database) Translate

func (r *Database) Translate(resources.MultyContext) ([]output.TfBlock, error)

func (*Database) Validate

func (r *Database) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

type KubernetesCluster added in v0.1.15

type KubernetesCluster struct {
	resources.ResourceWithId[*resourcespb.KubernetesClusterArgs]

	VirtualNetwork  *VirtualNetwork
	DefaultNodePool *KubernetesNodePool
}

func CreateKubernetesCluster added in v0.1.36

func CreateKubernetesCluster(resourceId string, args *resourcespb.KubernetesClusterArgs, others *resources.Resources) (*KubernetesCluster, error)

func NewKubernetesCluster added in v0.1.15

func NewKubernetesCluster(resourceId string, args *resourcespb.KubernetesClusterArgs, others *resources.Resources) (*KubernetesCluster, error)

func (*KubernetesCluster) GetMainResourceName added in v0.1.15

func (r *KubernetesCluster) GetMainResourceName() (string, error)

func (*KubernetesCluster) GetMetadata added in v0.1.36

func (*KubernetesCluster) GetOutputValues added in v0.1.15

func (r *KubernetesCluster) GetOutputValues(cloud commonpb.CloudProvider) map[string]cty.Value

func (*KubernetesCluster) Translate added in v0.1.15

func (*KubernetesCluster) Validate added in v0.1.15

type KubernetesNodePool added in v0.1.15

type KubernetesNodePool struct {
	resources.ChildResourceWithId[*KubernetesCluster, *resourcespb.KubernetesNodePoolArgs]

	KubernetesCluster *KubernetesCluster
	Subnet            *Subnet
}

func CreateKubernetesNodePool added in v0.1.36

func CreateKubernetesNodePool(resourceId string, args *resourcespb.KubernetesNodePoolArgs, others *resources.Resources) (*KubernetesNodePool, error)

func NewKubernetesNodePool added in v0.1.15

func NewKubernetesNodePool(resourceId string, args *resourcespb.KubernetesNodePoolArgs, others *resources.Resources) (*KubernetesNodePool, error)

func (*KubernetesNodePool) GetCloudSpecificLocation added in v0.1.15

func (r *KubernetesNodePool) GetCloudSpecificLocation() string

func (*KubernetesNodePool) GetMainResourceName added in v0.1.15

func (r *KubernetesNodePool) GetMainResourceName() (string, error)

func (*KubernetesNodePool) GetMetadata added in v0.1.36

func (*KubernetesNodePool) Translate added in v0.1.15

func (*KubernetesNodePool) Validate added in v0.1.15

type Lambda

type Lambda struct {
	resources.ResourceWithId[*resourcespb.LambdaArgs]

	SourceCodeObject *ObjectStorageObject `mhcl:"ref=source_code_object,optional"`
}

func CreateLambda added in v0.1.36

func CreateLambda(resourceId string, args *resourcespb.LambdaArgs, others *resources.Resources) (*Lambda, error)

func NewLambda added in v0.1.15

func NewLambda(resourceId string, args *resourcespb.LambdaArgs, others *resources.Resources) (*Lambda, error)

func (*Lambda) GetMainResourceName

func (r *Lambda) GetMainResourceName() (string, error)

func (*Lambda) GetMetadata added in v0.1.36

func (r *Lambda) GetMetadata() resources.ResourceMetadataInterface

func (*Lambda) GetOutputValues

func (r *Lambda) GetOutputValues(cloud commonpb.CloudProvider) map[string]cty.Value

func (*Lambda) Translate

func (r *Lambda) Translate(resources.MultyContext) ([]output.TfBlock, error)

func (*Lambda) Validate

func (r *Lambda) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

type NetworkInterface

type NetworkInterface struct {
	resources.ResourceWithId[*resourcespb.NetworkInterfaceArgs]

	Subnet *Subnet
}

func CreateNetworkInterface added in v0.1.36

func CreateNetworkInterface(resourceId string, args *resourcespb.NetworkInterfaceArgs, others *resources.Resources) (*NetworkInterface, error)

func NewNetworkInterface added in v0.1.15

func NewNetworkInterface(resourceId string, args *resourcespb.NetworkInterfaceArgs, others *resources.Resources) (*NetworkInterface, error)

func (*NetworkInterface) GetId

func (*NetworkInterface) GetMainResourceName

func (r *NetworkInterface) GetMainResourceName() (string, error)

func (*NetworkInterface) GetMetadata added in v0.1.36

func (*NetworkInterface) Translate

func (r *NetworkInterface) Translate(ctx resources.MultyContext) ([]output.TfBlock, error)

func (*NetworkInterface) Validate

type NetworkSecurityGroup

type NetworkSecurityGroup struct {
	resources.ResourceWithId[*resourcespb.NetworkSecurityGroupArgs]

	VirtualNetwork *VirtualNetwork
}

func CreateNetworkSecurityGroup added in v0.1.36

func CreateNetworkSecurityGroup(resourceId string, args *resourcespb.NetworkSecurityGroupArgs, others *resources.Resources) (*NetworkSecurityGroup, error)

func NewNetworkSecurityGroup added in v0.1.15

func NewNetworkSecurityGroup(resourceId string, args *resourcespb.NetworkSecurityGroupArgs, others *resources.Resources) (*NetworkSecurityGroup, error)

func (*NetworkSecurityGroup) GetMainResourceName

func (r *NetworkSecurityGroup) GetMainResourceName() (string, error)

func (*NetworkSecurityGroup) GetMetadata added in v0.1.36

func (*NetworkSecurityGroup) Translate

func (*NetworkSecurityGroup) Validate

type ObjectStorage

type ObjectStorage struct {
	resources.ResourceWithId[*resourcespb.ObjectStorageArgs]
}

func CreateObjectStorage added in v0.1.36

func CreateObjectStorage(resourceId string, args *resourcespb.ObjectStorageArgs, others *resources.Resources) (*ObjectStorage, error)

func NewObjectStorage added in v0.1.15

func NewObjectStorage(resourceId string, db *resourcespb.ObjectStorageArgs, _ *resources.Resources) (*ObjectStorage, error)

func (*ObjectStorage) GetAssociatedPrivateContainerResourceName

func (r *ObjectStorage) GetAssociatedPrivateContainerResourceName() string

func (*ObjectStorage) GetAssociatedPublicContainerResourceName

func (r *ObjectStorage) GetAssociatedPublicContainerResourceName() string

func (*ObjectStorage) GetMainResourceName

func (r *ObjectStorage) GetMainResourceName() (string, error)

func (*ObjectStorage) GetMetadata added in v0.1.36

func (*ObjectStorage) GetResourceName

func (r *ObjectStorage) GetResourceName() string

func (*ObjectStorage) Translate

func (*ObjectStorage) Validate

func (r *ObjectStorage) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

type ObjectStorageObject

type ObjectStorageObject struct {
	resources.ChildResourceWithId[*ObjectStorage, *resourcespb.ObjectStorageObjectArgs]

	ObjectStorage *ObjectStorage `mhcl:"ref=object_storage"`
}

func CreateObjectStorageObject added in v0.1.36

func CreateObjectStorageObject(resourceId string, args *resourcespb.ObjectStorageObjectArgs, others *resources.Resources) (*ObjectStorageObject, error)

func NewObjectStorageObject added in v0.1.15

func NewObjectStorageObject(resourceId string, args *resourcespb.ObjectStorageObjectArgs, others *resources.Resources) (*ObjectStorageObject, error)

func (*ObjectStorageObject) GetAzureBlobName

func (r *ObjectStorageObject) GetAzureBlobName() string

func (*ObjectStorageObject) GetAzureBlobUrl

func (r *ObjectStorageObject) GetAzureBlobUrl() string

func (*ObjectStorageObject) GetCloudSpecificLocation added in v0.1.15

func (r *ObjectStorageObject) GetCloudSpecificLocation() string

func (*ObjectStorageObject) GetMainResourceName

func (r *ObjectStorageObject) GetMainResourceName() (string, error)

func (*ObjectStorageObject) GetMetadata added in v0.1.36

func (*ObjectStorageObject) GetS3Key

func (r *ObjectStorageObject) GetS3Key() string

func (*ObjectStorageObject) IsPrivate

func (r *ObjectStorageObject) IsPrivate() bool

func (*ObjectStorageObject) Translate

func (*ObjectStorageObject) Validate

type Provider

type Provider struct {
	Cloud             commonpb.CloudProvider
	Location          string
	IsDefaultProvider bool
	NumResources      int
	Credentials       *credspb.CloudCredentials
}

func (*Provider) GetId

func (p *Provider) GetId() string

func (*Provider) GetResourceId

func (p *Provider) GetResourceId() string

func (*Provider) Translate

func (p *Provider) Translate() []any

type PublicIp

type PublicIp struct {
	resources.ResourceWithId[*resourcespb.PublicIpArgs]
	NetworkInterface *NetworkInterface
}

func CreatePublicIp added in v0.1.36

func CreatePublicIp(resourceId string, args *resourcespb.PublicIpArgs, others *resources.Resources) (*PublicIp, error)

func NewPublicIp added in v0.1.15

func NewPublicIp(resourceId string, args *resourcespb.PublicIpArgs, others *resources.Resources) (*PublicIp, error)

func (*PublicIp) GetId

func (r *PublicIp) GetId(cloud commonpb.CloudProvider) string

func (*PublicIp) GetMainResourceName

func (r *PublicIp) GetMainResourceName() (string, error)

func (*PublicIp) GetMetadata added in v0.1.36

func (r *PublicIp) GetMetadata() resources.ResourceMetadataInterface

func (*PublicIp) Translate

func (r *PublicIp) Translate(resources.MultyContext) ([]output.TfBlock, error)

func (*PublicIp) Validate

func (r *PublicIp) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

type ResourceGroup added in v0.1.36

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

	ImplictlyCreated bool
}

https://docs.microsoft.com/en-us/azure/cloud-adoption-framework/ready/azure-best-practices/resource-abbreviations

func CreateResourceGroup added in v0.1.36

func CreateResourceGroup(resourceId string, args *resourcespb.ResourceGroupArgs, others *resources.Resources) (*ResourceGroup, error)

func ImportResourceGroup added in v0.1.36

func ImportResourceGroup(_ string, args *resourcespb.ResourceGroupArgs, _ *resources.Resources) (*ResourceGroup, error)

func NewResourceGroup added in v0.1.36

func NewResourceGroup(name string, location commonpb.Location, cloud commonpb.CloudProvider) *ResourceGroup

func (*ResourceGroup) GetCloud added in v0.1.36

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

func (*ResourceGroup) GetCloudSpecificLocation added in v0.1.36

func (rg *ResourceGroup) GetCloudSpecificLocation() string

func (*ResourceGroup) GetCommonArgs added in v0.1.36

func (rg *ResourceGroup) GetCommonArgs() any

func (*ResourceGroup) GetMainResourceName added in v0.1.36

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

func (*ResourceGroup) GetMetadata added in v0.1.36

func (*ResourceGroup) GetResourceId added in v0.1.36

func (rg *ResourceGroup) GetResourceId() string

func (*ResourceGroup) Translate added in v0.1.36

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

func (*ResourceGroup) Validate added in v0.1.36

type RouteTable

type RouteTable struct {
	resources.ChildResourceWithId[*VirtualNetwork, *resourcespb.RouteTableArgs]

	VirtualNetwork *VirtualNetwork `mhcl:"ref=virtual_network"`
}

func CreateRouteTable added in v0.1.36

func CreateRouteTable(resourceId string, args *resourcespb.RouteTableArgs, others *resources.Resources) (*RouteTable, error)

func NewRouteTable added in v0.1.15

func NewRouteTable(resourceId string, args *resourcespb.RouteTableArgs, others *resources.Resources) (*RouteTable, error)

func (*RouteTable) GetId

func (r *RouteTable) GetId(cloud commonpb.CloudProvider) string

func (*RouteTable) GetMainResourceName

func (r *RouteTable) GetMainResourceName() (string, error)

func (*RouteTable) GetMetadata added in v0.1.36

func (*RouteTable) Translate

func (r *RouteTable) Translate(resources.MultyContext) ([]output.TfBlock, error)

func (*RouteTable) Validate

func (r *RouteTable) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

type RouteTableAssociation

type RouteTableAssociation struct {
	resources.ChildResourceWithId[*RouteTable, *resourcespb.RouteTableAssociationArgs]

	RouteTable *RouteTable
	Subnet     *Subnet
}

func CreateRouteTableAssociation added in v0.1.36

func CreateRouteTableAssociation(resourceId string, args *resourcespb.RouteTableAssociationArgs, others *resources.Resources) (*RouteTableAssociation, error)

func NewRouteTableAssociation added in v0.1.15

func NewRouteTableAssociation(resourceId string, args *resourcespb.RouteTableAssociationArgs, others *resources.Resources) (*RouteTableAssociation, error)

func (*RouteTableAssociation) GetMainResourceName

func (r *RouteTableAssociation) GetMainResourceName() (string, error)

func (*RouteTableAssociation) GetMetadata added in v0.1.36

func (*RouteTableAssociation) Translate

func (*RouteTableAssociation) Validate

type RouteTableRoute

type RouteTableRoute struct {
	CidrBlock   string `cty:"cidr_block"`
	Destination string `cty:"destination"` // allowed: Internet
}

type RuleType

type RuleType struct {
	Protocol  string `cty:"protocol"`
	Priority  int    `cty:"priority"`
	FromPort  string `cty:"from_port"`
	ToPort    string `cty:"to_port"`
	CidrBlock string `cty:"cidr_block"`
	Direction string `cty:"direction"`
}

type Subnet

func CreateSubnet added in v0.1.36

func CreateSubnet(resourceId string, args *resourcespb.SubnetArgs, others *resources.Resources) (*Subnet, error)

func NewSubnet added in v0.1.15

func NewSubnet(resourceId string, subnet *resourcespb.SubnetArgs, others *resources.Resources) (*Subnet, error)

func (*Subnet) GetCloudSpecificLocation added in v0.1.15

func (r *Subnet) GetCloudSpecificLocation() string

func (*Subnet) GetId

func (r *Subnet) GetId() string

func (*Subnet) GetMainResourceName

func (r *Subnet) GetMainResourceName() (string, error)

func (*Subnet) GetMetadata added in v0.1.36

func (r *Subnet) GetMetadata() resources.ResourceMetadataInterface

func (*Subnet) Translate

func (r *Subnet) Translate(ctx resources.MultyContext) ([]output.TfBlock, error)

func (*Subnet) Validate

func (r *Subnet) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

type Vault

type Vault struct {
	resources.ResourceWithId[*resourcespb.VaultArgs]
}

func CreateVault added in v0.1.36

func CreateVault(resourceId string, args *resourcespb.VaultArgs, others *resources.Resources) (*Vault, error)

func NewVault added in v0.1.15

func NewVault(resourceId string, args *resourcespb.VaultArgs, _ *resources.Resources) (*Vault, error)

func (*Vault) GetMainResourceName

func (r *Vault) GetMainResourceName() (string, error)

func (*Vault) GetMetadata added in v0.1.36

func (r *Vault) GetMetadata() resources.ResourceMetadataInterface

func (*Vault) GetVaultId

func (r *Vault) GetVaultId() (string, error)

func (*Vault) Translate

func (r *Vault) Translate(resources.MultyContext) ([]output.TfBlock, error)

func (*Vault) Validate

func (r *Vault) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

type VaultAccessPolicy

type VaultAccessPolicy struct {
	resources.ChildResourceWithId[*Vault, *resourcespb.VaultAccessPolicyArgs]
	Vault *Vault
}

func CreateVaultAccessPolicy added in v0.1.36

func CreateVaultAccessPolicy(resourceId string, args *resourcespb.VaultAccessPolicyArgs, others *resources.Resources) (*VaultAccessPolicy, error)

func NewVaultAccessPolicy added in v0.1.15

func NewVaultAccessPolicy(resourceId string, args *resourcespb.VaultAccessPolicyArgs, others *resources.Resources) (*VaultAccessPolicy, error)

func (*VaultAccessPolicy) GetAccessPolicyRules

func (r *VaultAccessPolicy) GetAccessPolicyRules() *vault.AzureKeyVaultPermissions

fix return

func (*VaultAccessPolicy) GetCloudSpecificLocation added in v0.1.15

func (r *VaultAccessPolicy) GetCloudSpecificLocation() string

func (*VaultAccessPolicy) GetMainResourceName

func (r *VaultAccessPolicy) GetMainResourceName() (string, error)

func (*VaultAccessPolicy) GetMetadata added in v0.1.36

func (*VaultAccessPolicy) Translate

func (*VaultAccessPolicy) Validate

type VaultSecret

type VaultSecret struct {
	resources.ChildResourceWithId[*Vault, *resourcespb.VaultSecretArgs]

	Vault *Vault
}

func CreateVaultSecret added in v0.1.36

func CreateVaultSecret(resourceId string, args *resourcespb.VaultSecretArgs, others *resources.Resources) (*VaultSecret, error)

func NewVaultSecret added in v0.1.15

func NewVaultSecret(resourceId string, args *resourcespb.VaultSecretArgs, others *resources.Resources) (*VaultSecret, error)

func (*VaultSecret) GetCloudSpecificLocation added in v0.1.15

func (r *VaultSecret) GetCloudSpecificLocation() string

func (*VaultSecret) GetMainResourceName

func (r *VaultSecret) GetMainResourceName() (string, error)

func (*VaultSecret) GetMetadata added in v0.1.36

func (*VaultSecret) Translate

func (*VaultSecret) Validate

func (r *VaultSecret) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

type VirtualMachine

type VirtualMachine struct {
	resources.ResourceWithId[*resourcespb.VirtualMachineArgs]

	NetworkInterface      []*NetworkInterface
	NetworkSecurityGroups []*NetworkSecurityGroup
	Subnet                *Subnet
	PublicIp              *PublicIp
}

func CreateVirtualMachine added in v0.1.36

func CreateVirtualMachine(resourceId string, args *resourcespb.VirtualMachineArgs, others *resources.Resources) (*VirtualMachine, error)

func NewVirtualMachine added in v0.1.15

func NewVirtualMachine(resourceId string, args *resourcespb.VirtualMachineArgs, others *resources.Resources) (*VirtualMachine, error)

func (*VirtualMachine) GetAssociatedKeyPairName

func (r *VirtualMachine) GetAssociatedKeyPairName() (string, error)

func (*VirtualMachine) GetAwsIdentity added in v0.1.18

func (r *VirtualMachine) GetAwsIdentity() string

func (*VirtualMachine) GetMainResourceName

func (r *VirtualMachine) GetMainResourceName() (string, error)

func (*VirtualMachine) GetMetadata added in v0.1.36

func (*VirtualMachine) Translate

func (r *VirtualMachine) Translate(ctx resources.MultyContext) ([]output.TfBlock, error)

func (*VirtualMachine) Validate

func (r *VirtualMachine) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

type VirtualNetwork

type VirtualNetwork struct {
	resources.ResourceWithId[*resourcespb.VirtualNetworkArgs]
}

func CreateVirtualNetwork added in v0.1.36

func CreateVirtualNetwork(resourceId string, args *resourcespb.VirtualNetworkArgs, others *resources.Resources) (*VirtualNetwork, error)

func NewVirtualNetwork added in v0.1.15

func NewVirtualNetwork(resourceId string, vn *resourcespb.VirtualNetworkArgs, _ *resources.Resources) (*VirtualNetwork, error)

func (*VirtualNetwork) GetAssociatedInternetGateway

func (r *VirtualNetwork) GetAssociatedInternetGateway() (string, error)

func (*VirtualNetwork) GetAssociatedRouteTableId

func (r *VirtualNetwork) GetAssociatedRouteTableId() (string, error)

func (*VirtualNetwork) GetMainResourceName

func (r *VirtualNetwork) GetMainResourceName() (string, error)

func (*VirtualNetwork) GetMetadata added in v0.1.36

func (*VirtualNetwork) GetVirtualNetworkId

func (r *VirtualNetwork) GetVirtualNetworkId() string

func (*VirtualNetwork) GetVirtualNetworkName

func (r *VirtualNetwork) GetVirtualNetworkName() string

func (*VirtualNetwork) Translate

func (*VirtualNetwork) Validate

func (r *VirtualNetwork) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)

TODO validate commonparams

Jump to

Keyboard shortcuts

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