Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Converters = map[proto.Message]ResourceMetadata{ &resourcespb.VirtualNetworkArgs{}: {cast(types.NewVirtualNetwork), "vn"}, &resourcespb.SubnetArgs{}: {cast(types.NewSubnet), "vn"}, &resourcespb.DatabaseArgs{}: {cast(types.NewDatabase), "db"}, &resourcespb.PublicIpArgs{}: {cast(types.NewPublicIp), "pip"}, &resourcespb.RouteTableArgs{}: {cast(types.NewRouteTable), "vn"}, &resourcespb.RouteTableAssociationArgs{}: {cast(types.NewRouteTableAssociation), "rt"}, &resourcespb.KubernetesNodePoolArgs{}: {cast(types.NewKubernetesNodePool), "ks"}, &resourcespb.KubernetesClusterArgs{}: {cast(types.NewKubernetesCluster), "ks"}, &resourcespb.LambdaArgs{}: {cast(types.NewLambda), "fun"}, &resourcespb.NetworkInterfaceArgs{}: {cast(types.NewNetworkInterface), "nic"}, &resourcespb.NetworkSecurityGroupArgs{}: {cast(types.NewNetworkSecurityGroup), "nsg"}, &resourcespb.ObjectStorageArgs{}: {cast(types.NewObjectStorage), "st"}, &resourcespb.ObjectStorageObjectArgs{}: {cast(types.NewObjectStorageObject), "st"}, &resourcespb.VaultArgs{}: {cast(types.NewVault), "kv"}, &resourcespb.VaultAccessPolicyArgs{}: {cast(types.NewVaultAccessPolicy), "kv"}, &resourcespb.VaultSecretArgs{}: {cast(types.NewVaultSecret), "kv"}, &resourcespb.VirtualMachineArgs{}: {cast(types.NewVirtualMachine), "vm"}, }
Functions ¶
This section is empty.
Types ¶
type MultyResourceConverter ¶
type MultyResourceConverter interface { ConvertToMultyResource(resourceId string, arg proto.Message, resources map[string]common_resources.CloudSpecificResource) (common_resources.CloudSpecificResource, error) GetResourceType() string }
type ResourceConverters ¶
type ResourceInitFunc ¶ added in v0.1.15
type ResourceMetadata ¶ added in v0.1.15
type ResourceMetadata struct { InitFunc ResourceInitFunc[proto.Message, resources.Resource] AbbreviatedName string }
func GetConverter ¶ added in v0.1.18
func GetConverter(name protoreflect.FullName) (*ResourceMetadata, error)
Click to show internal directories.
Click to hide internal directories.