provider

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MPL-2.0 Imports: 20 Imported by: 4

Documentation

Index

Constants

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

Variables

View Source
var ScriptCRONParser = cron.NewParser(cron.Second | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.DowOptional | cron.Descriptor)

Functions

func ExternalAuthAccessTokenEnvironmentVariable added in v0.12.2

func ExternalAuthAccessTokenEnvironmentVariable(id string) string

func GitAuthAccessTokenEnvironmentVariable added in v0.6.13

func GitAuthAccessTokenEnvironmentVariable(id string) string

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
	DisplayName string `mapstructure:"display_name"`
	Description string
	Type        string
	Mutable     bool
	Default     string
	Icon        string
	Option      []Option
	Validation  []Validation
	Optional    bool
	Order       int
	Ephemeral   bool
}

type Validation

type Validation struct {
	Min         int
	MinDisabled bool `mapstructure:"min_disabled"`
	Max         int
	MaxDisabled bool `mapstructure:"max_disabled"`

	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