random

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AcceptanceTestsSuffix  = acceptanceTestsSuffix()
	IntegrationTestsSuffix = integrationTestsSuffix()
)

TODO [SNOW-955520]: add generation tests TODO [SNOW-955520]: use the same fallback suffix for acceptance and integration tests (now two different ones are generated if the env is missing)

Functions

func AdminName added in v0.92.0

func AdminName() string

AdminName returns admin name acceptable by Snowflake: 090088 (22000): ADMIN_NAME can only contain letters, numbers and underscores. 090089 (22000): ADMIN_NAME must start with a letter.

func AlphaN

func AlphaN(num int) string

func AlphanumericN

func AlphanumericN(num int) string

func Bool

func Bool() bool

func Comment

func Comment() string

func Email added in v0.94.0

func Email() string

func GenerateRSAPublicKey added in v0.92.0

func GenerateRSAPublicKey(t *testing.T) (string, string)

GenerateRSA returns an RSA public key without BEGIN and END markers, and key's hash.

func GenerateX509 added in v0.92.0

func GenerateX509(t *testing.T) string

Generate X509 returns base64 encoded certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers.

func Password added in v0.92.0

func Password() string

func String

func String() string

func StringN

func StringN(num int) string

func UUID

func UUID() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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