Documentation ¶
Index ¶
- Variables
- func ArrayContains[T comparable](searchTerms []T, list []T) bool
- func GetConnection(ctx context.Context, db *sql.DB, sessionID *string, org, roleName string) (context.Context, *sql.Conn, error)
- func LoadTestEnv() (map[string]string, error)
- func LogError(ctx context.Context, d diag.Diagnostics, summary string, err error) diag.Diagnostics
- func Must[T any](val T, err error) T
- func SetSqlContext(ctx context.Context, conn *sql.Conn, dbName, schemaName, storeName *string) error
- type UrlsValidator
Constants ¶
This section is empty.
Variables ¶
View Source
var IdentifierValidators = []validator.String{stringvalidator.RegexMatches( regexp.MustCompile(`^[a-zA-Z0-9]([ ]?[a-zA-Z0-9_\-])*$`), "must contain only alphanumeric characters, space, - and _", )}
View Source
var UUIDValidators = []validator.String{stringvalidator.RegexMatches( regexp.MustCompile(`^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[4][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$`), "must contain only alphanumeric characters, space, - and _", )}
Functions ¶
func ArrayContains ¶
func ArrayContains[T comparable](searchTerms []T, list []T) bool
func GetConnection ¶
func LoadTestEnv ¶
func LogError ¶
func LogError(ctx context.Context, d diag.Diagnostics, summary string, err error) diag.Diagnostics
Types ¶
type UrlsValidator ¶
type UrlsValidator struct{}
func (UrlsValidator) Description ¶
func (v UrlsValidator) Description(ctx context.Context) string
func (UrlsValidator) MarkdownDescription ¶
func (v UrlsValidator) MarkdownDescription(ctx context.Context) string
func (UrlsValidator) ValidateString ¶
func (v UrlsValidator) ValidateString(ctx context.Context, req validator.StringRequest, resp *validator.StringResponse)
Click to show internal directories.
Click to hide internal directories.