Documentation ¶
Index ¶
- Constants
- Variables
- func ExtractUUID(input string) string
- func IsAppPortProfile(urn string) bool
- func IsCatalog(urn string) bool
- func IsCertificateLibraryItem(urn string) bool
- func IsDisk(urn string) bool
- func IsEdgeGateway(urn string) bool
- func IsGroup(urn string) bool
- func IsLoadBalancerPool(urn string) bool
- func IsLoadBalancerVirtualService(urn string) bool
- func IsNetwork(urn string) bool
- func IsOrg(urn string) bool
- func IsSecurityGroup(urn string) bool
- func IsServiceEngineGroup(urn string) bool
- func IsToken(urn string) bool
- func IsUUIDV4(urn string) bool
- func IsUser(urn string) bool
- func IsVAPP(urn string) bool
- func IsVAPPTemplate(urn string) bool
- func IsVCDA(urn string) bool
- func IsVDC(urn string) bool
- func IsVDCComputePolicy(urn string) bool
- func IsVDCGroup(urn string) bool
- func IsVDCStorageProfile(urn string) bool
- func IsVM(urn string) bool
- func IsValid(urn string) bool
- func TestIsType(urnType URN) resource.CheckResourceAttrWithFunc
- type URN
- func (urn URN) ContainsPrefix() bool
- func (urn URN) IsAppPortProfile() bool
- func (urn URN) IsCatalog() bool
- func (urn URN) IsCertificateLibraryItem() bool
- func (urn URN) IsDisk() bool
- func (urn URN) IsGateway() bool
- func (urn URN) IsGroup() bool
- func (urn URN) IsLoadBalancerPool() bool
- func (urn URN) IsLoadBalancerVirtualService() bool
- func (urn URN) IsNetwork() bool
- func (urn URN) IsOrg() bool
- func (urn URN) IsSecurityGroup() bool
- func (urn URN) IsServiceEngineGroup() bool
- func (urn URN) IsToken() bool
- func (urn URN) IsType(prefix URN) bool
- func (urn URN) IsUser() bool
- func (urn URN) IsVAPP() bool
- func (urn URN) IsVAPPTemplate() bool
- func (urn URN) IsVDC() bool
- func (urn URN) IsVDCComputePolicy() bool
- func (urn URN) IsVDCGroup() bool
- func (urn URN) IsVDCStorageProfile() bool
- func (urn URN) IsVM() bool
- func (urn URN) String() string
Constants ¶
const ( // Prefixes is the list of prefixes. VcloudPrefix = "urn:vcloud:" CloudAvenuePrefix = "urn:cloudavenue:" // * VCD. Org = URN(VcloudPrefix + "org:") VM = URN(VcloudPrefix + "vm:") User = URN(VcloudPrefix + "user:") Group = URN(VcloudPrefix + "group:") Gateway = URN(VcloudPrefix + "gateway:") VDC = URN(VcloudPrefix + "vdc:") VDCGroup = URN(VcloudPrefix + "vdcGroup:") VDCComputePolicy = URN(VcloudPrefix + "vdcComputePolicy:") Network = URN(VcloudPrefix + "network:") LoadBalancerPool = URN(VcloudPrefix + "loadBalancerPool:") VDCStorageProfile = URN(VcloudPrefix + "vdcstorageProfile:") VAPP = URN(VcloudPrefix + "vapp:") VAPPTemplate = URN(VcloudPrefix + "vappTemplate:") Disk = URN(VcloudPrefix + "disk:") SecurityGroup = URN(VcloudPrefix + "firewallGroup:") Catalog = URN(VcloudPrefix + "catalog:") Token = URN(VcloudPrefix + "token:") AppPortProfile = URN(VcloudPrefix + "applicationPortProfile:") CertificateLibraryItem = URN(VcloudPrefix + "certificateLibraryItem:") LoadBalancerVirtualService = URN(VcloudPrefix + "loadBalancerVirtualService:") ServiceEngineGroup = URN(VcloudPrefix + "serviceEngineGroup:") // * CLOUDAVENUE. VCDA = URN(CloudAvenuePrefix + "vcda:") )
Variables ¶
var URNs = []URN{ Org, VM, User, Group, Gateway, VDC, VDCGroup, VDCComputePolicy, Network, LoadBalancerPool, VDCStorageProfile, VAPP, VAPPTemplate, Disk, SecurityGroup, Catalog, Token, AppPortProfile, CertificateLibraryItem, LoadBalancerVirtualService, ServiceEngineGroup, }
Functions ¶
func ExtractUUID ¶
ExtractUUID finds an UUID in the input string Returns an empty string if no UUID was found.
func IsAppPortProfile ¶
IsAppPortProfile returns true if the URN is a AppPortProfile URN.
func IsCertificateLibraryItem ¶ added in v0.15.0
IsCertificateLibraryItem returns true if the URN is a CertificateLibraryItem URN.
func IsEdgeGateway ¶
IsEdgeGateway returns true if the URN is a EdgeGateway URN.
func IsLoadBalancerPool ¶
IsLoadBalancerPool returns true if the URN is a LoadBalancerPool URN.
func IsLoadBalancerVirtualService ¶ added in v0.15.0
IsLoadBalancerVirtualService returns true if the URN is a LoadBalancerVirtualService URN.
func IsSecurityGroup ¶
IsSecurityGroup returns true if the URN is a SecurityGroup URN.
func IsServiceEngineGroup ¶ added in v0.15.0
IsServiceEngineGroup returns true if the URN is a ServiceEngineGroup URN.
func IsVAPPTemplate ¶
IsVAPPTemplate returns true if the URN is a VAPPTemplate URN.
func IsVDCComputePolicy ¶
IsVDCComputePolicy returns true if the URN is a VDCComputePolicy URN.
func IsVDCGroup ¶
IsVDCGroup returns true if the URN is a VDCGroup URN.
func IsVDCStorageProfile ¶
IsVDCStorageProfile returns true if the URN is a VDCStorageProfile URN.
func IsValid ¶
IsValid returns true if the URN is valid. Checks if the URN is of the specified type and if it is a valid UUIDv4.
func TestIsType ¶
func TestIsType(urnType URN) resource.CheckResourceAttrWithFunc
Special functions for the terraform provider test. TestIsType returns true if the URN is of the specified type.
Types ¶
type URN ¶
type URN string
func (URN) ContainsPrefix ¶
ContainsPrefix returns true if the URN contains any prefix.
func (URN) IsAppPortProfile ¶
IsAppPortProfile returns true if the URN is a AppPortProfile URN.
func (URN) IsCertificateLibraryItem ¶ added in v0.15.0
IsCertificateLibraryItem returns true if the URN is a CertificateLibraryItem URN.
func (URN) IsLoadBalancerPool ¶
IsLoadBalancerPool returns true if the URN is a LoadBalancerPool URN.
func (URN) IsLoadBalancerVirtualService ¶ added in v0.15.0
IsLoadBalancerVirtualService returns true if the URN is a LoadBalancerVirtualService URN.
func (URN) IsSecurityGroup ¶
IsSecurityGroup returns true if the URN is a SecurityGroup URN.
func (URN) IsServiceEngineGroup ¶ added in v0.15.0
IsServiceEngineGroup returns true if the URN is a ServiceEngineGroup URN.
func (URN) IsVAPPTemplate ¶
IsVAPPTemplate returns true if the URN is a VAPPTemplate URN.
func (URN) IsVDCComputePolicy ¶
IsVDCComputePolicy returns true if the URN is a VDCComputePolicy URN.
func (URN) IsVDCGroup ¶
IsVDCGroup returns true if the URN is a VDCGroup URN.
func (URN) IsVDCStorageProfile ¶
IsVDCStorageProfile returns true if the URN is a VDCStorageProfile URN.