hcpvalidator

package
v0.81.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

hcpvalidator package providers validators for common HCP request attributes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayName

func DisplayName() validator.String

DisplayName returns an AttributeValidator which ensures that any configured attribute value:

  • Is a string.
  • Consists of only characters that are valid for a display name

Null (unconfigured) and unknown (known after apply) values are skipped.

func ResourceNamePart

func ResourceNamePart() validator.String

ResourceNamePart returns an AttributeValidator which ensures that any configured attribute value:

  • Is a string.
  • Consists of only characters that are valid for a resource name part

Length is not enforced, and should be validated separately. Null (unconfigured) and unknown (known after apply) values are skipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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