guid

package
v0.10.1-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. Licensed under the Apache v2.0 license.

Index

Constants

View Source
const RandomBytes uint = 7

Variables

This section is empty.

Functions

func NewBinaryGuid

func NewBinaryGuid() ([]byte, error)

NewBinaryGuid generates an RFC compliant guid and returns it in byte array format

func NewGuid

func NewGuid() string

NewGuid

func NewGuid4

func NewGuid4() string

func NewTypePrefixGuid

func NewTypePrefixGuid(prefix PrefixType) string

Types

type PrefixType

type PrefixType uint64
const (
	LoadBalancer PrefixType = iota
	VirtualMachine
	VirtualMachineScaleSet
	VirtualHardDisk
	VirtualNetwork
	VirtualNetworkInterface
	Certificate
	Identity
	KeyVault
	Secret
	Key
	Container
	Cluster
	Group
	Kubernetes
	Location
	Node
	Subscription
	VipPool
	GalleryImage
	VirtualMachineImage
	IPAddressManager
	IPAddress
	MacPool
)

func TypeToPrefix

func TypeToPrefix(datatype reflect.Type) (prefixType PrefixType)

Jump to

Keyboard shortcuts

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