Documentation ¶
Index ¶
- Constants
- 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 IsUser(uuid string) bool
- func IsVAPP(uuid string) bool
- func IsVCDA(uuid string) bool
- func IsVDC(uuid string) bool
- func IsVDCStorageProfile(uuid string) bool
- func IsVM(uuid string) bool
- func IsValid(uuid string) bool
- type VcloudUUID
- func (uuid VcloudUUID) ContainsPrefix() 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) IsType(prefix VcloudUUID) bool
- func (uuid VcloudUUID) IsUser() bool
- func (uuid VcloudUUID) IsVAPP() bool
- func (uuid VcloudUUID) IsVDC() 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:") Network = VcloudUUID(VcloudUUIDPrefix + "network:") LoadBalancerPool = VcloudUUID(VcloudUUIDPrefix + "loadBalancerPool:") VDCStorageProfile = VcloudUUID(VcloudUUIDPrefix + "vdcstorageProfile:") VAPP = VcloudUUID(VcloudUUIDPrefix + "vapp:") Disk = VcloudUUID(VcloudUUIDPrefix + "disk:") SecurityGroup = VcloudUUID(VcloudUUIDPrefix + "firewallGroup:") // * CLOUDAVENUE. VCDA = VcloudUUID(CloudAvenueUUIDPrefix + "vcda:") )
Variables ¶
This section is empty.
Functions ¶
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 IsVDCStorageProfile ¶ added in v0.6.0
IsVDCStorageProfile returns true if the UUID is a VDCStorageProfile UUID.
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) 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) 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) IsVDC ¶
func (uuid VcloudUUID) IsVDC() bool
IsVDC returns true if the UUID is a VDC 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.