Documentation
¶
Index ¶
- func AdminName() string
- func AlphaLowerN(num int) string
- func AlphaN(num int) string
- func AlphanumericN(num int) string
- func Bool() bool
- func Bytes() []byte
- func Comment() string
- func Email() string
- func GenerateRSAKeyPair(t *testing.T, pass string) (string, string, string, string)
- func GenerateRSAPrivateKey(t *testing.T) *rsa.PrivateKey
- func GenerateRSAPrivateKeyEncrypted(t *testing.T, password string) (unencrypted, encrypted string)
- func GenerateRSAPublicKey(t *testing.T) (string, string)
- func GenerateRSAPublicKeyFromPrivateKey(t *testing.T, key *rsa.PrivateKey) (string, string)
- func GenerateX509(t *testing.T) string
- func ObjectSuffix() string
- func Password() string
- func SensitiveAlpha() string
- func SensitiveAlphanumeric() string
- func SensitiveString() string
- func String() string
- func StringN(num int) string
- func UUID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 AlphaLowerN ¶ added in v1.0.0
func AlphanumericN ¶
func GenerateRSAKeyPair ¶ added in v1.0.0
GenerateRSAKeyPair returns an RSA private key (unencrypted and encrypted), RSA public key without BEGIN and END markers, and key's hash.
func GenerateRSAPrivateKey ¶ added in v0.98.0
func GenerateRSAPrivateKey(t *testing.T) *rsa.PrivateKey
GenerateRSAPrivateKey returns an RSA private key.
func GenerateRSAPrivateKeyEncrypted ¶ added in v0.98.0
GenerateRSAPrivateKeyEncrypted returns a PEM-encoded pair of unencrypted and encrypted key with a given password
func GenerateRSAPublicKey ¶ added in v0.92.0
GenerateRSAPublicKey returns an RSA public key without BEGIN and END markers, and key's hash.
func GenerateRSAPublicKeyFromPrivateKey ¶ added in v1.0.0
GenerateRSAPublicKeyFromPrivateKey returns an RSA public key without BEGIN and END markers, and key's hash.
func GenerateX509 ¶ added in v0.92.0
GenerateX509 returns base64 encoded certificate on a single line without the leading -----BEGIN CERTIFICATE----- and ending -----END CERTIFICATE----- markers.
func ObjectSuffix ¶ added in v1.0.5
func ObjectSuffix() string
func SensitiveAlpha ¶ added in v1.2.0
func SensitiveAlpha() string
SensitiveAlpha returns a random string prefixed with a generated random value that is masked in GitHub Action logs. The string returned by SensitiveAlphanumeric always starts with a letter and contains only letters.
func SensitiveAlphanumeric ¶ added in v1.2.0
func SensitiveAlphanumeric() string
SensitiveAlphanumeric returns a random string prefixed with a generated random value that is masked in GitHub Action logs. The string returned by SensitiveAlphanumeric always starts with a letter and contains only letters and numbers.
func SensitiveString ¶ added in v1.2.0
func SensitiveString() string
SensitiveString returns a random string prefixed with a generated random value that is masked in GitHub Action logs. The string returned by SensitiveString always starts with a letter and contains only letters, numbers, and symbols.
Types ¶
This section is empty.