provider

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MPL-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ValidationMonotonicIncreasing = "increasing"
	ValidationMonotonicDecreasing = "decreasing"
)

Variables

This section is empty.

Functions

func New

func New() *schema.Provider

New returns a new Terraform provider.

func ParameterEnvironmentVariable

func ParameterEnvironmentVariable(name string) string

ParameterEnvironmentVariable returns the environment variable to specify for a parameter by it's name. It's hashed because spaces and special characters can be used in parameter names that may not be valid in env vars.

Types

type Option

type Option struct {
	Name        string
	Description string
	Value       string
	Icon        string
}

type Parameter

type Parameter struct {
	Value       string
	Name        string
	Description string
	Type        string
	Mutable     bool
	Default     string
	Icon        string
	Option      []Option
	Validation  []Validation
}

type Validation

type Validation struct {
	Min       int
	Max       int
	Monotonic string

	Regex string
	Error string
}

func (*Validation) Valid

func (v *Validation) Valid(typ, value string) error

Jump to

Keyboard shortcuts

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