Documentation
¶
Index ¶
- Constants
- Variables
- func ExternalAuthAccessTokenEnvironmentVariable(id string) string
- func IsPrebuildEnvironmentVariable() string
- func New() *schema.Provider
- func ParameterEnvironmentVariable(name string) string
- func RunningAgentTokenEnvironmentVariable() string
- type Option
- type Parameter
- type Validation
- type WorkspacePrebuild
- type WorkspacePreset
- type WorkspaceTags
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 IsPrebuildEnvironmentVariable ¶ added in v2.4.0
func IsPrebuildEnvironmentVariable() string
func ParameterEnvironmentVariable ¶
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.
func RunningAgentTokenEnvironmentVariable ¶ added in v2.4.0
func RunningAgentTokenEnvironmentVariable() string
Types ¶
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
type WorkspacePrebuild ¶ added in v2.4.0
type WorkspacePrebuild struct {
Instances int `mapstructure:"instances"`
}
type WorkspacePreset ¶ added in v2.1.3
type WorkspacePreset struct { Name string `mapstructure:"name"` Parameters map[string]string `mapstructure:"parameters"` Prebuild []WorkspacePrebuild `mapstructure:"prebuilds"` }
type WorkspaceTags ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.