uuid

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Prefixes is the list of prefixes.
	VcloudPrefix      = "urn:vcloud:"
	CloudAvenuePrefix = "urn:cloudavenue:"

	// * VCD.
	Org               = UUID(VcloudPrefix + "org:")
	VM                = UUID(VcloudPrefix + "vm:")
	User              = UUID(VcloudPrefix + "user:")
	Group             = UUID(VcloudPrefix + "group:")
	Gateway           = UUID(VcloudPrefix + "gateway:")
	VDC               = UUID(VcloudPrefix + "vdc:")
	VDCGroup          = UUID(VcloudPrefix + "vdcGroup:")
	VDCComputePolicy  = UUID(VcloudPrefix + "vdcComputePolicy:")
	Network           = UUID(VcloudPrefix + "network:")
	LoadBalancerPool  = UUID(VcloudPrefix + "loadBalancerPool:")
	VDCStorageProfile = UUID(VcloudPrefix + "vdcstorageProfile:")
	VAPP              = UUID(VcloudPrefix + "vapp:")
	VAPPTemplate      = UUID(VcloudPrefix + "vappTemplate:")
	Disk              = UUID(VcloudPrefix + "disk:")
	SecurityGroup     = UUID(VcloudPrefix + "firewallGroup:")
	Catalog           = UUID(VcloudPrefix + "catalog:")
	Token             = UUID(VcloudPrefix + "token:")

	// * CLOUDAVENUE.
	VCDA = UUID(CloudAvenuePrefix + "vcda:")
)

Variables

Functions

func IsCatalog

func IsCatalog(uuid string) bool

IsCatalog returns true if the UUID is a Catalog UUID.

func IsDisk

func IsDisk(uuid string) bool

IsDisk returns true if the UUID is a Disk UUID.

func IsEdgeGateway

func IsEdgeGateway(uuid string) bool

IsEdgeGateway returns true if the UUID is a EdgeGateway UUID.

func IsGroup

func IsGroup(uuid string) bool

IsGroup returns true if the UUID is a Group UUID.

func IsLoadBalancerPool

func IsLoadBalancerPool(uuid string) bool

IsLoadBalancerPool returns true if the UUID is a LoadBalancerPool UUID.

func IsNetwork

func IsNetwork(uuid string) bool

IsNetwork returns true if the UUID is a Network UUID.

func IsOrg added in v0.6.0

func IsOrg(uuid string) bool

IsOrg returns true if the UUID is an Org UUID.

func IsSecurityGroup

func IsSecurityGroup(uuid string) bool

IsSecurityGroup returns true if the UUID is a SecurityGroup UUID.

func IsToken

func IsToken(uuid string) bool

IsToken returns true if the UUID is a Token UUID.

func IsUUIDV4

func IsUUIDV4(uuid string) bool

func IsUser

func IsUser(uuid string) bool

IsUser returns true if the UUID is a User UUID.

func IsVAPP

func IsVAPP(uuid string) bool

IsVAPP returns true if the UUID is a VAPP UUID.

func IsVAPPTemplate

func IsVAPPTemplate(uuid string) bool

IsVAPPTemplate returns true if the UUID is a VAPPTemplate UUID.

func IsVCDA

func IsVCDA(uuid string) bool

IsVCDA returns true if the UUID is a VCDA UUID.

func IsVDC

func IsVDC(uuid string) bool

IsVDC returns true if the UUID is a VDC UUID.

func IsVDCComputePolicy

func IsVDCComputePolicy(uuid string) bool

IsVDCComputePolicy returns true if the UUID is a VDCComputePolicy UUID.

func IsVDCGroup

func IsVDCGroup(uuid string) bool

IsVDCGroup returns true if the UUID is a VDCGroup UUID.

func IsVDCStorageProfile

func IsVDCStorageProfile(uuid string) bool

IsVDCStorageProfile returns true if the UUID is a VDCStorageProfile UUID.

func IsVM

func IsVM(uuid string) bool

IsVM returns true if the UUID is a VM UUID.

func IsValid

func IsValid(uuid string) bool

func TestIsType

func TestIsType(uuidType UUID) resource.CheckResourceAttrWithFunc

Special functions for the terraform provider test. TestIsType returns true if the UUID is of the specified type.

Types

type UUID

type UUID string

func Normalize

func Normalize(prefix UUID, uuid string) UUID

Normalize returns the UUID with the prefix if prefix is missing.

func (UUID) ContainsPrefix

func (uuid UUID) ContainsPrefix() bool

ContainsPrefix returns true if the UUID contains any prefix.

func (UUID) IsCatalog

func (uuid UUID) IsCatalog() bool

IsCatalog returns true if the UUID is a Catalog UUID.

func (UUID) IsDisk

func (uuid UUID) IsDisk() bool

IsDisk returns true if the UUID is a Disk UUID.

func (UUID) IsGateway

func (uuid UUID) IsGateway() bool

IsGateway returns true if the UUID is a Gateway UUID.

func (UUID) IsGroup

func (uuid UUID) IsGroup() bool

IsGroup returns true if the UUID is a Group UUID.

func (UUID) IsLoadBalancerPool

func (uuid UUID) IsLoadBalancerPool() bool

IsLoadBalancerPool returns true if the UUID is a LoadBalancerPool UUID.

func (UUID) IsNetwork

func (uuid UUID) IsNetwork() bool

IsNetwork returns true if the UUID is a Network UUID.

func (UUID) IsOrg added in v0.6.0

func (uuid UUID) IsOrg() bool

IsOrg returns true if the UUID is an Org UUID.

func (UUID) IsSecurityGroup

func (uuid UUID) IsSecurityGroup() bool

IsSecurityGroup returns true if the UUID is a SecurityGroup UUID.

func (UUID) IsToken

func (uuid UUID) IsToken() bool

IsToken returns true if the UUID is a Token UUID.

func (UUID) IsType

func (uuid UUID) IsType(prefix UUID) bool

IsType returns true if the UUID is of the specified type.

func (UUID) IsUser

func (uuid UUID) IsUser() bool

IsUser returns true if the UUID is a User UUID.

func (UUID) IsVAPP

func (uuid UUID) IsVAPP() bool

IsVAPP returns true if the UUID is a VAPP UUID.

func (UUID) IsVAPPTemplate

func (uuid UUID) IsVAPPTemplate() bool

IsVAPPTemplate returns true if the UUID is a VAPPTemplate UUID.

func (UUID) IsVDC

func (uuid UUID) IsVDC() bool

IsVDC returns true if the UUID is a VDC UUID.

func (UUID) IsVDCComputePolicy

func (uuid UUID) IsVDCComputePolicy() bool

IsVDCComputePolicy returns true if the UUID is a VDCComputePolicy UUID.

func (UUID) IsVDCGroup

func (uuid UUID) IsVDCGroup() bool

IsVDCGroup returns true if the UUID is a VDCGroup UUID.

func (UUID) IsVDCStorageProfile

func (uuid UUID) IsVDCStorageProfile() bool

IsVDCStorageProfile returns true if the UUID is a VDCStorageProfile UUID.

func (UUID) IsVM

func (uuid UUID) IsVM() bool

IsVM returns true if the UUID is a VM UUID.

func (UUID) String

func (uuid UUID) 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