Documentation ¶
Index ¶
- func AbsolutePath() schema.SchemaValidateDiagFunc
- func All(validators ...schema.SchemaValidateDiagFunc) schema.SchemaValidateDiagFunc
- func Any(validators ...schema.SchemaValidateDiagFunc) schema.SchemaValidateDiagFunc
- func AuthorizedKey() schema.SchemaValidateDiagFunc
- func Base64PublicKey() schema.SchemaValidateDiagFunc
- func Duration() schema.SchemaValidateDiagFunc
- func DurationAtLeast(min time.Duration) schema.SchemaValidateDiagFunc
- func DurationAtMost(max time.Duration) schema.SchemaValidateDiagFunc
- func ExpectUrl(val interface{}, path cty.Path) (*url.URL, diag.Diagnostics)
- func FileMode() schema.SchemaValidateDiagFunc
- func PrivateKey() schema.SchemaValidateDiagFunc
- func StringMatch(r *regexp.Regexp, message string) schema.SchemaValidateDiagFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
func AbsolutePath() schema.SchemaValidateDiagFunc
func All ¶
func All(validators ...schema.SchemaValidateDiagFunc) schema.SchemaValidateDiagFunc
All returns a SchemaValidateDiagFunc which tests if the provided value passes all provided SchemaValidateDiagFunc
func Any ¶
func Any(validators ...schema.SchemaValidateDiagFunc) schema.SchemaValidateDiagFunc
Any returns a SchemaValidateDiagFunc which tests if the provided value passes at least one (any) of the provided SchemaValidateDiagFunc
func AuthorizedKey ¶
func AuthorizedKey() schema.SchemaValidateDiagFunc
AuthorizedKey validates if the value can be parsed using ssh.ParsePublicKey.
func Base64PublicKey ¶
func Base64PublicKey() schema.SchemaValidateDiagFunc
Base64PublicKey validates if the value can be parsed using ssh.ParsePublicKey.
func Duration ¶
func Duration() schema.SchemaValidateDiagFunc
Duration returns a schema.SchemaValidateDiagFunc which tests if the provided value is of type string and can be parsed as time.Duration
func DurationAtLeast ¶
func DurationAtLeast(min time.Duration) schema.SchemaValidateDiagFunc
DurationAtLeast returns a schema.SchemaValidateDiagFunc if the provided value is of type string, can be parsed as time.Duration, and is at least min (inclusive)
func DurationAtMost ¶
func DurationAtMost(max time.Duration) schema.SchemaValidateDiagFunc
DurationAtMost returns a schema.SchemaValidateDiagFunc if the provided value is of type string, can be parsed as time.Duration, and is at most max (inclusive)
func FileMode ¶
func FileMode() schema.SchemaValidateDiagFunc
func PrivateKey ¶
func PrivateKey() schema.SchemaValidateDiagFunc
PrivateKey validates if the value can be parsed using ssh.ParseRawPrivateKey. Supported private keys are unencrypted pem encoded RSA (PKCS#1), PKCS#8, DSA (OpenSSL), and ECDSA private keys.
func StringMatch ¶
func StringMatch(r *regexp.Regexp, message string) schema.SchemaValidateDiagFunc
Types ¶
This section is empty.