Documentation ¶
Index ¶
- Constants
- func IsAppPortProfile(uuid string) bool
- func IsCatalog(uuid string) bool
- func IsDisk(uuid string) bool
- func IsEdgeGateway(uuid string) bool
- func IsGroup(uuid string) bool
- func IsLoadBalancerPool(uuid string) bool
- func IsNetwork(uuid string) bool
- func IsSecurityGroup(uuid string) bool
- func IsToken(uuid string) bool
- func IsUUIDV4(uuid string) bool
- func IsUser(uuid string) bool
- func IsVAPP(uuid string) bool
- func IsVAPPTemplate(uuid string) bool
- func IsVCDA(uuid string) bool
- func IsVDC(uuid string) bool
- func IsVDCComputePolicy(uuid string) bool
- func IsVDCGroup(uuid string) bool
- func IsVDCStorageProfile(uuid string) bool
- func IsVM(uuid string) bool
- func IsValid(uuid string) bool
- func TestIsType(uuidType VcloudUUID) resource.CheckResourceAttrWithFunc
- type VcloudUUID
- func (uuid VcloudUUID) ContainsPrefix() bool
- func (uuid VcloudUUID) IsAppPortProfile() bool
- func (uuid VcloudUUID) IsCatalog() bool
- func (uuid VcloudUUID) IsDisk() bool
- func (uuid VcloudUUID) IsGateway() bool
- func (uuid VcloudUUID) IsGroup() bool
- func (uuid VcloudUUID) IsLoadBalancerPool() bool
- func (uuid VcloudUUID) IsNetwork() bool
- func (uuid VcloudUUID) IsSecurityGroup() bool
- func (uuid VcloudUUID) IsToken() bool
- func (uuid VcloudUUID) IsType(prefix VcloudUUID) bool
- func (uuid VcloudUUID) IsUser() bool
- func (uuid VcloudUUID) IsVAPP() bool
- func (uuid VcloudUUID) IsVAPPTemplate() bool
- func (uuid VcloudUUID) IsVDC() bool
- func (uuid VcloudUUID) IsVDCComputePolicy() bool
- func (uuid VcloudUUID) IsVDCGroup() bool
- func (uuid VcloudUUID) IsVDCStorageProfile() bool
- func (uuid VcloudUUID) IsVM() bool
- func (uuid VcloudUUID) String() string
Constants ¶
const ( // VcloudUUIDPrefix is the prefix for all vCloud UUIDs. VcloudUUIDPrefix = "urn:vcloud:" CloudAvenueUUIDPrefix = "urn:cloudavenue:" // * VCD. VM = VcloudUUID(VcloudUUIDPrefix + "vm:") User = VcloudUUID(VcloudUUIDPrefix + "user:") Group = VcloudUUID(VcloudUUIDPrefix + "group:") Gateway = VcloudUUID(VcloudUUIDPrefix + "gateway:") VDC = VcloudUUID(VcloudUUIDPrefix + "vdc:") VDCGroup = VcloudUUID(VcloudUUIDPrefix + "vdcGroup:") VDCComputePolicy = VcloudUUID(VcloudUUIDPrefix + "vdcComputePolicy:") Network = VcloudUUID(VcloudUUIDPrefix + "network:") LoadBalancerPool = VcloudUUID(VcloudUUIDPrefix + "loadBalancerPool:") VDCStorageProfile = VcloudUUID(VcloudUUIDPrefix + "vdcstorageProfile:") VAPP = VcloudUUID(VcloudUUIDPrefix + "vapp:") VAPPTemplate = VcloudUUID(VcloudUUIDPrefix + "vappTemplate:") Disk = VcloudUUID(VcloudUUIDPrefix + "disk:") SecurityGroup = VcloudUUID(VcloudUUIDPrefix + "firewallGroup:") Catalog = VcloudUUID(VcloudUUIDPrefix + "catalog:") Token = VcloudUUID(VcloudUUIDPrefix + "token:") AppPortProfile = VcloudUUID(VcloudUUIDPrefix + "applicationPortProfile:") // * CLOUDAVENUE. VCDA = VcloudUUID(CloudAvenueUUIDPrefix + "vcda:") )
Variables ¶
This section is empty.
Functions ¶
func IsAppPortProfile ¶ added in v0.17.0
IsAppPortProfile returns true if the UUID is a AppPortProfile UUID.
func IsEdgeGateway ¶ added in v0.6.0
IsEdgeGateway returns true if the UUID is a EdgeGateway UUID.
func IsLoadBalancerPool ¶ added in v0.6.0
IsLoadBalancerPool returns true if the UUID is a LoadBalancerPool UUID.
func IsSecurityGroup ¶ added in v0.6.0
IsSecurityGroup returns true if the UUID is a SecurityGroup UUID.
func IsVAPPTemplate ¶ added in v0.9.0
IsVAPPTemplate returns true if the UUID is a VAPPTemplate UUID.
func IsVDCComputePolicy ¶ added in v0.15.0
IsVDCComputePolicy returns true if the UUID is a VDCComputePolicy UUID.
func IsVDCGroup ¶ added in v0.9.0
IsVDCGroup returns true if the UUID is a VDCGroup UUID.
func IsVDCStorageProfile ¶ added in v0.6.0
IsVDCStorageProfile returns true if the UUID is a VDCStorageProfile UUID.
func TestIsType ¶ added in v0.8.0
func TestIsType(uuidType VcloudUUID) resource.CheckResourceAttrWithFunc
TestIsType returns true if the UUID is of the specified type.
Types ¶
type VcloudUUID ¶
type VcloudUUID string
func Normalize ¶
func Normalize(prefix VcloudUUID, uuid string) VcloudUUID
Normalize returns the UUID with the prefix if prefix is missing.
func (VcloudUUID) ContainsPrefix ¶
func (uuid VcloudUUID) ContainsPrefix() bool
ContainsPrefix returns true if the UUID contains any prefix.
func (VcloudUUID) IsAppPortProfile ¶ added in v0.17.0
func (uuid VcloudUUID) IsAppPortProfile() bool
IsAppPortProfile returns true if the UUID is a AppPortProfile UUID.
func (VcloudUUID) IsCatalog ¶ added in v0.9.0
func (uuid VcloudUUID) IsCatalog() bool
IsCatalog returns true if the UUID is a Catalog UUID.
func (VcloudUUID) IsDisk ¶ added in v0.6.0
func (uuid VcloudUUID) IsDisk() bool
IsDisk returns true if the UUID is a Disk UUID.
func (VcloudUUID) IsGateway ¶
func (uuid VcloudUUID) IsGateway() bool
IsGateway returns true if the UUID is a Gateway UUID.
func (VcloudUUID) IsGroup ¶
func (uuid VcloudUUID) IsGroup() bool
IsGroup returns true if the UUID is a Group UUID.
func (VcloudUUID) IsLoadBalancerPool ¶
func (uuid VcloudUUID) IsLoadBalancerPool() bool
IsLoadBalancerPool returns true if the UUID is a LoadBalancerPool UUID.
func (VcloudUUID) IsNetwork ¶
func (uuid VcloudUUID) IsNetwork() bool
IsNetwork returns true if the UUID is a Network UUID.
func (VcloudUUID) IsSecurityGroup ¶ added in v0.6.0
func (uuid VcloudUUID) IsSecurityGroup() bool
IsSecurityGroup returns true if the UUID is a SecurityGroup UUID.
func (VcloudUUID) IsToken ¶ added in v0.10.0
func (uuid VcloudUUID) IsToken() bool
IsToken returns true if the UUID is a Token UUID.
func (VcloudUUID) IsType ¶
func (uuid VcloudUUID) IsType(prefix VcloudUUID) bool
IsType returns true if the UUID is of the specified type.
func (VcloudUUID) IsUser ¶
func (uuid VcloudUUID) IsUser() bool
IsUser returns true if the UUID is a User UUID.
func (VcloudUUID) IsVAPP ¶
func (uuid VcloudUUID) IsVAPP() bool
IsVAPP returns true if the UUID is a VAPP UUID.
func (VcloudUUID) IsVAPPTemplate ¶ added in v0.9.0
func (uuid VcloudUUID) IsVAPPTemplate() bool
IsVAPPTemplate returns true if the UUID is a VAPPTemplate UUID.
func (VcloudUUID) IsVDC ¶
func (uuid VcloudUUID) IsVDC() bool
IsVDC returns true if the UUID is a VDC UUID.
func (VcloudUUID) IsVDCComputePolicy ¶ added in v0.15.0
func (uuid VcloudUUID) IsVDCComputePolicy() bool
IsVDCComputePolicy returns true if the UUID is a VDCComputePolicy UUID.
func (VcloudUUID) IsVDCGroup ¶ added in v0.9.0
func (uuid VcloudUUID) IsVDCGroup() bool
IsVDCGroup returns true if the UUID is a VDCGroup UUID.
func (VcloudUUID) IsVDCStorageProfile ¶
func (uuid VcloudUUID) IsVDCStorageProfile() bool
IsVDCStorageProfile returns true if the UUID is a VDCStorageProfile UUID.
func (VcloudUUID) IsVM ¶
func (uuid VcloudUUID) IsVM() bool
IsVM returns true if the UUID is a VM UUID.
func (VcloudUUID) String ¶
func (uuid VcloudUUID) String() string
String returns the string representation of the UUID.