Documentation ¶
Index ¶
- type Controller
- type Data
- type DataSet
- type FailedResult
- type FlatError
- type GitHub
- type HTTPClient
- type JsonnetEvaluateResult
- type JsonnetResult
- type LintFile
- type Node
- type Output
- type Outputter
- type ParamController
- type ParamDownloadModule
- type ParamLint
- type Result
- type Target
- type TestData
- type TestPair
- type TopLevelArgment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(param *ParamController, fs afero.Fs, stdout io.Writer, moduleInstaller *module.Installer, importer *jsonnet.Importer) *Controller
type FailedResult ¶
type FailedResult struct { Name string `json:"name,omitempty"` LintFilePath string `json:"lint_file_path,omitempty"` TestFilePath string `json:"test_file_path,omitempty"` Param any `json:"param,omitempty"` Wanted any `json:"wanted,omitempty"` Got any `json:"got,omitempty"` Diff string `json:"diff,omitempty"` Error string `json:"error,omitempty"` }
type FlatError ¶
type FlatError struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Level string `json:"level,omitempty"` Message string `json:"message,omitempty"` LintFile string `json:"lint_file,omitempty"` DataFile string `json:"data_file,omitempty"` // DataFilePaths []string `json:"data_files,omitempty"` TargetID string `json:"target_id,omitempty"` Location any `json:"location,omitempty"` Custom any `json:"custom,omitempty"` }
type JsonnetEvaluateResult ¶
return of vm.Evaluate()
type JsonnetResult ¶
type JsonnetResult struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Message string `json:"message,omitempty"` Level string `json:"level,omitempty"` Location any `json:"location,omitempty"` Custom any `json:"custom,omitempty"` Excluded bool `json:"excluded,omitempty"` }
unmarshal Jsonnet as JSON
type ParamController ¶
type ParamController struct {
Version string
}
type ParamDownloadModule ¶
type ParamDownloadModule struct {
BaseDir string
}
type Result ¶
type Result struct { TargetID string `json:"target_id,omitempty"` LintFile string `json:"lint_file,omitempty"` DataFile string `json:"data_file,omitempty"` DataFiles []string `json:"data_files,omitempty"` RawResult []*JsonnetResult `json:"-"` RawOutput string `json:"-"` Interface any `json:"result,omitempty"` Error string `json:"error,omitempty"` }
func (*Result) FlatErrors ¶
Click to show internal directories.
Click to hide internal directories.