random

package
v4.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlphanumericString

func AlphanumericString(n int) (string, error)

AlphanumericString returns a random string of length n comprised of [A-Za-z0-9]

func Bytes

func Bytes(n int) ([]byte, error)

Bytes returns a random byte slice of legth n

func FQDN

func FQDN(parentDomain string, n int) (string, error)

FQDN returns a random fully qualified domain name within a given parent domain

func LowerCaseAlphaString

func LowerCaseAlphaString(n int) (string, error)

LowerCaseAlphaString returns a random string of length n comprised of [a-z]

func LowerCaseAlphanumericString

func LowerCaseAlphanumericString(n int) (string, error)

LowerCaseAlphanumericString returns a random string of length n comprised of [a-z0-9]

func StorageAccountName

func StorageAccountName(prefix string) (string, error)

StorageAccountName returns a random string suitable for use as an Azure storage account name

func String

func String(letterBytes string, n int) (string, error)

String returns a random string of length n comprised of bytes in letterBytes

func VaultURL

func VaultURL(prefix string) (string, error)

VaultURL returns a random string suitable for use as an Azure key vault URL

Types

This section is empty.

Jump to

Keyboard shortcuts

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