validateui

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainModel

type MainModel struct {
	Error error
	// contains filtered or unexported fields
}

func NewValidateApp

func NewValidateApp(cfg ValidateAppConfig) (*MainModel, error)

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (MainModel) Update

func (m MainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (MainModel) View

func (m MainModel) View() string

type ValidateAppConfig

type ValidateAppConfig struct {
	Engine                 engine.DeployEngine
	Logger                 *zap.Logger
	BlueprintFile          string
	IsDefaultBlueprintFile bool
	Styles                 *stylespkg.Styles
	Headless               bool
	HeadlessWriter         io.Writer
	Preflight              tea.Model
	// TransformSpec, when non-nil, sets the validation loader's transform-spec
	// option directly and skips the interactive options form. When nil, the
	// SDK default of true is used and (in interactive mode) the form is shown.
	TransformSpec *bool
	// ValidateAfterTransform, when non-nil, sets the validation loader's
	// validate-after-transform option directly and skips the interactive
	// options form. When nil, the SDK default of false is used and (in
	// interactive mode) the form is shown.
	ValidateAfterTransform *bool
}

ValidateAppConfig holds configuration for creating a new validate application.

type ValidateErrMsg

type ValidateErrMsg struct {
	// contains filtered or unexported fields
}

type ValidateModel

type ValidateModel struct {
	// contains filtered or unexported fields
}

func NewValidateModel

func NewValidateModel(cfg ValidateModelConfig) ValidateModel

func (ValidateModel) Init

func (m ValidateModel) Init() tea.Cmd

func (*ValidateModel) SetTransformSpec added in v0.4.0

func (m *ValidateModel) SetTransformSpec(transformSpec bool)

SetTransformSpec sets the transform spec option.

func (*ValidateModel) SetValidateAfterTransform added in v0.4.0

func (m *ValidateModel) SetValidateAfterTransform(validateAfterTransform bool)

SetValidateAfterTransform sets the validate after transform option.

func (ValidateModel) TransformSpec added in v0.4.0

func (m ValidateModel) TransformSpec() bool

TransformSpec returns whether the transform spec option is enabled.

func (ValidateModel) Update

func (m ValidateModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ValidateModel) ValidateAfterTransform added in v0.4.0

func (m ValidateModel) ValidateAfterTransform() bool

ValidateAfterTransform returns whether the validate-after-transform option is enabled.

func (ValidateModel) View

func (m ValidateModel) View() string

type ValidateModelConfig added in v0.4.0

type ValidateModelConfig struct {
	Engine                 engine.DeployEngine
	Logger                 *zap.Logger
	Headless               bool
	HeadlessWriter         io.Writer
	Styles                 *stylespkg.Styles
	TransformSpec          bool
	ValidateAfterTransform bool
}

ValidateModelConfig holds the configuration for creating a new ValidateModel.

type ValidateOptionsFormConfig added in v0.4.0

type ValidateOptionsFormConfig struct {
	// InitialTransformSpec is the pre-populated transform spec value
	// (from flag/env/config).
	InitialTransformSpec bool
	// InitialValidateAfterTransform is the pre-populated value for
	// validating after transform (from flag/env/config).
	InitialValidateAfterTransform bool
}

ValidateOptionsFormConfig holds the initial values for the validate options form.

type ValidateOptionsFormModel added in v0.4.0

type ValidateOptionsFormModel struct {
	// contains filtered or unexported fields
}

ValidateOptionsFormModel provides a form for configuring validation loader options.

func NewValidateOptionsFormModel added in v0.4.0

func NewValidateOptionsFormModel(
	styles *stylespkg.Styles,
	config ValidateOptionsFormConfig,
) *ValidateOptionsFormModel

NewValidateOptionsFormModel creates a new validate options form model.

func (*ValidateOptionsFormModel) Init added in v0.4.0

func (m *ValidateOptionsFormModel) Init() tea.Cmd

func (*ValidateOptionsFormModel) Update added in v0.4.0

func (*ValidateOptionsFormModel) View added in v0.4.0

func (m *ValidateOptionsFormModel) View() string

type ValidateOptionsSelectedMsg added in v0.4.0

type ValidateOptionsSelectedMsg struct {
	TransformSpec          bool
	ValidateAfterTransform bool
}

ValidateOptionsSelectedMsg is sent when the user completes the validate options form.

type ValidateResultMsg

type ValidateResultMsg *types.BlueprintValidationEvent

type ValidateStage

type ValidateStage int

ValidateStage is an enum that represents the different stages of the validation process.

const (
	// ValidateStageConfigStructure is the stage where application configuration
	// and project structure is validated.
	ValidateStageConfigStructure ValidateStage = iota
	// ValidateStageBlueprint is the stage where the blueprint is validated.
	ValidateStageBlueprint
	// ValidateStageSourceCode is the stage where the source code of the
	// application is validated.
	ValidateStageSourceCode
)

type ValidateStreamMsg

type ValidateStreamMsg struct{}

Jump to

Keyboard shortcuts

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