uuid

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
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 IsDisk added in v0.6.0

func IsDisk(uuid string) bool

IsDisk returns true if the UUID is a Disk UUID.

func IsEdgeGateway added in v0.6.0

func IsEdgeGateway(uuid string) bool

IsEdgeGateway returns true if the UUID is a EdgeGateway UUID.

func IsGroup added in v0.6.0

func IsGroup(uuid string) bool

IsGroup returns true if the UUID is a Group UUID.

func IsLoadBalancerPool added in v0.6.0

func IsLoadBalancerPool(uuid string) bool

IsLoadBalancerPool returns true if the UUID is a LoadBalancerPool UUID.

func IsNetwork added in v0.6.0

func IsNetwork(uuid string) bool

IsNetwork returns true if the UUID is a Network UUID.

func IsSecurityGroup added in v0.6.0

func IsSecurityGroup(uuid string) bool

IsSecurityGroup returns true if the UUID is a SecurityGroup UUID.

func IsUser added in v0.6.0

func IsUser(uuid string) bool

IsUser returns true if the UUID is a User UUID.

func IsVAPP added in v0.6.0

func IsVAPP(uuid string) bool

IsVAPP returns true if the UUID is a VAPP UUID.

func IsVCDA added in v0.6.0

func IsVCDA(uuid string) bool

IsVCDA returns true if the UUID is a VCDA UUID.

func IsVDC added in v0.6.0

func IsVDC(uuid string) bool

IsVDC returns true if the UUID is a VDC UUID.

func IsVDCStorageProfile added in v0.6.0

func IsVDCStorageProfile(uuid string) bool

IsVDCStorageProfile returns true if the UUID is a VDCStorageProfile UUID.

func IsVM added in v0.6.0

func IsVM(uuid string) bool

IsVM returns true if the UUID is a VM UUID.

func IsValid

func IsValid(uuid string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL