validation

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 ValidatePrivilege

func ValidatePrivilege(valid []string, ignoreCase bool) schema.SchemaValidateFunc

ValidatePrivilege validates the privilege is in the authorized set. Will also check for the ALL privilege and hopefully provide a helpful error message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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