validation

package
v0.90.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFullyQualifiedObjectID added in v0.47.0

func FormatFullyQualifiedObjectID(dbName, schemaName, objectName string) string

func ParseAndFormatFullyQualifiedObectID added in v0.47.0

func ParseAndFormatFullyQualifiedObectID(s string) string

func ParseFullyQualifiedObjectID added in v0.47.0

func ParseFullyQualifiedObjectID(s string) (dbName, schemaName, objectName string)

func ValidateAccountIdentifier added in v0.56.0

func ValidateAccountIdentifier(i interface{}, k string) (s []string, errors []error)

func ValidateAdminName added in v0.56.0

func ValidateAdminName(i interface{}, k string) (s []string, errors []error)

ValidateAdminName: A login name can be any string consisting of letters, numbers, and underscores. Login names are always case-insensitive.

func ValidateEmail added in v0.56.0

func ValidateEmail(i interface{}, k string) (s []string, errors []error)

func ValidateIsNotAccountLocator added in v0.38.0

func ValidateIsNotAccountLocator(i interface{}, k string) (s []string, errors []error)

ValidateIsNotAccountLocator validates that the account value is not an account locator. Account locators have the following format: 8 characters where the first 3 characters are letters and the last 5 are digits. ex: ABC12345 The desired format should be 'organization_name.account_name' ex: testOrgName.testAccName.

func ValidatePassword

func ValidatePassword(i interface{}, k string) (s []string, errs []error)

ValidatePassword checks that your password meets the Snowflake Password Policy

Must be at least 8 characters long. Must contain at least 1 digit. Must contain at least 1 uppercase letter and 1 lowercase letter. lintignore:V011

func ValidateWarehouseSize added in v0.66.2

func ValidateWarehouseSize(i interface{}, k string) (s []string, errors []error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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