Help us shape the future of Go! Take the 2026 Go Developer Survey

validate

package
v0.86.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateCmd

func ValidateCmd(ch *cmdutil.Helper) *cobra.Command

ValidateCmd validates and reconciles a project without starting the UI.

Types

type ParseError

type ParseError struct {
	Message   string `json:"message" header:"message"`
	FilePath  string `json:"file_path" header:"file_path"`
	StartLine uint32 `json:"start_line,omitempty" header:"start_line"`
	Level     string `json:"level" header:"level"` // "error" or "warning"
}

ParseError represents a parse error (serializable version of runtimev1.ParseError)

type ResourceStatus

type ResourceStatus struct {
	Kind     string `json:"kind" header:"kind"`
	Name     string `json:"name" header:"name"`
	Status   string `json:"status" header:"status"`
	Error    string `json:"error" header:"error"`
	Warning  string `json:"warning" header:"warning"`
	FilePath string `json:"file_path" header:"file_path"`
	Timeout  bool   `json:"timeout" header:"timeout"`
}

type ValidationResult

type ValidationResult struct {
	Summary     ValidationSummary `json:"summary"`
	ParseErrors []ParseError      `json:"parse_errors"`
	Resources   []ResourceStatus  `json:"resources"`
}

ValidationResult represents the complete validation output

type ValidationSummary

type ValidationSummary struct {
	TotalResources    int `json:"total_resources"`
	ParseErrors       int `json:"parse_errors"`
	ParseWarnings     int `json:"parse_warnings"`
	ReconcileErrors   int `json:"reconcile_errors"`
	ReconcileWarnings int `json:"reconcile_warnings"`
}

Jump to

Keyboard shortcuts

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