uuid

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MPL-2.0 Imports: 4 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:")
	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

func IsAppPortProfile(uuid string) bool

IsAppPortProfile returns true if the UUID is a AppPortProfile UUID.

func IsCatalog added in v0.9.0

func IsCatalog(uuid string) bool

IsCatalog returns true if the UUID is a Catalog UUID.

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 IsToken added in v0.10.0

func IsToken(uuid string) bool

IsToken returns true if the UUID is a Token UUID.

func IsUUIDV4 added in v0.8.0

func IsUUIDV4(uuid string) bool

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 IsVAPPTemplate added in v0.9.0

func IsVAPPTemplate(uuid string) bool

IsVAPPTemplate returns true if the UUID is a VAPPTemplate 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 IsVDCComputePolicy added in v0.15.0

func IsVDCComputePolicy(uuid string) bool

IsVDCComputePolicy returns true if the UUID is a VDCComputePolicy UUID.

func IsVDCGroup added in v0.9.0

func IsVDCGroup(uuid string) bool

IsVDCGroup returns true if the UUID is a VDCGroup 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

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.

Jump to

Keyboard shortcuts

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