helpers

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BooleanDefaultModifier

func BooleanDefaultModifier(defaultValue bool) booleanDefaultModifier

func Contains

func Contains(s []string, str string) bool

func IntegerDefaultModifier

func IntegerDefaultModifier(defaultValue int64) integerDefaultModifier

func IntegerRangeValidator

func IntegerRangeValidator(min, max int64) tfsdk.AttributeValidator

func StringDefaultModifier

func StringDefaultModifier(defaultValue string) stringDefaultModifier

func StringEnumValidator

func StringEnumValidator(values ...string) tfsdk.AttributeValidator

func StringPatternValidator

func StringPatternValidator(minLength, maxLength int, regexes ...string) tfsdk.AttributeValidator

Types

type AttributeDescription

type AttributeDescription struct {
	String string
}

func NewAttributeDescription

func NewAttributeDescription(s string) *AttributeDescription

func (*AttributeDescription) AddDefaultValueDescription

func (d *AttributeDescription) AddDefaultValueDescription(defaultValue string) *AttributeDescription

func (*AttributeDescription) AddIntegerRangeDescription

func (d *AttributeDescription) AddIntegerRangeDescription(min, max int64) *AttributeDescription

func (*AttributeDescription) AddStringEnumDescription

func (d *AttributeDescription) AddStringEnumDescription(values ...string) *AttributeDescription

Jump to

Keyboard shortcuts

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