apitypes

package
v0.0.0-...-37ad2f4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: AGPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FriendlyDiagnostic

type FriendlyDiagnostic = types.FriendlyDiagnostic

type NullHCLString

type NullHCLString = types.NullHCLString

type OptionType

type OptionType string
const (
	OptionTypeString     OptionType = "string"
	OptionTypeNumber     OptionType = "number"
	OptionTypeBoolean    OptionType = "bool"
	OptionTypeListString OptionType = "list(string)"
)

type Output

type Output struct {
	Parameters []ParameterWithSource `json:"parameters"`
	Files      map[string]*hcl.File  `json:"files"`
}

type ParameterFormType

type ParameterFormType string
const (
	ParameterFormTypeDefault     ParameterFormType = ""
	ParameterFormTypeRadio       ParameterFormType = "radio"
	ParameterFormTypeSlider      ParameterFormType = "slider"
	ParameterFormTypeInput       ParameterFormType = "input"
	ParameterFormTypeDropdown    ParameterFormType = "dropdown"
	ParameterFormTypeCheckbox    ParameterFormType = "checkbox"
	ParameterFormTypeSwitch      ParameterFormType = "switch"
	ParameterFormTypeMultiSelect ParameterFormType = "multi-select"
	ParameterFormTypeTagSelect   ParameterFormType = "tag-select"
	ParameterFormTypeTextArea    ParameterFormType = "textarea"
	ParameterFormTypeError       ParameterFormType = "error"
)

type ParameterWithSource

type ParameterWithSource struct {
	types.Parameter
	Uuid      uuid.UUID `json:"uuid"`
	TypeRange hcl.Range `json:"type_range"`
	DefRange  hcl.Range `json:"def_range"`
}

func WithSource

func WithSource(p []types.Parameter) []ParameterWithSource

type ParserLog

type ParserLog struct {
	Time    time.Time `json:"time"`
	Level   string    `json:"level"`
	Message string    `json:"msg"`
	Prefix  string    `json:"prefix"`
	Module  string    `json:"root"`
	Err     string    `json:"err"`
}

type PreviewOutput

type PreviewOutput struct {
	Output *Output           `json:"output"`
	Diags  types.Diagnostics `json:"diags"`
	// ParserLogs are trivy logs that occur during parsing the
	// Terraform files. This is useful for debugging issues with the
	// invalid terraform syntax.
	ParserLogs []ParserLog `json:"parser_logs,omitempty"`
}

type WorkspaceOwner

type WorkspaceOwner = types.WorkspaceOwner

Jump to

Keyboard shortcuts

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