Documentation ¶
Index ¶
- Constants
- Variables
- type AclRules
- type AwsCallerIdentityData
- type AwsRegionData
- type AzureClientConfig
- type Database
- type KubernetesCluster
- func (r *KubernetesCluster) GetMainResourceName() (string, error)
- func (r *KubernetesCluster) GetOutputValues(cloud commonpb.CloudProvider) map[string]cty.Value
- func (r *KubernetesCluster) Translate(ctx resources.MultyContext) ([]output.TfBlock, error)
- func (r *KubernetesCluster) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
- type KubernetesNodePool
- func (r *KubernetesNodePool) GetCloudSpecificLocation() string
- func (r *KubernetesNodePool) GetMainResourceName() (string, error)
- func (r *KubernetesNodePool) Translate(resources.MultyContext) ([]output.TfBlock, error)
- func (r *KubernetesNodePool) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
- type Lambda
- func (r *Lambda) GetMainResourceName() (string, error)
- func (r *Lambda) GetOutputValues(cloud commonpb.CloudProvider) map[string]cty.Value
- func (r *Lambda) Translate(resources.MultyContext) ([]output.TfBlock, error)
- func (r *Lambda) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
- type NetworkInterface
- func (r *NetworkInterface) GetId(cloud commonpb.CloudProvider) string
- func (r *NetworkInterface) GetMainResourceName() (string, error)
- func (r *NetworkInterface) Translate(ctx resources.MultyContext) ([]output.TfBlock, error)
- func (r *NetworkInterface) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
- type NetworkSecurityGroup
- type ObjectStorage
- func (r *ObjectStorage) GetAssociatedPrivateContainerResourceName() string
- func (r *ObjectStorage) GetAssociatedPublicContainerResourceName() string
- func (r *ObjectStorage) GetMainResourceName() (string, error)
- func (r *ObjectStorage) GetResourceName() string
- func (r *ObjectStorage) Translate(resources.MultyContext) ([]output.TfBlock, error)
- func (r *ObjectStorage) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
- type ObjectStorageObject
- func (r *ObjectStorageObject) FromState(state *output.TfState) (*resourcespb.ObjectStorageObjectResource, error)
- func (r *ObjectStorageObject) GetAzureBlobName() string
- func (r *ObjectStorageObject) GetAzureBlobUrl() string
- func (r *ObjectStorageObject) GetCloudSpecificLocation() string
- func (r *ObjectStorageObject) GetMainResourceName() (string, error)
- func (r *ObjectStorageObject) GetS3Key() string
- func (r *ObjectStorageObject) IsPrivate() bool
- func (r *ObjectStorageObject) Translate(resources.MultyContext) ([]output.TfBlock, error)
- func (r *ObjectStorageObject) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
- type Provider
- type PublicIp
- type RouteTable
- type RouteTableAssociation
- type RouteTableRoute
- type RuleType
- type Subnet
- func (r *Subnet) GetCloudSpecificLocation() string
- func (r *Subnet) GetId() string
- func (r *Subnet) GetMainResourceName() (string, error)
- func (r *Subnet) Translate(ctx resources.MultyContext) ([]output.TfBlock, error)
- func (r *Subnet) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
- type Vault
- type VaultAccessPolicy
- func (r *VaultAccessPolicy) GetAccessPolicyRules() *vault.AzureKeyVaultPermissions
- func (r *VaultAccessPolicy) GetCloudSpecificLocation() string
- func (r *VaultAccessPolicy) GetMainResourceName() (string, error)
- func (r *VaultAccessPolicy) Translate(resources.MultyContext) ([]output.TfBlock, error)
- func (r *VaultAccessPolicy) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
- type VaultSecret
- type VirtualMachine
- func (r *VirtualMachine) GetAssociatedKeyPairName() (string, error)
- func (r *VirtualMachine) GetAwsIdentity() string
- func (r *VirtualMachine) GetMainResourceName() (string, error)
- func (r *VirtualMachine) Translate(ctx resources.MultyContext) ([]output.TfBlock, error)
- func (r *VirtualMachine) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
- type VirtualNetwork
- func (r *VirtualNetwork) FromState(state *output.TfState) (*resourcespb.VirtualNetworkResource, error)
- func (r *VirtualNetwork) GetAssociatedInternetGateway() (string, error)
- func (r *VirtualNetwork) GetAssociatedRouteTableId() (string, error)
- func (r *VirtualNetwork) GetMainResourceName() (string, error)
- func (r *VirtualNetwork) GetVirtualNetworkId() string
- func (r *VirtualNetwork) GetVirtualNetworkName() string
- func (r *VirtualNetwork) Translate(resources.MultyContext) ([]output.TfBlock, error)
- func (r *VirtualNetwork) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
Constants ¶
View Source
const ( INGRESS = "ingress" EGRESS = "egress" BOTH = "both" ALLOW = "allow" DENY = "deny" )
View Source
const ( INTERNET = "Internet" VIRTUALNETWORK = "VirtualNetwork" )
View Source
const SasExpirationDuration = time.Hour * 24 * 365
Variables ¶
View Source
var SUPPORTED_CONTENT_TYPES = []string{"text/html", "application/zip"}
Functions ¶
This section is empty.
Types ¶
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 Database ¶
type Database struct { resources.ResourceWithId[*resourcespb.DatabaseArgs] Subnets []*Subnet }
func NewDatabase ¶ added in v0.1.15
func NewDatabase(resourceId string, db *resourcespb.DatabaseArgs, others resources.Resources) (*Database, error)
func (*Database) GetMainResourceName ¶
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] Subnets []*Subnet }
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) 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 (r *KubernetesCluster) Translate(ctx resources.MultyContext) ([]output.TfBlock, error)
func (*KubernetesCluster) Validate ¶ added in v0.1.15
func (r *KubernetesCluster) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
type KubernetesNodePool ¶ added in v0.1.15
type KubernetesNodePool struct { resources.ChildResourceWithId[*KubernetesCluster, *resourcespb.KubernetesNodePoolArgs] KubernetesCluster *KubernetesCluster Subnets []*Subnet // azure?? }
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) Translate ¶ added in v0.1.15
func (r *KubernetesNodePool) Translate(resources.MultyContext) ([]output.TfBlock, error)
func (*KubernetesNodePool) Validate ¶ added in v0.1.15
func (r *KubernetesNodePool) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
type Lambda ¶
type Lambda struct { resources.ResourceWithId[*resourcespb.LambdaArgs] SourceCodeObject *ObjectStorageObject `mhcl:"ref=source_code_object,optional"` }
func NewLambda ¶ added in v0.1.15
func NewLambda(resourceId string, args *resourcespb.LambdaArgs, others resources.Resources) (*Lambda, error)
func (*Lambda) GetMainResourceName ¶
func (*Lambda) GetOutputValues ¶
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 NewNetworkInterface ¶ added in v0.1.15
func NewNetworkInterface(resourceId string, args *resourcespb.NetworkInterfaceArgs, others resources.Resources) (*NetworkInterface, error)
func (*NetworkInterface) GetId ¶
func (r *NetworkInterface) GetId(cloud commonpb.CloudProvider) string
func (*NetworkInterface) GetMainResourceName ¶
func (r *NetworkInterface) GetMainResourceName() (string, error)
func (*NetworkInterface) Translate ¶
func (r *NetworkInterface) Translate(ctx resources.MultyContext) ([]output.TfBlock, error)
func (*NetworkInterface) Validate ¶
func (r *NetworkInterface) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
type NetworkSecurityGroup ¶
type NetworkSecurityGroup struct { resources.ResourceWithId[*resourcespb.NetworkSecurityGroupArgs] VirtualNetwork *VirtualNetwork }
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) Translate ¶
func (r *NetworkSecurityGroup) Translate(resources.MultyContext) ([]output.TfBlock, error)
func (*NetworkSecurityGroup) Validate ¶
func (r *NetworkSecurityGroup) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
type ObjectStorage ¶
type ObjectStorage struct { resources.ResourceWithId[*resourcespb.ObjectStorageArgs] }
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) GetResourceName ¶
func (r *ObjectStorage) GetResourceName() string
func (*ObjectStorage) Translate ¶
func (r *ObjectStorage) Translate(resources.MultyContext) ([]output.TfBlock, error)
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 NewObjectStorageObject ¶ added in v0.1.15
func NewObjectStorageObject(resourceId string, args *resourcespb.ObjectStorageObjectArgs, others resources.Resources) (*ObjectStorageObject, error)
func (*ObjectStorageObject) FromState ¶ added in v0.1.22
func (r *ObjectStorageObject) FromState(state *output.TfState) (*resourcespb.ObjectStorageObjectResource, 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) GetS3Key ¶
func (r *ObjectStorageObject) GetS3Key() string
func (*ObjectStorageObject) IsPrivate ¶
func (r *ObjectStorageObject) IsPrivate() bool
func (*ObjectStorageObject) Translate ¶
func (r *ObjectStorageObject) Translate(resources.MultyContext) ([]output.TfBlock, error)
func (*ObjectStorageObject) Validate ¶
func (r *ObjectStorageObject) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
type Provider ¶
type Provider struct { Cloud commonpb.CloudProvider Location string IsDefaultProvider bool NumResources int Credentials *credspb.CloudCredentials }
func (*Provider) GetResourceId ¶
type PublicIp ¶
type PublicIp struct { resources.ResourceWithId[*resourcespb.PublicIpArgs] NetworkInterface *NetworkInterface }
func NewPublicIp ¶ added in v0.1.15
func NewPublicIp(resourceId string, args *resourcespb.PublicIpArgs, others resources.Resources) (*PublicIp, error)
func (*PublicIp) GetMainResourceName ¶
func (*PublicIp) Validate ¶
func (r *PublicIp) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
type RouteTable ¶
type RouteTable struct { resources.ChildResourceWithId[*VirtualNetwork, *resourcespb.RouteTableArgs] VirtualNetwork *VirtualNetwork `mhcl:"ref=virtual_network"` }
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) 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 }
route_table_association
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) Translate ¶
func (r *RouteTableAssociation) Translate(resources.MultyContext) ([]output.TfBlock, error)
func (*RouteTableAssociation) Validate ¶
func (r *RouteTableAssociation) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
type RouteTableRoute ¶
type Subnet ¶
type Subnet struct { resources.ChildResourceWithId[*VirtualNetwork, *resourcespb.SubnetArgs] VirtualNetwork *VirtualNetwork }
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 (*Subnet) GetMainResourceName ¶
func (*Subnet) Validate ¶
func (r *Subnet) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
type Vault ¶
type Vault struct { resources.ResourceWithId[*resourcespb.VaultArgs] }
func (*Vault) GetMainResourceName ¶
func (*Vault) GetVaultId ¶
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 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) Translate ¶
func (r *VaultAccessPolicy) Translate(resources.MultyContext) ([]output.TfBlock, error)
func (*VaultAccessPolicy) Validate ¶
func (r *VaultAccessPolicy) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
type VaultSecret ¶
type VaultSecret struct { resources.ChildResourceWithId[*Vault, *resourcespb.VaultSecretArgs] Vault *Vault }
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) Translate ¶
func (r *VaultSecret) Translate(resources.MultyContext) ([]output.TfBlock, error)
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 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) 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 NewVirtualNetwork ¶ added in v0.1.15
func NewVirtualNetwork(resourceId string, vn *resourcespb.VirtualNetworkArgs, _ resources.Resources) (*VirtualNetwork, error)
func (*VirtualNetwork) FromState ¶ added in v0.1.16
func (r *VirtualNetwork) FromState(state *output.TfState) (*resourcespb.VirtualNetworkResource, 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) GetVirtualNetworkId ¶
func (r *VirtualNetwork) GetVirtualNetworkId() string
func (*VirtualNetwork) GetVirtualNetworkName ¶
func (r *VirtualNetwork) GetVirtualNetworkName() string
func (*VirtualNetwork) Translate ¶
func (r *VirtualNetwork) Translate(resources.MultyContext) ([]output.TfBlock, error)
func (*VirtualNetwork) Validate ¶
func (r *VirtualNetwork) Validate(ctx resources.MultyContext) (errs []validate.ValidationError)
TODO validate commonparams
Source Files ¶
- database.go
- kubernetes_node_pool.go
- kubernetes_service.go
- lambda.go
- network_interface.go
- network_security_group.go
- object_storage.go
- object_storage_object.go
- provider.go
- public_ip.go
- route_table.go
- route_table_association.go
- subnet.go
- vault.go
- vault_access_policy.go
- vault_secret.go
- virtual_machine.go
- virtual_network.go
Click to show internal directories.
Click to hide internal directories.