apitypes

package
v0.0.0-...-e1b0250 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

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