validation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package validation contains schema.Schema validation functions. This package is designed similarly to the terraform/helper/validation package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffSuppressStringIgnoreCase

func DiffSuppressStringIgnoreCase(k, old, new string, d *schema.ResourceData) bool

DiffSuppressStringIgnoreCase suppresses a Resource's schema diff for a Schema.TypeString attribute if the old and new version of the string are the same when ignoring case.

k contains the schema's "key". This is a value in the format of a terraform tfstate file. old contains the previously known value for that key. new contains the new value for that key.

Returns true if the diff should be suppressed, false if the diff should be evaluated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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